/* ==========================================================================
   VARIABLES GLOBALES (Diseño Atómico)
   ========================================================================== */
:root {
    /* Paleta Institucional */
    --azul-primario: #002855;    /* Oxford - Seriedad */
    --azul-profundo: #001a38;    /* Para hovers oscuros */
    --acento-moderno: #00A8E8;   /* Celeste - Tecnología */
    --dorado: #D4AF37;           /* Dorado Institucional */

    /* Neutros */
    --gris-plata: #E5E5E5;
    --blanco-puro: #FFFFFF;
    --texto-oscuro: #1A1A1A;

    /* Utilidades */
    --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.3);
    --transition-standard: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   ESTILOS BASE
   ========================================================================== */
body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif; /* Montserrat es más pro para colegios */
    background-color: var(--gris-plata);
    color: var(--texto-oscuro);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   NAVBAR CUSTOM (Glassmorphism sutil)
   ========================================================================== */
.custom-nav {
    background-color: rgba(0, 40, 85, 0.95) !important; /* Azul con transparencia */
    backdrop-filter: blur(10px); /* Efecto desenfoque moderno */
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-nav .nav-link {
    color: var(--blanco-puro) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition-standard);
}

.custom-nav .nav-link:hover {
    color: var(--acento-moderno) !important;
    transform: translateY(-2px);
}

/* Estilo especial para el link activo o destacado */
.nav-link.active {
    color: var(--dorado) !important;
    border-bottom: 2px solid var(--dorado);
}

/* ==========================================================================
   HERO SECTION (Portada Premium - Versión Zen)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

/* --- FONDO CINEMÁTICO REFINADO --- */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/fondohero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    /* Un ligero zoom inicial para dar dinamismo */
    animation: backgroundScale 20s linear infinite alternate;
}

@keyframes backgroundScale {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* --- OVERLAY RADIAL PRO --- */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente que "abraza" el contenido central */
    background: radial-gradient(circle at center, rgba(0, 40, 85, 0.6) 0%, rgba(0, 0, 0, 0.85) 100%);
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    color: var(--blanco-puro);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

/* --- BLOQUE DE MARCA --- */
.hero-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-logo-img {
    width:30%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.3));
    transition: var(--transition-standard);
}

.hero-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.5));
}

/* --- TIPOGRAFÍA Y JERARQUÍA --- */
.hero-pre-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 12px; /* Mayor espaciado para un look más "luxury" */
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.hero-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.number-highlight {
    color: var(--dorado);
    font-weight: 300;
    margin-left: 8px;
}

/* --- DIVISOR REFINADO --- */
.hero-divider {
    width: 120px; /* Más ancho al no haber botones para equilibrar */
    height: 1px;  /* Más fino es más elegante */
    background: linear-gradient(to right, transparent, var(--dorado), transparent);
}

.hero-motto {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* --- INDICADOR DE SCROLL MINIMALISTA --- */
.scroll-down-indicator {
    position: absolute;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.scroll-down-indicator:hover {
    opacity: 1;
    transform: translateY(5px);
}

.scroll-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--blanco-puro);
}

.mouse-icon {
    width: 22px;
    height: 38px;
    border: 1.5px solid var(--blanco-puro);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 6px;
    background-color: var(--dorado);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* --- ANIMACIÓN DE ENTRADA EN CASCADA --- */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-brand-block {
    animation-delay: 0.3s;
}
.hero-divider {
    animation-delay: 0.6s;
}
.hero-motto {
    animation-delay: 0.9s;
}
.scroll-down-indicator {
    animation-delay: 1.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
     NAVBAR
========================================================================== */

/* 1. Fondo del Navbar y Texto del Colegio (Span) */
.custom-nav {
    background-color: var(--azul-primario, #002855) !important; /* Mantiene el fondo oscuro del colegio */
}

.custom-nav .navbar-brand span {
    color: #ffffff !important; /* Texto del colegio siempre blanco */
    font-weight: 700;
    transition: color 0.3s;
}

/* 2. Enlaces del menú (Novedades, Institución, etc.) */
.custom-nav .nav-link {
    color: #ffffff !important; /* Blanco por defecto */
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 3. Efecto al pasar el mouse (Hover) - Color CLARO */
.custom-nav .nav-link:hover,
.custom-nav .navbar-brand:hover span {
    color: var(--acento-moderno, #00A8E8) !important; /* Cambia a un celeste claro al pasar el mouse */
}

/* 4. Botón Hamburguesa (Móvil) */
/* Esto cambia el color de las rayitas a blanco */
.custom-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5); /* Borde sutil blanco */
}


/* 5. Ajuste para el dropdown de Administrador */
.custom-nav .dropdown-toggle::after {
    color: #ffffff; /* La flechita del dropdown también blanca */
}

/* Si el botón de Administrador tiene una clase especial 'login-link' */
.login-link {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 5px 15px !important;
    margin-left: 10px;
}

.login-link:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Fondo muy suave al pasar el mouse */
}

/* ==========================================================================
   CARRUSEL DE NOTICIAS (Slick Design)
   ========================================================================== */
#carouselExampleCaptions {
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.carousel-item img {
    height: 550px;
    object-fit: cover;
    filter: brightness(0.7); /* Oscurece la imagen para lectura óptima */
}

/* Caption: Degradado inferior para resaltar el título de la noticia */
.carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    text-align: left;
}

.carousel-caption h5 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dorado); /* Resalta el título con el color acento */
}

