/* =========================================================
   ADVANIZE INTERNATIONAL
   Main Stylesheet
   ========================================================= */


/* =========================================================
   1. TIPOGRAFÍAS
   ========================================================= */

@font-face {
    font-family: "SangBleu Empire";
    src: url("../fonts/SangBleuEmpire-Bold-WebXL.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Tenor Sans";
    src: url("../fonts/TenorSans-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

.adv-sangbleu {
    font-family: "SangBleu Empire", serif;
}

.adv-tenor {
    font-family: "Tenor Sans", sans-serif;
}

.adv-manrope {
    font-family: "Manrope", sans-serif;
}


/* =========================================================
   2. RESET GENERAL
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #050505;
    overflow: hidden;
}

body {
    color: #f4f1ea;
    font-family: "Manrope", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.advanize-home {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #050505;
}


/* =========================================================
   3. ESCENA PRINCIPAL
   ========================================================= */

.advanize-hero {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #050505;
}

.advanize-hero__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 50% 34%,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0.012) 25%,
            rgba(0, 0, 0, 0) 58%
        ),
        #050505;
}


/* =========================================================
   4. FONDO WEBGL
   ========================================================= */

.advanize-hero__webgl {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.advanize-hero__webgl canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.advanize-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.22) 0%,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.16) 100%
        );
}



/* =========================================================
   5. IDENTIDAD PRINCIPAL
   ========================================================= */

.advanize-hero__identity {
    position: absolute;
    top: clamp(30px, 4.5vh, 58px);
    left: 50%;
    z-index: 5;
    width: min(96vw, 1900px);
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.advanize-hero__eyebrow {
    margin: 0 0 clamp(8px, 1.1vh, 16px);
    color: #f3efe6;
    font-size: clamp(10px, 0.78vw, 14px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    transition:
        font-size 1s ease,
        letter-spacing 1s ease,
        opacity 1s ease;
}

.advanize-hero__title {
    margin: 0;
    color: #c1a168;
    font-size: clamp(78px, 10.7vw, 205px);
    font-weight: 700;
    line-height: 0.76;
    letter-spacing: -0.055em;
    white-space: nowrap;
}

.advanize-hero__title-text {
    display: inline-block;
    transform-origin: center center;
}

.advanize-hero__descriptor {
    margin: clamp(13px, 1.8vh, 24px) 0 0;
    color: rgba(244, 241, 234, 0.72);

    font-family: "Manrope", sans-serif;
    font-size: clamp(15px, 1vw, 18px);
    font-weight: 300;

    line-height: 1.45;
    letter-spacing: 0.01em;
    text-transform: none;
    transition:
        font-size 1s ease,
        letter-spacing 1s ease,
        opacity 1s ease;
}

/* Mensaje final más potente después de retirar las imágenes */
.advanize-hero.is-final .advanize-hero__eyebrow {
    font-size: clamp(17px, 1.35vw, 23px);
    letter-spacing: 0.24em;
}

.advanize-hero.is-final .advanize-hero__descriptor {
    font-size: clamp(18px, 1.45vw, 24px);
    letter-spacing: 0.015em;
}

/* =========================================================
   6. CONTENEDOR DE SECTORES
   Composición editorial libre
   ========================================================= */

.advanize-sectors {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 4;

    width: min(94vw, 1480px);
    height: clamp(340px, 48vh, 510px);

    transform: translateX(-50%);
}


/* =========================================================
   7. TARJETAS VERTICALES
   ========================================================= */

.advanize-sector {
    position: absolute;
    overflow: hidden;

    width: clamp(125px, 11vw, 180px);
    height: clamp(185px, 16vw, 260px);

    background: #090909;
    border: 1px solid rgba(193, 161, 104, 0.26);

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(255, 255, 255, 0.018);

    transform-origin: center center;
    will-change: transform, opacity, filter;
}

.advanize-sector::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 38%,
        rgba(0, 0, 0, 0.12) 58%,
        rgba(0, 0, 0, 0.82) 100%
    );
}

.advanize-sector__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.advanize-sector__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.015);
    will-change: transform, opacity, filter;
}

.advanize-sector__image--primary {
    z-index: 1;
    opacity: 1;
}

.advanize-sector__image--secondary {
    z-index: 2;
    opacity: 0;
}

