/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* --- PLYR CUSTOMIZATION (White Theme) --- */
:root {
    --plyr-color-main: #fff;
    --plyr-video-control-color: #fff;
    --plyr-video-control-background-hover: rgba(255, 255, 255, 0.1);
}

.plyr--video {
    border-radius: 8px;
    overflow: hidden;
}

.plyr__control--overlaid {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.3);
}

.plyr__control--overlaid:hover {
    background: #fff;
    color: #000;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    
    background: rgba(0, 0, 0, 0.0); 
    padding: 1rem 5%;
    height: 70px;
    display: flex;
    align-items: center;

    /* OPTIMIZACIÓN IOS: Activa aceleración de hardware */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    
    transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease; 
}

/* ESTADO SCROLLED (Configuración base para Android/PC) */
nav.scrolled {
    /* Tu valor original intacto para Android (0.1) */
    background: rgba(0, 0, 0, 0.1); 
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- TRUCO ESPECIAL SOLO PARA IPHONE (iOS) --- */
/* Esta regla solo la leen los iPhone/iPad */
@supports (-webkit-touch-callout: none) {
    nav.scrolled {
        /* En iPhone el 0.1 se ve invisible. Lo subimos a 0.85 SOLO aquí */
        background: rgba(0, 0, 0, 0.85) !important;
    }
}

.nav-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.0em;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    flex: 1;
    justify-content: flex-end;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active-link::after { width: 100%; }

/* LANGUAGE SWITCHER */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 2rem;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    border-color: transparent;
    color: #000;
}

/* HERO SECTION */
.hero { position: relative; }

.hero-video-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%; 
    height: calc(100vh - 70px); 
    margin-top: 70px;
    padding-top: 0; 
}

.hero-video-container {
    position: relative; 
    top: 0; left: 0;
    width: 100%; height: 100%; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto; height: auto;
    object-fit: cover; 
    z-index: 0;
}

.hero-text-section {
    min-height: auto; 
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5rem 5%;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 35%, rgba(0, 0, 0, 0.9) 50%);
    background-size: 120vw 120vh; 
    background-repeat: no-repeat;
    animation: spotlight-move 12s linear infinite alternate; 
}

@keyframes spotlight-move {
    0% { background-position: 10% 10%; }
    50% { background-position: 90% 50%; }
    100% { background-position: 30% 90%; }
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 50, 200, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 2; 
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    max-width: 1400px;
    text-align: center;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    z-index: 3;
}

.hero-content.visible { opacity: 1; transform: translateY(0); }

/* SCROLL REVEAL */
.scroll-reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

.hero h1, .hero p {
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}

.hero h1 {
    font-size: clamp(1.75rem, 5.6vw, 4.2rem); 
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(0.8855rem, 1.61vw, 1.2075rem); 
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* HERO VIDEO CONTROLS */
.mute-btn, .fullscreen-btn {
    position: absolute;
    bottom: 20px; 
    width: 31.5px; height: 31.5px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    z-index: 100;
    display: flex; 
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mute-btn svg, .fullscreen-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.mute-btn { right: 20px; }
.fullscreen-btn { right: 61.5px; }

.mute-btn:hover, .fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}
.mute-btn:active, .fullscreen-btn:active { transform: scale(0.95); }

/* SECTIONS COMMON */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.8rem); 
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}

/* PRODUCTIONS LIST */
.productions-list {
    padding: 4rem 5% 8rem 5%; 
    max-width: 1400px;
    margin: 0 auto;
}

.client-logo-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.client-logo-grid span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: #444;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 10px;
    text-align: center;
    flex-grow: 1;
}

/* GRID 1 COLUMNA */
.productions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* ANCHO VIDEO 70% + CENTRADO */
.production-item {
    width: 100%;
    max-width: 70%;
    margin: 0 auto;
}

/* ESTILOS TEXTO VIDEO */
.video-info {
    margin-bottom: 0.8rem;
    padding-left: 5px; 
}

