/* ======== ESTILOS GENERALES Y FUENTES ======== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
}

* {
    box-sizing: border-box;
}

/* ======== ESTILOS DE LA CABECERA ======== */
header {
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: top 0.4s ease-in-out;
}

.top-bar {
    background-color: #0b4433;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    font-size: 12px;
    transition: height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    height: 40px;
    opacity: 1;
}

.top-bar-links {
    flex-grow: 1;
    text-align: center;
}

.top-bar a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #ff9900;
}

.main-nav {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* MODIFICADO: Aumento de padding para el logo grande y transición suave */
    padding: 15px 5%;
    transition: padding 0.4s ease-in-out;
}

.logo img {
    /* MODIFICADO: Tamaño inicial del logo y transición */
    height: 100px;
    display: block;
    transition: height 0.4s ease-in-out;
}

.main-nav-links {
    display: flex;
    align-items: center;
}

.main-nav-links a,
.nav-item > a {
    text-decoration: none;
    color: #333;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

.main-nav-links a:hover,
.nav-item > a:hover {
    color: #ff9900;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* ======== ESTILOS DEL SUBMENÚ ======== */
.nav-item { position: relative; }

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}

.submenu li a {
    color: #333;
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #f5f5f5;
    color: #ff9900;
}

/* ======== ESTADO "STICKY" DE LA CABECERA ======== */
header.sticky {
    position: fixed;
    top: 0;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

header.sticky .top-bar {
    height: 0;
    opacity: 0;
    padding: 0 5%;
    overflow: hidden;
}

/* AÑADIDO: Reducir padding de la barra principal en estado sticky */
header.sticky .main-nav {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* AÑADIDO: Reducir el tamaño del logo en estado sticky */
header.sticky .logo img {
    height: 50px;
}

/* ======== BOTÓN DE HAMBURGUESA ======== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}
/* ======== AÑADIDO: ANIMACIÓN HAMBURGUESA A 'X' ======== */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ======== ESTILOS RESPONSIVOS (MÓVIL) ======== */
@media (max-width: 1024px) {
    /* AÑADIDO: Ocultar la barra superior en dispositivos */
    .top-bar {
        display: none;
    }
    
    /* MODIFICADO: Ajuste del logo en móvil para que no sea tan grande */
    .logo img {
        height: 50px;
    }
    
    .main-nav {
        padding: 10px 5%;
    }

    .main-nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #f4f4f4;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1500;
    }

    .main-nav-links.active {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .main-nav-links a, .nav-item > a {
        color: #1c1e21;
        width: 100%;
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item { width: 100%; }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding-left: 20px;
        display: none;
    }

    .nav-item.open > .submenu { display: block; }
    
    .submenu li a { color: #0b4433; font-size: 14px; padding: 10px 0; }
    .hamburger-menu { display: flex; margin-left: 20px; }
    .search-icon { display: none; }
}

/* CARRUSEL Y LIGHTBOX (SIN CAMBIOS) */
.carousel-container { position: relative; width: 100%; height: 85vh; overflow: hidden; background-color: #1a1a2e; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; /*cursor: pointer;*/ }
.lightbox-trigger {
    cursor: pointer;
}
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { position: absolute; bottom: 15%; left: 5%; color: white; z-index: 2; text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7); }
.banner-text h2 { font-size: 4rem; font-weight: 700; margin: 0; line-height: 1.1; }
.banner-text p { font-size: 2rem; font-weight: 400; margin: 0; color: #ff9900; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.4); color: white; border: none; font-size: 2rem; padding: 10px 15px; cursor: pointer; z-index: 3; transition: background-color 0.3s; }
.carousel-arrow:hover { background-color: rgba(0, 0, 0, 0.7); }
.prev { left: 20px; }
.next { right: 20px; }
.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); justify-content: center; align-items: center; animation: fadeIn 0.5s; }
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90%; object-fit: contain; animation: zoomIn 0.5s; }
.close-lightbox { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: transform 0.3s; }
.close-lightbox:hover { transform: scale(1.2); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }
.content-placeholder { padding: 50px; text-align: center; }
@media (max-width: 768px) { .banner-text h2 { font-size: 2.5rem; } .banner-text p { font-size: 1.2rem; } }

/* ======== ESTILOS DE LA SECCIÓN DE NOTICIAS ======== */
.news-section {
    background-color: #f0f2f5;
    padding: 80px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #1c1e21;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #606770;
    margin-bottom: 50px;
}

/* Cuadrícula de noticias */
.news-grid {
    display: grid;
    /* Un grid de 4 columnas para máxima flexibilidad */
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Tarjeta de noticia individual */
.news-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Transición para la sombra y el movimiento */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover para la tarjeta completa */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden; /* Clave para el efecto de zoom */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Transición para el zoom */
    transition: transform 0.4s ease-out;
}

/* Efecto de zoom en la imagen al pasar el cursor por la tarjeta */
.news-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta (texto) */
.card-content {
    flex-grow: 1;
}

.category {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #B91C1C; /* Rojo oscuro similar al de Stanford */
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Estilos específicos para tarjetas grandes (texto sobre imagen) */
.card-large {
    grid-column: span 2; /* Ocupa 2 de las 4 columnas */
    position: relative;
}

.card-large .card-image-wrapper {
    height: 100%;
}

/* Gradiente oscuro sobre la imagen */
.card-large .card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.card-large .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 24px;
    color: white;
    z-index: 2;
}

.card-large .category {
    color: #f0f2f5;
}

.card-large h3 {
    font-size: 1.75rem;
    margin: 0;
    line-height: 1.2;
}

/* Estilos específicos para tarjetas pequeñas (texto debajo de la imagen) */
.card-small {
    grid-column: span 1; /* Ocupa 1 columna */
}

.card-small .card-content {
    padding: 20px;
}

.card-small h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: #1c1e21;
}

/* Posicionamiento específico para el layout deseado */
.news-grid > .card-large:nth-child(1) {
    grid-row: span 2; /* La primera tarjeta grande ocupa 2 filas */
}
.news-grid > .card-small:nth-child(2) {
    grid-column: 3 / 4;
}
.news-grid > .card-small:nth-child(3) {
    grid-column: 4 / 5;
}
.news-grid > .card-small:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
.news-grid > .card-small:nth-child(5) {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}
.news-grid > .card-large:nth-child(6) {
    grid-column: span 2;
}

/* ======== DISEÑO RESPONSIVO PARA LA SECCIÓN DE NOTICIAS ======== */

/* Para tablets */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }

    /* En tablet, todas las tarjetas ocupan 1 columna, excepto la primera y la última */
    .news-grid > .news-card {
        grid-column: span 1;
        grid-row: auto;
    }
    
    .news-grid > .card-large:nth-child(1),
    .news-grid > .card-large:nth-child(6) {
        grid-column: span 2; /* Las grandes ocupan todo el ancho */
    }
}

