/* --- BANNER MASTER CSS - DRA. ANDREA CARDONA --- */
/* Este archivo contiene la lógica visual "blindada" del banner. */

@font-face {
    font-family: 'Nexa';
    src: url('fonts/Nexa-Heavy.ttf') format('truetype');
    font-weight: 900;
}

:root {
    --bg-color: #58565f;
    --accent-cyan: #16c4e0;

    /* Gradiente de Cromo Ultra-Premium */
    --chrome-gradient: linear-gradient(to bottom,
            #fff 0%,
            #f0f0f0 25%,
            #dcdcdc 50%,
            #fff 50.5%,
            #d3d3d3 55%,
            #888 85%,
            #666 100%);

    /* VARIABLES DE AJUSTE (Se pueden sobreescribir en cada HTML) */
    --model-h-pc: 56.5vw;
    /* Altura modelo PC */
    --model-x-pc: -4vw;
    /* Margen horizontal PC */
    --model-h-mob: 145vw;
    /* Altura modelo Móvil */
    --model-x-mob: -4vw;
    /* Margen horizontal Móvil */
}

/* RESET SECCIONAL */
.banner-hero * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.banner-hero {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #7F6963 0%, #836D65 100%);
    font-family: 'Nexa', sans-serif;
    color: white;
}

/* CAPA DE SOMBRA ATMOSFÉRICA (Vignette) - Asegura cobertura al 100% */
.banner-hero::after {
    content: '';
    position: absolute;
    top: 00;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
    z-index: 2;
    pointer-events: none;
}

/* CAPA DE ILUMINACIÓN DINÁMICA (ORBES) */
.orb-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    top: -10%;
    left: -10%;
    opacity: 0.25;
    animation: orbFloat1 15s infinite alternate ease-in-out;
}

.orb-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
    opacity: 0.15;
    animation: orbFloat2 18s infinite alternate ease-in-out;
    animation-delay: -2s;
}

@keyframes orbFloat1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(25vw, 20vh) scale(1.2);
    }

    100% {
        transform: translate(40vw, -10vh) scale(1);
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0, 0) scale(1.1);
    }

    50% {
        transform: translate(-25vw, -30vh) scale(0.9);
    }

    100% {
        transform: translate(-15vw, -45vh) scale(1.1);
    }
}

