/* =========================================================
   BLOQUE 03 — VIDEO MANIFESTO
   ID: adv-b03-video-manifesto
   ========================================================= */

#adv-b03-video-manifesto {
    --adv-b03-black: #050505;
    --adv-b03-white: #ffffff;
    --adv-b03-text: #111111;
    --adv-b03-gold: #c1a168;
    --adv-b03-soft-gold: #ebd89d;

    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--adv-b03-white);
}


/* =========================================================
   ESTRUCTURA PRINCIPAL
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 42%)
        minmax(0, 58%);

    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   LATERAL BLANCO
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    padding:
        clamp(100px, 10vw, 180px)
        clamp(42px, 6vw, 110px);

    background: var(--adv-b03-white);
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__content-inner {
    width: min(100%, 620px);
}


/* =========================================================
   ETIQUETA SUPERIOR
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 clamp(34px, 4vw, 58px);

    color: rgba(17, 17, 17, 0.62);

    font-family:
        "Manrope",
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__eyebrow-line {
    width: 42px;
    height: 1px;
    background: var(--adv-b03-gold);
    transform-origin: left center;
}


/* =========================================================
   TÍTULO SANGBLEU
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__title {
    margin: 0;

    color: var(--adv-b03-text);

    font-family:
        "SangBleu Empire",
        "Times New Roman",
        serif;

    font-size: clamp(52px, 5.15vw, 98px);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.045em;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__title-mask {
    display: block;
    padding: 0 0 0.08em;
    overflow: hidden;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__title-line {
    display: block;
    will-change: transform, opacity;
}

#adv-b03-video-manifesto
.adv-b03-video-manifesto__title-line--gold {
    color: var(--adv-b03-gold);
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__description {
    max-width: 520px;
    margin: clamp(34px, 4vw, 54px) 0 0;

    color: rgba(17, 17, 17, 0.72);

    font-family:
        "Manrope",
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.01em;
}


/* =========================================================
   DURACIÓN
   ========================================================= */
#adv-b03-video-manifesto .adv-b03-video-manifesto__duration {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(100%, 420px);
    margin-top: clamp(46px, 5vw, 74px);
    padding-top: 13px;

    overflow: hidden;

    color: rgba(17, 17, 17, 0.56);

    font-family:
        "Manrope",
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#adv-b03-video-manifesto
.adv-b03-video-manifesto__duration::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 1px;

    background: rgba(17, 17, 17, 0.2);
}

#adv-b03-video-manifesto
.adv-b03-video-manifesto__duration::after {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 2px;

    background: linear-gradient(
        90deg,
        var(--adv-b03-gold),
        #ebd89d
    );

    box-shadow:
        0 0 7px rgba(235, 216, 157, 0.75),
        0 0 14px rgba(193, 161, 104, 0.3);

    transform: scaleX(var(--adv-b03-progress, 0));
    transform-origin: left center;

    transition: transform 0.18s linear;
    will-change: transform;
}




/* =========================================================
   ESCENARIO NEGRO
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__stage {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 100vh;

    padding:
        clamp(70px, 7vw, 120px)
        clamp(38px, 6vw, 100px);

    overflow: hidden;

    background: var(--adv-b03-black);

   
       border-radius: 0;
    will-change: clip-path, transform;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__boundary {
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 0;

    width: 1px;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--adv-b03-gold) 20%,
        var(--adv-b03-soft-gold) 50%,
        var(--adv-b03-gold) 80%,
        transparent
    );

    transform-origin: top center;
}


/* =========================================================
   MARCO 4:5 — VIDEO E IMAGEN
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__frame {
    position: relative;

    width: min(72%, 540px);
    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #000000;
    border: 1px solid rgba(193, 161, 104, 0.42);
    border-radius: clamp(18px, 1.7vw, 28px);

    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.025);

    will-change: transform, opacity;
}


/* =========================================================
   VIMEO
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__video {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: block;

    width: 100%;
    height: 100%;

    border: 0;
    background: #000000;

    transition:
        opacity 0.85s ease,
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}


/* =========================================================
   RETRATO FINAL
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__portrait {
    position: absolute;
    inset: 0;
    z-index: 2;

    visibility: hidden;
    opacity: 0;

    background: #000000;

    transition:
        visibility 0s linear 0.9s,
        opacity 0.9s ease;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__portrait img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__portrait-shade {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.12) 38%,
        transparent 62%
    );
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__identity {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    padding: clamp(24px, 3vw, 42px);

    color: #ffffff;

    opacity: 0;
    transform: translateY(24px);

    transition:
        opacity 0.8s ease 0.35s,
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__name {
    margin: 0;

    font-family:
        "SangBleu Empire",
        "Times New Roman",
        serif;

    font-size: clamp(29px, 2.6vw, 45px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__role {
    margin: 10px 0 0;

    color: var(--adv-b03-soft-gold);

    font-family:
        "Manrope",
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}


/* =========================================================
   ESTADO FINAL
   ========================================================= */

