/* ======== RESET Y BASE ======== */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* --- Contenedor principal del login --- */
.login-container {
    background: #fffffff4;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    z-index: 1;
    margin: 0 auto;
}

/* ======== HEADER ======== */
header {
    background: #D9358C;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- Encabezado y logo --- */
.login-header {
    background: #fff;
    padding: 15px;
}

.login-header img {
    height: 50px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}


/* --- Avatar de usuario --- */
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 45px;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

nav {
    display: flex;
    gap: 20px;
}

form {
    padding: 20px;
}

.phone {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#preloader img {
    width: 300px;
    animation: girar 1.5s linear infinite;
}


@keyframes girar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* ======== BOTÓN HAMBURGUESA ======== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

/* ======== MENU Y SUBMENU ======== */
#menu {
    align-items: center;
    gap: 15px;
}

.menu-item {
    position: relative;
}

#menu a {
    text-decoration: none;
    padding: 8px 12px;
    text-align: center;
}

.submenu a :hover {
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #bc57b4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    flex-direction: column;
}

.submenu a {
    padding: 10px;
    display: block;
    white-space: nowrap;
}

/* 💻 Computadora */
@media (min-width: 1025px) {
    .page-jump {
        display: inline;
    }

    #menu a:hover {
        border-radius: 50px;
        background-color: #923b8b;
    }

    .submenu a:hover {
        background: #f2f2f2;
    }
}

/* Submenú activo en móvil */
.menu-item.active .submenu {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease forwards;
}

/* Mostrar submenú en escritorio */
@media (min-width: 769px) {
    .menu-item:hover .submenu {
        display: flex;
    }
}

/* ======== NAV MÓVIL ======== */
@media (max-width: 768px) {
    #menu {
    margin-top: 15px;
}
    .footer {
        display: none;
    }

    nav {
        display: none;
        flex-direction: column;
        background: #923b8b;
        position: absolute;
        top: 53px;
        right: 0%;
        width: 200px;
        height: 100vh;
        padding: 10px;
    }

    nav.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

/* ======== OLAS ======== */
.olas,
.olas-2 {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 0;
}

.olas-2 {
    bottom: -10px;
}

/* ======== MAIN ======== */
main {
    background-size: cover;
    background-position: center;
    flex: 1;
    padding: 20px;
    z-index: 1;
    position: relative;
}

main img {
    width: 300px;
    height: 400px;
    max-width: 600px;
    margin:  auto;
    display: block;
}
 h1 {
  color: #4b2363;
  text-align: center;
}




@media (max-height: 600px) {
    main img {
        display: none;
    }
}



main h1 {
    color: #4b2363;
    text-align: center;
}

main p {
    color: #4b2363;
    text-align: center;
    font-size: 1.2rem;
}

.slot-header {
  display: flex;
  align-items: center; /* centra verticalmente */
  justify-content: space-between; /* separa imagen a la izq y menú a la der */
  padding: 0 20px;
}

.footer {
    font-size: .8rem;
    width: 100%;
    bottom: 0px;
    position: fixed;
    z-index: 999;
    text-align: end;
    color: rgb(212, 157, 239);
}

.footer p {
    margin: 5px 10px;
}

/* ======== ANIMACIONES ======== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Olas decorativas --- */
.olas-login {
    position: fixed;
    bottom: -20px;
    left: 0;
    width: 100%;
    z-index: 0;
}

/* --- Botón de login --- */
.btn {
    width: 50%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3f73e2, #2c76f5);
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.85;
}


.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: transparent; /* Cambia a color si lo prefieres */
  cursor: pointer;
   color: #fffcfe;            /* Hereda para el SVG (currentColor) */
  transition: background 0.2s, transform 0.05s, color 0.2s;
}

.logout-btn:hover {
  background: rgba(0,0,0,0.06);
  color: #761bdf;          /* Color al pasar el mouse */
  transform: scale(1.2);
}
#searchInput:hover{
     border: 1px solid #8a2ca0; 
      background-color: white;
}

.pagination {
  display: flex;        /* ya lo tienes en inline-flex, cámbialo a flex */
  justify-content: center;
  align-items: center;  /* opcional, para alineación vertical */
  width: 100%;          /* asegura que ocupe todo el ancho disponible */
}
/* 🔲 Fondo del modal */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

/* 📦 Caja del modal */
.modal-contenido {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 50%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

/* Botones */
.acciones {
  display: flex;
  justify-content: space-around;
}

.acciones button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#btnCancelar {
  background: #ccc;
  color: #333;
}

#btnEliminar {
  background: crimson;
  color: white;
}