/* CONTENIDO PRINCIPAL */
.banner-content {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    max-width: 1920px;
    padding: 0 3%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.composition-wrapper {
    container-type: size;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: 56.5vw;
    max-height: 90vh;
    position: relative;
}

/* MODELO */
.model-side {
    position: relative;
    width: var(--model-width, 19%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    isolation: isolate;
}

.model-img {
    display: block;
    height: var(--model-h-pc);
    width: auto;
    max-width: none;
    max-height: 90vh;
    margin-right: var(--model-x-pc);
}

/* TEXTOS */
.text-side {
    width: 70cqh;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oferta-tag {
    font-size: 4.2cqh;
    line-height: 1;
    letter-spacing: 0.1cqw;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.chrome-title {
    font-size: 6.8cqh;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.85;
    background: var(--chrome-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* filter: url(#ultra-3d-chrome); -> MOVED TO HTML LOCAL STYLE TO PREVENT CORS ERROR */
    position: relative;
    margin: 0.8cqh 0;
    text-shadow: 0 1cqw 2cqw rgba(0, 0, 0, 0.5);
    width: 100%;
}

.chrome-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 10s infinite linear;
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* DESTELLOS CIRCULARES SENSIBLES (ESTILO JOYA) */
.chrome-glint {
    position: absolute;
    width: 0.6cqw;
    height: 0.6cqw;
    background: white;
    border-radius: 50%;
    filter: blur(2px);
    box-shadow: 0 0 10px white, 0 0 20px white;
    opacity: 0;
    z-index: 100;
    pointer-events: none;
    animation: textGlint var(--dur) infinite ease-in-out;
    animation-delay: var(--del);
}

@keyframes textGlint {

    0%,
    20%,
    80%,
    100% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 0.75;
        transform: scale(1);
        box-shadow: 0 0 10px white, 0 0 18px white;
    }
}

.g1 {
    top: 12%;
    left: 8%;
    --dur: 3s;
    --del: -1s;
}

.g2 {
    top: 68%;
    left: 22%;
    --dur: 4.5s;
    --del: -2.5s;
}

.g3 {
    top: 25%;
    left: 45%;
    --dur: 3.5s;
    --del: -0.5s;
}

.g4 {
    top: 75%;
    left: 62%;
    --dur: 5s;
    --del: -3.2s;
}

.g5 {
    top: 15%;
    left: 88%;
    --dur: 4s;
    --del: -1.8s;
}

.g6 {
    top: 55%;
    left: 15%;
    --dur: 3.8s;
    --del: -4s;
}

.g7 {
    top: 40%;
    left: 75%;
    --dur: 5.5s;
    --del: -1.2s;
}

.g8 {
    top: 5%;
    left: 35%;
    --dur: 4.2s;
    --del: -2.1s;
}

/* FRANJA CIAN DE MARQUESINA */
.cyan-bar {
    position: relative;
    background-color: var(--accent-cyan);
    padding: 0.8vh 0;
    width: 120vw;

    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    width: max-content;
    gap: 10vw;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.cyan-bar span {
    font-size: 3.7cqh;
    font-weight: 900;
    letter-spacing: 0.1cqw;
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
}

/* CAJA DE VIDRIO OPACO (Glassmorphism) */
.glass-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5cqw;
    padding: 2.5cqh 2.2cqh;
    width: 69cqh;
    box-shadow: 0 1.5cqw 4cqw rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1cqw;
    margin-top: 1.5cqw;
}

.benefit-sub {
    font-size: 2.7cqh;
    font-weight: 400;
    color: white;
    line-height: 1.2;
}

/* BOTÓN CTA PREMIUM */
.cta-button {
    display: inline-block;
    background-color: var(--accent-cyan);
    color: white;
    text-decoration: none;
    font-size: 3.5cqh;
    font-weight: 900;
    padding: 1.2cqh 3cqh;
    text-align: center;
    width: 69cqh;
    border-radius: 4cqw;
    margin-top: 1.5cqw;
    text-transform: uppercase;
    letter-spacing: 0.1cqw;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 1cqw 2cqw rgba(22, 196, 224, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: white;
    color: var(--accent-cyan);
    box-shadow: 0 15px 40px rgba(22, 196, 224, 0.6);
}

/* LOGO */
.logo-container {
    position: absolute;
    bottom: 2vw;
    right: 2vw;
    z-index: 20;
    width: 14vw;
}

.logo-img {
    width: 100%;
    height: auto;
    filter: brightness(1.1) drop-shadow(0 0.5vw 1vw rgba(0, 0, 0, 0.5));
}

/* RESPONSIVO MÓVIL */
@media (max-width: 900px) {
    .banner-hero {
        align-items: flex-start;
        /* Alineamos al inicio para que no quede muy abajo */
    }

    .banner-content {
        padding: 0 5%;
        align-items: flex-start;
        /* Nueva alineación para móvil */
    }

    .chrome-glint {
        width: 1.8cqw;
        height: 1.8cqw;
        filter: blur(1px);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    }

    .composition-wrapper {
        height: 50vh;
        max-height: 90vh;
        gap: 0;
    }

    .model-side {
        width: 19%;
        transform: translateX(-50%);
    }

    .model-img {
        height: var(--model-h-mob);
        margin-right: var(--model-x-mob);
    }

    .oferta-tag {
        font-size: 5.2cqh;
        text-align: center;
    }

    .chrome-title {
        font-size: 6.8cqh;
        margin-bottom: 3cqh;
        text-align: center;
    }

    .cyan-bar {
        padding: 0.6vh 0;
        margin-top: 3cqh;
    }

    .cyan-bar span {
        font-size: 1.5vh;
    }

    .glass-box {
        padding: 2.5cqh 2.2cqh;
        width: 69cqh;
        margin-top: 9cqh;
    }

    .benefit-sub {
        font-size: 6.7cqh;
        text-align: center;
    }

    .cta-button {
        font-size: 5.5cqh;
        padding: 1.2cqh 3cqh;
        width: 69cqh;
        margin-top: 9cqh;
    }

    .marquee-inner {
        animation: marquee 25s linear infinite;
    }
}