/* ==========================================================================
   GALERÍA DE IMÁGENES (Grid Editorial)
   ========================================================================== */
.contenedor-imagenes {
    max-width: 1000px;
    margin: 40px auto;
}

/* Imagen Principal de la Noticia */
.imagen-principal-link {
    display: block;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
}

.imagen-principal-link:hover {
    transform: scale(1.01);
}

/* Miniaturas: Rejilla Responsive */
.miniaturas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.miniatura {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-standard);
}

.miniatura:hover {
    border-color: var(--dorado);
    transform: translateY(-5px);
}

/* ==========================================================================
   TIPOGRAFÍA DE NOTICIAS
   ========================================================================== */
.tituloNoticia {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--azul-primario);
    text-align: center;
    position: relative;
    padding-top: 30px;
}

/* Subrayado Decorativo */
.tituloNoticia::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--dorado);
    border-radius: 10px;
}

/* ==========================================================================
   ANIMACIONES (Micro-interacciones)
   ========================================================================== */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón flotante o indicador de scroll */
.bounce {
    animation: moveDown 2s infinite;
    color: var(--dorado);
    text-align: center;
}

@keyframes moveDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
}


/* ==========================================================================
   Sección 1: Tipografía y Contenido de Lectura
   Notas: Mejora la legibilidad y la interacción con los enlaces de noticias.
   ========================================================================== */
.noticia-texto {
    white-space: pre-wrap;
    text-align: center;
    line-height: 1.8;
    color: #444;
}