/* Para móviles */
@media (max-width: 600px) {
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }
    
    .news-grid {
        grid-template-columns: 1fr; /* 1 columna */
    }

    /* En móvil, todas las tarjetas ocupan el ancho completo */
    .news-grid > .news-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .card-large h3 {
        font-size: 1.5rem;
    }
}

/* ======== EFECTO DE DESPLAZAMIENTO SUAVE ======== */
html {
    scroll-behavior: smooth;
}

/* ... Tu CSS existente hasta el final ... */

/* Puedes mantener el resto de tu CSS de noticias como está.
   Ahora añadimos los estilos para la nueva sección. */


/* ======== ESTILOS DE LA SECCIÓN DE PUBLICACIONES ======== */
.publications-section {
    background-color: #ffffff; /* Fondo blanco para alternar */
    padding: 80px 0;
}

.publications-grid {
    display: grid;
    /* Un grid de 3 columnas en escritorio */
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Reutilizamos el estilo de tarjeta de noticias pero con un nombre específico */
.publication-card {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0; /* Un borde sutil */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Aplicamos el mismo efecto hover que en las noticias */
.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.publication-card .card-image-wrapper img {
    height: 200px; /* Altura fija para la imagen de la publicación */
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.publication-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.publication-card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Asegura que el contenido ocupe el espacio */
}

.publication-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1c1e21;
}

.publication-card .author {
    font-size: 0.9rem;
    color: #606770;
    margin: 0 0 16px 0;
    flex-grow: 1; /* Empuja el botón de descarga hacia abajo */
}

/*SOLO PARA EFECTO SIN DISPLAY*/
.publication-card2 {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0; /* Un borde sutil */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /*display: flex;*/
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Aplicamos el mismo efecto hover que en las noticias */
.publication-card2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.publication-card2 .card-image-wrapper img {
    height: 200px; /* Altura fija para la imagen de la publicación */
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.publication-card2:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.publication-card2 .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Asegura que el contenido ocupe el espacio */
}

.publication-card2 h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1c1e21;
}
/**/

.download-link {
    display: inline-block;
    background-color: #B91C1C; /* Rojo oscuro corporativo */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.download-link i {
    margin-right: 8px;
}

.download-link:hover {
    background-color: #991B1B; /* Un rojo un poco más oscuro */
}


/* ======== DISEÑO RESPONSIVO PARA PUBLICACIONES ======== */

/* Para tablets */
@media (max-width: 992px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
}

/* Para móviles */
@media (max-width: 600px) {
    .publications-grid {
        grid-template-columns: 1fr; /* 1 columna */
    }
}

.aulasvirtuales {
            position: relative;
            display: inline-block;
            padding-bottom: 4px; /* Espacio para el borde */
            background-color: rgba(0,0,0,0.80);
            border-radius: 5px;
            border: 1px solid #F2A425;
            padding: 15px;
            width: 30%;
            text-align: center;
            font-size: 15px;
            font-family: 'Poppins';
            /*border-right: 1px solid #EFEFEF;*/
            margin-left: 13px;
            }

            .aulasvirtuales::after {
              content: '';
              position: absolute;
              left: 0;
              bottom: 0;
              width: 0;
              height: 1px;
              background-color: rgba(245, 164, 37, 0.80);
              transition: width 0.3s ease;
            }

            .aulasvirtuales:hover::after {
              width: 100%;
            }



/* CSS */
.button-38 {
  background-color: #FFFFFF;
  border: 0;
  border-radius: .5rem;
  box-sizing: border-box;
  color: #111827;
  font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25rem;
  padding: .75rem 1rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-38:hover {
  background-color: #F3F4F6;
  transform: translateY(-2px); /* Efecto sutil al pasar el mouse */
}

.button-38:active {
  transform: translateY(0);
}

.button-38:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.button-38:focus-visible {
  box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.6);
}

/* Estilo del enlace dentro del botón */
.button-38 a {
  display: block;
  text-decoration: none;
  color: inherit; /* Usa el color definido en el botón */
}

/* ... tu CSS existente hasta el final ... */


/* ======== ESTILOS DEL BOTÓN DE VOLVER ARRIBA ======== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    
    /* Estilo del botón */
    width: 50px;
    height: 50px;
    background-color:  rgba(0, 0, 0, 0.4);/* #B91C1C;Rojo corporativo, igual que el link de descarga */
    color: white;
    border-radius: 50%; /* Lo hace circular */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    
    /* Centrar el icono */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;

    /* Estado inicial (oculto) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Ligeramente desplazado hacia abajo */
    
    /* Transición suave para aparecer/desaparecer */
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}