.advanize-sector__title {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 5;

    display: inline-flex;
    align-items: center;

    max-width: calc(100% - 28px);
    margin: 0;
    padding: 8px 12px;

    color: #c1a168;
    background: rgba(5, 5, 5, 0.76);

    border: 1px solid rgba(193, 161, 104, 0.45);
    border-radius: 2px;

    font-family: "Manrope", sans-serif;
    font-size: clamp(10px, 0.72vw, 13px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.018);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =========================================================
   8. COMPOSICIÓN EDITORIAL INTERCALADA
   ========================================================= */

/* Arriba izquierda */
.advanize-sector--moda {
    top: 34px;
    left: 2%;
    width: clamp(130px, 11.5vw, 185px);
    height: clamp(195px, 17vw, 270px);
}

/* Abajo izquierda */
.advanize-sector--tecnologia {
    top: 46%;
    left: 17%;
    width: clamp(120px, 10.5vw, 170px);
    height: clamp(180px, 15.5vw, 245px);
}

/* Central superior — protagonista */
.advanize-sector--cosmetica {
    top: 0;
    left: 37%;
    width: clamp(165px, 14.5vw, 230px);
    height: clamp(245px, 21vw, 335px);
}

/* Central inferior — protagonista */
.advanize-sector--estilo-vida {
    top: 39%;
    left: 54%;
    width: clamp(155px, 13.5vw, 220px);
    height: clamp(230px, 19.5vw, 315px);
}

/* Arriba derecha */
.advanize-sector--deporte {
    top: 28px;
    right: 16%;
    width: clamp(130px, 11.5vw, 185px);
    height: clamp(195px, 17vw, 270px);
}

/* Abajo derecha */
.advanize-sector--productos {
    top: 47%;
    right: 1.5%;
    width: clamp(120px, 10.5vw, 170px);
    height: clamp(180px, 15.5vw, 245px);
}


/* Encuadre individual */

.advanize-sector--moda .advanize-sector__image {
    object-position: center 24%;
}

.advanize-sector--cosmetica .advanize-sector__image {
    object-position: center 30%;
}

.advanize-sector--deporte .advanize-sector__image {
    object-position: center 30%;
}

.advanize-sector--tecnologia .advanize-sector__image {
    object-position: center center;
}

.advanize-sector--estilo-vida .advanize-sector__image {
    object-position: center 34%;
}

.advanize-sector--productos .advanize-sector__image {
    object-position: center center;
}
/* =========================================================
   9. IMPACTO Y POLVO
   Por ahora queda oculto. Se activará con GSAP.
   ========================================================= */

.advanize-impact {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 8;
    width: min(88vw, 1500px);
    height: 180px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
}

.advanize-impact__dust {
    position: absolute;
    bottom: -35px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    background:
        radial-gradient(
            ellipse at center,
            rgba(194, 174, 134, 0.34) 0%,
            rgba(126, 111, 82, 0.18) 38%,
            rgba(0, 0, 0, 0) 74%
        );
}

.advanize-impact__dust--left {
    left: 5%;
    width: 46%;
    height: 145px;
}

.advanize-impact__dust--center {
    left: 27%;
    width: 48%;
    height: 190px;
}

.advanize-impact__dust--right {
    right: 5%;
    width: 46%;
    height: 145px;
}


/* =========================================================
   10. DESKTOP GRANDE
   ========================================================= */

@media (min-width: 1600px) {

    .advanize-sectors {
        width: min(90vw, 1640px);
        height: clamp(450px, 53vh, 640px);
    }
}


/* =========================================================
   11. NOTEBOOK / TABLET HORIZONTAL
   ========================================================= */

@media screen and (max-width: 1440px) and (max-height: 850px) {

   .advanize-hero__identity {
    top: 30px;
}

.advanize-hero__eyebrow {
    margin-bottom: 14px;
    font-size: clamp(13px, 0.95vw, 17px);
    line-height: 1.2;
    letter-spacing: 0.28em;
}

  .advanize-hero__title {
    font-size: clamp(76px, 10.4vw, 150px);
    line-height: 0.76;
}

  .advanize-hero__descriptor {
    margin-top: 15px;
    font-size: clamp(12px, 0.90vw, 17px);
    line-height: 1.25;
    letter-spacing: 0.17em;
}

    .advanize-sectors {
        bottom: 12px;
        width: 92vw;
        height: 390px;
        min-height: 0;
        max-height: none;
    }

    /* =========================================================
   COMPOSICIÓN NOTEBOOK REFINADA
   ========================================================= */

.advanize-sector--moda {
    top: 26px;
    left: 4%;
    width: 170px;
    height: 250px;
}

.advanize-sector--tecnologia {
    top: 186px;
    left: 19%;
    width: 150px;
    height: 220px;
}

.advanize-sector--cosmetica {
    top: 2px;
    left: 34.5%;
    width: 220px;
    height: 320px;
}

.advanize-sector--estilo-vida {
    top: 198px;
    left: 55.5%;
    width: 158px;
    height: 228px;
}

.advanize-sector--deporte {
    top: 24px;
    right: 17%;
    width: 156px;
    height: 232px;
}

.advanize-sector--productos {
    top: 206px;
    right: 3.5%;
    width: 146px;
    height: 214px;
}

.advanize-sectors {
    bottom: 12px;
    width: 94vw;
    height: 430px;
    min-height: 0;
    max-height: none;
    gap: 0;
     }
}

/* =========================================================
   12. TABLET VERTICAL
   ========================================================= */

@media screen and (max-width: 820px) {

    .advanize-hero {
        height: 100%;
        min-height: 0;
    }

    .advanize-hero__viewport {
        position: relative;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        padding: 42px 18px 28px;
    }

    .advanize-hero__identity {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        transform: none;
    }

    .advanize-hero__eyebrow {
        font-size: 9px;
        letter-spacing: 0.26em;
    }

    .advanize-hero__title {
        font-size: clamp(54px, 15vw, 105px);
        line-height: 0.82;
        white-space: nowrap;
    }

    .advanize-hero__descriptor {
        font-size: 9px;
        letter-spacing: 0.16em;
    }

    .advanize-sectors {
        position: relative;
        left: auto;
        bottom: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 12px;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        margin-top: 42px;
        transform: none;
    }

    .advanize-sector {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 310px;
        transform: none !important;
    }

    .advanize-sector__title {
        font-size: 10px;
    }
}


/* =========================================================
   13. MÓVIL
   ========================================================= */

@media screen and (max-width: 560px) {

    .advanize-hero__viewport {
        padding: 34px 12px 22px;
    }

    .advanize-hero__eyebrow {
        margin-bottom: 12px;
        font-size: 8px;
        letter-spacing: 0.2em;
    }

    .advanize-hero__title {
        font-size: clamp(43px, 14.8vw, 76px);
        letter-spacing: -0.06em;
    }

    .advanize-hero__descriptor {
        max-width: 280px;
        margin: 16px auto 0;
        font-size: 8px;
        line-height: 1.5;
        letter-spacing: 0.14em;
    }

    .advanize-sectors {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .advanize-sector {
        min-height: 72vw;
        max-height: 460px;
    }
}


/* =========================================================
   14. ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.advanize-hero__viewport::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 13%;
    width: 62%;
    height: 34%;
    min-width: 520px;
    min-height: 220px;
    transform: translateX(-50%) scale(0.88);
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 55%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.07) 18%, rgba(255,255,255,0.03) 38%, rgba(255,255,255,0) 68%),
        radial-gradient(circle at 36% 60%, rgba(201,162,77,0.10) 0%, rgba(201,162,77,0.05) 22%, rgba(201,162,77,0) 58%),
        radial-gradient(circle at 68% 58%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 24%, rgba(255,255,255,0) 56%);
    filter: blur(46px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.advanize-hero.is-final .advanize-hero__viewport::after {
    opacity: 0.46;
    transform: translateX(-50%) scale(1);
    animation: advanizeSmokeFloat 9s ease-in-out infinite alternate;
}

@keyframes advanizeSmokeFloat {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        filter: blur(46px);
        opacity: 0.34;
    }
    50% {
        transform: translateX(-49.2%) translateY(-10px) scale(1.05);
        filter: blur(54px);
        opacity: 0.44;
    }
    100% {
        transform: translateX(-50.8%) translateY(-20px) scale(1.10);
        filter: blur(60px);
        opacity: 0.28;
    }
}
/* =========================================================
   15. SISTEMA GENERAL DE PANELES
   Cada bloque ocupa una pantalla completa.
   ========================================================= */

.advanize-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    will-change: transform, opacity, filter;
}

.advanize-panel--active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* El hero continúa siendo el primer panel visible */

.advanize-hero.advanize-panel {
    z-index: 2;
}


/* =========================================================
   16. BLOQUE 2 — THE ADVANIZE SYSTEM
   ========================================================= */

.advanize-system {
    z-index: 3;
    color: #f4f1ea;
    background: #050505;
}

.advanize-system__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 72% 48%,
            rgba(193, 161, 104, 0.08) 0%,
            rgba(193, 161, 104, 0.025) 24%,
            rgba(0, 0, 0, 0) 58%
        ),
        radial-gradient(
            circle at 22% 40%,
            rgba(255, 255, 255, 0.025) 0%,
            rgba(0, 0, 0, 0) 45%
        ),
        #050505;
}


/* =========================================================
   17. FONDO TÉCNICO
   ========================================================= */

.advanize-system__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.advanize-system__grid {
    position: absolute;
    inset: 0;

    opacity: 0.14;

    background-image:
        linear-gradient(
            rgba(193, 161, 104, 0.075) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(193, 161, 104, 0.075) 1px,
            transparent 1px
        );

    background-size: 72px 72px;

    mask-image:
        radial-gradient(
            circle at 72% 50%,
            #000 0%,
            rgba(0, 0, 0, 0.75) 34%,
            transparent 72%
        );

    -webkit-mask-image:
        radial-gradient(
            circle at 72% 50%,
            #000 0%,
            rgba(0, 0, 0, 0.75) 34%,
            transparent 72%
        );
}

.advanize-system__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.22;
}

.advanize-system__glow--one {
    top: 14%;
    right: 8%;
    width: 34%;
    height: 46%;
    background: rgba(193, 161, 104, 0.18);
}

.advanize-system__glow--two {
    right: 25%;
    bottom: 3%;
    width: 24%;
    height: 34%;
    background: rgba(255, 255, 255, 0.055);
}


/* =========================================================
   18. DISTRIBUCIÓN GENERAL
   ========================================================= */

.advanize-system__layout {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(540px, 1.1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 110px);

    width: min(92vw, 1640px);
    height: 100%;
    margin: 0 auto;
    padding: clamp(52px, 6vw, 100px) 0;
}


/* =========================================================
   19. CONTENIDO EDITORIAL
   ========================================================= */

.advanize-system__content {
    position: relative;
    z-index: 4;
    max-width: 690px;
}

.advanize-system__eyebrow {
    margin: 0 0 24px;

    color: #c1a168;

    font-size: clamp(11px, 0.76vw, 14px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.advanize-system__title {
    margin: 0;

    color: #f4f1ea;

    font-size: clamp(72px, 7.25vw, 122px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.advanize-system__title-line {
    display: block;
}

.advanize-system__title-line:first-child {
    color: #c1a168;
}

.advanize-system__title-line:last-child {
    margin-top: 10px;
    color: #f4f1ea;
}

.advanize-system__description {
    max-width: 640px;
    margin: clamp(28px, 3.2vw, 48px) 0 0;

    color: rgba(244, 241, 234, 0.72);

    font-size: clamp(15px, 1.03vw, 19px);
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.005em;
}

.advanize-system__statement {
    position: relative;

    max-width: 590px;
    margin: 26px 0 0;
    padding-left: 28px;

    color: rgba(244, 241, 234, 0.92);

    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.advanize-system__statement::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;

    width: 1px;

    background:
        linear-gradient(
            180deg,
            rgba(193, 161, 104, 0) 0%,
            rgba(193, 161, 104, 0.9) 50%,
            rgba(193, 161, 104, 0) 100%
        );
}


/* =========================================================
   20. RED DEL SISTEMA
   ========================================================= */

.advanize-system__network {
    position: relative;
    justify-self: end;

    width: min(44vw, 700px);
    aspect-ratio: 1 / 1;

    overflow: visible;
}

.advanize-system__network::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;

    width: 72%;
    height: 72%;

    border: 1px solid rgba(193, 161, 104, 0.1);
    border-radius: 50%;

    transform: translate(-50%, -50%);

    box-shadow:
        0 0 70px rgba(193, 161, 104, 0.035),
        inset 0 0 70px rgba(193, 161, 104, 0.025);
}

.advanize-system__network::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;

    width: 49%;
    height: 49%;

    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;

    transform: translate(-50%, -50%);
}


/* =========================================================
   21. SVG Y CONEXIONES
   ========================================================= */

.advanize-system__connections {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100%;

    overflow: visible;
}

.advanize-system__line {
    fill: none;
    stroke: url("#advanize-system-line-gradient");
    stroke-width: 1.25;
    stroke-linecap: round;

    opacity: 0.55;

    vector-effect: non-scaling-stroke;

    stroke-dasharray: 8 13;
}

.advanize-system__pulse {
    opacity: 0.75;
    transform-origin: center;
}


/* =========================================================
   22. NÚCLEO CENTRAL
   ========================================================= */

.advanize-system__core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 190px;
    height: 190px;

    border: 1px solid rgba(193, 161, 104, 0.5);
    border-radius: 50%;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(193, 161, 104, 0.13) 0%,
            rgba(193, 161, 104, 0.04) 38%,
            rgba(5, 5, 5, 0.96) 76%
        );

    box-shadow:
        0 0 0 12px rgba(193, 161, 104, 0.025),
        0 0 60px rgba(193, 161, 104, 0.11),
        inset 0 0 45px rgba(193, 161, 104, 0.055);

    transform: translate(-50%, -50%);
}

