/* Google Fonts */
body {
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Custom Colors */
.bg-main-blue { background-color: #002B5B; }
.text-navy-blue { color: #002B5B; }
.bg-mint-green { background-color: #6DD3C6; }
.text-mint-green { color: #6DD3C6; }
.bg-action-yellow { background-color: #FFC300; }
.text-action-yellow { color: #FFC300; }
.bg-deep-blue { background-color: #1A3D91; }
.bg-warm-orange { background-color: #F28C28; }

/* Hero Section Style */
.hero-section {
    position: relative;
    height: 80vh;
    background: url('../images/hero-background-ceet.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 43, 91, 0.7); /* Overlay azul oscuro */
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

/* CTA Buttons */
.cta-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-icon {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    flex-shrink: 0;
}


/* Glow on Hover Effect for specific buttons */
.glow-on-hover {
    transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 15px #FFC300, 0 0 20px #FFC300;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

/* Gallery Preview on Index (masonry, imágenes completas sin recorte) */
.gallery-preview {
    column-count: 2;
    column-gap: 1rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

@media (min-width: 768px) {
    .gallery-preview {
        column-count: 4;
    }
}

.gallery-preview img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}
.gallery-preview img:hover {
    transform: scale(1.05);
}

/* Hall of Fame Card */
.hall-of-fame-card {
    background-color: #ffffff;
    border-left: 5px solid #FFC300; /* Borde amarillo de acción */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hall-of-fame-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-down { animation: fade-in-down 0.8s ease-out forwards; }
.animate-fade-in-up { animation: fade-in-up 0.8s ease-out 0.2s forwards; opacity: 0; }

/* Event Gallery on vida-estudiantil.html */
.gallery-grid {
    column-count: 2;
    column-gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        column-count: 4;
    }
}

.gallery-grid img {
    margin-bottom: 1rem;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* --- ESTILOS NUEVOS PARA EL BLOG --- */

/* Botones de Filtro de Categoría */
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px; /* píldora */
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background-color: #e5e7eb; /* gris claro */
    color: #374151; /* gris oscuro */
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background-color: #d1d5db; /* gris un poco más oscuro */
}

/* Estilo del botón de filtro ACTIVO */
.filter-btn.active {
    background-color: #002B5B; /* azul principal */
    color: #FFFFFF; /* blanco */
    border-color: #FFC300; /* borde amarillo */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Videos: la presentación se genera con estilos en línea en js/videos.js
   (autosuficiente, no depende de este archivo). */

/* Footer overrides: ensure contact links are visible on dark background */
#footer-container a.contact-link,
#site-footer a.contact-link {
    color: #ffffff !important;
    text-decoration: none;
}
#footer-container a.contact-link:hover,
#site-footer a.contact-link:hover {
    color: #f3f4f6 !important; /* gray-100 */
}

/* Carrusel de Maestros */
.carousel-wrapper {
    min-height: 460px;
    height: 460px;
    overflow: hidden;
}

#carousel-maestros {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    max-height: 400px;
    overflow: hidden;
}

.carousel-img-side {
    width: 180px;
    height: 180px;
    max-width: 180px;
    max-height: 180px;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(40%) brightness(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    display: block;
}

.carousel-img-center {
    width: 320px;
    height: 320px;
    max-width: 320px;
    max-height: 320px;
    object-fit: cover;
    opacity: 1;
    filter: grayscale(0%) brightness(1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 43, 91, 0.4);
    border: 5px solid #FFC300;
    z-index: 10;
    flex-shrink: 0;
    display: block;
}

/* Animación de deslizamiento suave solo para imagen central */
.carousel-img-center.carousel-slide {
    animation: slideTransition 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-img-side.carousel-slide {
    animation: sideSlideTransition 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideTransition {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes sideSlideTransition {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        min-height: 400px;
        height: 400px;
    }
    
    #carousel-maestros {
        height: 280px;
        max-height: 280px;
    }
    
    .carousel-img-side {
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
    }
    
    .carousel-img-center {
        width: 200px;
        height: 200px;
        max-width: 200px;
        max-height: 200px;
        border: 3px solid #FFC300;
    }
}

/* Indicadores del carrusel */
.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: #002B5B;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 10px rgba(0, 43, 91, 0.5);
}

.carousel-indicator:hover {
    background-color: #6DD3C6;
}


