/* ==========================================================================
   ESTILOS GENERALES Y RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #334155;
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ESTRUCTURA Y CONTENEDORES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

.bg-light {
    background-color: #f8fafc;
}

/* ENCABEZADOS DE SECCIÓN */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sub-title {
    color: #d97706;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #0f172a;
    font-weight: 800;
}

.section-desc {
    color: #64748b;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: #f59e0b;
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.mt-5 {
    margin-top: 3rem;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN (NAVBAR)
   ========================================================================== */
.navbar {
    background: #370212;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.35rem 1.5rem; /* Se redujo el relleno vertical de 0.8rem a 0.35rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem; /* Reducido ligeramente de 1.1rem */
}

.brand-logo {
    width: 30px;  /* Reducido de 38px a 30px */
    height: 30px; /* Reducido de 38px a 30px */
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem; /* Reducido la separación horizontal entre ítems */
}

.nav-menu a {
    color: #cbd5e1;
    font-size: 0.9rem; /* Reducido ligeramente de 0.95rem */
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #f59e0b;
}

.btn-sistema {
    background: #f59e0b;
    color: #0f172a !important;
    padding: 0.3rem 0.9rem; /* Reducido el padding interno del botón */
    border-radius: 50px;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.3s, transform 0.2s !important;
}

.btn-sistema:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* ==========================================================================
   PORTADA PRINCIPAL (HERO)
   ========================================================================== */
.hero {
    position: relative;
    background:
        linear-gradient(rgba(15,23,42,.55), rgba(15,23,42,.75)),
        url("../img/hero.jpg") center center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.badge-promo {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 1.45rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #e5e8ed;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: #e5e8ed;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-gold {
    background: #f59e0b;
    color: #0f172a;
}

.btn-gold:hover {
    background: #d97706;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: #0f172a;
}

/* ==========================================================================
   SECCIÓN NOSOTROS
   ========================================================================== */
.about-hero-block {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 2.5rem;
    border: 1px solid #e2e8f0;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.about-text p {
    color: #475569;
    margin-bottom: 1rem;
}

.about-badge-card {
    background: #0f172a;
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #f59e0b;
}

.badge-icon {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.about-badge-card h4 {
    font-size: 1.8rem;
    color: #ffffff;
}

.about-badge-card p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.mv-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.mv-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.mv-header i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.mv-header h3 {
    color: #0f172a;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.about-card {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* ==========================================================================
   SECCIÓN JUNTA DIRECTIVA
   ========================================================================== */
.gestion-badge-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.badge-gestion {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0f172a;
    color: #f59e0b;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* PRESIDENTE */
.leader-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.leader-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #f59e0b;
    transition: transform 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-img-container {
    position: relative;
    margin-bottom: 1.25rem;
}

.leader-img-container img {
    width: 140px !important;
    height: 140px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    display: block;
}

.leader-badge-gold {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.leader-info h3 {
    margin-top: 0.5rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.leader-cargo {
    color: #d97706;
    font-weight: 600;
    font-size: 0.95rem;
}

/* DEMÁS MIEMBROS DIRECTIVA */
.directiva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.member-img-box {
    margin-bottom: 1rem;
}

.member-img-box img {
    width: 95px !important;
    height: 95px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 3px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: block;
}

.member-role {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.member-role.text-gold {
    color: #b45309;
    background: #fef3c7;
}

.member-role.text-primary {
    color: #1d4ed8;
    background: #dbeafe;
}

.member-content h4 {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 600;
}

/* ==========================================================================
   SECCIÓN PADRÓN DE INTEGRANTES (ALUMNOS) - DISEÑO EN TARJETAS
   ========================================================================== */

/* Barra de Filtros */
.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.search-box {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.aula-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.btn-tab {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-tab.active {
    background: #0f172a;
    color: #f59e0b;
    border-color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* Grilla de Tarjetas Unidas */
.grid-alumnos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* Tarjeta Individual Estilo Card Top Image */
.alumno-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alumno-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Contenedor de Imagen Rectangular Superior */
.alumno-img-box {
    position: relative;
    width: 100%;
    height: 150px;
    background-color: #94a3b8; /* Placeholder similar al de la imagen */
    overflow: hidden;
    margin-bottom: 0;
}

.alumno-img-box img {
    width: 100% !important;
    height: 90% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: block;
}

/* Badge de Aula posicionado en la esquina superior derecha */
.badge-aula {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: auto;
    background: #0f172a;
    color: #f59e0b;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #f59e0b;
    white-space: nowrap;
}

/* Cuerpo del Contenido */
.alumno-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.alumno-info h4 {
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.alumno-chaplin {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    font-style: normal;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Pie de la Tarjeta (Footer) */
.alumno-profesion {
    border-top: 1px solid #f1f5f9;
    background-color: #f8fafc;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: none;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.no-results {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    width: 100%;
    grid-column: 1 / -1;
    padding: 3rem 0;
}

/* ==========================================================================
   BANNER TESORERÍA & FOOTER
   ========================================================================== */
.banner-tesoreria {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 3.5rem 0;
    border-top: 3px solid #f59e0b;
}

.banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.banner-flex h2 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.banner-flex p {
    color: #94a3b8;
}

.btn-gold-large {
    background: #f59e0b;
    color: #0f172a;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s;
}

.btn-gold-large:hover {
    background: #d97706;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.footer {
    background: #090d16;
    color: #64748b;
    padding: 2.5rem 0;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.1rem;
}

.footer-brand p {
    font-size: 0.88rem;
}

.footer-copy p {
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE (ADAPTACIÓN A MÓVILES)
   ========================================================================== */
@media (max-width: 768px) {

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-hero-block {
        grid-template-columns: 1fr;
    }

    .banner-flex {
        flex-direction: column;
        text-align: center;
    }

    .grid-alumnos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-alumnos {
        grid-template-columns: 1fr;
    }
}

    .alumno-card {
        padding: 1rem 0.6rem;
    }

    .alumno-img-box, .alumno-img-box img {
        width: 85px !important;
        height: 85px !important;
    }


    /* =========================================================
   FOTOS DE INTEGRANTES
   ========================================================= */

.foto-integrante {
    width: 150px !important;
    height: 200px !important;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 18px auto 8px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tarjeta */
.alumno-card .card {
    text-align: center;
    overflow: hidden;
}

/* Nombre */
.alumno-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Profesión */
.alumno-card .card-text {
    font-size: 0.88rem;
    min-height: 38px;
}

/* Chaplín */
.alumno-card .card-footer {
    background: transparent;
    border-top: 1px solid #eee;
}

/* =========================================================
   FOTOS JUNTA DIRECTIVA
   MISMO ESTILO QUE INTEGRANTES DE LA PROMOCIÓN
   ========================================================= */

/* Fotos del Presidente, Tesorero y Secretario */
.leader-img-container img,
.member-img-box img {
    width: 150px !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 50%;
    margin: 18px auto 8px !important;

    /* FOTO RECTANGULAR */
    border-radius: 0 !important;

    /* Igual que integrantes */
    border: none !important;
    box-shadow: none !important;
}


/* =========================================================
   CONTENEDOR DEL PRESIDENTE
   ========================================================= */

.leader-img-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   CONTENEDOR TESORERO / SECRETARIO
   ========================================================= */

.member-img-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.member-card,
.leader-card {
    text-align: center;
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.member-content,
.leader-info {
    text-align: center;
}


/* Efecto Glassmorphism */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Efectos al pasar el mouse por el botón central */
.himno-circle-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.himno-circle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.5) !important;
}

/* Barra de progreso de audio */
.custom-range {
    height: 6px;
    accent-color: #ffc107;
    cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
    background-color: #ffc107;
}

.custom-range::-moz-range-thumb {
    background-color: #ffc107;
}