/* --- Reset de estilos básicos --- */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-bottom: 60px; /* altura similar al footer-nav AGREGADO*/
}

/* --- Encabezado --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo img {
    max-height: 100px;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 2rem;
}

header nav ul li a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

/* --- Íconos Material Icons --- */
.material-icons.nav-icon {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 6px;
    color: #003366;
    transition: color 0.3s ease;
}

header nav ul li a:hover .nav-icon {
    color: #00b1ad;
}

/* --- Sección Hero --- */
.hero {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1)), /* oscurece */
        url('../../img/header_index.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 6rem 2rem;
   
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #f39c12;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

/* --- Sección Noticias --- */
.news {
    padding: 4rem 2rem;
    text-align: center;
}

.news h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #003366;
}

.news-container.full-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Todas las tarjetas igual de altas */
}

/* Tarjeta noticia */
.news-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;  /* Para ordenar contenido vertical */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto hover */
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Imagen fija */
.news-item img {
    width: 100%;
    height: 200px; /* Todas iguales */
    object-fit: cover;
}

/* Contenido */
.news-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    padding: 1rem;
    color: #003366;
    flex-shrink: 0;
}

.news-item p {
    padding: 0 1rem;
    flex-grow: 1; /* El texto ocupa el espacio intermedio */
    color: #333;
    line-height: 1.4;
}

.news-item a {
    display: inline-block;
    padding: 0.6rem 1rem;
    margin: 1rem;
    background-color: #003366;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    align-self: flex-start; /* Alinea a la izquierda */
    transition: background 0.2s ease;
}

.news-item a:hover {
    background-color: #0055aa;
}

/* --- Pie de página --- */
footer {
    background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* --- Páginas Interiores --- */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.page-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #003366;
    text-align: center;
    margin-bottom: 2rem;
}

.content-section.bg-light {
    background-color: #f9f9f9;
}

/* --- Misión / Visión --- */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}



/* === EQUIPO DOCENTE === */
.team-container {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-items: center; /* Centra los items horizontalmente */
}

/* Móviles: 1 por fila */
@media (max-width: 768px) {
    .team-container {
        grid-template-columns: 1fr;
        padding: 0 1rem; /* Espacio lateral en móviles */
    }
}