/* Estado activo (visible) */
.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Vuelve a su posición original */
}

/* Efecto al pasar el mouse */
.scroll-top-btn:hover {
    background-color: #991B1B; /* Rojo más oscuro */
    transform: scale(1.1); /* Ligeramente más grande */
}

/* ======== SECCIÓN SERVICIOS EN LÍNEA ======== */
.online-services-section {
    padding: 80px 0;
    background-color: #f5f4f0; /* Fondo blanco para contrastar con la sección anterior */
}

.services-grid {
    display: grid;
    /* Crea un grid responsivo con columnas de mínimo 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Asegura que el enlace ocupe todo el espacio de la tarjeta */
    transition: all 0.3s ease-in-out;
}

.service-card {
    background-color: #f8f9fa; /* Un gris muy claro para la tarjeta */
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    border: 1px solid #e9ecef;
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura en una fila */
    transition: all 0.3s ease-in-out;
}

/* Animación de hover: la tarjeta se eleva y la sombra se acentúa */
.service-link:hover .service-card {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 3rem; /* 48px */
    color: #007bff; /* Un color azul institucional, puedes cambiarlo #0056b3*/
    transition: transform 0.3s ease;
}

/* Pequeña animación para el icono al hacer hover */
.service-link:hover .service-icon i {
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: #343a40;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem; /* 15px */
    line-height: 1.6;
    color: #6c757d;
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }
}

/* ======== ESTILOS DEL FOOTER ======== */
.site-footer {
    background-color: #212529; /* Un fondo oscuro y elegante */
    color: #adb5bd; /* Color de texto suave para mejor legibilidad */
    padding: 80px 0 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    /* Un grid responsivo que se ajusta de 4 a 1 columna */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col {
    padding: 0 10px;
}

/* Estilo para el logo en el footer */
.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    /*background: white;  Añadimos fondo blanco para que resalte */
    padding: 10px;
    border-radius: 8px;
}

.footer-tagline {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Títulos de cada columna */
.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem; /* 18px */
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Línea decorativa debajo de los títulos */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #007bff; /* Usando un azul brillante */
}

/* Listas y enlaces del footer */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.footer-col ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 5px; /* Efecto de desplazamiento sutil */
}

/* Iconos de la sección de contacto */
.footer-col.contact ul li i {
    color: #007bff;
    margin-right: 12px;
    font-size: 1rem;
    padding-top: 4px; /* Alinear con el texto */
}