.advanize-system__core::before {
    content: "";
    position: absolute;
    inset: 13px;

    border: 1px solid rgba(193, 161, 104, 0.16);
    border-radius: 50%;
}

.advanize-system__core-label {
    position: relative;
    z-index: 2;

    color: rgba(244, 241, 234, 0.62);

    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.28em;
}

.advanize-system__core-title {
    position: relative;
    z-index: 2;

    margin-top: 10px;

    color: #c1a168;

    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
}


/* =========================================================
   23. MÓDULOS
   ========================================================= */

.advanize-system__module {
    position: absolute;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 132px;
    padding: 12px 15px;

    color: #f4f1ea;

    background: rgba(8, 8, 8, 0.82);

    border: 1px solid rgba(193, 161, 104, 0.3);
    border-radius: 2px;

    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.018);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transform: translate(-50%, -50%);

    will-change: transform, opacity, filter;
}

.advanize-system__module-index {
    color: rgba(193, 161, 104, 0.7);

    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
}

.advanize-system__module-name {
    color: rgba(244, 241, 234, 0.9);

    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* Posiciones alineadas con el SVG */

.advanize-system__module--strategy {
    top: 13.5%;
    left: 50%;
}

.advanize-system__module--development {
    top: 31.5%;
    left: 81.5%;
}

.advanize-system__module--seo {
    top: 68.5%;
    left: 81.5%;
}

.advanize-system__module--data {
    top: 86.5%;
    left: 50%;
}

.advanize-system__module--crm {
    top: 68.5%;
    left: 18.5%;
}

.advanize-system__module--growth {
    top: 31.5%;
    left: 18.5%;
}


/* =========================================================
   24. CONTADOR DEL PANEL
   ========================================================= */

.advanize-system__counter {
    position: absolute;
    right: clamp(24px, 3vw, 54px);
    bottom: clamp(22px, 3vw, 44px);
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 11px;

    color: rgba(244, 241, 234, 0.42);

    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.advanize-system__counter-line {
    width: 42px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(193, 161, 104, 0.2),
            rgba(193, 161, 104, 0.9)
        );
}


/* =========================================================
   25. ESTADOS PREPARADOS PARA GSAP
   ========================================================= */

.advanize-system__content,
.advanize-system__network,
.advanize-system__counter {
    will-change: transform, opacity, filter;
}

.advanize-system__title-line,
.advanize-system__description,
.advanize-system__statement,
.advanize-system__eyebrow,
.advanize-system__core,
.advanize-system__module,
.advanize-system__line,
.advanize-system__pulse {
    will-change: transform, opacity, filter;
}


/* =========================================================
   26. NOTEBOOK
   ========================================================= */

@media screen and (max-width: 1440px) and (max-height: 850px) {

    .advanize-system__layout {
        grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
        gap: 42px;
        width: 92vw;
        padding: 42px 0;
    }

    .advanize-system__content {
        max-width: 590px;
    }

    .advanize-system__eyebrow {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .advanize-system__title {
        font-size: clamp(52px, 5.25vw, 76px);
    }

    .advanize-system__description {
        max-width: 560px;
        margin-top: 28px;
        font-size: 15px;
        line-height: 1.62;
    }

    .advanize-system__statement {
        margin-top: 20px;
        font-size: 13px;
    }

    .advanize-system__network {
        width: min(48vw, 590px);
    }

    .advanize-system__core {
        width: 162px;
        height: 162px;
    }

    .advanize-system__core-title {
        font-size: 23px;
    }

    .advanize-system__module {
        min-width: 116px;
        padding: 10px 12px;
    }

    .advanize-system__module-name {
        font-size: 9px;
    }
}


/* =========================================================
   27. TABLET
   ========================================================= */

@media screen and (max-width: 980px) {

    .advanize-system__layout {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;

        width: 92%;
        padding: 34px 0 28px;
    }

    .advanize-system__content {
        max-width: 760px;
    }

    .advanize-system__eyebrow {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .advanize-system__title {
        font-size: clamp(44px, 8.4vw, 76px);
        line-height: 0.88;
    }

    .advanize-system__description {
        max-width: 720px;
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.58;
    }

    .advanize-system__statement {
        display: none;
    }

    .advanize-system__network {
        justify-self: center;
        width: min(68vw, 520px);
    }

    .advanize-system__counter {
        right: 22px;
        bottom: 18px;
    }
}


/* =========================================================
   28. MÓVIL
   ========================================================= */

@media screen and (max-width: 560px) {

    .advanize-system__layout {
        display: flex;
        flex-direction: column;
        justify-content: center;

        width: 92%;
        gap: 26px;
        padding: 28px 0 22px;
    }

    .advanize-system__content {
        width: 100%;
    }

    .advanize-system__eyebrow {
        margin-bottom: 13px;
        font-size: 8px;
        letter-spacing: 0.2em;
    }

    .advanize-system__title {
        font-size: clamp(40px, 12.8vw, 60px);
        line-height: 0.9;
    }

    .advanize-system__title-line:last-child {
        margin-top: 5px;
    }

    .advanize-system__description {
        margin-top: 18px;
        font-size: 12px;
        line-height: 1.55;
    }

    .advanize-system__network {
        width: min(92vw, 410px);
    }

    .advanize-system__core {
        width: 118px;
        height: 118px;
    }

    .advanize-system__core-label {
        font-size: 7px;
        letter-spacing: 0.2em;
    }

    .advanize-system__core-title {
        margin-top: 7px;
        font-size: 17px;
    }

    .advanize-system__module {
        min-width: 86px;
        gap: 6px;
        padding: 8px 9px;
    }

    .advanize-system__module-index {
        display: none;
    }

    .advanize-system__module-name {
        font-size: 7px;
        letter-spacing: 0.08em;
    }

    .advanize-system__counter {
        display: none;
    }

    .advanize-system__grid {
        background-size: 42px 42px;
    }
}

/* =========================================================
   SECUENCIA EDITORIAL HORIZONTAL — CIERRE DEL HERO
   ========================================================= */

.advanize-hero__ghost-gallery {
    position: absolute;
    inset: 0;
    z-index: 4;

    overflow: hidden;
    pointer-events: none;
}

.advanize-hero__ghost {
    position: absolute;
    top: 50%;
    left: 50%;

    width: clamp(440px, 48vw, 760px);
    aspect-ratio: 1600 / 1350;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, -50%);

    will-change:
        transform,
        opacity;
}

.advanize-hero__ghost img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    opacity: 1;
    filter: none;

    transform: scale(1.01);
}
.advanize-hero__ghost-label {
    position: absolute;
    top: 24px;
    left: 30px;
    z-index: 3;

    display: inline-flex;
    align-items: center;

    padding: 10px 14px 9px;

    color: rgba(244, 241, 234, 0.98);
    background: rgba(0, 0, 0, 0.78);

    border: 1px solid rgba(193, 161, 104, 0.28);
    border-radius: 2px;

    font-size: clamp(20px, 1.7vw, 28px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    opacity: 0;
    transform: translateY(10px);

    will-change:
        transform,
        opacity;
}

/* Suavizado mínimo de los extremos laterales */
.advanize-hero__ghost {
    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            #000 5%,
            #000 95%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            #000 5%,
            #000 95%,
            transparent 100%
        );
}

/* ADVANIZE siempre delante */
.advanize-hero__identity {
    position: relative;
    z-index: 8;
}

.advanize-impact {
    z-index: 6;
}

/* Notebook */
@media screen and (max-width: 1440px) and (max-height: 850px) {

    .advanize-hero__ghost {
        width: clamp(390px, 46vw, 650px);
    }
}

/* Móvil */
@media screen and (max-width: 560px) {

    .advanize-hero__ghost {
        width: 82vw;
        aspect-ratio: 4 / 3;
    }
}
/* ADVANIZE siempre delante */
.advanize-hero__identity {
    position: relative;
    z-index: 8;
}

.advanize-impact {
    z-index: 6;
}

/* Notebook */
@media screen and (max-width: 1440px) and (max-height: 850px) {

    .advanize-hero__ghost {
        width: clamp(390px, 46vw, 650px);
    }
}

/* Móvil */
@media screen and (max-width: 560px) {

    .advanize-hero__ghost {
        width: 82vw;
        aspect-ratio: 4 / 3;
    }
}
/* ADVANIZE permanece siempre delante */
.advanize-hero__identity {
    position: relative;
    z-index: 8;
}

.advanize-impact {
    z-index: 6;
}

/* Notebook */
@media screen and (max-width: 1440px) and (max-height: 850px) {

    .advanize-hero__ghost {
        width: clamp(200px, 19vw, 290px);
        height: clamp(310px, 32vw, 450px);
    }
}

/* Móvil */
@media screen and (max-width: 560px) {

    .advanize-hero__ghost {
        width: 48vw;
        height: 60vh;
    }
}
/* =========================================================
   CORRECCIÓN DE CAPAS — GALERÍA FANTASMA
   ========================================================= */

.advanize-hero__webgl {
    z-index: 1;
}

.advanize-hero__overlay {
    z-index: 2;
}

.advanize-hero__ghost-gallery {
    z-index: 4 !important;
}

.advanize-hero__ghost {
    z-index: 1;
}

.advanize-impact {
    z-index: 6;
}

.advanize-hero__identity {
    position: relative;
    z-index: 8;
}

.advanize-sectors {
    z-index: 7;
}
/* =========================================================
   CORRECCIÓN DEFINITIVA — FORMATO HORIZONTAL
   ========================================================= */

.advanize-hero__ghost {
    width: clamp(440px, 48vw, 760px) !important;
    height: auto !important;
    aspect-ratio: 1600 / 1350 !important;
}

.advanize-hero__ghost img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
/* =====================================================
   BLOQUE 3 — HEADLESS COMMERCE ARCHITECTURE
   ===================================================== */

.advanize-architecture {
    background: #f2f0eb;
    color: #111111;
    overflow: hidden;
}

.advanize-architecture__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(360px, 42%) minmax(0, 58%);
    align-items: center;
    gap: clamp(40px, 5vw, 92px);
    padding:
        clamp(70px, 7vh, 110px)
        clamp(54px, 4.8vw, 92px);
    overflow: hidden;
}