/* Tablets pequeñas y grandes: 2 o 3 por fila (opcional, mejora la experiencia intermedia) */
@media (min-width: 769px) and (max-width: 1023px) {
    .team-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Escritorio: 4 por fila en zona de DOCENTES*/
@media (min-width: 1024px) {
    .team-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Estilo del miembro del equipo */
.team-member {
    text-align: center;
    padding: 1rem 0.5rem;
    background: transparent;
    width: 100%;
    max-width: 180px; /* Evita que se estiren demasiado en móviles */
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.team-member h4 {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.15rem;
    color: #003366;
    font-weight: 600;
}

.team-member p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* --- Admisión --- */
.steps-list, .dates-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
}

.steps-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.steps-list span {
    background-color: #f39c12;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-block;
    text-align: center;
    line-height: 30px;
    margin-right: 1rem;
    font-weight: bold;
}

.dates-list li {
    background-color: #fff;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 5px solid #003366;
}

/* --- Galería --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* --- Contacto --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
}

.contact-form button {
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

.map-section {
    padding: 0;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    .news-container {
        flex-direction: column;
        align-items: center;
    }

    .two-column-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .team-container {
        flex-direction: column;
        align-items: center;
    }

/* Menú principal AQUI PARTE EL MENU HAMBURGUESA*/
.main-nav ul {
    display: flex;
    list-style: none;
    padding-left: 0;
    gap: 2rem;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #003366;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-icon {
    font-size: 24px;
    margin-right: 6px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover .nav-icon {
    color: #f39c12;
}

/* Responsive: solo íconos en móviles */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .main-nav ul li a {
        flex-direction: column;
        font-size: 0.8rem;
    }

    .nav-label {
        display: none; /* Oculta texto en móviles */
    }

    .nav-icon {
        font-size: 28px;
        margin: 0;
    }
}

.footer-nav {
    display: none; /* Oculto por defecto */
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Oculta el menú del header en móviles */
    }

    .footer-nav {
        display: flex;
        justify-content: space-around;
        background-color: #fff;
        padding: 0.8rem 0;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .footer-nav a {
        color: #003366;
        text-decoration: none;
        font-size: 11px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-nav a:hover .nav-icon {
        color: #00b1ad;
    }

    .footer-nav .nav-icon {
        font-size: 28px;
        transition: color 0.3s ease;
    }
}
.footer-nav a {
    flex-direction: column-reverse; /* ícono arriba, texto abajo */
}

}


/* --- Estilos para Página de Noticia Individual --- */

.article-page {
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* Columna principal más ancha que la lateral */
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.article-main h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: #003366;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
}

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: #003366;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-left: 4px solid #f39c12; /* Borde con el color de acento */
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    background-color: #f9f9f9;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.article-sidebar {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    height: fit-content; /* Para que se ajuste al contenido */
}

.article-sidebar h3 {
    font-family: 'Montserrat', sans-serif;
    color: #003366;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.article-sidebar ul {
    list-style: none;
    padding: 0;
}

.article-sidebar ul li {
    margin-bottom: 0.75rem;
}

.article-sidebar ul li a {
    text-decoration: none;
    color: #333;
}

.article-sidebar ul li a:hover {
    color: #003366;
}


/* --- Ajuste Responsivo para la página de noticia --- */
@media (max-width: 992px) {
    .article-page {
        grid-template-columns: 1fr; /* La barra lateral pasa abajo en pantallas pequeñas */
    }
}


/* --- Ajuste de imagen responsivo para NOTICIA--- */

.article-featured-image {
    width: 100%;
    max-width: 800px; /* Encuadre maximo a cambiar entre 400px y 800px*/
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}



/* ====== ÚLTIMAS NOTICIAS (INDEX) ====== */
.latest-hero {
    background-size: cover;
    background-position: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #fff;
}
.latest-hero-text h1 {
    font-size: 2rem;
    margin: 0;
}

.latest-section {
    padding: 3rem 1rem;
    background: #f9f9f9;
}

.latest-container {
    max-width: 1200px;
    margin: 0 auto;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.latest-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.latest-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.latest-card h3 {
    font-size: 1rem;
    padding: 0.8rem;
    color: #003366;
    font-weight: 600;
}

.latest-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.latest-see-all {
    text-align: center;
    margin-top: 2rem;
}

.latest-btn {
    background: #003366;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.latest-btn:hover {
    background: #0055aa;
}


/* SECCION DE LIBRO DE LA BIBLIOTECA */
/* Sección general */
.content-section12 {
  padding: 40px 20px;
  background-color: #f8f9fa;
}

/* Contenedor estilo tarjeta */
.content-section12 .container12 {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  overflow: hidden;
}

/* Imagen de portada */
 .book-cover12 {
    width: 50%;                    /* Este da el porte de la imagen en pantalla grande */
    height: auto;                 /* altura automática */
    aspect-ratio: 3 / 4;          /* proporción típica de portada */
    background-size: contain;     /* que se vea entera */
    background-repeat: no-repeat; /* evita repeticiones */
    background-position: center;  /* centrada */
  }

/* Texto de la tarjeta */
.book-details12 {
  flex: 1;
  font-family: Arial, sans-serif;
  color: #333333;
  line-height: 1.5;
}

.book-details12 h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #4a148c;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 5px;
}

.book-details12 p {
  margin: 8px 0;
}

.book-details12 strong {
  color: #2e2e2e;
}

/* Responsive: portada arriba en móviles */
@media (max-width: 768px) {
  .content-section12 .container12 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover12 {
    width: 100%;
    height: auto; /* ✅ Permite que la altura se ajuste */
    aspect-ratio: 3 / 4; /* ✅ Mantiene la proporción incluso en móvil */
    max-height: 300px; /* Opcional: evita que sea demasiado alta en pantallas pequeñas */
  }

  .book-details12 {
    text-align: left;
    width: 100%;
  }
}



/* ========================================================== */
/* ========= SECCIÓN DE ANUNCIOS REDISEÑADA VeRSION 2========= */
/* ========================================================== */

.anuncios {
    padding: 4rem 2rem;
    background-color: #f4f7f6; 
}

.anuncios h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 2.5rem;
}

