/* --- VARIABLES DE COLOR --- */
:root {
    --c-orange: #C26E55;
    --c-peach: #E8AF9C;
    --c-black-dark: #0A0706;
    --c-brown-dark: #2C1E1A;
    --c-cream: #F2EBE5;
}

/* --- IMPORTACIÓN DE FUENTES EXACTAS --- */
@font-face { font-family: 'Founders Grotesk'; src: url('../assets/fonts/FoundersGrotesk-Medium.otf') format('opentype'); font-weight: 500; }
@font-face { font-family: 'Neue Haas Grotesk'; src: url('../assets/fonts/NeueHaasDisplayMediu.ttf') format('truetype'); font-weight: 500; }
@font-face { font-family: 'Pitch Sans'; src: url('../assets/fonts/PitchSans-SemiBold.ttf') format('truetype'); font-weight: 600; }

/* --- RESET Y ESTILOS GLOBALES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--c-black-dark); color: var(--c-cream);
    font-family: 'Founders Grotesk', sans-serif; overflow-x: hidden;
}
.fullscreen { height: 100vh; width: 100vw; position: relative; }
.bg-video { width: 100%; height: 100%; object-fit: cover; }

/* --- S2 y S3: MANIFIESTO Y CINTAS ANIDADAS (RECTÁNGULOS REDONDEADOS) --- */
#s2-s3 { background-color: var(--c-black-dark); text-align: center; padding-top: 10vh; }
.s2-content { margin-bottom: 120px; }

/* Logo S2 más grande y centrado */
.main-logo-img { max-width: 90%; width: 450px; margin-bottom: 50px; display: block; margin-left: auto; margin-right: auto; }

/* Texto S2 proporcionado a tu referencia (más grande y bold) */
.s2-text p { font-size: 26px; line-height: 1.8; color: var(--c-peach); font-weight: 600; }

/* Contenedor un poco más ancho para albergar las cintas rectangulares */
.s3-cintas-container { width: 90%; max-width: 1000px; margin: 0 auto; }

/* LA FORMA: Un borde redondeado fijo crea esquinas curvas pero techo plano (Rectángulo redondeado) */
.cinta { border-radius: 120px 120px 0 0; margin: 0 auto; }

/* Las cintas anidadas con más margen a los lados (120px menos de ancho = 60px de borde lateral por lado) */
.white-cinta { background-color: var(--c-cream); color: var(--c-black-dark); width: 100%; }
.orange-cinta { background-color: var(--c-orange); color: var(--c-cream); width: calc(100% - 120px); }
.brown-cinta { background-color: var(--c-brown-dark); color: var(--c-orange); width: calc(100% - 120px); }

/* Espaciados y Textos internos de S3 más grandes y bold */
.cinta-content { padding: 100px 50px 80px 50px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cinta-content p { font-size: 24px; line-height: 1.5; font-weight: 600; max-width: 700px; }
.pb-extra { padding-bottom: 180px; }

/* Íconos más grandes (80px) de acuerdo a la referencia */
.spin-icon { width: 80px; margin-bottom: 30px; animation: spin 5s linear infinite; }
.static-icon { width: 80px; margin-bottom: 30px; }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Ajuste móvil para S3 */
@media (max-width: 768px) {
    .cinta { border-radius: 60px 60px 0 0; }
    .s2-text p { font-size: 20px; }
    .cinta-content p { font-size: 18px; }
    .orange-cinta, .brown-cinta { width: calc(100% - 40px); }
    .cinta-content { padding: 60px 20px 40px 20px; }
}

/* --- S4: EL REEL --- */
#s4 { 
    background-color: var(--c-black-dark); 
    cursor: pointer; 
    position: relative; 
    width: 100vw; 
    height: 100vh; 
}

#s4-overlay {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-color: var(--c-black-dark); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; /* Esto permite que el clic pase directo al video */
}

.play-button-container { 
    text-align: center; 
    color: var(--c-cream); 
    transition: transform 0.4s ease; 
}

/* El texto recupera su fuente y tamaño original */
.play-text { 
    font-family: 'Neue Haas Grotesk', sans-serif; 
    font-size: 48px; 
    color: var(--c-cream);
}

.play-icon { 
    font-size: 30px; 
    display: block; 
    margin-top: 10px; 
}

#reel-video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    cursor: pointer;
}

/* --- S5: LLUVIA DE LOGOS (FLUIDO E INFINITO) --- */
#s5 {
    height: 100vh; position: relative; background-color: var(--c-brown-dark);
    display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden;
}