.advanize-architecture__background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.advanize-architecture__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(20, 20, 20, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(20, 20, 20, 0.045) 1px,
            transparent 1px
        );
    background-size: 72px 72px;
    opacity: 0.72;
}

.advanize-architecture__glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 64vw;
    height: 64vw;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(193, 161, 104, 0.12) 0%,
            rgba(193, 161, 104, 0.035) 38%,
            transparent 72%
        );
    filter: blur(20px);
}

/* =====================================================
   CONTENIDO IZQUIERDO
   ===================================================== */

.advanize-architecture__content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.advanize-architecture__eyebrow {
    display: block;
    margin-bottom: clamp(20px, 2.5vh, 34px);
    color: #9d7f4e;
    font-size: clamp(11px, 0.85vw, 14px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.advanize-architecture__title {
    margin: 0;
    font-family: "SangBleu Empire", serif;
    font-size: clamp(68px, 6vw, 112px);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.045em;
}

.advanize-architecture__title span {
    display: block;
}

.advanize-architecture__title span:first-child {
    color: #111111;
}

.advanize-architecture__title span:last-child {
    color: #c1a168;
}

.advanize-architecture__description {
    max-width: 610px;
    margin:
        clamp(28px, 3.5vh, 48px)
        0
        0;
    color: rgba(17, 17, 17, 0.68);
    font-family: "Manrope", sans-serif;
    font-size: clamp(16px, 1.25vw, 21px);
    font-weight: 300;
    line-height: 1.62;
}

.advanize-architecture__statement {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 590px;
    margin-top: clamp(28px, 3.5vh, 44px);
}

.advanize-architecture__statement-line {
    flex: 0 0 2px;
    width: 2px;
    height: 34px;
    margin-top: 3px;
    background: #c1a168;
}

.advanize-architecture__statement p {
    margin: 0;
    color: rgba(17, 17, 17, 0.88);
    font-family: "Manrope", sans-serif;
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 400;
    line-height: 1.55;
}

/* =====================================================
   ESCENARIO DERECHO
   ===================================================== */

.advanize-architecture__stage {
    position: relative;
    z-index: 3;
    width: 100%;
    min-width: 0;
    height: min(72vh, 690px);
    max-height: 720px;
}

.advanize-architecture__diagram,
.advanize-architecture__media {
    position: absolute;
    inset: 0;
}

/* =====================================================
   DIAGRAMA
   ===================================================== */

.advanize-architecture__diagram {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 2.4vw, 42px);
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow:
        0 30px 80px rgba(17, 17, 17, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.advanize-architecture__diagram::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(193, 161, 104, 0.13);
    pointer-events: none;
}

.advanize-architecture__layer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 92px;
    padding: 20px 26px;
    border: 1px solid rgba(193, 161, 104, 0.22);
    background: #121212;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.17),
        inset 3px 0 0 #c1a168;
}

.advanize-architecture__layer--frontend {
    width: 88%;
    margin: 0 auto;
}

.advanize-architecture__layer--core {
    width: 100%;
}

.advanize-architecture__number,
.advanize-architecture__module-number {
    color: #c1a168;
    font-family: "Tenor Sans", sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
}

.advanize-architecture__number {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(193, 161, 104, 0.34);
}

.advanize-architecture__layer-copy h3,
.advanize-architecture__module h3 {
    margin: 0;
    color: #f4f1ea;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

.advanize-architecture__layer-copy h3 {
    font-size: clamp(16px, 1.2vw, 21px);
    letter-spacing: 0.055em;
}

.advanize-architecture__layer-copy p {
    margin: 7px 0 0;
    color: rgba(244, 241, 234, 0.58);
    font-family: "Manrope", sans-serif;
    font-size: clamp(11px, 0.8vw, 14px);
    font-weight: 300;
    line-height: 1.45;
}

/* =====================================================
   CONECTORES
   ===================================================== */

.advanize-architecture__connector {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 26px;
}

.advanize-architecture__connector span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(193, 161, 104, 0.58);
    transform: translateX(-50%);
}

.advanize-architecture__connector span::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c1a168;
    box-shadow: 0 0 14px rgba(193, 161, 104, 0.62);
    transform: translateX(-50%);
}

/* =====================================================
   MÓDULOS
   ===================================================== */

.advanize-architecture__modules {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.advanize-architecture__module {
    position: relative;
    min-width: 0;
    min-height: 100px;
    padding: 20px 18px 18px;
    background: #141414;
    border: 1px solid rgba(193, 161, 104, 0.18);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.advanize-architecture__module::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 1px;
    background: #c1a168;
}

.advanize-architecture__module-number {
    display: block;
    margin-bottom: 17px;
}

.advanize-architecture__module h3 {
    font-size: clamp(12px, 0.9vw, 15px);
    line-height: 1.15;
    letter-spacing: 0.025em;
}

.advanize-architecture__module p {
    margin: 8px 0 0;
    color: rgba(244, 241, 234, 0.52);
    font-family: "Manrope", sans-serif;
    font-size: clamp(9px, 0.68vw, 12px);
    font-weight: 300;
    line-height: 1.45;
}

.advanize-architecture__signal {
    position: absolute;
    right: 24px;
    bottom: 19px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
    opacity: 0.7;
}

.advanize-architecture__signal span {
    display: block;
    width: 2px;
    background: #c1a168;
}

.advanize-architecture__signal span:nth-child(1) {
    height: 7px;
}

.advanize-architecture__signal span:nth-child(2) {
    height: 13px;
}

.advanize-architecture__signal span:nth-child(3) {
    height: 18px;
}
/* =====================================================
   TARJETA PROTAGONISTA — PRESENTACIÓN DE MÓDULOS
   ===================================================== */

.advanize-architecture__module-preview {
    position: absolute;
    left: 50%;
    top: 66%;
    z-index: 8;

    display: flex;
    align-items: center;
    gap: 28px;

    width: min(82%, 560px);
    min-height: 118px;
    padding: 26px 30px;

    background: #121212;
    border: 1px solid rgba(193, 161, 104, 0.28);

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.24),
        inset 3px 0 0 #c1a168;

    transform:
        translate(-50%, -50%)
        scale(0.94);

    transform-origin: center center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    overflow: hidden;
    will-change:
        transform,
        opacity,
        filter;
}

