/* --- CONFIGURACIÓN BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Optimización para que nada se desborde */
}

/* Aplicamos scroll suave para que al hacer clic en el menú se deslice */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inria Serif', serif; /* Tu tipografía de apoyo */
    background-color: #FFFFFF; /* Blanco Puro */
    color: #1b263b; /* Azul Oxford */
}

/* --- TIPOGRAFÍA DE TÍTULOS --- */
h1, h2 {
    font-family: 'Source Serif Pro', serif; /* Tu tipografía principal */
    color: #8d5544; /* Marrón Terracota */
}

/* --- MENÚ DE NAVEGACIÓN ACTUALIZADO --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%; 
    background-color: #1b263b;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0; /* Esto asegura que no se mueva a la derecha */
    z-index: 2000;
    box-sizing: border-box; /* Evita que el padding estire la barra */
}

.logo {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'Source Serif Pro', serif;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

/* BOTÓN HAMBURGUESA (Oculto en PC) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: 0.3s;
}

/* --- SECCIÓN BANNER (HERO) --- */
.hero {
    height: 100vh; /* Ocupa toda la pantalla */
    background-color: #1b263b; /* Color base si no hay imagen */
    background-image: url('imagenes/banner2.png'); /* Aquí irá tu foto */
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: rgba(27, 38, 59, 0.7); /* Superposición Azul Oxford con transparencia */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    color: #FFFFFF; /* Blanco en el banner para contraste */
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    color: #FFFFFF;
    font-size: 1.2rem;
}

/* --- ESTILO AVANZADO DEL BOTÓN CTA --- */
.btn-cta {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 40px;
    background-color: #8d5544; /* Marrón Terracota de base */
    color: #FFFFFF; /* Texto Blanco Puro */
    text-decoration: none; /* Quita la raya de abajo del enlace */
    font-family: 'Source Serif Pro', serif; /* Tu fuente de autoridad */
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase; /* Letras mayúsculas para más fuerza */
    letter-spacing: 1px; /* Espaciado entre letras elegante */
    border-radius: 4px; /* Bordes sutilmente redondeados (no circulares) */
    transition: all 0.4s ease; /* Esta línea hace que el cambio de color sea suave */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Una sombra para que parezca que flota */
    border: 2px solid #8d5544;
}

/* EFECTO AL PASAR EL MOUSE (HOVER) */
.btn-cta:hover {
    background-color: transparent; /* Se vuelve hueco */
    color: #FFFFFF;
    border: 2px solid #FFFFFF; /* Aparece un borde blanco */
    transform: translateY(-3px); /* El botón sube un poquito */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); /* La sombra crece al subir */
}

/* --- SECCIÓN NOSOTROS (RESPONSIVA) --- */
.section-container {
    padding: 80px 5%;
}

.nosotros-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nosotros-texto {
    flex: 1;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #8d5544;
}

.nosotros-imagen {
    flex: 1;
}

/* --- BOTÓN SUBIR AL PRINCIPIO (ESTILO MENTOR) --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #FFFFFF; /* Fondo Blanco */
    border: 2px solid #1b263b; /* Borde Azul Oxford */
    color: #1b263b;           /* Flecha Azul Oxford */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 8px;       /* Cuadrado con esquinas redondeadas */
    z-index: 2000;
    transition: all 0.3s ease;
    
    /* Estado inicial: oculto y transparente */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); 
}

/* Efecto al pasar el mouse */
.scroll-top:hover {
    background-color: #1b263b; /* Se invierten los colores */
    color: #FFFFFF;
    transform: translateY(-5px); /* Pequeño salto hacia arriba */
}

/* Clase que activaremos con JavaScript para mostrar el botón */
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- ESTILOS COMPLEMENTARIOS --- */