.logos-rain-container {
    position: absolute; top: 0; width: 100vw; height: 100%;
    display: flex; justify-content: space-between; opacity: 0.2;
    mask-image: linear-gradient(to bottom, transparent 5%, black 20%, black 80%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 20%, black 80%, transparent 95%);
}

.rain-track { 
    display: flex; flex-direction: column; width: 80px; 
    /* El truco: movemos la columna hacia abajo y la hacemos infinita */
    animation: moveLogos linear infinite; 
}

.rain-track img { width: 100%; margin-bottom: 60px; display: block; }

/* Velocidades individuales */
.track-1 { animation-duration: 25s; } .track-2 { animation-duration: 32s; } 
.track-3 { animation-duration: 22s; } .track-4 { animation-duration: 29s; }
.track-5 { animation-duration: 35s; } .track-6 { animation-duration: 26s; }
.track-7 { animation-duration: 30s; } .track-8 { animation-duration: 24s; }
.track-9 { animation-duration: 27s; } .track-10 { animation-duration: 33s; }
.track-11 { animation-duration: 25s; } .track-12 { animation-duration: 29s; }
.track-13 { animation-duration: 26s; }

@keyframes moveLogos {
    /* Movemos desde 0 hasta el negativo de la altura del bloque duplicado */
    from { transform: translateY(-50%); }
    to { transform: translateY(0%); }
}

.s5-title-container { position: relative; z-index: 10; text-align: center; width: 80%; max-width: 900px; margin-top: 20vh; }
.s5-title { font-family: 'Founders Grotesk'; font-size: 48px; color: var(--c-peach); margin-bottom: 20px; }
.s5-subtitle { font-family: 'Founders Grotesk'; font-size: 20px; color: var(--c-cream); font-weight: 500; }

/* --- S6: FOOTER --- */
#s6a { height: 618px; position: relative; }
.en-produccion-text {
    position: absolute; right: 10%; top: 50%; transform: translateY(-50%);
    font-family: 'Neue Haas Grotesk', sans-serif; font-size: 24px; color: var(--c-cream); letter-spacing: 2px;
}

#s6b {
    background-color: var(--c-black-dark); padding: 80px 50px;
    display: flex; justify-content: space-between; align-items: flex-end;
}
.footer-content { font-family: 'Pitch Sans', sans-serif; font-size: 14px; color: var(--c-peach); line-height: 2; }
.footer-logo { width: 60px; margin-bottom: 20px; }

@media (max-width: 768px) {
    #s6b { flex-direction: column-reverse; align-items: flex-start; padding: 40px 30px; }
    .footer-logo { margin-bottom: 40px; margin-top: 20px; }
    .en-produccion-text { right: 5%; font-size: 18px; }
}
/* Ocultar barra de controles nativa pero mantener la funcionalidad */
#reel-video::-webkit-media-controls {
    display: none !important;
}

@media (max-width: 768px) {
    /* Eliminamos el height: 100vh para que la sección no sea forzada a pantalla completa */
    #s1, #s4, #s6a {
        height: auto !important; 
    }

    .bg-video {
        width: 100% !important;
        height: auto !important; /* El alto se ajusta al contenido para no recortar */
        object-fit: contain !important; /* Mantiene la proporción del video horizontal */
        position: relative !important;  /* Sale del flujo de "fondo" para empujar el contenido */
    }
}

/* --- AJUSTES DE ESCALA PARA MÓVILES (S2, S3, S5, S6B) --- */
@media (max-width: 768px) {
    /* S2: Reducción logo 50% y texto 20% */
    .main-logo-img { 
        width: 225px !important; /* Original 450px * 0.5 = 225px */
    }
    .s2-text p { 
        font-size: 14px !important; 
    }

    /* S5: Reducción título 50% y subtítulo 30% */
    .s5-title { 
        font-size: 24px !important; /* Original 48px * 0.5 = 24px */
    }
    .s5-subtitle { 
        font-size: 14px !important; /* Original 20px * 0.7 = 14px */
    }

    /* S6B: Reducción texto 30% y logo 50% */
    .footer-content p { 
        font-size: 9.8px !important; /* Original 14px * 0.7 = 9.8px */
    }
    .footer-logo { 
        width: 30px !important; /* Original 60px * 0.5 = 30px */
    }
}

/* --- AJUSTE: REDUCCIÓN DE LOGO S2 EN ESCRITORIO --- */
@media (min-width: 769px) {
    .main-logo-img { 
        width: 315px !important; /* 450px * 0.7 = 315px */
    }
}