.advanize-architecture__module-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.035),
            transparent 42%
        );
    pointer-events: none;
}

.advanize-architecture__module-preview::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(193, 161, 104, 0.7),
            transparent
        );
    opacity: 0.55;
}

.advanize-architecture__module-preview-number {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    flex: 0 0 56px;
    width: 56px;
    height: 56px;

    color: #c1a168;

    border: 1px solid rgba(193, 161, 104, 0.38);

    font-family: "Tenor Sans", sans-serif;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.14em;
}

.advanize-architecture__module-preview-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.advanize-architecture__module-preview-copy h3 {
    margin: 0;

    color: #f4f1ea;

    font-family: "Manrope", sans-serif;
    font-size: clamp(18px, 1.45vw, 24px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.advanize-architecture__module-preview-copy p {
    margin: 10px 0 0;

    color: rgba(244, 241, 234, 0.62);

    font-family: "Manrope", sans-serif;
    font-size: clamp(11px, 0.82vw, 14px);
    font-weight: 300;
    line-height: 1.5;
}

.advanize-architecture__module-preview.is-active {
    visibility: visible;
}

/* =====================================================
   IMAGEN FINAL
   ===================================================== */

.advanize-architecture__media {
    z-index: 4;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.advanize-architecture__media-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0e0e0e;
    border: 1px solid rgba(193, 161, 104, 0.28);
    box-shadow:
        0 38px 100px rgba(0, 0, 0, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.advanize-architecture__media-frame::before {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: 3;
    border: 1px solid rgba(193, 161, 104, 0.22);
    pointer-events: none;
}

.advanize-architecture__media-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter:
        saturate(0.78)
        contrast(1.08)
        brightness(0.72);
    transform: scale(1.06);
}

.advanize-architecture__media-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.08) 46%,
            rgba(0, 0, 0, 0.75) 100%
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.08) 0%,
            transparent 55%,
            rgba(0, 0, 0, 0.18) 100%
        );
}

.advanize-architecture__media-caption {
    position: absolute;
    right: clamp(28px, 3vw, 48px);
    bottom: clamp(28px, 3vw, 48px);
    left: clamp(28px, 3vw, 48px);
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    color: #f4f1ea;
}

.advanize-architecture__media-index {
    flex: 0 0 auto;
    color: #c1a168;
    font-size: 12px;
    letter-spacing: 0.22em;
}

.advanize-architecture__media-caption > div {
    max-width: 420px;
    text-align: right;
}

.advanize-architecture__media-caption strong {
    display: block;
    color: #f4f1ea;
    font-family: "SangBleu Empire", serif;
    font-size: clamp(29px, 2.8vw, 48px);
    font-weight: 700;
    line-height: 1;
}

.advanize-architecture__media-caption span {
    display: block;
    margin-top: 10px;
    color: rgba(244, 241, 234, 0.68);
    font-family: "Manrope", sans-serif;
    font-size: clamp(11px, 0.85vw, 14px);
    font-weight: 300;
    line-height: 1.5;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1180px) {
    .advanize-architecture__viewport {
        grid-template-columns: 39% 61%;
        gap: 34px;
        padding-right: 42px;
        padding-left: 42px;
    }

    .advanize-architecture__title {
        font-size: clamp(58px, 5.8vw, 86px);
    }

    .advanize-architecture__stage {
        height: min(68vh, 620px);
    }

    .advanize-architecture__diagram {
        padding: 24px;
    }

    .advanize-architecture__module {
        padding: 17px 14px 15px;
    }
}

@media (max-width: 900px) {
    .advanize-architecture__viewport {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 38px;
        padding:
            74px
            28px
            40px;
        overflow-y: auto;
    }

    .advanize-architecture__content {
        max-width: 100%;
    }

    .advanize-architecture__title {
        font-size: clamp(58px, 12vw, 88px);
    }

    .advanize-architecture__description {
        max-width: 760px;
    }

    .advanize-architecture__stage {
        width: 100%;
        height: 650px;
    }
}

@media (max-width: 640px) {
    .advanize-architecture__viewport {
        display: block;
        padding:
            82px
            18px
            30px;
    }
    .advanize-architecture__module-preview {
    top: 62%;
    width: calc(100% - 36px);
    min-height: 108px;
    gap: 18px;
    padding: 20px;
}

.advanize-architecture__module-preview-number {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 12px;
}

.advanize-architecture__module-preview-copy h3 {
    font-size: 17px;
}

    .advanize-architecture__content {
        margin-bottom: 36px;
    }

    .advanize-architecture__eyebrow {
        font-size: 10px;
        letter-spacing: 0.21em;
    }

    .advanize-architecture__title {
        font-size: clamp(48px, 15vw, 72px);
    }

    .advanize-architecture__description {
        font-size: 15px;
    }

    .advanize-architecture__statement {
        gap: 17px;
    }

    .advanize-architecture__stage {
        height: 780px;
    }

    .advanize-architecture__diagram {
        justify-content: flex-start;
        padding: 18px;
        overflow-y: auto;
    }

    .advanize-architecture__layer,
    .advanize-architecture__layer--frontend {
        width: 100%;
    }

    .advanize-architecture__layer {
        gap: 16px;
        min-height: 84px;
        padding: 17px;
    }

    .advanize-architecture__modules {
        grid-template-columns: 1fr;
    }

    .advanize-architecture__module {
        min-height: 92px;
    }

    .advanize-architecture__connector {
        height: 20px;
    }

    .advanize-architecture__media-caption {
        align-items: flex-start;
        flex-direction: column;
    }

    .advanize-architecture__media-caption > div {
        text-align: left;
    }

    .advanize-architecture__media-caption strong {
        font-size: 34px;
    }
}
/* =====================================================
   BLOQUE 4 — SELECTED COMMERCE SYSTEMS
   ===================================================== */

.advanize-showcase {
    --showcase-gold: #c1a168;
    --showcase-ivory: #f4f1ea;
    --showcase-black: #050505;
    --showcase-surface: #0b0b0b;
    --showcase-titanium: rgba(244, 241, 234, 0.16);

    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--showcase-black);
    color: var(--showcase-ivory);
    overflow: hidden;
}

.advanize-showcase__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

/* =====================================================
   INTRODUCCIÓN
   ===================================================== */

.advanize-showcase__intro {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;

    width: min(1180px, calc(100vw - 100px));
    text-align: center;

    transform: translate(-50%, -50%);
    will-change: transform, opacity, filter;
}