#adv-b03-video-manifesto.is-ended
.adv-b03-video-manifesto__video {
    opacity: 0;
    transform: scale(1.02);
}

#adv-b03-video-manifesto.is-ended
.adv-b03-video-manifesto__portrait {
    visibility: visible;
    opacity: 1;

    transition-delay: 0s;
}

#adv-b03-video-manifesto.is-ended
.adv-b03-video-manifesto__identity {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   BOTÓN DE SONIDO
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__sound {
    position: absolute;
    top: 22px;
    left: 50%;
    z-index: 4;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    min-height: 42px;
    padding: 0 18px;

    overflow: hidden;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;

    font-family:
        "Manrope",
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    cursor: pointer;

    transform: translateX(-50%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        opacity 0.4s ease;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__sound::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: -120%;

    width: 80%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(235, 216, 157, 0.34),
        transparent
    );

    transform: skewX(-18deg);
    transition: left 0.6s ease;
}

#adv-b03-video-manifesto
.adv-b03-video-manifesto__sound:hover::before {
    left: 140%;
}

#adv-b03-video-manifesto
.adv-b03-video-manifesto__sound:hover {
    color: var(--adv-b03-soft-gold);
    border-color: rgba(193, 161, 104, 0.75);
}

#adv-b03-video-manifesto
.adv-b03-video-manifesto__sound:disabled {
    opacity: 0.45;
    cursor: wait;
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__sound-icon {
    position: relative;
    z-index: 1;

    width: 8px;
    height: 12px;

    background: var(--adv-b03-soft-gold);
    border-radius: 8px 2px 2px 8px;

    transition: transform 0.3s ease;
}

#adv-b03-video-manifesto
.adv-b03-video-manifesto__sound:hover
.adv-b03-video-manifesto__sound-icon {
    transform: scale(1.14);
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__sound-label {
    position: relative;
    z-index: 1;
}

#adv-b03-video-manifesto.is-ended
.adv-b03-video-manifesto__sound {
    pointer-events: none;
    opacity: 0;
}


/* =========================================================
   LÍNEA DE PROGRESO
   ========================================================= */

#adv-b03-video-manifesto .adv-b03-video-manifesto__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;

    height: 2px;

    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

#adv-b03-video-manifesto .adv-b03-video-manifesto__progress-bar {
    display: block;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        var(--adv-b03-gold),
        var(--adv-b03-soft-gold)
    );

    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    #adv-b03-video-manifesto .adv-b03-video-manifesto__grid {
        grid-template-columns:
            minmax(0, 45%)
            minmax(0, 55%);
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__content {
        padding:
            100px
            clamp(30px, 4vw, 58px);
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__stage {
        padding:
            70px
            34px;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__frame {
        width: min(86%, 500px);
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {

    #adv-b03-video-manifesto .adv-b03-video-manifesto__grid {
        display: block;
        min-height: auto;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__content {
        min-height: auto;

        padding:
            100px
            24px
            84px;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__title {
        font-size: clamp(48px, 14vw, 72px);
        line-height: 0.96;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__description {
        max-width: 100%;
        margin-top: 30px;
        font-size: 14px;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__duration {
        margin-top: 44px;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__stage {
        min-height: auto;

        padding:
            70px
            20px;

        border-radius:
            30px
            30px
            0
            0;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__boundary {
        top: 0;
        right: 12%;
        bottom: auto;
        left: 12%;

        width: auto;
        height: 1px;

        background: linear-gradient(
            to right,
            transparent,
            var(--adv-b03-gold),
            transparent
        );

        transform-origin: left center;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__frame {
        width: min(100%, 480px);
        border-radius: 18px;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__sound {
        top: 16px;
        min-height: 40px;
        padding: 0 15px;
        font-size: 9px;
    }

    #adv-b03-video-manifesto .adv-b03-video-manifesto__identity {
        padding: 25px 22px;
    }
}


/* =========================================================
   ACCESIBILIDAD — MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #adv-b03-video-manifesto *,
    #adv-b03-video-manifesto *::before,
    #adv-b03-video-manifesto *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}