.container-width {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.bg-light {
    background-color: #f4f4f4; /* Un gris muy suave para separar secciones */
}

.section-title {
    margin-bottom: 15px; /* Reducido para dar espacio al subtítulo */
    font-size: 2.5rem;
}

/* Nuevo estilo para el contexto de los pilares */
.section-subtitle {
    font-family: 'Inria Serif', serif;
    color: #1b263b;
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

/* --- CORRECCIÓN FINAL DE PILARES: 5 COLUMNAS EN ESCRITORIO --- */

/* 1. Base para todas las pantallas */
#pilares .grid-pilares {
    display: grid !important;
    gap: 20px;
}

/* 2. REGLA MAESTRA PARA ESCRITORIO (Computadoras) */
@media (min-width: 992px) {
    #pilares .grid-pilares {
        /* Obligamos a que existan 5 columnas de igual tamaño */
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* Estilo de las tarjetas (No afecta al orden) */
.pilar-card {
    background: #FFFFFF;
    padding: 30px;
    border-bottom: 4px solid #8d5544;
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
}

.pilar-card:hover {
    transform: translateY(-10px);
}

/* --- RESTAURACIÓN: SECCIÓN DE REFLEXIÓN --- */
.reflexion-banner {
    background-color: #1b263b; /* Azul Oxford */
    color: #FFFFFF;
    padding: 80px 5%;
    text-align: center;
}

.frase-container {
    position: relative; /* Necesario para apilar las frases */
    min-height: 250px;  /* Altura mínima para que el diseño no salte */
    display: flex;
    align-items: center;
    justify-content: center;
}

.frase-slide {
    position: absolute; /* Esto pone una frase sobre la otra */
    width: 100%;
    opacity: 0;         /* Escondida por defecto */
    visibility: hidden;
    transition: opacity 0.8s ease-in-out; /* El efecto de suavizado original */
}

.frase-slide.active {
    opacity: 1;         /* Solo la frase activa se ve */
    visibility: visible;
}

.frase-slide blockquote {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.frase-slide cite {
    font-family: 'Inria Serif', serif;
    font-size: 1rem;
    opacity: 0.8;
}

/* Botones del carrusel */
.frase-controls {
    margin-top: 30px;
}

.btn-frase {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50px;
    margin: 0 10px;
    transition: 0.3s;
}

.btn-frase:hover {
    background: #8d5544; /* Color Terracota */
    border-color: #8d5544;
}

/* REGLA MAESTRA ANTIDESBORDAMIENTO */
* {
    max-width: 100%;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* --- RESTAURACIÓN: FOOTER SENCILLO --- */
.footer-sencillo {
    background-color: #FFFFFF; /* Fondo blanco limpio */
    padding: 40px 0;
    border-top: 1px solid #f0f0f0; /* Línea divisoria sutil */
    margin-top: 50px;
    text-align: center;
    width: 100%;
}

.footer-content-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.copyright {
    font-family: 'Source Serif Pro', serif; /* Tu fuente principal */
    color: #1b263b; /* Azul Oxford */
    font-size: 0.95rem;
    margin: 0;
}

.copyright strong {
    color: #8d5544; /* Terracota para destacar la marca */
}

.branding-mini {
    font-family: 'Inria Serif', serif; /* Tu fuente de apoyo */
    color: #1b263b;
    font-size: 0.8rem;
    opacity: 0.6; /* Texto suave para no distraer */
    letter-spacing: 0.5px;
    margin: 0;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .footer-sencillo {
        padding: 30px 5%;
    }
}

/* REGLAS DE SEGURIDAD PARA MÓVILES */
@media (max-width: 768px) {
    /* Achicamos el título para que quepa en la pantalla */
    .hero-content h1 {
        font-size: 1.8rem !important; 
        line-height: 1.2;
        word-wrap: break-word; /* Corta las palabras si son muy largas */
    }

    /* Evitamos que el cuerpo de la página se desplace hacia los lados */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

/* NUEVA SECCIÓN NOSOTROS RESPONSIVA */
.nosotros-nueva {
    padding: 60px 5%;
    background-color: #FFFFFF;
}

.nosotros-contenedor {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.img-fluida {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .nosotros-contenedor {
        flex-direction: column; /* Imagen arriba, texto abajo en celular */
        text-align: center;
    }
}

/* --- NUEVA SECCIÓN DESCARGAS 3D --- */
.descargas-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
}

/* Contenedor principal de la tarjeta */
.flip-card {
    background-color: transparent;
    width: 280px;
    height: 400px;
    perspective: 1000px; /* Crea el efecto de profundidad 3D */
}

/* El contenedor que realmente gira */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Girar al pasar el mouse o cuando tiene la clase activa (para celular) */
.flip-card:hover .flip-card-inner,
.flip-card.active .flip-card-inner {
    transform: rotateY(180deg);
}

/* Ambas caras de la tarjeta */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Oculta la cara trasera mientras gira */
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Cara Frontal Ajustada - Imagen Completa y Sombreado */
.flip-card-front {
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Espaciado automático entre elementos */
}

.flip-card-front img {
    max-width: 100%; /* La imagen no se estira más allá de su tamaño */
    max-height: 80%; /* No supera el 80% de la altura de la tarjeta */
    object-fit: contain; /* ¡Importante! Muestra la imagen entera sin cortes */
    border-radius: 8px; /* Esquinas ligeramente más suaves */
    margin-bottom: 10px;
    
    /* LEVE SOMBREADO A LA IMAGEN (No a la tarjeta) */
    box-shadow: 0 6px 15px rgba(0,0,0,0.25); 
    border: 1px solid rgba(0,0,0,0.05); /* Un borde casi invisible para definir */
}

.flip-card-front h3 {
    font-size: 1.05rem; /* Letra un poco más pequeña para que quepa bien */
    color: #1b263b; /* Azul Oxford */
    font-family: 'Source Serif Pro', serif; /* Tu fuente principal */
    margin-top: auto; /* Empuja el título hacia abajo */
    margin-bottom: 5px;
    padding: 0 5px;
}

/* Cara Trasera */
.flip-card-back {
    background-color: #1b263b; /* Azul Oxford */
    color: white;
    transform: rotateY(180deg); /* Empieza ya girada */
    padding: 20px;
}

.flip-card-back h4 {
    margin-bottom: 30px;
    font-family: 'Source Serif Pro', serif;
}

/* ICONO DE DESCARGA MINIMALISTA (Hecho con CSS puro) */
.btn-download-icon {
    width: 70px;
    height: 70px;
    border: 2px solid #8d5544;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.icon-arrow {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #8d5544;
    margin-bottom: -5px;
}

.icon-line {
    width: 20px;
    height: 4px;
    background-color: #8d5544;
}

.btn-download-icon:hover {
    background-color: #8d5544;
}

.btn-download-icon:hover .icon-arrow {
    border-top-color: white;
}

.btn-download-icon:hover .icon-line {
    background-color: white;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .flip-card {
        width: 90%;
        max-width: 300px;
    }
}

/* --- ESTILOS DEL SISTEMA DE REGISTRO --- */
.bloqueo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 38, 59, 0.98); /* Azul Oxford casi sólido */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Máxima prioridad visual */
}

.modal-bienvenida {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.modal-bienvenida h2 {
    font-family: 'Source Serif Pro', serif;
    color: #1b263b;
    margin-bottom: 5px;
}

.modal-bienvenida h2 span {
    color: #8d5544; /* Terracota */
}

.instruccion {
    font-family: 'Inria Serif', serif;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.9rem;
}
/* FORMULARIO ESTILIZADO CON MARCA VENEZUELA CONSCIENTE */
.formulario-registro {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

/* Campos de entrada con estilo original */
.formulario-registro input, 
.formulario-registro .select-pais {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d1d1; /* Gris suave */
    border-radius: 8px;
    font-family: 'Inria Serif', serif;
    font-size: 1rem;
    background-color: #f9f9f9;
    box-sizing: border-box; /* Fundamental para que no se desborde */
}

/* Botón Terracota */
.btn-primario {
    background-color: #8d5544 !important;
    color: white !important;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-family: 'Source Serif Pro', serif;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primario:hover {
    background-color: #1b263b !important; /* Azul al pasar el mouse */
}

/* --- ESTILO SALUDO PERSONALIZADO --- */
.icono-celebracion {
    font-size: 3rem;
    margin-bottom: 10px;
}

#modal-saludo .modal-bienvenida {
    border-top: 5px solid #8d5544; /* Línea terracota superior */
    animation: aparecerModal 0.5s ease-out;
}

@keyframes aparecerModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* En móviles, el botón debe ser fácil de presionar */
@media (max-width: 768px) {
    #modal-saludo .btn-primario {
        width: 100%;
        display: block;
        text-decoration: none;
    }
}

/* --- ESTILO BOTÓN CERRAR SESIÓN --- */
.btn-logout-nav {
    color: #ff4d4d !important; /* Un rojo suave para indicar salida */
    font-weight: bold;
    border: 1px solid #ff4d4d;
    padding: 5px 12px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-logout-nav:hover {
    background-color: #ff4d4d;
    color: white !important;
}

/* Ajuste para que en el celular no se vea apretado */
@media (max-width: 768px) {
    .btn-logout-nav {
        display: inline-block;
        margin-top: 10px;
        width: 80%;
    }
}

/* AÑADE ESTO AL FINAL DE TU ARCHIVO style.css */

/* Regla para que el contenido no se desparrame en PC */
.container-width {
    max-width: 1200px; /* Ancho máximo en computadoras */
    margin: 0 auto;    /* Centra el contenido */
    padding: 0 20px;   /* Margen interno para que no toque los bordes */
}

/* --- CONFIGURACIÓN CORRECTA PARA MÓVILES (768PX) --- */
@media (max-width: 768px) {
    
    /* PILARES: 2 columnas en móvil */
    .pilares-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important;
        margin-top: 20px !important;
    }

    .pilar-card {
        padding: 10px !important;
    }

    /* LIBROS: Diseño vertical para móviles */
    .biblioteca-flex {
        flex-direction: column !important;
    }

    .book-container {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        aspect-ratio: 1 / 1.4 !important;
        margin: 0 auto 20px auto !important;
    }

    .page-left {
        flex: 1 0 100% !important;
        background-size: contain !important;
        background-position: center !important;
    }

    .page-right {
        display: none !important;
    }

    .book-container::after {
        display: none !important;
    }
}

/* --- ESTILOS DE FILAS DE FORMULARIO PARA COMPUTADORAS --- */
.fila-input {
    display: flex;
    gap: 15px;
    width: 100%;
}

.fila-input input, 
.fila-input select {
    flex: 1; /* Hace que ambos campos midan exactamente la mitad */
}

/* ASEGÚRATE QUE TU BLOQUE MEDIA SE VEA ASÍ */
@media (max-width: 768px) {
    .fila-input {
        flex-direction: column !important; 
        gap: 12px !important;
        width: 100% !important; /* Asegura que el contenedor de la fila no sea más ancho que el modal */
    }
}

/* --- EFECTO 3D PARA EL MODAL DE BIENVENIDA --- */
.modal-3d {
    transition: transform 0.1s ease-out; /* Movimiento instantáneo y suave */
    transform-style: preserve-3d; /* Permite que los textos floten */
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border-top: 5px solid #8d5544; /* Línea terracota de la marca */
    background-color: #FFFFFF;
}

/* ==========================================
   MENÚ HAMBURGUESA PARA MÓVILES
========================================== */
@media (max-width: 768px) {
    /* 1. Mostramos el botón de las 3 rayitas (que estaba oculto en PC) */
    .menu-toggle {
        display: flex !important; 
    }

    /* 2. Escondemos la lista de enlaces fuera de la pantalla (a la izquierda) */
    .nav-links {
        position: absolute;
        top: 100%; /* Justo debajo de la barra azul */
        left: -100%; /* Escondido totalmente a la izquierda */
        flex-direction: column;
        background-color: #1b263b; /* Fondo Azul Oxford */
        width: 100%;
        text-align: center;
        transition: left 0.4s ease-in-out; /* Efecto suave al entrar */
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3); /* Sombra para que flote */
    }

    /* Separamos los enlaces para que el dedo no se equivoque al tocar */
    .nav-links li {
        margin: 15px 0;
    }

    /* 3. Cuando Javascript le ponga la clase 'active', el menú desliza a la pantalla */
    .nav-links.active {
        left: 0; 
    }

    /* 4. Animación premium: Convertir las 3 rayitas en una "X" */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0; /* La raya del medio desaparece */
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================
   PANEL DE ADMINISTRACIÓN (ESTILOS NUEVOS)
========================================== */

/* 1. Barra de Herramientas (Buscador y Botón Excel) */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #1b263b; /* Azul Oxford */
}

.input-buscador {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inria Serif', serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-buscador:focus {
    border-color: #8d5544; /* Borde Terracota al escribir */
}

/* 2. Botón Espectacular Excel Global */
.btn-excel-global {
    background-color: #2e7d32; /* Verde Excel Elegante */
    color: #FFFFFF;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Source Serif Pro', serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.btn-excel-global:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.4);
}

/* 3. Cuadrícula de Tarjetas de Usuarios */
.admin-grid {
    display: grid;
    /* Esto crea columnas automáticas que se adaptan al tamaño de la pantalla */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 4. Diseño Individual de cada Tarjeta de Usuario */
.usuario-card {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #8d5544; /* Detalle Terracota */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.usuario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.usuario-card h3 {
    color: #1b263b;
    font-family: 'Source Serif Pro', serif;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.usuario-card p {
    color: #666;
    font-family: 'Inria Serif', serif;
    font-size: 0.9rem;
    margin: 0;
}

/* 5. Ventana Emergente (Modal) de Detalles del Usuario */
.modal-admin {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 15px;
    text-align: left;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-top: 5px solid #1b263b; /* Azul Oxford para diferenciarlo del registro */
    position: relative; /* Necesario para organizar los botones internos */
}

.info-usuario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas en PC */
    gap: 20px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.info-item {
    font-family: 'Inria Serif', serif;
    color: #333;
    font-size: 0.95rem;
}

.info-item strong {
    color: #1b263b;
    display: block;
    margin-bottom: 5px;
    font-family: 'Source Serif Pro', serif;
}

.modal-admin-botones {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* Botón Excel Individual dentro del Modal */
#btn-excel-individual {
    background-color: #2e7d32 !important; /* Forzamos el verde sobre el estilo base */
}
#btn-excel-individual:hover {
    background-color: #1b5e20 !important;
}

/* 6. REGLAS MAESTRAS PARA MÓVILES (Adaptabilidad Perfecta) */
@media (max-width: 768px) {
    .admin-toolbar {
        flex-direction: column; /* Apila el buscador y el botón */
        padding: 15px;
    }
    
    .btn-excel-global {
        width: 100%; /* El botón ocupa todo el ancho */
        justify-content: center; /* Centra el texto e icono */
    }

    .info-usuario-grid {
        grid-template-columns: 1fr; /* Pasa a UNA sola columna para que la info no se apriete */
        gap: 15px;
    }

    .modal-admin-botones {
        flex-direction: column; /* Apila los botones del modal */
    }

    .modal-admin-botones button {
        width: 100%; /* Botones grandes y fáciles de tocar con el dedo */
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
}

/* ==========================================
   SISTEMA DE CONTRASEÑA (OJITO REDISEÑADO)
   Y CASILLA RECORDARME CUSTOM
========================================== */

/* 1. Contenedor para alinear el ojo dentro del input */
.input-con-icono {
    position: relative;
    width: 100%;
}

.input-con-icono input {
    width: 100%;
    padding-right: 48px; /* Espacio generoso para el ojo */
}

/* 2. Botón invisible base (Mantiene la raya diagonal refinada) */
.btn-ojito {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 26px;
    height: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    outline: none;
    transition: opacity 0.3s ease;
    /* Raya diagonal más fina y elegante (1px) Terracota */
    background-image: linear-gradient(45deg, transparent 48%, #8d5544 50%, #8d5544 51%, transparent 53%);
    background-size: 100% 100%;
}
.btn-ojito:hover { opacity: 0.8; } /* Sutil feedback visual */

/* 3. Dibujando el Ojo (Esclerótica) - FORMA ALMENDRADA REALISTA */
.btn-ojito::before {
    content: '';
    position: absolute;
    /* Proporciones optimizadas para realismo: más ancho y sutilmente más alto */
    width: 21px; 
    height: 10px;
    border: 1.5px solid #8d5544; /* Borde más fino para precisión minimalista */
    /* FÓRMULA GEOMÉTRICA ALMENDRADA: */
    /* Curvas diferenciadas entre la parte superior (párpado móvil) y la inferior */
    border-radius: 70% 15% / 100% 30%; /* Crea una forma orgánica, no un óvalo perfecto */
    transition: all 0.3s ease-in-out;
}

/* 4. Dibujando la Pupila - Proporción Iris perfecta */
.btn-ojito::after {
    content: '';
    position: absolute;
    /* Iris un poco más presente (6px) para dar vida al ojo */
    width: 6px;
    height: 6px;
    background-color: #8d5544;
    border-radius: 50%; /* Círculo perfecto */
    transition: all 0.3s ease;
}

/* 5. ESTADO ABIERTO: Cambios visuales al revelar contraseña */
.btn-ojito.abierto {
    background-image: none; /* Desaparece la raya diagonal Terracota */
}

.btn-ojito.abierto::before {
    border-color: #1b263b; /* El ojo pasa a Azul Oxford */
}

.btn-ojito.abierto::after {
    background-color: #1b263b; /* Pupila Azul Oxford */
    transform: scale(1.2); /* Sutil pupila dilatada para realismo */
}

/* ------------------------------------------
   CASILLA DE RECORDARME (Mantiene diseño custom)
------------------------------------------ */

.casilla-recordarme {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inria Serif', serif;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    margin-top: -5px; 
    margin-bottom: 10px;
    user-select: none;
}

.casilla-recordarme input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark-custom {
    height: 18px;
    width: 18px;
    background-color: #f9f9f9;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.casilla-recordarme:hover input ~ .checkmark-custom {
    border-color: #8d5544;
}

.casilla-recordarme input:checked ~ .checkmark-custom {
    background-color: #1b263b;
    border-color: #1b263b;
}

.checkmark-custom::after {
    content: "";
    position: absolute;
    display: none; 
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.casilla-recordarme input:checked ~ .checkmark-custom::after {
    display: block;
}

/* ==========================================
   BOTÓN "X" PARA CERRAR VENTANAS EMERGENTES
========================================== */

/* 1. Le damos anclaje a la tarjeta para que la X no se escape de sus bordes */
.modal-bienvenida {
    position: relative;
}

/* 2. El botón base invisible y su posición exacta en la esquina */
.btn-cerrar-x {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    z-index: 10;
    /* Le damos elevación 3D para que no se hunda en el fondo blanco */
    transform: translateZ(50px);
    /* Curva de animación elástica (efecto rebote elegante) */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 3. Dibujando el cuerpo de la "X" usando CSS puro */
.btn-cerrar-x::before,
.btn-cerrar-x::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background-color: #8d5544; /* Color Terracota original */
    border-radius: 2px; /* Bordes sutilmente redondeados */
    transition: all 0.3s ease;
}

/* Cruzamos las líneas matemáticamente a 45 grados */
.btn-cerrar-x::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn-cerrar-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 4. EL EFECTO BRUTAL (HOVER) */
.btn-cerrar-x:hover {
    /* Mantenemos el translateZ(50px) para que no se hunda al girar */
    transform: translateZ(50px) rotate(90deg) scale(1.15); 
}

/* Cambio de color y grosor al girar */
.btn-cerrar-x:hover::before,
.btn-cerrar-x:hover::after {
    background-color: #1b263b; /* Cambia al Azul Oxford de la marca */
    height: 3px; /* Se vuelve más gruesa para dar sensación de solidez */
}