.advanize-showcase__eyebrow {
    margin: 0 0 24px;

    color: rgba(244, 241, 234, 0.64);

    font-family: "Tenor Sans", sans-serif;
    font-size: clamp(10px, 0.8vw, 13px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.advanize-showcase__title {
    margin: 0;

    color: var(--showcase-gold);

    font-family: "SangBleu Empire", serif;
    font-size: clamp(78px, 8vw, 148px);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.045em;
}

.advanize-showcase__lead {
    max-width: 820px;
    margin: 34px auto 0;

    color: rgba(244, 241, 234, 0.7);

    font-family: "Manrope", sans-serif;
    font-size: clamp(15px, 1.15vw, 20px);
    font-weight: 300;
    line-height: 1.65;
}

/* =====================================================
   SECUENCIA GENERAL
   ===================================================== */

.advanize-showcase__sequence {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.advanize-showcase__project {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.advanize-showcase__project-header {
    position: absolute;
    top: clamp(76px, 8vh, 118px);
    left: clamp(44px, 5vw, 96px);
    z-index: 8;

    width: min(470px, 34vw);
}
.advanize-showcase__project-eyebrow {
    margin: 0 0 14px;

    color: var(--showcase-gold);

    font-family: "Tenor Sans", sans-serif;
    font-size: clamp(10px, 0.72vw, 12px);
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.advanize-showcase__project-title {
    margin: 0;

    color: var(--showcase-ivory);

    font-family: "SangBleu Empire", serif;
    font-size: clamp(46px, 4.35vw, 78px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.035em;
}

.advanize-showcase__project-description {
    max-width: 455px;
    margin: 16px 0 0;

    color: rgba(244, 241, 234, 0.62);

    font-family: "Manrope", sans-serif;
    font-size: clamp(12px, 0.82vw, 15px);
    font-weight: 300;
    line-height: 1.55;
}

/* =====================================================
   ESCENARIO DE IMÁGENES
   ==/*
   .advanize-showcase__project-stage {
    position: absolute;
    top: 58%;
    left: 64%;
    z-index: 4;

    width: min(68vw, 1220px);
    height: min(60vh, 650px);

    transform: translate(-50%, -43%);
}

.advanize-showcase__project-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Pieza protagonista y miniaturas finales */

.advanize-showcase__piece {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;
    margin: 0;

    opacity: 0;
    visibility: hidden;

    transform:
        translate(-50%, -50%)
        scale(0.82);

    transform-origin: center center;

    will-change:
        transform,
        opacity,
        filter;
}

.advanize-showcase__piece-frame {
    position: absolute;
    inset: 0;
   display: grid;
place-items: center;
overflow: hidden;

    padding: clamp(14px, 1.4vw, 24px);
    border: 1px solid rgba(212, 184, 108, 0.34);
    background: rgba(10, 10, 10, 0.72);
    box-shadow:
        0 0 0 1px rgba(212, 184, 108, 0.08),
        0 26px 80px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.advanize-showcase__piece-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 2;

    border: 1px solid rgba(244, 241, 234, 0.055);

    pointer-events: none;
}

.advanize-showcase__piece-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;

    background:
        linear-gradient(
            110deg,
            transparent 0%,
            rgba(255, 255, 255, 0.025) 38%,
            transparent 66%
        );

    opacity: 0.7;
    pointer-events: none;
}

.advanize-showcase__piece img {
    position: relative;
    z-index: 3;

    display: block;

    width: auto;
    height: auto;

    max-width: 96%;
    max-height: 94%;

    object-fit: contain;
    object-position: center;

    border: 1px solid rgba(193, 161, 104, 0.38);

    background: #050505;

    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.68),
        0 0 26px rgba(193, 161, 104, 0.13);

    filter:
        saturate(0.98)
        contrast(1.025)
        brightness(0.98);
}

@media (hover: hover) and (pointer: fine) {
    .advanize-showcase__piece-frame:hover img {
        transform: scale(1.02);
        filter:
            saturate(1)
            contrast(1.04)
            brightness(1);
    }
}
.advanize-showcase__archive {
    position: absolute;
    left: 50%;
    bottom: 5.5vh;
    z-index: 3;

    width: min(86vw, 1320px);
    height: 220px;

    transform: translateX(-50%);
    pointer-events: none;
}

.advanize-showcase__archive-item {
    position: absolute;
    bottom: 0;

    width: 118px;
    height: 168px;

    border: 1px solid rgba(212, 184, 108, 0.28);
    background: rgba(8, 8, 8, 0.88);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(212, 184, 108, 0.05);
    overflow: hidden;
    border-radius: 2px;

    transform-origin: center bottom;
}

.advanize-showcase__archive-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.95) contrast(1.02);
}
/* =====================================================
   IDENTIDAD VISUAL POR PROYECTO
   ===================================================== */

.advanize-showcase__project[data-project="global-group"]
.advanize-showcase__piece-frame {
    border-color: rgba(193, 161, 104, 0.34);
}

.advanize-showcase__project[data-project="global-group"]
.advanize-showcase__piece-frame::before {
    border-color: rgba(193, 161, 104, 0.11);
}

.advanize-showcase__project[data-project="renosto"]
.advanize-showcase__piece-frame {
    border-color: rgba(0, 166, 200, 0.28);
}

.advanize-showcase__project[data-project="renosto"]
.advanize-showcase__piece-frame::before {
    border-color: rgba(0, 166, 200, 0.11);
}

/* =====================================================
   ESTADO DE COLECCIÓN ENSAMBLADA
   JavaScript asignará posiciones y escalas.
   ===================================================== */

.advanize-showcase__piece.is-assembled {
    visibility: visible;
}

.advanize-showcase__piece.is-highlighted
.advanize-showcase__piece-frame {
    border-color: rgba(193, 161, 104, 0.88);

    box-shadow:
        0 0 0 1px rgba(193, 161, 104, 0.34),
        0 0 34px rgba(193, 161, 104, 0.22),
        0 30px 78px rgba(0, 0, 0, 0.54);
}

/* =====================================================
   ESCENA FINAL
   ===================================================== */

.advanize-showcase__final {
    position: absolute;
    inset: 0;
    z-index: 12;

    visibility: hidden;
    opacity: 0;

    background: #050505;
    overflow: hidden;
}

.advanize-showcase__final-media {
    position: absolute;
    inset: 0;
}

.advanize-showcase__final-media img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        saturate(0.82)
        contrast(1.04)
        brightness(0.76);

    transform: scale(1.06);

    will-change:
        transform,
        filter;
}

.advanize-showcase__final-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.14) 38%,
            rgba(0, 0, 0, 0.82) 100%
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.26) 0%,
            rgba(0, 0, 0, 0.04) 50%,
            rgba(0, 0, 0, 0.2) 100%
        );
}

.advanize-showcase__final-content {
    position: absolute;
    right: clamp(40px, 6vw, 118px);
    bottom: clamp(46px, 7vh, 105px);
    left: clamp(40px, 6vw, 118px);
    z-index: 4;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.advanize-showcase__final-eyebrow {
    margin: 0 0 22px;

    color: rgba(244, 241, 234, 0.72);

    font-family: "Tenor Sans", sans-serif;
    font-size: clamp(10px, 0.75vw, 13px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.advanize-showcase__final-title {
    max-width: 1180px;
    margin: 0;

    font-family: "SangBleu Empire", serif;
    font-size: clamp(64px, 7.2vw, 132px);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.advanize-showcase__final-title span {
    display: block;
    color: var(--showcase-ivory);
}

.advanize-showcase__final-title .is-accent {
    color: var(--showcase-gold);
}

/* =====================================================
   CTA FINAL
   ===================================================== */

.advanize-showcase__final-cta {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 240px;
    min-height: 58px;
    margin-top: clamp(28px, 4vh, 46px);
    padding: 16px 30px;

    color: var(--showcase-ivory);

    background:
        linear-gradient(
            120deg,
            rgba(193, 161, 104, 0.12),
            rgba(193, 161, 104, 0.025)
        );

    border: 1px solid rgba(193, 161, 104, 0.48);
    border-radius: 2px;

    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.34),
        0 0 22px rgba(193, 161, 104, 0.06);

    font-family: "Tenor Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.2em;
    text-decoration: none;
    text-transform: uppercase;

    overflow: hidden;

    transition:
        transform 450ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 450ms ease,
        box-shadow 450ms ease,
        background 450ms ease;
}

.advanize-showcase__final-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;

    width: 60%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(244, 225, 180, 0.2),
            transparent
        );

    transform: skewX(-18deg);

    transition: left 850ms cubic-bezier(0.16, 1, 0.3, 1);
}

.advanize-showcase__final-cta:hover {
    transform: translateY(-3px);

    border-color: rgba(193, 161, 104, 0.82);

    background:
        linear-gradient(
            120deg,
            rgba(193, 161, 104, 0.19),
            rgba(193, 161, 104, 0.055)
        );

    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.44),
        0 0 30px rgba(193, 161, 104, 0.12);
}

.advanize-showcase__final-cta:hover::before {
    left: 155%;
}

.advanize-showcase__final-cta:focus-visible {
    outline: 1px solid var(--showcase-gold);
    outline-offset: 5px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1180px) {
    .advanize-showcase__intro {
        width: calc(100vw - 72px);
    }

    .advanize-showcase__title {
        font-size: clamp(72px, 9vw, 118px);
    }

    .advanize-showcase__project-header {
        left: 42px;
        width: min(500px, 46vw);
    }

    .advanize-showcase__project-stage {
    position: absolute;
    top: 56%;
    left: 50%;
    z-index: 4;

    width: min(84vw, 1480px);
    height: min(60vh, 620px);

    transform: translate(-50%, -42%);
}

    .advanize-showcase__final-title {
        font-size: clamp(58px, 8.5vw, 108px);
    }
}