.leer-mas {
    color: var(--azul-primario, #007bff);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.leer-mas:hover {
    color: #0056b3;
    text-decoration: underline;
}

.fecha-publicacion {
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin: 15px 0;
}

.filaDerecha {
    border-left: 3px solid var(--dorado, #003366);
}

/* ==========================================================================
   Sección 2: Panel de Administración y Formularios
   Notas: Diseño limpio con sombras y efectos de enfoque (focus).
   ========================================================================== */
.form-publicacion {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
}

.form-input, .form-textarea, .form-control {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus, .form-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.form-textarea {
    height: 300px;
    resize: vertical;
}

/* Estilo para el botón de envío principal */
.form-submit {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* ==========================================================================
seccion de administrador
========================================================================== */

.panelAdm {
    margin-top: 30px;
    margin-bottom: 30px;
}

.panelAdm h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--azul-primario, #003366);
}

.cardAdm {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cardAdm:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.cardAdmTitle {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    color: var(--azul-primario, #003366);
    text-align: center;
}

.cardAdmText {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    padding: 0 10px;
}

.imgSeccionAdm {
    display: block;
    margin: 0 auto;
    max-width: 80px;
    height: auto;
}

/* ==========================================================================
seccion de carga de noticias 
========================================================================== */
.contenedorCuadricula {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tarjetaImagen {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.tarjetaImagen img {
    width: 100%;
    height: 150px;
    object-fit: cover; /* recorta y ajusta sin deformar */
    display: block;
}

.tarjetaImagen:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}


/* ==========================================================================
   Sección 3: Gestión de Imágenes (Previews y Selección)
   Notas: Sistema de cuadrícula para seleccionar fotos de forma intuitiva.
   ========================================================================== */
.contenedorCuadricula, .imagenPreviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.tarjetaImagen, .tarjetImg {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f1f1f1;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Estado cuando el usuario selecciona una imagen */
.tarjetImg.seleccionada, .imagenSeleccionable input[type="checkbox"]:checked + img {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.tarjetImg img, .imagenSeleccionable img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* Checkbox estilizado sobre la imagen */
.seleccionarImagen, .imagenSeleccionable input[type="checkbox"] {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    z-index: 5;
    cursor: pointer;
}

/* ==========================================================================
   Sección 4: Redes Sociales (Actualizado a Lista Vertical)
   ========================================================================== */
.rSocial {
    list-style: none; /* Quita los números de la lista <ol> */
    padding: 0;
    margin: 30px auto;
    display: flex;
    flex-direction: column; /* Alineación vertical: uno debajo del otro */
    gap: 12px; /* Espacio entre botones */
    max-width: 320px; /* Centra el bloque de contactos */
}

.redSocial {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 20px;
    background-color: #f8f9fa; /* Fondo gris muy suave */
    border: 1px solid var(--gris-plata, #e5e5e5);
    border-radius: 50px; /* Estilo de botón moderno redondeado */
    transition: all 0.3s ease;
    color: var(--azul-primario, #002855);
}

.redSocial:hover {
    background-color: var(--blanco-puro, #ffffff);
    border-color: var(--acento-moderno, #00A8E8);
    transform: translateX(10px); /* Efecto de desplazamiento lateral */
    box-shadow: 0 5px 15px rgba(0, 40, 85, 0.1);
}

.logoRedSocial {
    width: 30px; /* Tamaño un poco más discreto y elegante */
    height: 30px;
    margin-right: 15px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.redSocial:hover .logoRedSocial {
    transform: scale(1.1) rotate(-5deg); /* Giro sutil al pasar el mouse */
}

/* Estilo para los textos H5 dentro de la red social */
.redSocial h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Burbujas de comentarios estilo chat moderno */
.comentario-container {
    width: 95%;
    max-width: 700px;
    margin: 10px auto;
    padding: 15px;
    border-radius: 15px;
    background-color: #f8f9fa;
    border-left: 5px solid #007bff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comentario-nombre {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
}

/* Botón de enviar dentro del área de texto */
.enviarBtn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}


/* ==========================================================================
   HILOS DE COMENTARIOS Y RESPUESTAS
   Notas: Diseño de burbujas con indentación para distinguir jerarquías.
   ========================================================================== */

/* Mensaje del comentario principal */
.comentario-mensaje {
    color: #eeeeee; /* Un gris muy claro para fondo oscuro */
    font-size: 0.95rem;
    margin-left: 10px;
    line-height: 1.4;
}

/* Contenedor de Respuestas (Hijas) */
.respuesta-container {
    width: 85%; /* Más angosto para mostrar jerarquía */
    margin-left: auto; /* Empuja a la derecha */
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--dorado, #C5A059); /* Marca de respuesta */
}

.respuesta-nombre {
    font-weight: bold;
    font-size: 0.9rem;
    color: #8b6d31; /* Un dorado más oscuro para legibilidad */
    text-decoration: none;
}

.respuesta-mensaje {
    color: #444;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Formularios de Comentario/Respuesta (Ocultos por defecto) */
.fromularioComentario, .fromularioRespuesta {
    display: none;
    margin: 15px 0;
    width: 100%;
    max-width: 500px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
}

/* Contador de notificaciones (Número en rojo) */
.numeroConetador {
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    background-color: #ff3b30;
    padding: 2px 6px;
    border-radius: 10px;
    position: relative;
    top: -8px;
    left: -5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ==========================================================================
   COMPONENTES DE INTERFAZ (Botones y Navegación)
   ========================================================================== */

/* Botón flotante para volver arriba */
#floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--azul-primario, #003366);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: none;
    z-index: 1000;
}

#floating-btn:hover {
    transform: translateY(-5px);
    background-color: var(--dorado, #C5A059);
}

/* Sección de Publicidad / Carrusel Inferior */
.carousel-container {
    background: linear-gradient(145deg, #2c2f36, #1a1c20);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.carousel-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

/* Botones de Compartir (Modal sutil) */
.BotonesDeCompartir {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: none;
    text-align: center;
    z-index: 1001;
}

/* ==========================================================================
   TARJETAS Y BLOQUES INSTITUCIONALES
   ========================================================================== */
/* Layout normal (pantallas grandes) */
.bordeTarjeta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid rgba(1, 163, 255, 0.3);
    border-radius: 12px;
    background-color: rgba(1, 163, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bordeTarjeta:hover {
    border-color: var(--azul-primario, #003366);
    background-color: rgba(1, 163, 255, 0.1);
    transform: scale(1.02);
}

.img-container {
    width: 30%;
    max-width: 250px;
    padding: 15px;
}

.img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Ajuste para pantallas chicas */
@media (max-width: 425px) {
    .bordeTarjeta {
        flex-direction: column;   /* apila imagen y texto */
        text-align: center;
    }
    .img-container {
        width: 100% !important;   /* imagen ocupa todo el ancho */
        max-width: none;
        padding: 10px;
    }
    .card-body {
        width: 100%;
    }
}

/* Bloque Comisiones / Perfiles */
.bloque-comision {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05), 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;

    width: 100%;            /* 🔑 ocupa todo el ancho de la columna */
    max-width: 100%;        /* 🔑 nunca se pasa del contenedor */
    box-sizing: border-box; /* 🔑 padding y borde dentro del ancho */
    overflow-x: hidden;     /* 🔑 evita desbordes horizontales */
}

.bloque-comision h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--azul-primario, #003366);
    margin-bottom: 20px;
}

.bloque-comision hr {
    border-top: 1px solid var(--gris-plata);
    margin: 30px 0;
}

/* Tablas */
.integrantes {
    width: 100%;                  /* 🔑 se ajusta al ancho disponible */
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: fixed;          /* 🔑 evita que las celdas se expandan demasiado */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.integrantes th {
    background-color: var(--azul-primario);
    color: white;
    padding: 12px;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.integrantes td {
    background-color: #f8f9fa;
    padding: 12px;
    border-bottom: 1px solid var(--gris-plata);
}

.integrantes td.cargo {
    font-weight: bold;
    color: var(--acento-moderno);
    width: 40%;
}

.integrantesBibli {
    text-decoration: none;
    color: #444;
    transition: color 0.3s;
}

.integrantesBibli:hover {
    color: var(--acento-moderno);
}

/* Responsive */
@media (max-width: 768px) {
    .row.g-0 {
        flex-direction: column;
    }
    .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Contenedor de la reseña */
.resenia-text {
    position: relative;
    max-height: 150px; /* Altura que se ve al principio */
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
    color: #444;
}

/* El degradado que invita a seguir leyendo */
.resenia-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Cuando está expandido */
.resenia-text.expanded {
    max-height: 2000px; /* Suficiente para todo el texto */
}

/* Ocultar el degradado al expandir */
.resenia-text.expanded::after {
    opacity: 0;
}

/* El botón con los colores del colegio */
#leerMasBtn {
    background: none;
    border: none;
    color: var(--acento-moderno, #00A8E8);
    font-weight: bold;
    cursor: pointer;
    padding: 10px 0;
    font-size: 1rem;
    transition: color 0.3s;
}

#leerMasBtn:hover {
    color: var(--azul-primario, #002855);
    text-decoration: underline;
}

/* Estilo de entrada (Fade-in) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
   MODALES (UI/UX de Edición)
   ========================================================================== */
.modal {
    background-color: rgba(0, 0, 0, 0.6); /* Fondo más oscuro para enfoque */
    backdrop-filter: blur(5px);
    display: none;
    align-items: center; /* Centrado perfecto */
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    border-radius: 15px;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    font-size: 1.5rem;
    transition: color 0.2s;
}

.close:hover {
    color: #dc3545; /* Color rojo de "cerrar" */
}

/* ==========================================================================
   FORMULARIOS DE ADMINISTRACIÓN
   ========================================================================== */
.formulario-section form {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.9));
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.formulario-section input,
.formulario-section textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px;
}

.formulario-section input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--dorado, #C5A059);
}

/* ==========================================================================
   PIE DE PÁGINA (Footer)
   ========================================================================== */
.pieDePagina {
    border-top: 1px solid #ddd;
    padding: 40px 0;
    margin-top: 60px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    background-color: #002855;
}

.redScilDesarrollador1,
.redScilDesarrollador {
    color: #777;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.redScilDesarrollador1:hover,
.redScilDesarrollador:hover {
    color: var(--azul-primario, #003366);
}

/* Sección Admin Cards */
.imgSeccionAdm {
    filter: grayscale(100%);
    transition: filter 0.3s;
    margin-bottom: 15px;
}

.cardAdmTitle:hover .imgSeccionAdm {
    filter: grayscale(0%);
}

.cardAdmTitle {
    font-weight: 700;
    color: var(--azul-primario, #003366);
}




/* ==========================================================================
   INPUTS DE SEGURIDAD (Password Show/Hide)
   ========================================================================== */
.custom-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px; /* Espacio para el botón a la derecha */
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.show-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.2s;
}

.show-password-btn:hover {
    color: var(--azul-primario, #003366);
}

/* ==========================================================================
   TABLA DE GESTIÓN (Dashboard Admin)
   ========================================================================== */
.tablaDePublicaciones {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: white;
    margin: 20px 0;
}

.tablaDePublicaciones th {
    background-color: #f8f9fa;
    color: var(--azul-primario, #003366);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 15px;
    border-bottom: 2px solid #eee;
}

.tablaDePublicaciones td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.tablaDePublicaciones tr:hover {
    background-color: #fcfcfc;
}

/* Contenedor de miniaturas dentro de la tabla */
.imagenContainer img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-right: 5px;
    transition: transform 0.2s;
}

.imagenContainer img:hover {
    transform: scale(2); /* Zoom al pasar el mouse para ver mejor la foto */
    z-index: 10;
    position: relative;
}

/* ==========================================================================
   WIDGET DE COTIZACIÓN (Fintech Style)
   ========================================================================== */
.informacionDeMoneda {
    background: #ffffff; /* Cambiado a blanco para integrarse mejor, o mantener el degradado oscuro si prefieres */
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 450px;
    margin: 30px auto;
}

.informacionDeMoneda h5 {
    color: var(--azul-primario, #003366);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}

.conversor {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.conversor input, .conversor select {
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    color: #333;
    width: 100%;
}

.conversor button {
    background: var(--azul-primario, #003366);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.conversor button:hover {
    background: var(--dorado, #C5A059);
    transform: translateY(-2px);
}

#resultado {
    font-weight: 800;
    font-size: 1.2rem;
    color: #28a745; /* Verde éxito para dinero */
    text-align: center;
}

/* ==========================================================================
   COMPONENTES DE EDICIÓN Y MODALES
   ========================================================================== */
.campEditarImgPublicacion {
    border: 2px dashed #ccc; /* Estilo de "zona de carga" */
    border-radius: 12px;
    padding: 20px;
    background: #fafafa;
    text-align: center;
}

.cerrarForm {
    float: right;
    font-size: 0.8rem;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.2s;
}

.cerrarForm:hover {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

/* Carrusel de Mini-Noticias (Sidebar o Publicidad) */
.carousel-inner {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-item img {
    height: 300px;
    object-fit: cover;
    filter: brightness(0.9);
}

/* ==========================================================================
   EFECTO DE RESEÑA EXPANDIBLE
   ========================================================================== */
.resenia-container {
    overflow: hidden;
}

.resenia-text {
    max-height: 100px; /* Altura inicial */
    line-height: 1.6;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.resenia-container.expanded .resenia-text {
    max-height: 1000px; /* Altura máxima al expandir */
    mask-image: none;
}


/* ==========================================================================
   EFECTO DE LECTURA (Reseña con degradado)
   ========================================================================== */
.resenia-text {
    position: relative;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* El degradado ahora usa una variable para el color de fondo, asegurando que combine */
.resenia-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #ccc);
    pointer-events: none;
    transition: opacity 0.3s;
}

.resenia-text.expanded {
    max-height: 2000px;
}

.resenia-text.expanded::after {
    opacity: 0; /* Desaparece suavemente al expandir */
}

#leerMasBtn {
    background: none;
    border: none;
    color: #8B4513;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#leerMasBtn:hover {
    color: #5C3317;
    text-decoration: underline;
}

/* ==========================================================================
   SISTEMA DE PRECARGA (Spinner)
   ========================================================================== */
.container-loader {
    position: relative;
    min-height: calc(100vh - 70px); /* ocupa todo lo que queda debajo del navbar */
}

#precarga {
    position: absolute; /* se limita al contenedor */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* cubre solo el contenedor */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 1000;
    transition: opacity 0.5s ease;
}


/* ==========================================================================
   GALERÍAS Y PUBLICIDAD (Grid & Flex)
   ========================================================================== */
.miniaturas-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas exactas */
    gap: 2px; /* Un pequeño aire entre fotos se ve más profesional */
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.miniatura img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

.miniatura img:hover {
    filter: brightness(1.1);
}
/* ==========================================================================
   QUIENES SOMOS: Fila de Imágenes (Siempre 3 en fila)
   ========================================================================== */
.contenedorDeImgDeQuienesSomos {
    display: flex;                /* Cambiamos de grid a flex */
    flex-direction: row;          /* Alineación horizontal */
    flex-wrap: nowrap;            /* PROHIBIDO saltar de línea */
    justify-content: space-between; /* Distribuye espacio igualitario */
    align-items: center;
    gap: 12px;                    /* Espacio entre las fotos */
    margin-bottom: 30px;
    width: 100%;
}

.contenedorDeImgDeQuienesSomos img {
    /* El truco para las 3 imágenes: */
    width: 33.33%;                /* Ocupan un tercio exacto cada una */
    flex-shrink: 1;               /* Permite que se encojan en pantallas mini */
    min-width: 0;                 /* Evita que desborden el contenedor */

    /* Estética Profesional */
    height: 180px;                /* Altura fija para uniformidad */
    object-fit: cover;            /* Corta la imagen sin deformarla */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    /* Animación sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   Bloque Mercado Pago 
   ========================================================================== */
.bloque-mercadopago {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bloque-mercadopago h5 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--azul-primario, #003366);
    margin-bottom: 8px;
}

.alias-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid var(--gris-plata);
    border-radius: 6px;
    padding: 6px 8px;
    margin: 6px 0;
}

.alias-box span {
    font-weight: bold;
    color: var(--acento-moderno, #006699);
    font-size: 0.85rem;
    overflow-wrap: break-word;
}

.btn-copiar {
    background: var(--azul-primario, #003366);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
    transition: background-color 0.3s;
}

.btn-copiar:hover {
    background-color: #005599;
}

.nota {
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 6px;
}


/* Efecto Hover (Solo visible en PC) */
@media (hover: hover) {
    .contenedorDeImgDeQuienesSomos img:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 40, 85, 0.2);
    }
}

/* Ajustes para pantallas muy pequeñas (Celulares) */
@media (max-width: 480px) {
    .contenedorDeImgDeQuienesSomos {
        gap: 8px;                 /* Reducimos el espacio para ganar píxeles */
    }

    .contenedorDeImgDeQuienesSomos img {
        height: 120px;            /* Reducimos la altura en celulares para que no se vean estiradas */
        border-radius: 8px;       /* Bordes un poco más finos */
    }
}

/* Publicidad Estática */
.promo {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.promo1 {
    padding: 20px;
    display: flex;
    justify-content: center;
    background: #fdfdfd;
}

.promo1 img {
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries Optimizados)
   ========================================================================== */

/* Tablets y Móviles Grandes */
@media (max-width: 768px) {
    .fechaHoy {
        font-size: 12px;
    }

    .hero-logo-img {
        width:40%;
        height: auto;
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.3));
        transition: var(--transition-standard);
    }

    .animated-text {
        font-size: 1.8rem;
        text-align: center;
    }

    .animated1-text {
        font-size: 1.3rem;
        text-align: center;
        color: var(--azul-primario, #003366);
    }

    .col2 tr th {
        display: none;
    } /* Ocultar encabezados de tabla en móvil */
}

/* Móviles Pequeños (Unificado para 412px, 375px y 360px) */
@media (max-width: 480px) {

    .hero-logo-img {
        width:50%;
        height: auto;
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.3));
        transition: var(--transition-standard);
    }

    #conteiner-login {
        height: auto;
        padding: 40px 20px;
    }

    .vertical-line {
        display: none;
    }

    .contenedorDeImgDeQuienesSomos {
        grid-template-columns: 1fr; /* Una imagen sobre otra en pantallas muy chicas */
    }

    .contenedorDeImgDeQuienesSomos img {
        height: 150px;
    }

    .miniaturas-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles pequeños para que se vea mejor */
    }
}