.anuncios-container {
    max-width: 1100px; /* Aumentado de 900px para hacerlo más ancho */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem; 
}

.anuncio-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #003366;
}

.anuncio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.12);
}

/* Estilo para tarjetas CON IMAGEN (dos columnas) */
.anuncio-card.has-image {
    display: flex;
    align-items: stretch;
}

.anuncio-imagen {
    flex: 0 0 250px; /* Reducido ligeramente para dar más espacio al texto */
    max-width: 250px;
}

.anuncio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.anuncio-imagen img:hover {
    transform: scale(1.05);
}

/* Contenido de texto, ahora más compacto verticalmente */
.anuncio-contenido {
    padding: 1.2rem 1.8rem; /* Relleno vertical reducido para hacerlo más delgado */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.anuncio-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem; /* Reducido */
}

.anuncio-header .material-symbols-outlined {
    font-size: 24px; /* Ligeramente más pequeño */
    color: #003366;
}

.anuncio-tipo {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #003366;
    background-color: #e6f0ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem; /* Ligeramente más pequeño */
}

.anuncio-body {
    flex-grow: 1; 
}

.anuncio-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem; /* Ligeramente más pequeño */
    color: #1a1a1a;
    margin: 0 0 0.5rem; /* Reducido */
}

.anuncio-body p {
    font-size: 0.95rem; /* Ligeramente más pequeño */
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.anuncio-footer {
    margin-top: 1rem;      /* Reducido */
    padding-top: 0.8rem;   /* Reducido */
    border-top: 1px solid #e8e8e8;
}

.anuncio-fecha {
    font-size: 0.85rem; /* Ligeramente más pequeño */
    color: #777;
}

/* Estilos para el Lightbox de imágenes */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
}

/* --- CSS CORREGIDO PARA EL LIGHTBOX --- */

#lightbox-container {
    position: relative;
    max-width: 70vw;   /* Cambiado de 90% a 70vw (70% del ancho de la pantalla) */
    max-height: 80vh;  /* Cambiado de 90% a 80vh (80% de la altura de la pantalla) */
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 5px;
}

#lightbox-close {
    position: absolute;
    top: 10px;      /* Cambiado para estar dentro del contenedor */
    right: 20px;     /* Cambiado para estar dentro del contenedor */
    font-size: 2.5rem; /* Ajuste de tamaño */
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 1001; /* Nos aseguramos que esté por encima de la imagen */
}

/* Ajustes responsivos para las tarjetas */
@media (max-width: 768px) {
    .anuncio-card.has-image {
        flex-direction: column; /* Apila la imagen sobre el texto */
    }
    .anuncio-imagen {
        max-width: 100%;
        max-height: 250px; /* Limita la altura de la imagen en móviles */
    }
    .anuncio-contenido {
        padding: 1.5rem;
    }
    .anuncio-body h3 {
        font-size: 1.25rem;
    }
}



/* === TARJETA DE PERFIL DE DOCENTE === */
.profile-card {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    background: #fff;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 2rem auto;
}

.profile-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0; /* Evita que la imagen se encoja */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.profile-details {
    flex: 1;
}

.profile-details h2 {
    color: #003366;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.profile-details .cargo {
    font-size: 1.2rem;
    color: #0055aa;
    margin-bottom: 1rem;
}

.profile-details h3 {
    color: #003366;
    margin: 1.2rem 0 0.8rem;
    font-size: 1.4rem;
}

.profile-details p {
    line-height: 1.6;
    color: #333;
    margin: 0.5rem 0;
}

.profile-actions {
    text-align: center;
    margin-top: 2rem;
}

/* === RESPONSIVE: MÓVILES === */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.8rem;
    }

    .profile-photo img {
        width: 160px;
        height: 160px;
    }

    .profile-details h2 {
        font-size: 1.6rem;
    }

    .profile-details .cargo,
    .profile-details p {
        text-align: center;
    }
}


/* Ocultar menú móvil en pantallas grandes */
.footer-nav {
    display: none;
}

