/* ==========================================================================
   XX FORO PENSANDO EN COLOMBIA (2026) - STYLESHEET OFICIAL DE PRODUCCIÓN
   Jerarquía Cromática Aprobada:
   1. Primario (Acción / Dominante): Amarillo Dorado (#f5a623)
   2. Secundario (Estructura / Respaldo): Azul Institucional (#002d62)
   3. Terciario (Acento / Contraste): Rojo PEC (#c91834)
   ========================================================================== */

:root {
    /* Paleta Oficial Aprobada */
    --primary-color: #f5a623;
    --primary-hover: #d98e16;
    --primary-contrast-text: #001a3a;

    --secondary-color: #002d62;
    --secondary-hover: #001f45;
    --secondary-contrast-text: #ffffff;

    --tertiary-color: #c91834;
    --tertiary-hover: #a11127;
    --tertiary-contrast-text: #ffffff;

    /* Fondos y superficies */
    --bg-light: #fffdfa;
    --bg-alt: #fef8f0;
    --surface-white: #ffffff;
    --text-dark: #1e1e1e;
    --text-muted: #5f5f5f;
    --border-color: #f0e2cf;

    /* Sombras y elevaciones */
    --shadow-soft: 0 4px 16px rgba(0, 45, 98, 0.07);
    --shadow-hover: 0 8px 24px rgba(245, 166, 35, 0.18);

    /* Radios */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, .brand-logo, .badge-edicion {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.header {
    background: linear-gradient(135deg, #00142e 0%, #002d62 65%, #3d2305 100%);
    color: #ffffff;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.header-subpage {
    padding-bottom: 2.5rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(0, 18, 42, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(245, 166, 35, 0.25);
    position: relative;
    z-index: 100;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-right-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 0.85rem;
    align-items: center;
}

.nav-links a {
    color: #f1f3f5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-contrast-text);
    background-color: var(--primary-color);
    font-weight: 600;
}

.nav-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.35);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.nav-search-btn:hover {
    background: var(--primary-color);
    color: var(--primary-contrast-text);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.search-kbd-hint {
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 4px;
    color: #f5a623;
    border: 1px solid rgba(245, 166, 35, 0.25);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 3rem 5% 1rem;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-poster-wrapper {
    flex: 1 1 340px;
    max-width: 420px;
    display: flex;
    justify-content: center;
}

.hero-poster {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    background: #ffffff;
    padding: 10px;
    border: 2px solid rgba(245, 166, 35, 0.3);
}

.text-box {
    flex: 1 1 450px;
}

.badge-edicion {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--primary-contrast-text);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.text-box h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.slogan {
    font-size: 1.2rem;
    font-style: italic;
    color: #fce8c5;
    margin-bottom: 1.5rem;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
}

.meta-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fdfdfd;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--primary-contrast-text);
    text-decoration: none;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.3);
}

.hero-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.hero-btn.secondary {
    background: rgba(0, 45, 98, 0.6);
    border: 2px solid var(--secondary-color);
    color: #ffffff;
}

.hero-btn.secondary:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   COUNTDOWN TIMER
   -------------------------------------------------------------------------- */
.countdown-card {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.countdown-header h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.countdown-target {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.countdown-grid {
    display: flex;
    gap: 1.25rem;
}

.time-box {
    background: #fff9ed;
    border: 1px solid #f6deb4;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    text-align: center;
    min-width: 70px;
}

.time-box .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Oswald', sans-serif;
}

.time-box .unit {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #8c5700;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   SECTIONS & GRIDS
   -------------------------------------------------------------------------- */
.section-padding {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-alt {
    background-color: var(--bg-alt);
    max-width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
    margin: 0.5rem auto 0;
}

.row {
    display: grid;
    gap: 1.5rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.course-col {
    background: var(--surface-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-col:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.course-col.highlight-card {
    border-top: 4px solid var(--secondary-color);
    border-left: 3px solid var(--primary-color);
}

.col-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fbf2e3;
    color: #8b5700;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.8rem;
}

.badge-status.alert {
    background: #fee7eb;
    color: var(--tertiary-color);
}

/* Botones de Registro por color */
.btn-register {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-register.primary-gold {
    background: var(--primary-color);
    color: var(--primary-contrast-text);
}

.btn-register.primary-gold:hover {
    background: var(--primary-hover);
}

.btn-register.secondary-blue {
    background: var(--secondary-color);
    color: #ffffff;
}

.btn-register.secondary-blue:hover {
    background: var(--secondary-hover);
}

.btn-register.tertiary-red {
    background: var(--tertiary-color);
    color: #ffffff;
}

.btn-register.tertiary-red:hover {
    background: var(--tertiary-hover);
}

/* --------------------------------------------------------------------------
   CONTACT BANNER (CORREO OFICIAL)
   -------------------------------------------------------------------------- */
.contact-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    background: #fff8ec;
    border: 1px solid #f6deb4;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-banner h4 {
    color: var(--secondary-color);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.official-email-link {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.official-email-link:hover {
    color: var(--tertiary-color);
}

/* --------------------------------------------------------------------------
   SECRETARIOS GENERALES (TEAM & MODAL)
   -------------------------------------------------------------------------- */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1050px;
    margin: 0 auto;
}

.team-card {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.team-image-wrapper {
    height: 290px;
    background: #e9ecf0;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

.team-info {
    padding: 1.25rem 1rem;
}

.team-info h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.team-info .role {
    color: #8c5700;
    font-size: 0.9rem;
    font-weight: 700;
}

.click-hint {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Modal Foto Ampliada */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 18, 42, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--surface-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    max-width: 480px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-top: 4px solid var(--primary-color);
}

.modal-photo {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #fee7eb;
    border: none;
    color: var(--tertiary-color);
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   HISTORIA Y AFICHES (LÍNEA DE TIEMPO)
   -------------------------------------------------------------------------- */
.timeline-controls-card {
    background: var(--surface-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--primary-color);
}

.year-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: #fff9ed;
    border: 1px solid #f6deb4;
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--primary-contrast-text);
    border-color: var(--primary-color);
}

.historia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.5rem;
}

.poster-card {
    background: var(--surface-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border-bottom: 3px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.history-poster-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.poster-caption {
    padding: 0.6rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary-color);
    background: #fffaf0;
}

/* --------------------------------------------------------------------------
   MAPA Y ARQUITECTURA
   -------------------------------------------------------------------------- */
.architectural-plan-container {
    background: var(--surface-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
}

.campus-full-plan {
    width: 100%;
    max-width: 1050px;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid #f0e2cf;
}

.support-banner {
    background: linear-gradient(135deg, #001a3a 0%, #002d62 100%);
    color: #ffffff;
    padding: 2.25rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-left: 5px solid var(--primary-color);
}

.support-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--primary-contrast-text);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.support-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.support-banner p {
    color: #e2e8f0;
    max-width: 650px;
    font-size: 0.95rem;
}

.comision-badge {
    display: inline-block;
    background: #fbf1de;
    color: #8c5700;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.payment-notes {
    padding: 1.25rem 1.5rem;
    background: #fff8eb;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background: #001226;
    color: #a0aec0;
    text-align: center;
    padding: 2.5rem 5%;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
}

.footer-logo {
    height: 40px;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer p {
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    .navbar {
        flex-direction: column;
        gap: 0.8rem;
    }

    .nav-right-container {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .nav-links ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }

    .text-box h1 {
        font-size: 2.2rem;
    }

    .countdown-card, .support-banner, .contact-banner {
        flex-direction: column;
        text-align: center;
    }

    .countdown-grid {
        justify-content: center;
    }
}
