/* ==========================================================================
   HERO: Sección principal con video de fondo
   ========================================================================== */

/* Color corporativo único de Figma */
:root {
    --amarillo-corp: #FCE700;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 935px;
    /* Ajustado al alto del Frame 45 de Figma */
    background-color: #000;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 0;
        /* Quitamos el padding de la sección para evitar que empuje todo hacia abajo */
    }
}

/* Video Background */
.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

/* Layout Content */
.hero-landing-layout {
    position: relative;
    z-index: 2;
    height: 100%;
}

.pb-custom-hero {
    padding-bottom: 15rem !important;
    /* Aumentamos el padding inferior para subir el título */
}

@media (max-width: 1200px) {
    .pb-custom-hero {
        padding-bottom: 10rem !important;
    }
}

@media (max-width: 768px) {
    .pb-custom-hero {
        padding-bottom: 6rem !important;
    }
}

/* Logo Area */
.brand-icon-large {
    width: 110px;
    /* Ancho exacto de Figma (Capa 1) */
    height: 120px;
    flex: none;
    transition: width 0.3s ease;
}

@media (max-width: 991px) {
    .brand-icon-large {
        width: 80px;
        height: auto;
    }
}

@media (max-width: 575px) {
    .brand-icon-large {
        width: 60px;
        height: auto;
    }
}

/* Título Masivo - Modificado según correcciones de marketing */
.massive-title {
    font-family: 'Sora', sans-serif;
    /* Debe ser SORA y no Archivo */
    font-weight: 800;
    font-size: 112px;
    /* Tamaño del texto del Figma */
    line-height: 1.1;
    /* Evita el recorte de letras con tildes */
    letter-spacing: -0.05em;
    /* Reducción de espacio entre letras */
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 auto;
    max-width: 1342px;
    /* Para mantener el ancho del texto controlado */
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Adaptación responsiva para que no se rompa en pantallas más pequeñas */
@media (max-width: 1200px) {
    .massive-title {
        font-size: clamp(40px, 8vw, 90px);
        line-height: 1.1;
        /* Relajamos la interlínea en móvil para que sea legible */
        letter-spacing: -0.02em;
    }
}

.massive-title .text-yellow-corp,
.text-yellow-corp {
    display: inline;
    color: var(--amarillo-corp) !important;
    /* Mismo amarillo corporativo en todo */
}

.massive-title .hero-title-line {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
    white-space: normal;
    animation: hero-title-open-left 1.35s cubic-bezier(0.77, 0, 0.18, 1) both;
    will-change: clip-path, transform, opacity;
}

.massive-title .hero-title-line:nth-child(even) {
    animation-name: hero-title-open-right;
}

.massive-title .hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.massive-title .hero-title-line:nth-child(2) {
    animation-delay: 1.05s;
}

.massive-title .hero-title-line:nth-child(3) {
    animation-delay: 1.9s;
}

.massive-title .hero-title-line:nth-child(4) {
    animation-delay: 2.75s;
}

@keyframes hero-title-open-left {
    0% {
        clip-path: inset(-20% 100% -20% 0);
        opacity: 0;
        transform: translateX(-18px);
    }

    12% {
        opacity: 1;
    }

    100% {
        clip-path: inset(-20% -10% -20% -10%);
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hero-title-open-right {
    0% {
        clip-path: inset(-20% 0 -20% 100%);
        opacity: 0;
        transform: translateX(18px);
    }

    12% {
        opacity: 1;
    }

    100% {
        clip-path: inset(-20% -10% -20% -10%);
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .massive-title .hero-title-line {
        animation: none;
        clip-path: none;
        opacity: 1;
        transform: none;
    }
}

/* Menú Sticky */
.hero-bottom-nav {
    transition: all 0.3s ease;
}

.hero-mini-isotype {
    width: 32px;
    height: auto;
}

.hero-dot {
    width: 4px;
    height: 4px;
    background: #FFFFFF;
    border-radius: 50%;
}

.hero-link {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-link.active,
.hero-link:hover {
    color: var(--amarillo-corp) !important;
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 100svh;
    }

    .massive-title {
        font-size: clamp(34px, 12vw, 46px);
        line-height: 0.94;
    }
}