/* Iconos de Redes Sociales */
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff; /* El color principal de la marca */
    transform: translateY(-3px);
}

/* Estilo del mapa */
.footer-col.map iframe {
    border-radius: 8px;
    width: 100%;
}

/* Barra inferior del footer */
.footer-bottom {
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Media query para móviles */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        text-align: left;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }

    .footer-col h4::after {
        left: 0; /* Asegura que la línea esté a la izquierda */
    }

    .footer-bottom {
        margin-top: 20px;
    }
}

/* ======== SECCIÓN PARALLAX CON LLAMADA A LA ACCIÓN ======== */
.parallax-section {
    position: relative;
    padding: 140px 0;
    background-image: url('img/UAE-Panoramica.jpg'); /* <-- ¡CAMBIA ESTO POR EL NOMBRE DE TU IMAGEN! */
    
    /* El truco del Parallax */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    color: #ffffff;
    text-align: center;
}
.parallax-section-rectorado {
    position: relative;
    padding: 80px 0;
    background-image: url('img/UAE-Panoramica.jpg'); /* <-- ¡CAMBIA ESTO POR EL NOMBRE DE TU IMAGEN! */
    
    /* El truco del Parallax */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    color: #ffffff;
    text-align: center;
}

/* Capa semitransparente para mejorar la legibilidad del texto */
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.6); /* Un azul muy oscuro y semitransparente */
    z-index: 1;
}

/* Contenido que va sobre la imagen y la capa */
.parallax-content {
    position: relative;
    z-index: 2; /* Se asegura que el contenido esté por encima del overlay */
}

.parallax-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.parallax-content p {
    font-size: 1.1rem;
    max-width: 750px; /* Evita que el texto sea demasiado ancho */
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.parallax-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #ffffff;
    color: #1a202c;
    border: 2px solid #ffffff;
    border-radius: 50px; /* Botón con bordes redondeados (píldora) */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
}

.parallax-button:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .parallax-content h2 {
        font-size: 2rem; /* Título más pequeño en móviles */
    }

    .parallax-content p {
        font-size: 1rem;
    }

    /* Opcional: Desactivar el efecto parallax en móviles por rendimiento */
    /* .parallax-section {
        background-attachment: scroll;
    } */
}

/* ======== BOTÓN SOCIAL FLOTANTE EN TOP-BAR (EXPANSIÓN HORIZONTAL) ======== */
.social-flyout-container {
    position: fixed;
    /* CAMBIO: Posición arriba a la derecha, alineado con la top-bar */
    top: 4px;      /* Ajusta este valor para alinear verticalmente con tu top-bar */
    right: 15px; 
    z-index: 9999;
    display: flex;
    /* CAMBIO: Dirección de fila invertida para expandir a la izquierda */
    flex-direction: row-reverse;
    align-items: center;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}
/* Nueva clase que define el estado "oculto" */
.social-flyout-container.hidden-socials {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-150%); /* Lo mueve completamente hacia arriba, fuera de la pantalla */
}
.social-flyout-trigger {
    /* CAMBIO: Tamaño reducido para encajar en la top-bar */
    width: 28px;
    height: 28px;
    background-color: #e0e0e0; /* Color blanco para que se integre con la top-bar */
    color: #212529; /* Icono oscuro para contrastar con el fondo blanco */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CAMBIO: Tamaño de icono ajustado */
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
    border: 1px solid #e0e0e0; /* Borde sutil */
}

.social-flyout-container:hover .social-flyout-trigger {
    transform: scale(0.8) rotate(360deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-flyout-links {
    display: flex;
    /* CAMBIO: Dirección de fila normal */
    flex-direction: row;
    align-items: center;
    /* CAMBIO: Espaciado horizontal y margen a la derecha del trigger */
    gap: 8px;
    margin-right: 12px; 
    
    opacity: 0;
    visibility: hidden;
    /* CAMBIO: Transformación en el eje X para animar desde la derecha */
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-flyout-container:hover .social-flyout-links {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.social-flyout-links a {
    /* CAMBIO: Tamaño de iconos aún más discreto */
    width: 32px;
    height: 32px;
    background-color: #343a40;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CAMBIO: Tamaño de icono ajustado */
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-flyout-links a:hover {
    background-color: #007bff;
    transform: translateY(-2px); /* Pequeño salto hacia arriba al pasar el mouse */
}

/* El componente se oculta en móvil, donde la top-bar a menudo también lo hace */
@media (max-width: 992px) { /* Ajustado a 992px para coincidir con el comportamiento típico de las cabeceras */
    .social-flyout-container {
        display: none;
    }
}