@media (max-width: 900px) {
    .advanize-showcase__intro {
        width: calc(100vw - 48px);
    }

    .advanize-showcase__title {
        font-size: clamp(62px, 12vw, 96px);
    }

    .advanize-showcase__lead {
        max-width: 680px;
        font-size: 15px;
    }

    .advanize-showcase__project-header {
        top: 68px;
        left: 26px;
        width: calc(100vw - 52px);
    }

    .advanize-showcase__project-title {
        font-size: clamp(46px, 9vw, 72px);
    }

    .advanize-showcase__project-description {
        display: none;
    }

    .advanize-showcase__project-stage {
        top: 56%;
        width: 92vw;
        height: min(56vh, 560px);
        transform: translate(-50%, -42%);
    }

    .advanize-showcase__final-content {
        right: 30px;
        bottom: 54px;
        left: 30px;
    }

    .advanize-showcase__final-title {
        font-size: clamp(52px, 10vw, 84px);
    }
}

@media (max-width: 640px) {
    .advanize-showcase__intro {
        width: calc(100vw - 32px);
    }

    .advanize-showcase__eyebrow {
        margin-bottom: 18px;
        font-size: 9px;
        letter-spacing: 0.23em;
    }

    .advanize-showcase__title {
        font-size: clamp(48px, 15vw, 74px);
        line-height: 0.93;
    }

    .advanize-showcase__lead {
        margin-top: 24px;
        font-size: 14px;
        line-height: 1.55;
    }

    .advanize-showcase__project-header {
        top: 76px;
        left: 18px;
        width: calc(100vw - 36px);
    }

    .advanize-showcase__project-title {
        font-size: 48px;
    }

    .advanize-showcase__project-stage {
        top: 57%;
        width: calc(100vw - 24px);
        height: 50vh;
    }

    .advanize-showcase__piece-frame {
        padding: 7px;
    }

    .advanize-showcase__piece-frame::before {
        inset: 5px;
    }

    .advanize-showcase__final-media img {
        object-position: 57% center;
    }

    .advanize-showcase__final-content {
        right: 20px;
        bottom: 36px;
        left: 20px;
    }

    .advanize-showcase__final-eyebrow {
        margin-bottom: 16px;
        font-size: 9px;
        letter-spacing: 0.21em;
    }

    .advanize-showcase__final-title {
        font-size: clamp(44px, 13vw, 66px);
        line-height: 0.94;
    }

    .advanize-showcase__final-cta {
        min-width: 220px;
        min-height: 54px;
        margin-top: 28px;
        font-size: 11px;
    }
}
/* =====================================================
   AJUSTE FINAL DEFINITIVO — BLOQUES 3 Y 4
   ===================================================== */


/* =====================================================
   BLOQUE 3 — CHASIS LUXURY Y CONTENIDO COMPLETO
   ===================================================== */

.advanize-architecture__diagram {
    justify-content: center;
    padding: 18px 22px;

    background:
        radial-gradient(
            circle at 72% 16%,
            rgba(193, 161, 104, 0.11) 0%,
            rgba(193, 161, 104, 0.025) 34%,
            transparent 62%
        ),
        linear-gradient(
            145deg,
            #171612 0%,
            #0b0b0b 52%,
            #1b1710 100%
        );

    border: 1px solid rgba(193, 161, 104, 0.28);

    box-shadow:
        0 34px 86px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(193, 161, 104, 0.045);

    overflow: hidden;
}

.advanize-architecture__diagram::before {
    inset: 13px;
    border-color: rgba(193, 161, 104, 0.18);
}

.advanize-architecture__diagram::after {
    content: "";
    position: absolute;
    inset: 23px;
    z-index: 0;

    border: 1px solid rgba(244, 225, 180, 0.035);

    background:
        linear-gradient(
            135deg,
            rgba(193, 161, 104, 0.02),
            transparent 46%,
            rgba(193, 161, 104, 0.014)
        );

    pointer-events: none;
}

.advanize-architecture__layer,
.advanize-architecture__connector,
.advanize-architecture__modules,
.advanize-architecture__signal,
.advanize-architecture__module-preview {
    position: relative;
    z-index: 2;
}

.advanize-architecture__layer {
    min-height: 70px;
    padding: 13px 20px;
}

.advanize-architecture__connector {
    height: 12px;
}

.advanize-architecture__module {
    min-height: 76px;
    padding: 12px 14px 11px;
}

.advanize-architecture__module-number {
    margin-bottom: 8px;
}

.advanize-architecture__module p {
    margin-top: 5px;
    line-height: 1.3;
}


/* =====================================================
   BLOQUE 4 — ESCENARIO PROPORCIONADO A LAS CAPTURAS
   ===================================================== */

.advanize-showcase__project-stage {
    position: absolute;
    top: 56%;
    left: 50%;
    z-index: 4;

    width: min(80vw, 1380px);
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 59vh;

    transform: translate(-50%, -43%);
}

.advanize-showcase__project-stack {
    position: relative;
    width: 100%;
    height: 100%;
}


/* =====================================================
   BLOQUE 4 — MARCO EXTERIOR DISCRETO
   ===================================================== */

.advanize-showcase__piece-frame {
    display: grid;
    place-items: center;

    padding: 13px;

    background: #070707;

    border: 1px solid rgba(193, 161, 104, 0.16);

    box-shadow:
        0 28px 78px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.018);

    overflow: visible;
}

.advanize-showcase__piece-frame::before {
    inset: 7px;
    border-color: rgba(193, 161, 104, 0.07);
}

.advanize-showcase__piece-frame::after {
    opacity: 0.22;
}


/* =====================================================
   BLOQUE 4 — LA CAPTURA ES LA PROTAGONISTA
   ===================================================== */

.advanize-showcase__piece img {
    position: relative;
    z-index: 2;

    display: block;

    width: auto;
    height: auto;

    max-width: calc(100% - 12px);
    max-height: calc(100% - 12px);

    object-fit: contain;
    object-position: center;

    border: 1px solid rgba(193, 161, 104, 0.38);

    background: #050505;

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.68),
        0 0 26px rgba(193, 161, 104, 0.13);

    filter:
        saturate(0.97)
        contrast(1.025)
        brightness(0.98);

    transform: translateZ(0);
}


/* Global Group */

.advanize-showcase__project[data-project="global-group"]
.advanize-showcase__piece-frame {
    border-color: rgba(193, 161, 104, 0.16);
}

.advanize-showcase__project[data-project="global-group"]
.advanize-showcase__piece img {
    border-color: rgba(193, 161, 104, 0.44);

    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.7),
        0 0 28px rgba(193, 161, 104, 0.15);
}


/* Renosto */

.advanize-showcase__project[data-project="renosto"]
.advanize-showcase__piece-frame {
    border-color: rgba(80, 190, 214, 0.13);
}

.advanize-showcase__project[data-project="renosto"]
.advanize-showcase__piece img {
    border-color: rgba(80, 190, 214, 0.32);

    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.68),
        0 0 26px rgba(0, 166, 200, 0.1);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1180px) {
    .advanize-showcase__project-stage {
        width: 84vw;
        max-height: 57vh;
    }
}

@media (max-width: 900px) {
    .advanize-showcase__project-stage {
        top: 58%;
        width: 91vw;
        max-height: 54vh;
    }
}

@media (max-width: 640px) {
    .advanize-showcase__project-stage {
        top: 59%;
        width: calc(100vw - 22px);
        max-height: 49vh;
    }

    .advanize-showcase__piece-frame {
        padding: 7px;
        overflow: hidden;
    }

    .advanize-showcase__piece img {
        max-width: 100%;
        max-height: 100%;
    }

    .advanize-architecture__diagram {
        padding: 16px;
    }
}
/* =====================================================
   CORRECCIÓN DEFINITIVA — BLOQUES 3 Y 4
   ===================================================== */


/* =====================================================
   BLOQUE 3 — DISTRIBUCIÓN VERTICAL CORRECTA
   ===================================================== */

.advanize-architecture__diagram {
    justify-content: flex-start;

    padding:
        42px
        22px
        20px;

    overflow: hidden;
}

/* Recuperamos aire y jerarquía en las capas superiores */

.advanize-architecture__layer {
    min-height: 76px;
    padding: 15px 20px;
}

.advanize-architecture__connector {
    height: 16px;
}

/* Las seis tarjetas conservan lectura sin salir del chasis */

.advanize-architecture__module {
    min-height: 82px;
    padding: 13px 14px 12px;
}

.advanize-architecture__module-number {
    margin-bottom: 9px;
}

.advanize-architecture__module p {
    margin-top: 5px;
    line-height: 1.32;
}


/* =====================================================
   BLOQUE 3 — TARJETA PROTAGONISTA POR DELANTE
   ===================================================== */

/*
 * Esta regla es fundamental.
 * El override anterior la había convertido en relative,
 * haciendo que apareciera detrás de las tarjetas reales.
 */