.video-info h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.video-specs {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-transform: none; 
    -webkit-text-fill-color: #666;
    background: none;
}

/* Contenedor del video */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper .plyr {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.production-video { width: 100%; height: 100%; }

/* STORY SECTION (ABOUT) */
.story {
    position: relative; 
    padding: 8rem 5%;
    background: #000;
    overflow: hidden;
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
    z-index: 5;
    position: relative;
}

.story-text {
    font-size: clamp(0.8855rem, 1.61vw, 1.2075rem);
    line-height: 1.7;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}

.story-content h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem); 
    font-weight: 700;
    margin-top: 3rem; 
    margin-bottom: 1.5rem;
    color: #fff; 
    letter-spacing: -0.5px;
}

/* CTA SECTION (CONTACT) */
.cta {
    padding: 8rem 5% 4rem 5%;
    text-align: center;
    background: #000;
}

.cta h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem); 
    font-weight: 700; 
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 270px;
    width: 100%;
    margin: 2rem auto 0;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s, background 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #fff;
    outline: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.cta-button {
    padding: 0.8rem 2rem; 
    font-size: 1rem;
    background: linear-gradient(135deg, #555 0%, #333 100%);
    border: 1px solid #777; 
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover, .cta-button:active {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    transform: translateY(0); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* SUCCESS MESSAGE STYLES */
.success-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.success-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}

#form-error-msg {
    color: #ff8888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
    font-weight: 500;
}

.contact-email-container {
    margin-top: 2rem;
    text-align: center;
}

.contact-email-text {
    font-size: 1rem;
    color: #999;
    font-weight: 500;
}

/* FOOTER & SOCIAL ICONS FIX */
footer {
    padding: 1.5rem 5% 3rem 5%;
    background: #000;
    border-top: 1px solid transparent; 
    background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100% 1px;
    text-align: center;
    color: #666;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem; 
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #999;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 50px; 
    height: 50px;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

footer p { padding-top: 15px; }

/* MOBILE MENU & MEDIA QUERIES */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    display: none; 
}

.mobile-menu.active { right: 0; }
.mobile-menu .nav-links { display: flex; flex-direction: column; gap: 2rem; }
.mobile-menu .nav-links a { font-size: 1.2rem; }

.menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active { opacity: 1; visibility: visible; }

/* --- SECCIÓN MÓVIL (ACTUALIZADA: BOTONES MÁS CHICOS) --- */
@media (max-width: 768px) {
    .hero-video-wrapper { 
        height: auto; 
        padding-top: 56.25%; 
        margin-top: 90px;
    }
    
    .hero { 
        min-height: auto; 
    }
    
    .hero-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Grilla de producciones */
    .productions-grid { grid-template-columns: 1fr; }
    .production-item { max-width: 100%; }

    /* Navegación */
    .nav-links { display: none; }

    /* Botones de idioma */
    .lang-switcher {
        display: flex !important;
        margin-left: auto;
        margin-right: 15px;
        gap: 5px;
    }

    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .mobile-menu-btn, .mobile-menu { display: block; }
    
    /* Textos */
    .section-title { font-size: 2rem; }
    .story-text { font-size: 1.1rem; }
    
    /* -- BOTONES HERO: REDUCIDOS UN 30% (7vw) -- */
    .mute-btn, .fullscreen-btn { 
        width: 7vw;         /* Antes 10vw */
        height: 7vw;        /* Antes 10vw */
        font-size: 3.5vw;   /* Reducido proporcionalmente */
        bottom: 4vw; 
    }
    
    .mute-btn { right: 4vw; }
    
    /* Recalculamos la posición para que el botón de fullscreen no se pegue ni se aleje de más */
    /* 4vw (borde) + 7vw (ancho botón mute) + 3vw (separación) */
    .fullscreen-btn { right: calc(4vw + 7vw + 3vw); }
}