/* ==========================================================================
   B14 — Landing
   Paleta plana, sin sombras ni gradientes. Bootstrap 5 como base.
   ========================================================================== */

:root {
    --blue: #351ED5;
    --blue-dark: #2518AD;
    --light: #F4F4F4;
    --grey: #B6B6B6;
    --grey-soft: #D6D6D6;
    --grey-line: #707070;

    --container-max: 1440px;
    --header-gap: 3.5vw;
}

/* Contenedor a la medida del diseno original (1473px sobre 1920px) */
@media (min-width: 1400px) {
    .container {
        max-width: var(--container-max);
    }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body.front {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--light);
    color: var(--blue);
    /* Sin overflow-x en body: rompe el position fixed de ScrollSmoother */
}

#smooth-content {
    overflow: hidden;
}

body.front img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

/* El relleno es un pseudo-elemento que crece de izquierda a derecha */
.btn-flat,
.btn-outline {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: color .35s ease;
    z-index: 0;
}

.btn-flat::before,
.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--blue-dark);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s ease;
    z-index: -1;
}

.btn-flat:hover::before,
.btn-flat:focus-visible::before,
.btn-outline:hover::before,
.btn-outline:focus-visible::before {
    transform: scaleX(1);
}

.btn-flat {
    background-color: var(--grey);
    color: var(--blue);
    font-size: 15px;
    padding: 14px 26px;
    border: 0;
}

.btn-flat:hover,
.btn-flat:focus-visible {
    color: #fff;
}

.btn-flat--lg {
    font-size: 22px;
    padding: 26px 44px;
}