.advanize-architecture__module-preview {
    position: absolute !important;

    top: 66%;
    left: 50%;

    z-index: 30 !important;

    visibility: hidden;

    transform:
        translate(-50%, -50%)
        scale(0.94);

    pointer-events: none;
}

/* Cuando JavaScript la activa debe quedar por encima de todo */

.advanize-architecture__module-preview.is-active {
    visibility: visible;
    z-index: 30 !important;
}

/* Elementos reales debajo de la protagonista */

.advanize-architecture__layer,
.advanize-architecture__connector,
.advanize-architecture__modules,
.advanize-architecture__signal {
    position: relative;
    z-index: 2;
}


/* =====================================================
   BLOQUE 4 — ESCENARIO CENTRADO Y PROPORCIONADO
   ===================================================== */

.advanize-showcase__project-stage {
    position: absolute;

    top: 57%;
    left: 50%;

    width: min(82vw, 1420px);
    height: min(57vh, 610px);
    max-height: none;

    transform: translate(-50%, -43%);

    overflow: visible;
}

.advanize-showcase__project-stack {
    position: relative;
    width: 100%;
    height: 100%;
}


/* =====================================================
   BLOQUE 4 — MARCO COMO ACOMPAÑAMIENTO
   ===================================================== */

.advanize-showcase__piece-frame {
    position: relative;

    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    padding: 16px;

    background: #070707;

    border: 1px solid rgba(193, 161, 104, 0.14);

    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(255, 255, 255, 0.015);

    overflow: hidden;
}

.advanize-showcase__piece-frame::before {
    inset: 8px;
    border-color: rgba(193, 161, 104, 0.055);
}

.advanize-showcase__piece-frame::after {
    opacity: 0.16;
}


/* =====================================================
   BLOQUE 4 — CAPTURA CENTRADA Y PROTAGONISTA
   ===================================================== */

.advanize-showcase__piece img {
    position: relative;
    z-index: 3;

    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;

    border: 1px solid rgba(193, 161, 104, 0.38);

    background: #050505;

    box-shadow:
        0 20px 54px rgba(0, 0, 0, 0.66),
        0 0 24px rgba(193, 161, 104, 0.13);

    filter:
        saturate(0.97)
        contrast(1.025)
        brightness(0.98);

    transform: translateZ(0);
}


/* Global Group */

.advanize-showcase__project[data-project="global-group"]
.advanize-showcase__piece img {
    border-color: rgba(193, 161, 104, 0.42);

    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.68),
        0 0 27px rgba(193, 161, 104, 0.15);
}


/* Renosto */

.advanize-showcase__project[data-project="renosto"]
.advanize-showcase__piece-frame {
    border-color: rgba(80, 190, 214, 0.12);
}

.advanize-showcase__project[data-project="renosto"]
.advanize-showcase__piece img {
    border-color: rgba(80, 190, 214, 0.31);

    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.66),
        0 0 25px rgba(0, 166, 200, 0.1);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1180px) {
    .advanize-showcase__project-stage {
        width: 86vw;
        height: min(55vh, 570px);
    }
}

@media (max-width: 900px) {
    .advanize-showcase__project-stage {
        top: 59%;
        width: 92vw;
        height: min(52vh, 520px);
    }
}

@media (max-width: 640px) {
    .advanize-architecture__diagram {
        padding:
            30px
            16px
            18px;
    }

    .advanize-architecture__module-preview {
        top: 62%;
    }

    .advanize-showcase__project-stage {
        top: 60%;
        width: calc(100vw - 22px);
        height: 48vh;
    }

    .advanize-showcase__piece-frame {
        padding: 7px;
    }
}
/* =====================================================
   BLOQUE 4 — AJUSTE FINAL DE ESCALA DE LAS CAPTURAS
   ===================================================== */

.advanize-showcase__project-stage {
    top: 57%;
    width: min(84vw, 1440px);
    height: min(58vh, 620px);
    transform: translate(-50%, -43%);
}

.advanize-showcase__piece-frame {
    display: grid;
    place-items: center;

    padding: clamp(18px, 2vw, 34px);

    background:
        radial-gradient(
            circle at center,
            rgba(193, 161, 104, 0.04) 0%,
            transparent 66%
        ),
        #070707;

    border: 1px solid rgba(193, 161, 104, 0.15);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.52),
        inset 0 0 0 1px rgba(255, 255, 255, 0.014);

    overflow: hidden;
}

.advanize-showcase__piece img {
    display: block;

    width: auto;
    height: auto;

    max-width: 84%;
    max-height: 84%;

    object-fit: contain;
    object-position: center;

    border: 1px solid rgba(193, 161, 104, 0.38);

    background: #050505;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.7),
        0 0 28px rgba(193, 161, 104, 0.13);

    filter:
        saturate(0.98)
        contrast(1.025)
        brightness(0.98);
}

/* Global Group */

.advanize-showcase__project[data-project="global-group"]
.advanize-showcase__piece img {
    border-color: rgba(193, 161, 104, 0.44);

    box-shadow:
        0 26px 64px rgba(0, 0, 0, 0.72),
        0 0 30px rgba(193, 161, 104, 0.15);
}

/* Renosto */

.advanize-showcase__project[data-project="renosto"]
.advanize-showcase__piece img {
    border-color: rgba(80, 190, 214, 0.31);

    box-shadow:
        0 26px 64px rgba(0, 0, 0, 0.7),
        0 0 26px rgba(0, 166, 200, 0.1);
}

@media (max-width: 1180px) {
    .advanize-showcase__piece img {
        max-width: 88%;
        max-height: 88%;
    }
}

@media (max-width: 900px) {
    .advanize-showcase__project-stage {
        width: 91vw;
        height: min(54vh, 540px);
    }

    .advanize-showcase__piece img {
        max-width: 92%;
        max-height: 92%;
    }
}

@media (max-width: 640px) {
    .advanize-showcase__project-stage {
        top: 59%;
        width: calc(100vw - 22px);
        height: 48vh;
    }

    .advanize-showcase__piece-frame {
        padding: 8px;
    }

    .advanize-showcase__piece img {
        max-width: 96%;
        max-height: 96%;
    }
}
/* =====================================================
   BLOQUE 4 — AJUSTE DE LAYOUT
   ===================================================== */

@media (max-width: 1180px) {
    .advanize-showcase__project-header {
        width: min(430px, 38vw);
    }

    .advanize-showcase__project-stage {
        left: 62%;
        width: 72vw;
        height: min(58vh, 610px);
    }
}

@media (max-width: 900px) {
    .advanize-showcase__project-header {
        top: 68px;
        left: 28px;
        width: calc(100vw - 56px);
    }

    .advanize-showcase__project-stage {
        top: 61%;
        left: 50%;
        width: 92vw;
        height: min(52vh, 530px);
        transform: translate(-50%, -42%);
    }
}

@media (max-width: 640px) {
    .advanize-showcase__project-header {
        top: 72px;
        left: 18px;
        width: calc(100vw - 36px);
    }

    .advanize-showcase__project-title {
        font-size: 44px;
    }

    .advanize-showcase__project-stage {
        top: 62%;
        left: 50%;
        width: calc(100vw - 20px);
        height: 46vh;
    }

    .advanize-showcase__piece-frame {
        padding: 7px;
    }

    .advanize-showcase__piece img {
        max-width: 100%;
        max-height: 100%;
    }
}
/* =====================================================
   BLOQUE 4 — ESCENA AMPLIA Y COLECCIÓN VERTICAL
   ===================================================== */

.advanize-showcase__project-stage {
    top: 59%;
    left: 59%;

    width: min(82vw, 1480px);
    height: min(61vh, 680px);

    transform: translate(-50%, -43%);
}

.advanize-showcase__piece-frame {
    padding: 14px;
}

/* Durante la presentación se ve la captura completa */

.advanize-showcase__piece:not(.is-assembled) img {
    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;
}

/*
 * Cuando se acomoda, la pieza puede recortarse como
 * una placa vertical de galería.
 */

.advanize-showcase__piece.is-assembled {
    overflow: hidden;
}

.advanize-showcase__piece.is-assembled img {
    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center;
}
/* =====================================================
   BLOQUE 4 — AJUSTE FINAL DEL ESCENARIO DE IMÁGENES
   ===================================================== */
.advanize-showcase__project-stage {
    top: 54%;
    left: 38%;

    width: min(62vw, 1120px);
    height: min(54vh, 590px);

    transform: translate(-50%, -50%);
}
/* Centrar únicamente las tarjetas verticales */
.advanize-showcase__piece.is-assembled {
    margin-left: 20%;
}
