/* ==========================================================================
   FESTIVAL DE CORTOS - ESTILOS GLOBALES
   Arquitectura: CSS puro, ultraliviano, sin dependencias.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,700;0,900&display=swap');

:root {
    /* Paleta Oficial */
    --color-bg: #232122;
    --color-text: #F0F0F0;
    --color-muted: #8E8D8E;
    --color-divider: #444243;
    
    /* Colores de Marca */
    --color-brand-red: #F64F2B;
    --color-brand-yellow: #F8B334;
    --color-brand-blue: #0653BD;

    /* Tipografía */
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transiciones */
    --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y caja */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: var(--color-bg);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5% 12px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    z-index: 10;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: var(--transition-smooth);
}

.logo-link:hover {
    transform: scale(1.06);
}

.logo-icon {
    width: 35px;
    height: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    text-transform: lowercase;
    font-weight: 400;
    font-style: normal; /* Sin itálica */
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 6px 8px;
    border-radius: 4px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav a:hover {
    color: #FFFFFF;
}

.nav a.active {
    font-weight: 500;
    color: #FFFFFF;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: var(--color-brand-yellow);
    border-radius: 2px;
}

.nav-divider {
    color: var(--color-divider);
    font-size: 13px;
    user-select: none;
}

/* ==========================================================================
   BOTÓN PRINCIPAL (CTA) - SIMPLE, SIN NEGRITA, SIN BRILLO
   ========================================================================== */

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 12px 34px;
    text-decoration: none;
    font-weight: 400; /* Sin negrita */
    font-style: normal;
    text-transform: lowercase;
    border-radius: 50px;
    font-size: 15px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
    cursor: pointer;
    user-select: none;
}

.btn-cta:hover {
    transform: translateY(-1px) scale(1.02);
    background-color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); /* Sombra sobria sin brillo alrededor */
}

.btn-cta:active {
    transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   HOME PAGE (index.html)
   ========================================================================== */

body.page-home {
    background-image: url('fdc_t04_home_background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    body.page-home {
        background-attachment: scroll;
        background-position: center top;
    }
}

.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: clamp(110px, 13.5vh, 145px); /* Bajado 50px adicionales para 16:9 */
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 26px;
    text-align: center;
}

.main-logo {
    max-width: 90%;
    width: 480px;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
    transition: var(--transition-smooth);
}

/* ==========================================================================
   PÁGINAS DE CONTENIDO (Historia, Quiénes Somos, Resumen)
   ========================================================================== */

.content-container {
    flex: 1;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 24px 60px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--color-brand-red);
    margin-top: 8px;
    border-radius: 2px;
}

.hero-image, .team-photo {
    width: 100%;
    height: auto;
    margin-bottom: 35px;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    display: block;
}

.content-text {
    line-height: 1.8;
    font-size: 16px;
    text-align: left;
    color: rgba(240, 240, 240, 0.92);
}

.content-text p {
    margin-bottom: 22px;
    max-width: 68ch;
}

.highlight {
    font-weight: 700;
    color: #FFFFFF;
}

/* ==========================================================================
   QUIÉNES SOMOS - GRID
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 10px;
}

.team-member {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 24px;
    transition: var(--transition-smooth);
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.team-member h2 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-brand-yellow);
}

.team-member p {
    line-height: 1.7;
    font-size: 15px;
    color: rgba(240, 240, 240, 0.88);
}

/* ==========================================================================
   RESUMEN TEMPORADA 04 (Video 9x16 + Galería)
   ========================================================================== */

.resumen-intro {
    font-size: 16.5px;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 68ch;
}

.video-vertical-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 35px 0 45px;
}

.video-vertical-card {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 9 / 16;
    background-color: #171617;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-vertical-card video,
.video-vertical-card iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.video-placeholder {
    padding: 30px;
    text-align: center;
    color: var(--color-muted);
}

.video-placeholder .icon {
    font-size: 42px;
    margin-bottom: 12px;
    color: var(--color-brand-red);
}

.video-placeholder h3 {
    color: var(--color-text);
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 700;
}

.video-placeholder p {
    font-size: 13px;
    line-height: 1.5;
}

.video-caption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--color-muted);
    text-align: center;
}

.gallery-section {
    margin-top: 45px;
}

.gallery-section h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    color: var(--color-brand-yellow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.gallery-item {
    aspect-ratio: 3 / 2;
    background-color: #171617;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Enlaces a Sponsors */
.sponsor-link {
    color: var(--color-brand-yellow);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 1px dotted var(--color-brand-yellow);
    padding-bottom: 1px;
}

.sponsor-link:hover {
    color: #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
}

/* ==========================================================================
   FOOTER - INSTAGRAM LINK Y EMAIL TEXTO SELECCIONABLE PARA COPIAR
   ========================================================================== */

.footer {
    padding: 32px 20px;
    text-align: center;
    font-size: 13.5px;
    margin-top: auto;
    z-index: 10;
}

.footer a {
    color: var(--color-text);
    text-decoration: none;
    font-style: normal; /* Sin itálica */
    font-weight: 400;
    padding: 4px 6px;
    transition: var(--transition-smooth);
}

.footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer .email-text {
    color: var(--color-text);
    font-style: normal; /* Sin itálica */
    font-weight: 400;
    user-select: all; /* Fácil de copiar y pegar */
    padding: 4px 6px;
    cursor: text;
}

.footer span.divider {
    margin: 0 10px;
    color: var(--color-divider);
    user-select: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 20px 20px 10px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .nav a {
        font-size: 13.5px;
        padding: 8px 10px;
    }

    .nav-divider {
        display: none;
    }

    .home-content {
        padding-top: 15px;
        gap: 22px;
    }

    .main-logo {
        width: min(84vw, 360px);
    }

    .btn-cta {
        padding: 12px 28px;
        font-size: 14px;
    }

    .content-container {
        padding: 20px 18px 40px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer {
        padding: 24px 15px;
        font-size: 12.5px;
    }

    .footer span.divider {
        margin: 0 6px;
    }
}