.btn-outline {
    background-color: transparent;
    color: var(--grey);
    font-size: 14px;
    padding: 16px 30px;
    border: 1px solid var(--grey-line);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Parrafos
   -------------------------------------------------------------------------- */

.copy {
    font-size: clamp(20px, 1.72vw, 33px);
    line-height: 1.62;
    font-weight: 400;
    margin: 0;
}

.copy strong {
    font-weight: 700;
}

/* Cada linea del parrafo, con el corte que marca el diseno */
.copy__line {
    display: block;
    will-change: transform, opacity;
}

/* La entrada del hero la controla GSAP por completo, sin animaciones CSS */

.copy--blue {
    color: var(--blue);
}

.copy--light {
    color: var(--grey-soft);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 2vw var(--header-gap) 0;
}

.site-header__logo img {
    width: 52px;
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

/* El hero se fija con ScrollTrigger pin y la seccion siguiente lo cubre.
   No se usa position sticky: no funciona dentro del wrapper transformado
   que crea ScrollSmoother */
.hero {
    position: relative;
    z-index: 0;
    background-color: var(--blue);
    min-height: 52vw;
    display: flex;
    align-items: center;
    height: 100vh;
}

/* Todo lo que viene despues pasa por encima del hero */
.marquee-section,
.bars-section,
.wordmark-section,
.statement-section,
.video-section,
.site-footer {
    position: relative;
    z-index: 1;
}

/* Texto arriba y carril debajo, en columna */
.hero__scroll {
    position: absolute;
    left: var(--header-gap);
    bottom: 3vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hero__scroll-label {
    color: var(--grey-soft);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: opacity .25s ease;
}

.hero__scroll:hover .hero__scroll-label {
    opacity: .6;
}

.hero__scroll-track {
    position: relative;
    display: block;
    width: 1px;
    height: 44px;
    background-color: rgba(214, 214, 214, .3);
    overflow: hidden;
}

.hero__scroll-track i {
    position: absolute;
    inset: 0;
    display: block;
    background-color: var(--grey-soft);
}

@media (max-width: 767.98px) {
    .hero__scroll {
        bottom: 8vw;
    }

    .hero__scroll-track {
        height: 32px;
    }
}

/* Selector con la clase del padre para ganarle al max-width de body.front img,
   que si no recorta la B al ancho de la columna */
.hero__art-wrap {
    display: block;
}

.hero .hero__art {
    width: 30vw;
    max-width: 730px;
    display: block;
    transform-origin: center center;
}

/* --------------------------------------------------------------------------
   2 y 6. Marquee
   -------------------------------------------------------------------------- */

.marquee {
    overflow: hidden;
    width: 100%;
}

.marquee__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.marquee__item {
    display: block;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: 1;
}

.marquee--xl .marquee__item {
    font-size: 11.4vw;
    color: var(--blue);
}

.marquee--md .marquee__item {
    font-size: 5.15vw;
    color: var(--grey-soft);
}

.marquee-section--light {
    background-color: var(--light);
    padding: 5vw 0 0;
}

/* --------------------------------------------------------------------------
   3. Barras verticales
   -------------------------------------------------------------------------- */

.bars-section {
    background-color: var(--light);
    padding: 5.5vw 0 0;
}

.bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 92vw;
    max-height: 1770px;
}

.bars__item {
    position: relative;
    width: .73vw;
    max-width: 14px;
    min-width: 5px;
    height: 100%;
}

/* Solo la linea se escala: el punto queda fuera del transform */
.bars__line {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--blue);
    transform: scaleY(0);
    transform-origin: top center;
}

/* La barra del punto se corta antes para formar el signo */
.bars__item--dot .bars__line {
    height: 93%;
}

.bars__dot {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 5.9vw;
    max-width: 114px;
    aspect-ratio: 1 / 1;
    background-color: var(--blue);
    border-radius: 50%;
    /* translate centra y transform queda libre para que GSAP anime la escala */
    translate: -50% 0;
    transform: scale(0);
    transform-origin: center center;
}

/* --------------------------------------------------------------------------
   4. Be Fourteen
   -------------------------------------------------------------------------- */

.wordmark-section {
    background-color: var(--light);
    padding: 4vw 0 9vw;
}

.wordmark {
    display: block;
    width: 100%;
    max-width: 1530px;
}

.wordmark-section .copy {
    margin-top: 5vw;
}

/* --------------------------------------------------------------------------
   5. Finishing well
   -------------------------------------------------------------------------- */

.statement-section {
    background-color: var(--blue);
    padding: 7vw 0;
}

.statement-section__question {
    color: var(--grey-soft);
    font-size: clamp(20px, 1.72vw, 33px);
    font-weight: 700;
    text-transform: uppercase;
    margin: 2.6vw 0 0;
}

.statement-section .btn-flat {
    margin-top: 3.2vw;
}

/* --------------------------------------------------------------------------
   6. Video
   -------------------------------------------------------------------------- */

.video-section {
    position: relative;
    background-color: var(--blue-dark);
    min-height: 56.2vw;
    display: flex;
    /* En el diseno el texto no va centrado: se apoya en el tercio inferior */
    align-items: flex-end;
    overflow: hidden;
}

.video-section__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* El blanco y negro viene codificado en el archivo, sin filtro en runtime */
}

.video-section__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--blue-dark);
    opacity: .82;
}

.video-section__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 8.7vw;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background-color: var(--blue);
    padding: 6vw 0 4vw;
    border-top: 5px solid var(--light);
}

.site-footer__wordmark {
    display: block;
    width: 100%;
    max-width: 1530px;
}

.site-footer__bottom {
    margin-top: 2vw;
    padding-top: 2.4vw;
    border-top: 1px solid var(--grey-line);
}

.site-footer__logo {
    width: 195px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .hero {
        min-height: 78vw;
        padding-top: 20vw;
    }

    .marquee--xl .marquee__item {
        font-size: 15vw;
    }

    .marquee--md .marquee__item {
        font-size: 9vw;
    }

    .bars {
        height: 120vw;
    }

    .statement-section,
    .video-section {
        padding: 14vw 0;
    }

    .video-section {
        min-height: 90vw;
    }
}

@media (max-width: 767.98px) {
    .copy,
    .statement-section__question {
        font-size: 18px;
    }

    /* En movil el texto fluye libre, sin los cortes del diseno desktop */
    .copy__line {
        display: inline;
    }

    .btn-flat--lg {
        font-size: 17px;
        padding: 18px 30px;
    }

    .bars {
        height: 150vw;
    }

    .bars__item {
        width: 4px;
        min-width: 4px;
    }

    .bars__dot {
        width: 34px;
    }

    .site-footer__logo {
        width: 130px;
    }

    .btn-outline {
        font-size: 12px;
        padding: 12px 18px;
    }
}