/* Mostrar menú móvil solo en dispositivos pequeños */
@media (max-width: 768px) {
    .footer-nav {
        display: flex;
        justify-content: space-around;
        background-color: #fff;
        padding: 0.8rem 0;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .footer-nav a {
        color: #003366;
        text-decoration: none;
        font-size: 11px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-nav a:hover .nav-icon {
        color: #00b1ad;
    }

    .footer-nav .nav-icon {
        font-size: 28px;
        transition: color 0.3s ease;
    }
}

.footer-nav a {
    flex-direction: column-reverse; /* ícono arriba, texto abajo */
}



/* === ESTILOS PARA ADMISIÓN === */
.alerta-importante {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.pasos-admision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.paso {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-top: 3px solid #007b91;
}

.paso-numero {
    display: inline-block;
    background: #007b91;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.fechas-admision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.fecha-item {
    text-align: center;
    padding: 1rem;
    background: #e8f4f8;
    border-radius: 8px;
}

.fecha {
    display: block;
    font-weight: bold;
    color: #003366;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.lista-documentos {
    columns: 1;
    column-gap: 2rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .lista-documentos {
        columns: 2;
    }
}

.descargas-admision .botones-descarga {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.enlaces-admision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.enlace-item {
    background: #f9f9f9;
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.contacto-admision {
    background: #e8f4f8;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
}

.nota-fechas,
.nota-contacto {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

/* === LOGOS INSTITUCIONES === */
.logos-instituciones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

/* Agrandar las imágenes de los logos */
.logos-instituciones .logo-item img {
    max-width: 250px;      /* ← Aumenta el tamaño máximo */
    height: auto;          /* ← Mantiene la proporción */
    width: auto;           /* ← Permite que el ancho se ajuste */
    /* Opcional: sombra suave para mejor apariencia */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-item img {
    max-width: 300px;
    height: auto;
    filter: grayscale(0%);
    transition: filter 0.3s;
}

.logo-item img:hover {
    filter: grayscale(20%);
}

/* === IMÁGENES EN PASOS === */
.paso-imagen {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.paso-imagen img {
    width: 100%;
    display: block;
}

/* === ENLACES CON IMÁGENES === */
.enlace-item img {
    display: block;
    margin: 0 auto 1rem;
    border-radius: 8px;
    max-width: 200px; 
    width: auto;        /* ← Aumenta el ancho */
    height: auto;       /* ← Mantiene la proporción */
    /* Opcional: asegura un tamaño mínimo */
    min-width: 60px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Opcional: mejora visual */
}

/* 1. Estilo para la grilla que contendrá los videos */
.video-grid {
    display: grid;
    /* Crea 3 columnas de igual tamaño */
    grid-template-columns: repeat(3, 1fr); 
    /* Espacio entre los videos */
    gap: 20px; 
    padding: 20px;
}

/* 2. El contenedor de cada video para hacerlo responsivo */
.video-container {
    position: relative;
    /* Proporción 16:9, la más común para videos */
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    border-radius: 8px; /* Opcional: bordes redondeados */
}

/* 3. El iframe del video, para que ocupe todo su contenedor */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 4. Medios para pantallas pequeñas (móviles) 📱 */
@media (max-width: 768px) {
    .video-grid {
        /* Cambia a una sola columna */
        grid-template-columns: 1fr; 
    }
}


.latest-fecha {
    font-size: 0.9rem;
    color: #666;
    margin: 0.3rem 0 0;
    font-style: italic;
}

.contact-form select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}









/* Estilos para los iconos SVG de redes sociales en el header */
.social-icons-header {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Centrado debajo del logo */
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.social-icons-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    line-height: 1;
}

/* ✅ ESTILO ESPECÍFICO PARA EL ICONO DE INSTAGRAM */
.instagram-icon-wrapper {
    /* Crea un contenedor circular */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    /* Asegura que el SVG se centre dentro del círculo */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Opcional: sombra suave */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.instagram-icon-wrapper svg {
    width: 18px; /* Ajusta el tamaño del SVG dentro del círculo */
    height: 18px;
    /* Asegura que no se recorte nada */
    overflow: visible;
    /* Mantiene el SVG centrado */
    margin: 0;
}

.social-icons-header a:hover {
    transform: scale(1.1);
}

/* Responsive: En pantallas grandes, alinear a la derecha si lo deseas */
@media (min-width: 769px) {
    .social-icons-header {
        justify-content: flex-end; /* Alinea a la derecha en escritorio */
        margin-top: 0.5rem;
    }
}