/* =====================================================================
   ItineraryCrafter — Home pública (home.css)
   Requiere site.css (tokens, botones, header, footer).
   Estados de movimiento:
     html.motion          → JS activo y sin "reducir movimiento": hay estados ocultos que
                            revela home.js (con red de seguridad de 3,5 s en el <head>).
     html.no-js / sin .motion → todo visible y estático.
   ===================================================================== */

.home {
    background: #fff;
    color: var(--text);
    overflow-x: clip;
}

.home .site-footer {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ================= TIPOGRAFÍA DE SECCIÓN ================= */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-600);
}

.kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--sand-500);
}

.kicker--light {
    color: var(--blue-300);
}

.section-title {
    margin: 0;
    font-size: clamp(34px, 4.6vw, 60px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.038em;
    color: var(--ink-900);
    text-wrap: balance;
}

.section-title em,
.final__title em {
    font-family: var(--font-serif);
    font-size: 1.05em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.012em;
    color: var(--blue-600);
}

.lead {
    max-width: 640px;
    margin: 22px 0 0;
    font-size: clamp(17px, 1.35vw, 19.5px);
    line-height: 1.6;
    color: var(--text-2);
    text-wrap: pretty;
}

.section-head {
    max-width: 780px;
    margin-bottom: clamp(44px, 6vw, 76px);
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head--center .lead {
    margin-left: auto;
    margin-right: auto;
}

.section-head--dark .section-title {
    color: #fff;
}

.section-head--dark .section-title em {
    color: var(--blue-300);
}

.section-head--dark .lead {
    color: rgba(255, 255, 255, 0.68);
}

.checks {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--n-700);
}

.checks .ic {
    margin-top: 2px;
    padding: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-600);
}

/* ================= REVELADO ================= */

.motion [data-reveal],
.motion [data-split] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition:
        opacity 0.9s var(--ease-out) var(--reveal-delay, 0s),
        transform 1s var(--ease-out) var(--reveal-delay, 0s);
}

.motion [data-reveal].is-in,
.motion [data-split].is-in {
    opacity: 1;
    transform: none;
}

/* SplitText: las líneas animan dentro del título, que ya está visible */
.motion [data-split].is-split {
    opacity: 1;
    transform: none;
    transition: none;
}

.split-line {
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    z-index: 2;
    /* flow-root: el margen negativo de la escena no colapsa con el hero, así el fondo oscuro
       termina a mitad de la escena y las tarjetas se superponen a la sección siguiente */
    display: flow-root;
    isolation: isolate;
    /* La inclinación 3D de la escena proyecta los paneles unos px más allá del viewport
       durante la intro: se recortan en horizontal y la superposición vertical sigue visible */
    overflow-x: clip;
    padding-top: calc(var(--header-h) + clamp(28px, 5vh, 52px));
    background: var(--ink-900);
    color: #fff;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero__bg::after {
    /* viñeta inferior: el fondo oscuro se funde con la grilla de la sección siguiente */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(8, 20, 31, 0), var(--ink-900));
}

.hero__map {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* El mundo entero tiene que leerse: el fundido sólo apaga los extremos */
    -webkit-mask-image: radial-gradient(ellipse 88% 78% at 50% 40%, #000 46%, transparent 100%);
    mask-image: radial-gradient(ellipse 88% 78% at 50% 40%, #000 46%, transparent 100%);
}

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

.hero__glow--blue {
    width: 1000px;
    height: 640px;
    left: 50%;
    top: -14%;
    transform: translateX(-70%);
    background: radial-gradient(closest-side, rgba(47, 123, 255, 0.42), rgba(47, 123, 255, 0) 100%);
    animation: drift-a 22s ease-in-out infinite alternate;
}

.hero__glow--sand {
    width: 760px;
    height: 520px;
    left: 50%;
    top: 4%;
    transform: translateX(10%);
    background: radial-gradient(closest-side, rgba(212, 178, 122, 0.16), rgba(212, 178, 122, 0) 100%);
    animation: drift-b 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
    to {
        transform: translate(-62%, 6%) scale(1.08);
    }
}

@keyframes drift-b {
    to {
        transform: translate(2%, -4%) scale(0.94);
    }
}

.hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
    position: relative;
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 7px 16px 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero__eyebrow-sep {
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, 0.2);
}

.hero__eyebrow-gds {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--blue-200);
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-400);
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--blue-400);
    animation: pulse-ring 2.6s var(--ease-out) infinite;
}

@keyframes pulse-ring {
    from {
        opacity: 0.8;
        transform: scale(0.6);
    }

    to {
        opacity: 0;
        transform: scale(1.9);
    }
}

.hero__title {
    margin: 22px auto 0;
    font-size: clamp(42px, 6.6vw, 92px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.048em;
    color: #fff;
}

.hero__title .line {
    display: block;
    overflow: hidden;
    padding: 0 0.12em 0.12em;
    margin: 0 -0.12em -0.12em;
}

.hero__title .line > span {
    display: inline-block;
}

.hero__title em {
    display: inline-block;
    padding: 0 0.08em 0.02em 0.02em;
    font-family: var(--font-serif);
    font-size: 1.07em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    background: linear-gradient(100deg, var(--blue-200) 0%, #F4F8FF 38%, var(--sand-300) 62%, var(--blue-200) 100%);
    background-size: 220% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.motion .hero__title em {
    animation: sheen 7s ease-in-out 1.4s infinite alternate;
}

@keyframes sheen {
    to {
        background-position: 100% 50%;
    }
}

.hero__lead {
    max-width: 700px;
    margin: 22px auto 0;
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    text-wrap: pretty;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.hero__assurances {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 22px 0 0;
    padding: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
}

.hero__assurances li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero__assurances .ic {
    color: var(--blue-300);
}

/* Entrada del hero (CSS puro: no depende de que cargue JS externo) */
.motion .hero__eyebrow,
.motion .hero__lead,
.motion .hero__ctas,
.motion .hero__assurances {
    opacity: 0;
    animation: fade-up 1s var(--ease-out) forwards;
}

.motion .hero__eyebrow {
    animation-delay: 0.05s;
}

.motion .hero__lead {
    animation-delay: 0.42s;
}

.motion .hero__ctas {
    animation-delay: 0.55s;
}

.motion .hero__assurances {
    animation-delay: 0.68s;
}

.motion .hero__title .line > span {
    transform: translate3d(0, 108%, 0);
    animation: rise-in 1.15s var(--ease-out) forwards;
    animation-delay: 0.14s;
}

.motion .hero__title .line:nth-child(2) > span {
    animation-delay: 0.26s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes rise-in {
    to {
        transform: none;
    }
}

/* ================= ESCENA DEL HERO ================= */

.stage {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 2 * var(--gutter)));
    margin: clamp(40px, 5.5vh, 60px) auto -160px;
    container-type: inline-size;
    perspective: 1900px;
    perspective-origin: 50% 0%;
}

.stage__rig {
    --rx: 12deg;
    --ry: 0deg;
    --tx: 0px;
    position: relative;
    font-size: 1cqw;
    width: 100em;
    height: 35em;
    transform-style: preserve-3d;
    transform-origin: 50% 0%;
    transform: translate3d(var(--tx), 0, 0) rotateX(var(--rx)) rotateY(var(--ry));
    will-change: transform;
}

.motion .stage {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    animation: fade-up 1.2s var(--ease-out) 0.62s forwards;
}

.stage__links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.stage__link {
    fill: none;
    stroke: url(#linkGrad);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 120;
    stroke-dashoffset: 0;
}

.pane {
    position: absolute;
    border-radius: 1.25em;
}

.pane__label {
    position: absolute;
    left: 0.4em;
    top: -2.9em;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.42em 0.9em 0.42em 0.7em;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02em;
    font-weight: 500;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.pane__label .ic {
    width: 1.1em;
    height: 1.1em;
    color: var(--blue-300);
}

/* 1 · PNR crudo */
.pane--pnr {
    left: 0;
    top: 6em;
    width: 30em;
    background: linear-gradient(180deg, rgba(22, 42, 62, 0.92), rgba(9, 22, 34, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2.4em 5em -1.2em rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: visible;
}

.pane__bar {
    display: flex;
    align-items: center;
    gap: 0.9em;
    padding: 0.95em 1.15em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.98em;
    color: rgba(255, 255, 255, 0.6);
}

.pane__dots {
    display: inline-flex;
    gap: 0.42em;
}

.pane__dots i {
    width: 0.62em;
    height: 0.62em;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.pane__title {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.pane__meta {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.95em;
    color: var(--sand-300);
    letter-spacing: 0.04em;
}

.pnr {
    position: relative;
    padding: 1.15em 1.25em 1.35em;
    font-family: var(--font-mono);
    font-size: 0.98em;
    line-height: 1.85;
    color: #D5E2F7;
    overflow: hidden;
}

.pnr__l {
    display: block;
    white-space: pre;
    border-radius: 0.3em;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.pnr__l--muted {
    color: rgba(213, 226, 247, 0.42);
}

.pnr__l--seg.is-hit {
    color: #fff;
    background: linear-gradient(90deg, rgba(92, 151, 255, 0.22), rgba(92, 151, 255, 0.02));
}

.pane__scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 3em;
    height: 3.6em;
    background: linear-gradient(180deg, rgba(92, 151, 255, 0), rgba(92, 151, 255, 0.16), rgba(92, 151, 255, 0));
    border-bottom: 1px solid rgba(92, 151, 255, 0.5);
    opacity: 0;
    pointer-events: none;
}

/* 2 · PNR decodificado */
.pane--decoded {
    left: 35em;
    top: 2.2em;
    width: 30em;
    padding: 1.3em 1.35em 1.4em;
    background: #fff;
    color: var(--text);
    box-shadow: 0 2.6em 6em -1.6em rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.decoded__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--n-150);
}

.decoded__app {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    font-family: var(--font-serif);
    font-size: 1.55em;
    color: var(--ink-900);
}

.decoded__app .ic {
    width: 0.8em;
    height: 0.8em;
    color: var(--blue-600);
}

.decoded__ok {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.35em 0.75em;
    border-radius: var(--r-pill);
    background: var(--blue-50);
    color: var(--blue-700);
    font-size: 0.92em;
    font-weight: 600;
}

.decoded__ok .ic {
    width: 1em;
    height: 1em;
}

.decoded__pax {
    margin: 1em 0 0.6em;
    font-size: 0.98em;
    color: var(--n-700);
}

.decoded__pax span {
    display: block;
    margin-bottom: 0.25em;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--n-400);
}

.decoded__flights {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dflight {
    display: grid;
    grid-template-columns: 5.4em 7.2em 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.9em;
    align-items: center;
    padding: 0.85em 0;
    border-top: 1px solid var(--n-150);
}

.dflight__no {
    grid-row: span 2;
    font-family: var(--font-mono);
    font-size: 1.02em;
    font-weight: 600;
    color: var(--ink-900);
}

.dflight__route {
    grid-row: span 2;
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 1.02em;
}

.dflight__route b {
    font-weight: 600;
    color: var(--ink-800);
}

.dflight__route i {
    flex: 1;
    height: 1px;
    min-width: 1.4em;
    background: linear-gradient(90deg, var(--sand-500), var(--blue-500));
    position: relative;
}

.dflight__route i::after {
    content: "";
    position: absolute;
    right: -1px;
    top: -0.22em;
    border: 0.25em solid transparent;
    border-left-color: var(--blue-500);
    border-right: 0;
}

.dflight__time {
    font-size: 0.98em;
    font-weight: 500;
    color: var(--ink-800);
    white-space: nowrap;
}

.dflight__time em {
    font-style: normal;
    color: var(--n-500);
}

.dflight__air {
    font-size: 0.86em;
    color: var(--n-500);
}

/* 3 · Documento */
.pane--doc {
    left: 70em;
    top: -0.5em;
    width: 30em;
}

.mini-doc {
    overflow: hidden;
    border-radius: 1.1em;
    background: #fff;
    font-family: var(--doc-sans);
    color: var(--doc-ink);
    box-shadow: 0 3em 7em -2em rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(19, 41, 74, 0.06);
}

.mini-doc__band {
    padding: 1.6em 1.9em 1.4em;
    background: var(--doc-paper);
}

.mini-doc__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-doc__kicker,
.mini-doc__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65em;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--doc-ink);
}

.mini-doc__kicker i,
.mini-doc__eyebrow i {
    width: 1.7em;
    height: 0.2em;
    background: var(--doc-ink);
}

.mini-doc__eyebrow i {
    background: var(--doc-accent);
}

.mini-doc__logo {
    padding: 0.35em 0.7em;
    border: 1px dashed var(--doc-muted);
    font-size: 0.7em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.mini-doc__band .mini-doc__eyebrow {
    margin-top: 1.7em;
}

.mini-doc__title {
    display: block;
    margin: 0.25em 0 0.55em;
    font-family: var(--font-serif);
    font-size: 2.95em;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--doc-ink);
}

.mini-doc__meta {
    margin: 0;
    border-top: 1.5px solid var(--doc-ink);
}

.mini-doc__meta div {
    display: grid;
    grid-template-columns: 6.4em 1fr;
    gap: 0.6em;
    padding: 0.55em 0;
    border-bottom: 1px solid var(--doc-line);
}

.mini-doc__meta dt {
    font-size: 0.66em;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--doc-muted);
    align-self: center;
}

.mini-doc__meta dd {
    margin: 0;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--doc-text);
}

.mini-doc__body {
    padding: 1.4em 1.9em 1.7em;
}

.mini-doc__flight {
    margin: 0.9em 0 0.6em;
    font-size: 0.92em;
    color: var(--doc-text);
}

.mini-doc__flight small {
    margin: 0 0.4em 0 0.8em;
    font-size: 0.72em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.mini-doc__route {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-family: var(--font-serif);
    font-size: 1.3em;
    color: var(--doc-ink);
}

.mini-doc__route small {
    font-size: 0.8em;
}

.mini-doc__arrow {
    position: relative;
    flex: 1;
    height: 1.5px;
    background: var(--doc-accent);
    transform-origin: left center;
}

.mini-doc__arrow::before {
    content: "";
    position: absolute;
    left: -0.2em;
    top: -0.24em;
    width: 0.48em;
    height: 0.48em;
    border: 1.5px solid var(--doc-accent);
    border-radius: 50%;
    background: #fff;
}

.mini-doc__arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -0.28em;
    width: 0.56em;
    height: 0.56em;
    border-top: 1.5px solid var(--doc-accent);
    border-right: 1.5px solid var(--doc-accent);
    transform: rotate(45deg);
}

.mini-doc__times {
    display: flex;
    justify-content: space-between;
    margin-top: 0.7em;
    font-size: 0.86em;
    font-weight: 600;
    color: var(--doc-text);
}

.mini-doc__times span:last-child {
    text-align: right;
}

.mini-doc__times small {
    display: block;
    font-size: 0.72em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--doc-muted);
    font-weight: 600;
}

.mini-doc__lines {
    display: grid;
    gap: 0.6em;
    margin-top: 1.4em;
    padding-top: 1.2em;
    border-top: 1px solid var(--doc-line);
}

.mini-doc__lines i {
    height: 0.5em;
    border-radius: 0.25em;
    background: var(--doc-line);
}

.mini-doc__lines i:nth-child(1) {
    width: 92%;
}

.mini-doc__lines i:nth-child(2) {
    width: 78%;
}

.mini-doc__lines i:nth-child(3) {
    width: 55%;
}

.pane__badges {
    position: absolute;
    right: -1.4em;
    bottom: 3.4em;
    display: grid;
    gap: 0.6em;
}

.fmt {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.55em 0.95em;
    border-radius: 0.75em;
    font-size: 0.98em;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 1em 2.4em -0.8em rgba(0, 0, 0, 0.55);
}

.fmt .ic {
    width: 1.1em;
    height: 1.1em;
}

.fmt--pdf {
    background: linear-gradient(135deg, #B4433A, #8F2F28);
}

.fmt--word {
    background: linear-gradient(135deg, #2F5FA8, #234A87);
}

.pane--doc .pane__label {
    left: auto;
    right: 0.4em;
}

.pane__label--light {
    background: rgba(255, 255, 255, 0.1);
}

/* Secuencia de la escena: la activa home.js (.is-playing) cuando la escena está a la vista */
.motion .pane--pnr,
.motion .pane--decoded,
.motion .pane--doc,
.motion .pane__label,
.motion .dflight,
.motion .pane__badges .fmt {
    opacity: 0;
}

.motion .stage__link {
    stroke-dashoffset: 120;
}

.motion .mini-doc__arrow {
    transform: scaleX(0);
}

.motion .stage.is-playing .pane--pnr {
    animation: pane-in 0.9s var(--ease-out) 0.05s forwards;
}

.motion .stage.is-playing .pane--pnr .pane__label {
    animation: label-in 0.7s var(--ease-out) 0.35s forwards;
}

.motion .stage.is-playing .pane__scan {
    animation: scan 1.3s var(--ease-in-out) 0.95s forwards;
}

.motion .stage.is-playing .stage__link--a {
    animation: draw 0.9s var(--ease-out) 1.35s forwards;
}

.motion .stage.is-playing .pane--decoded {
    animation: pane-in 0.9s var(--ease-out) 1.45s forwards;
}

.motion .stage.is-playing .pane--decoded .pane__label {
    animation: label-in 0.7s var(--ease-out) 1.75s forwards;
}

.motion .stage.is-playing .dflight:nth-child(1) {
    animation: row-in 0.6s var(--ease-out) 1.75s forwards;
}

.motion .stage.is-playing .dflight:nth-child(2) {
    animation: row-in 0.6s var(--ease-out) 1.95s forwards;
}

.motion .stage.is-playing .dflight:nth-child(3) {
    animation: row-in 0.6s var(--ease-out) 2.15s forwards;
}

.motion .stage.is-playing .stage__link--b {
    animation: draw 0.9s var(--ease-out) 2.35s forwards;
}

.motion .stage.is-playing .pane--doc {
    animation: doc-in 1.1s var(--ease-out) 2.45s forwards;
}

.motion .stage.is-playing .pane--doc .pane__label {
    animation: label-in 0.7s var(--ease-out) 3.2s forwards;
}

.motion .stage.is-playing .mini-doc__arrow {
    animation: arrow-draw 0.9s var(--ease-out) 3s forwards;
}

.motion .stage.is-playing .fmt--pdf {
    animation: pop-in 0.6s var(--ease-spring) 3.3s forwards;
}

.motion .stage.is-playing .fmt--word {
    animation: pop-in 0.6s var(--ease-spring) 3.45s forwards;
}

@keyframes pane-in {
    from {
        opacity: 0;
        transform: translate3d(0, 2.4em, 0) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes doc-in {
    from {
        opacity: 0;
        transform: translate3d(1.5em, 2.6em, 0) rotate(2deg) scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes label-in {
    from {
        opacity: 0;
        transform: translate3d(0, 0.6em, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes row-in {
    from {
        opacity: 0;
        transform: translate3d(-1em, 0, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes arrow-draw {
    to {
        transform: scaleX(1);
    }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.6) translate3d(0, 0.6em, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes scan {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 9.5em, 0);
    }
}

/* Escena en pantallas chicas: PNR y documento, apilados */
@container (max-width: 720px) {
    .stage__rig {
        font-size: 2.55cqw;
        width: 100%;
        height: auto;
        padding-top: 3.4em;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4.6em;
    }

    .pane {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: auto;
    }

    .pane--pnr {
        margin-right: 8%;
    }

    .pane--decoded,
    .stage__links {
        display: none;
    }

    .pane--doc {
        margin-left: 6%;
        margin-right: 2.5em;
    }

    .pane__badges {
        right: 0.8em;
        bottom: 1.2em;
    }

    .pnr {
        font-size: 0.9em;
    }
}

/* ================= PRUEBA / DATOS ================= */

.proof {
    position: relative;
    z-index: 1;
    padding: 220px 0 72px;
    background: #fff;
}

.proof__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--n-150);
    border-bottom: 1px solid var(--n-150);
}

.proof__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 26px;
}

.proof__item + .proof__item {
    border-left: 1px solid var(--n-150);
}

.proof__value {
    font-size: clamp(19px, 1.9vw, 26px);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink-900);
    font-variant-numeric: tabular-nums;
}

.proof__value--text {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.35;
}

.proof__label {
    font-size: 14px;
    color: var(--text-3);
}

.proof__item:nth-child(2) {
    --reveal-delay: 0.08s;
}

.proof__item:nth-child(3) {
    --reveal-delay: 0.16s;
}

.proof__item:nth-child(4) {
    --reveal-delay: 0.24s;
}

/* ================= PROBLEMA ================= */

.problem {
    padding: clamp(64px, 8vw, 112px) 0 clamp(90px, 11vw, 150px);
    background: #fff;
}

.problem__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.pains {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.pains li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--n-150);
}

.pains__n {
    padding-top: 3px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--sand-600);
}

.pains p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-2);
}

.pains strong {
    color: var(--ink-900);
    font-weight: 600;
}

.problem__answer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 34px 0 0;
    padding: 16px 20px 16px 16px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--blue-50), rgba(239, 245, 255, 0.4));
    border: 1px solid var(--blue-100);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-800);
}

.problem__answer-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

/* Collage caos → orden */
.chaos {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    justify-self: center;
}

.chaos::before {
    content: "";
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--n-50), rgba(247, 249, 250, 0));
}

.frag {
    position: absolute;
    z-index: 1;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-md);
    font-size: 13px;
    color: var(--n-700);
    will-change: transform;
}

.frag__label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--n-400);
}

.frag code {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--ink-800);
    white-space: nowrap;
}

.frag--pnr {
    left: 0;
    top: 9%;
    transform: rotate(-7deg);
    background: var(--ink-900);
}

.frag--pnr code {
    color: #D5E2F7;
}

.frag--pnr .frag__label {
    color: var(--blue-300);
}

.frag--sheet {
    right: 2%;
    top: 3%;
    padding: 10px;
    transform: rotate(6deg);
}

.sheet-grid {
    display: grid;
    grid-template-columns: 18px repeat(3, 58px);
    border: 1px solid var(--n-200);
    font-size: 11.5px;
}

.sheet-grid span {
    padding: 4px 6px;
    border-right: 1px solid var(--n-150);
    border-bottom: 1px solid var(--n-150);
    color: var(--n-700);
    white-space: nowrap;
}

.sheet-grid .h {
    background: var(--n-100);
    color: var(--n-400);
    text-align: center;
    font-size: 10.5px;
}

.sheet-grid .err {
    color: #C2352B;
    font-weight: 700;
    background: #FDF1F0;
}

.frag--note {
    left: 6%;
    bottom: 13%;
    max-width: 170px;
    padding: 16px 16px 18px;
    border-radius: 4px;
    background: #FFF5CC;
    font-family: var(--font-serif);
    font-size: 17px;
    font-style: italic;
    line-height: 1.3;
    color: #5C4A12;
    transform: rotate(-4deg);
    box-shadow: 0 10px 24px -8px rgba(92, 74, 18, 0.35);
}

.frag--chat {
    right: 0;
    bottom: 30%;
    max-width: 210px;
    padding: 10px 14px 8px;
    border-radius: 14px 14px 4px 14px;
    background: #E7EEFA;
    color: #13294A;
    transform: rotate(3deg);
}

.frag--chat span {
    display: block;
    line-height: 1.4;
}

.frag--chat small {
    display: block;
    margin-top: 4px;
    text-align: right;
    font-size: 10.5px;
    color: #4D6A99;
}

.frag--file {
    left: 30%;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: rotate(-2deg);
}

.frag__file-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 30px;
    border-radius: 4px;
    background: #2F5FA8;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

.frag--mail {
    right: 10%;
    bottom: 5%;
    transform: rotate(-5deg);
}

.frag--mail small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--n-400);
}

.frag--calc {
    left: 2%;
    top: 46%;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-800);
    transform: rotate(5deg);
}

.chaos__result {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: min(330px, 74%);
    padding: 20px 22px 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(47, 123, 255, 0.18);
    transform: translate(-50%, -50%);
}

.chaos__result-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--n-600);
}

.chaos__result-ok {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--blue-50);
    color: var(--blue-700);
    font-size: 11.5px;
}

.chaos__result-title {
    display: block;
    margin: 12px 0 10px;
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.1;
    color: #13294A;
}

.chaos__result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1.5px solid #13294A;
}

.chaos__result-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #DAE1EB;
    font-size: 13px;
    color: var(--n-600);
}

.chaos__result-list li span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.chaos__result-list .ic {
    color: var(--blue-600);
}

.chaos__result-list b {
    font-weight: 600;
    color: var(--ink-900);
    text-align: right;
}

/* ================= HERRAMIENTAS (recorrido) ================= */

.tour {
    padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 8vw, 110px);
    background: linear-gradient(180deg, #fff 0, var(--n-50) 30%, var(--n-50) 100%);
}

.tour__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
}

.tour-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 82vh;
    padding: 6vh 0;
}

.tour-step:first-child {
    min-height: 70vh;
    justify-content: flex-start;
    padding-top: 9vh;
}

.tour-step__copy {
    max-width: 450px;
    transition: opacity 0.5s ease;
}

.js .tour__grid.is-enhanced .tour-step__copy {
    opacity: 0.32;
}

.js .tour__grid.is-enhanced .tour-step.is-active .tour-step__copy {
    opacity: 1;
}

.tour-step__tool {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-700);
}

.tour-step__ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    color: var(--blue-600);
    box-shadow: var(--shadow-sm);
}

.tour-step h3 {
    margin: 0;
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.028em;
    color: var(--ink-900);
}

.tour-step p {
    margin: 16px 0 0;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-2);
}

.tour-step__slot {
    display: none;
}

.tour__stage {
    position: sticky;
    top: calc(var(--header-h) + 5vh);
    align-self: start;
    height: min(640px, 86vh);
    display: flex;
    align-items: center;
}

/* Ventana de la app (emulación del producto con el nuevo shell) */
.app-window {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(14, 27, 39, 0.07), 0 30px 70px -20px rgba(14, 27, 39, 0.3), 0 12px 24px -12px rgba(14, 27, 39, 0.12);
    font-size: 13px;
}

.app-window__bar {
    display: flex;
    align-items: stretch;
    height: 44px;
    padding: 0 12px;
    background: var(--ink-900);
    color: rgba(255, 255, 255, 0.62);
}

.app-window__brand {
    display: inline-flex;
    align-items: center;
    padding-right: 10px;
    margin-right: 4px;
}

.app-window__tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.4s ease;
}

.app-window__tab::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--blue-400);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out);
}

.app-window__tab.is-active {
    color: #fff;
}

.app-window__tab.is-active .ic {
    color: var(--blue-300);
}

.app-window__tab.is-active::after {
    transform: scaleX(1);
}

.app-window__avatar {
    align-self: center;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--blue-300), var(--blue-500));
    color: var(--ink-950);
    font-size: 10.5px;
    font-weight: 700;
}

.app-window__screens {
    position: relative;
    height: 548px;
    background: var(--canvas);
}

.screen {
    position: absolute;
    inset: 0;
    padding: 20px 22px;
    overflow: hidden;
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.985);
    transition: opacity 0.5s ease, transform 0.7s var(--ease-out);
    pointer-events: none;
}

.screen.is-active {
    opacity: 1;
    transform: none;
}

.no-js .screen {
    position: relative;
    opacity: 1;
    transform: none;
}

.no-js .app-window__screens {
    height: auto;
}

.scr-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.scr-title {
    font-family: var(--font-serif);
    font-size: 23px;
    color: var(--ink-900);
}

.scr-sub {
    font-size: 11.5px;
    color: var(--n-500);
}

.scr-autosave {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--success);
}

.scr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid var(--n-200);
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: var(--n-800);
    white-space: nowrap;
}

.scr-btn--primary {
    border-color: transparent;
    background: var(--blue-600);
    color: #fff;
}

.scr-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* PNR */
.scr-input {
    position: relative;
    padding: 12px 14px 44px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--n-200);
}

.scr-input code {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.75;
    color: var(--n-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scr-input .scr-btn {
    position: absolute;
    left: 14px;
    bottom: 10px;
}

.scr-summary {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
    margin-top: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--n-150);
}

.scr-summary div {
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--n-800);
}

.scr-summary div + div {
    border-left: 1px solid var(--n-150);
}

.scr-summary small {
    display: block;
    margin-bottom: 3px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--n-400);
}

.scr-big {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink-900);
}

.scr-table {
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--n-150);
}

.scr-tr {
    display: grid;
    grid-template-columns: 0.75fr 1.4fr 1.4fr 1fr;
    gap: 10px;
    align-items: start;
    padding: 9px 12px;
    font-size: 11px;
    color: var(--n-800);
}

.scr-tr + .scr-tr {
    border-top: 1px solid var(--n-150);
}

.scr-tr--head {
    background: var(--n-50);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--n-500);
}

.scr-tr b {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--ink-900);
}

.scr-tr small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: var(--n-500);
}

/* Cotización */
.scr-params {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.scr-params div {
    padding: 9px 11px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--n-150);
}

.scr-params small,
.scr-meta small,
.scr-totals small {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--n-400);
}

.scr-params span {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-900);
}

.scr-adj {
    display: flex;
    gap: 14px;
    margin: 10px 0 12px;
    font-size: 11px;
    color: var(--n-600);
}

.scr-adj b {
    color: var(--blue-700);
}

.scr-concepts {
    display: grid;
    gap: 7px;
}

.scr-concept {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "name a b"
        "vals sub sub";
    gap: 4px 6px;
    align-items: center;
    padding: 9px 11px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--n-150);
}

.scr-concept__name {
    grid-area: name;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scr-concept .chip:nth-of-type(1) {
    grid-area: a;
}

.scr-concept .chip:nth-of-type(2) {
    grid-area: b;
}

.scr-concept__vals {
    grid-area: vals;
    font-size: 10.5px;
    color: var(--n-500);
}

.scr-concept__sub {
    grid-area: sub;
    justify-self: end;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-900);
    white-space: nowrap;
}

.scr-concept__sub small {
    margin-left: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--blue-700);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--n-100);
    font-size: 10px;
    font-weight: 600;
    color: var(--n-600);
    white-space: nowrap;
}

.chip--aereo {
    background: #E8F0FB;
    color: #2F5FA8;
}

.chip--terrestre {
    background: #ECEBFB;
    color: #4B44A6;
}

.chip--fee {
    background: #F7EFE2;
    color: var(--sand-600);
}

.scr-totals {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 8px;
    margin-top: 12px;
}

.scr-totals div {
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--n-150);
}

.scr-totals span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-900);
}

.scr-totals .scr-grand {
    background: var(--ink-900);
    border-color: transparent;
}

.scr-totals .scr-grand small {
    color: rgba(255, 255, 255, 0.55);
}

.scr-totals .scr-grand span {
    font-size: 15px;
    color: #fff;
}

.scr-totals .scr-grand b {
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 400;
    color: var(--blue-200);
}

/* Itinerario */
.scr-meta {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr 0.9fr;
    gap: 8px;
}

.scr-meta span {
    padding: 8px 10px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--n-150);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scr-logo {
    font-style: normal;
    padding: 1px 6px;
    border: 1px dashed var(--n-300);
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--n-600);
}

.scr-addrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.scr-addrow span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 7px;
    border: 1px solid var(--n-200);
    background: #fff;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--n-700);
}

.scr-addrow .ic {
    color: var(--blue-600);
}

.scr-addrow__import {
    border-style: dashed !important;
    color: var(--blue-700) !important;
}

.scr-builder {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 10px;
}

.scr-blocks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.scr-blocks li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--n-150);
    font-size: 11.5px;
    color: var(--ink-900);
    white-space: nowrap;
}

.scr-blocks .grip {
    color: var(--n-300);
    display: inline-flex;
}

.scr-blocks .t {
    overflow: hidden;
    text-overflow: ellipsis;
}

.kind {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.kind--flight {
    background: #E8F0FB;
    color: #2F5FA8;
}

.kind--hotel {
    background: #F7EFE2;
    color: var(--sand-600);
}

.kind--transfer {
    background: #E9EEF5;
    color: #3E5878;
}

.kind--activity {
    background: #F3ECF9;
    color: #6B4A93;
}

.kind--map {
    background: #ECF5EA;
    color: #3D7A35;
}

.scr-voucher {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--n-200);
    font-size: 9.5px;
    font-weight: 600;
    color: var(--n-600);
}

.scr-preview {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--n-150);
}

.scr-preview small {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--n-400);
}

.scr-preview__title {
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--doc-ink);
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--doc-ink);
}

.scr-preview__line {
    height: 6px;
    border-radius: 3px;
    background: var(--doc-line);
}

.scr-preview__line.w90 {
    width: 90%;
}

.scr-preview__line.w80 {
    width: 80%;
}

.scr-preview__line.w70 {
    width: 70%;
}

.scr-preview__line.w60 {
    width: 60%;
}

.scr-preview__route {
    position: relative;
    height: 14px;
}

.scr-preview__route i {
    position: absolute;
    left: 4px;
    right: 8px;
    top: 6px;
    height: 1.5px;
    background: var(--doc-accent);
}

.scr-preview__route::before,
.scr-preview__route::after {
    content: "";
    position: absolute;
    top: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--doc-accent);
    background: #fff;
}

.scr-preview__route::before {
    left: 0;
}

.scr-preview__route::after {
    right: 0;
    background: var(--doc-accent);
}

/* ================= FLUJO ================= */

.flow {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 9vw, 120px);
    background: var(--ink-900);
    color: #fff;
}

.flow__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px 360px at 20% 30%, rgba(47, 123, 255, 0.22), transparent 70%),
        radial-gradient(520px 320px at 85% 70%, rgba(212, 178, 122, 0.12), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 64px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 64px 100%;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 40%, transparent 100%);
}

.flow__map {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    aspect-ratio: 1200 / 440;
}

.flow__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.flow__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 1.5;
    stroke-dasharray: 2 7;
    vector-effect: non-scaling-stroke;
}

.flow__path {
    fill: none;
    stroke: var(--blue-400);
    stroke-width: 2.4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(92, 151, 255, 0.7));
}

.flow__path--out {
    stroke: var(--sand-400);
    filter: drop-shadow(0 0 6px rgba(212, 178, 122, 0.6));
}

.flow__packet {
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(92, 151, 255, 0.35), 0 0 22px 6px rgba(92, 151, 255, 0.6);
    opacity: 0;
    pointer-events: none;
}

.flow__packet--out {
    box-shadow: 0 0 0 4px rgba(212, 178, 122, 0.35), 0 0 22px 6px rgba(212, 178, 122, 0.6);
}

.flow__nodes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flow-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 12px 18px 12px 12px;
    border-radius: 16px;
    background: rgba(13, 30, 46, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.6s var(--ease-out);
    white-space: nowrap;
}

.flow-node--pnr {
    --x: 12.5%;
    --y: 25%;
}

.flow-node--quote {
    --x: 12.5%;
    --y: 75%;
}

.flow-node--hub {
    --x: 50%;
    --y: 50%;
    padding: 16px 22px 16px 16px;
}

.flow-node--client {
    --x: 87.5%;
    --y: 50%;
}

.flow-node__ic {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(92, 151, 255, 0.12);
    color: var(--blue-300);
}

.flow-node--hub .flow-node__ic {
    width: 48px;
    height: 48px;
    background: var(--blue-600);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(92, 151, 255, 0.5), 0 0 26px rgba(47, 123, 255, 0.55);
}

.flow-node--client .flow-node__ic {
    background: rgba(212, 178, 122, 0.14);
    color: var(--sand-300);
}

.flow-node__name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.flow-node--hub .flow-node__name {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 400;
}

.flow-node__desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
}

.flow-node.is-lit {
    border-color: rgba(92, 151, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(92, 151, 255, 0.1), 0 18px 50px -12px rgba(47, 123, 255, 0.6);
}

.flow-node--client.is-lit {
    border-color: rgba(212, 178, 122, 0.6);
    box-shadow: 0 0 0 4px rgba(212, 178, 122, 0.1), 0 18px 50px -12px rgba(212, 178, 122, 0.45);
}

/* ================= RESULTADO ================= */

.result {
    position: relative;
    overflow: hidden;
    padding: clamp(96px, 12vw, 160px) 0 clamp(90px, 11vw, 140px);
    background:
        radial-gradient(900px 500px at 50% 36%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
        var(--paper);
}

.result .section-title em {
    color: var(--sand-600);
}

.docs {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    container-type: inline-size;
    perspective: 2200px;
}

.docs__rig {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    font-size: 1cqw;
    height: 56em;
    transform-style: preserve-3d;
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 0.6s var(--ease-out);
}

.docs__shadow {
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 1%;
    height: 6%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(19, 41, 74, 0.28), transparent);
    filter: blur(8px);
    pointer-events: none;
}

.sheet {
    --x: 0em;
    --y: 0em;
    --r: 0deg;
    --z: 0em;
    position: absolute;
    left: 50%;
    top: 1.5em;
    width: 35em;
    aspect-ratio: 1 / 1.414;
    margin-left: -17.5em;
    padding: 2.6em 2.6em 2em;
    overflow: hidden;
    border-radius: 0.5em;
    background: #fff;
    font-family: var(--doc-sans);
    color: var(--doc-text);
    box-shadow: 0 0 0 1px rgba(19, 41, 74, 0.06), 0 3em 6em -2em rgba(19, 41, 74, 0.32), 0 1em 2em -1em rgba(19, 41, 74, 0.12);
    transform: translate3d(var(--x), var(--y), var(--z)) rotate(var(--r));
    will-change: transform;
}

.sheet--quote {
    --x: -27em;
    --y: 4.5em;
    --r: -7deg;
    --z: -6em;
}

.sheet--flights {
    --x: 27em;
    --y: 4.5em;
    --r: 7deg;
    --z: -6em;
}

.sheet--itin {
    --z: 3em;
    padding: 0 0 2em;
}

.sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet__kicker,
.sheet__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    font-size: 0.68em;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--doc-ink);
}

.sheet__kicker i,
.sheet__eyebrow i {
    width: 1.9em;
    height: 0.22em;
    background: var(--doc-ink);
}

.sheet__eyebrow i {
    background: var(--doc-accent);
}

.sheet__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.35em 0.7em;
    border: 1px solid var(--doc-line);
    border-radius: 0.3em;
    font-size: 0.66em;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--doc-ink);
}

.sheet__title {
    display: block;
    margin: 1.2em 0 0.7em;
    font-family: var(--font-serif);
    font-size: 3.4em;
    line-height: 1.02;
    color: var(--doc-ink);
}

.sheet__title--xl {
    margin-top: 0.2em;
    font-size: 3.7em;
}

.sheet__strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    padding: 0.9em 0;
    border-top: 1.5px solid var(--doc-ink);
    border-bottom: 1px solid var(--doc-line);
    font-size: 0.95em;
    font-weight: 600;
}

.sheet__strip small,
.sheet__cells small,
.sheet__times small,
.sheet__pax small,
.ticket__rail small {
    display: block;
    font-size: 0.66em;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.sheet__ledger {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 1.4em;
    font-size: 0.92em;
}

.sheet__ledger > span {
    padding: 0.75em 0;
    border-bottom: 1px solid var(--doc-line);
}

.sheet__ledger .lh {
    padding: 0 0 0.6em;
    border-bottom: 1.5px solid var(--doc-ink);
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.sheet__ledger small {
    display: block;
    font-size: 0.8em;
    color: var(--doc-muted);
}

.sheet__ledger .r {
    text-align: right;
    font-weight: 600;
    color: var(--doc-ink);
}

.sheet__ledger > .r:not(.lh) {
    padding-left: 0.8em;
    padding-right: 0.8em;
    margin-right: -0.8em;
    background: var(--doc-mist);
}

.sheet__total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1em;
    margin: 2.2em -1.2em 0;
    padding: 1.3em 1.2em;
    border-top: 1.5px solid var(--doc-ink);
    background: var(--doc-mist);
}

.sheet__total small {
    font-size: 0.66em;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.sheet__total span {
    font-family: var(--font-serif);
    font-size: 3.1em;
    line-height: 1;
    color: var(--doc-ink);
}

.sheet__total em {
    font-family: var(--doc-sans);
    font-size: 0.32em;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.sheet__foot {
    position: absolute;
    left: 2.6em;
    right: 2.6em;
    bottom: 1.6em;
    display: flex;
    justify-content: space-between;
    gap: 1em;
    padding-top: 0.7em;
    border-top: 1px solid var(--doc-line);
    font-size: 0.66em;
    color: var(--doc-muted);
}

.sheet__foot span:last-child {
    font-weight: 700;
    color: var(--doc-ink);
}

.sheet__pax {
    padding: 0.9em 0;
    border-top: 1px solid var(--doc-line);
    font-size: 0.9em;
}

.ticket {
    display: grid;
    grid-template-columns: 8.4em 1fr;
    margin-top: 1em;
    border-top: 1.5px solid var(--doc-ink);
}

.ticket__rail {
    padding: 0.8em 0.9em;
    margin-left: -0.9em;
    background: var(--doc-paper);
    font-size: 0.86em;
}

.ticket__rail b {
    display: block;
    margin-bottom: 0.4em;
    font-size: 1.15em;
    color: var(--doc-ink);
}

.ticket__main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 0.7em;
    align-items: center;
    padding: 0.9em 0 0.9em 1.2em;
}

.ticket__t {
    font-size: 1.55em;
    font-weight: 600;
    color: var(--doc-ink);
}

.ticket__t small {
    margin-left: 0.2em;
    font-size: 0.5em;
    color: var(--doc-muted);
}

.ticket__line {
    position: relative;
    height: 1.5px;
    background: var(--doc-accent);
}

.ticket__line::before {
    content: "";
    position: absolute;
    left: -0.15em;
    top: -0.2em;
    width: 0.42em;
    height: 0.42em;
    border-radius: 50%;
    border: 1.5px solid var(--doc-accent);
    background: #fff;
}

.ticket__line::after {
    content: "";
    position: absolute;
    right: 0;
    top: -0.26em;
    width: 0.5em;
    height: 0.5em;
    border-top: 1.5px solid var(--doc-accent);
    border-right: 1.5px solid var(--doc-accent);
    transform: rotate(45deg);
}

.ticket__ap {
    margin-top: 0.3em;
    font-size: 0.8em;
    color: var(--doc-muted);
}

.ticket__ap.r {
    text-align: right;
}

.sheet__band {
    padding: 2.6em 2.6em 1.6em;
    background: var(--doc-paper);
}

.sheet__band .sheet__eyebrow {
    margin-top: 2.2em;
}

.sheet__meta {
    margin: 0;
    border-top: 1.5px solid var(--doc-ink);
}

.sheet__meta div {
    display: grid;
    grid-template-columns: 8em 1fr;
    gap: 1em;
    padding: 0.7em 0;
    border-bottom: 1px solid var(--doc-line);
}

.sheet__meta dt {
    align-self: center;
    font-size: 0.66em;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.sheet__meta dd {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--doc-text);
}

.sheet--itin > .sheet__eyebrow,
.sheet--itin > .sheet__route,
.sheet--itin > .sheet__times,
.sheet--itin > .sheet__para,
.sheet--itin > .sheet__day {
    margin-left: 2.6em;
    margin-right: 2.6em;
}

.sheet__day {
    display: grid;
    grid-template-columns: 6em 1fr;
    gap: 1em;
    margin-top: 1.7em;
    margin-bottom: 1.5em;
    padding-top: 1em;
    border-top: 1.5px solid var(--doc-ink);
}

.sheet__day-n small {
    display: block;
    font-size: 0.66em;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.sheet__day-n span {
    font-family: var(--font-serif);
    font-size: 3.6em;
    line-height: 1;
    color: var(--doc-accent);
}

.sheet__day-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.95em;
    line-height: 1.1;
    color: var(--doc-ink);
}

.sheet__cells {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8em;
    margin-top: 0.8em;
    padding-top: 0.7em;
    border-top: 1px solid var(--doc-line);
    font-size: 0.84em;
    font-weight: 600;
}

.sheet__route {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-top: 0.9em;
    font-family: var(--font-serif);
    font-size: 1.55em;
    color: var(--doc-ink);
}

.sheet__route small {
    font-size: 0.8em;
}

.sheet__arrow {
    position: relative;
    flex: 1;
    height: 1.5px;
    background: var(--doc-accent);
}

.sheet__arrow::before {
    content: "";
    position: absolute;
    left: -0.15em;
    top: -0.2em;
    width: 0.42em;
    height: 0.42em;
    border-radius: 50%;
    border: 1.5px solid var(--doc-accent);
    background: #fff;
}

.sheet__arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -0.24em;
    width: 0.48em;
    height: 0.48em;
    border-top: 1.5px solid var(--doc-accent);
    border-right: 1.5px solid var(--doc-accent);
    transform: rotate(45deg);
}

.sheet__times {
    display: flex;
    justify-content: space-between;
    margin-top: 0.7em;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--doc-text);
}

.sheet__times .r {
    text-align: right;
}

.sheet__para {
    display: grid;
    gap: 0.75em;
    margin-top: 1.6em;
    padding-top: 1.4em;
    border-top: 1px solid var(--doc-line);
}

.sheet__para i {
    height: 0.55em;
    border-radius: 0.3em;
    background: var(--doc-line);
}

.sheet__para i:nth-child(1) {
    width: 94%;
}

.sheet__para i:nth-child(2) {
    width: 82%;
}

.sheet__para i:nth-child(3) {
    width: 64%;
}

.sheet--itin .sheet__foot {
    left: 2.6em;
    right: 2.6em;
}

/* Abanico: home.js lo arma con el scroll (.is-fan); sin JS o sin GSAP, las hojas ya están abiertas */
.motion .docs.is-fan .sheet--quote,
.motion .docs.is-fan .sheet--flights {
    --x: 0em;
    --y: 2em;
    --r: 0deg;
}

/* Detalles bajo el abanico */
.details {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: clamp(40px, 5vw, 64px) 0 0;
    padding: 0;
}

.detail {
    padding: 0 0 4px;
}

.detail:nth-child(2) {
    --reveal-delay: 0.08s;
}

.detail:nth-child(3) {
    --reveal-delay: 0.16s;
}

.detail:nth-child(4) {
    --reveal-delay: 0.24s;
}

.detail__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 118px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(19, 41, 74, 0.06), 0 14px 30px -18px rgba(19, 41, 74, 0.35);
    font-family: var(--doc-sans);
    color: var(--doc-ink);
    overflow: hidden;
}

.detail h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink-900);
}

.detail p {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-2);
}

.dv-logo {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid var(--doc-line);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dv-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 8px;
    border-top: 1px solid var(--doc-line);
    font-size: 10.5px;
    color: var(--doc-muted);
}

.dv-foot b {
    color: var(--doc-ink);
}

.detail__visual--route {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.detail__visual--route i {
    position: relative;
    flex: 1;
    height: 1.5px;
    background: var(--doc-accent);
}

.detail__visual--route i::after {
    content: "";
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid var(--doc-accent);
    border-right: 1.5px solid var(--doc-accent);
    transform: rotate(45deg);
}

.dv-city {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.15;
}

.dv-city small {
    display: block;
    font-family: var(--doc-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--doc-muted);
}

.dv-city.r {
    text-align: right;
}

.detail__visual--day {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.dv-n {
    font-family: var(--font-serif);
    font-size: 46px;
    line-height: 1;
    color: var(--doc-accent);
}

.dv-n small {
    display: block;
    font-family: var(--doc-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.dv-day {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.2;
}

.dv-day small {
    display: block;
    margin-top: 4px;
    font-family: var(--doc-sans);
    font-size: 11.5px;
    color: var(--doc-muted);
}

.detail__visual--total {
    background: var(--doc-mist);
    box-shadow: inset 0 1.5px 0 var(--doc-ink), 0 14px 30px -18px rgba(19, 41, 74, 0.35);
}

.detail__visual--total small {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.detail__visual--total span {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1.1;
}

.detail__visual--total em {
    font-family: var(--doc-sans);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.formats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: clamp(36px, 4vw, 52px) 0 0;
    padding: 0;
}

.formats li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(19, 41, 74, 0.1);
    font-size: 14px;
    font-weight: 500;
    color: #13294A;
}

.formats .ic {
    color: var(--sand-600);
}

/* ================= BENEFICIOS (bento) ================= */

.benefits {
    padding: clamp(96px, 12vw, 150px) 0;
    background: #fff;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bento__card {
    --mx: -400px;
    --my: -400px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 236px;
    padding: 28px;
    border-radius: 22px;
    background: var(--n-50);
    border: 1px solid var(--n-150);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}

.bento__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 123, 255, 0.12), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento__card:hover {
    border-color: var(--blue-100);
}

.bento__card:hover::before {
    opacity: 1;
}

.bento__card--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
}

.bento__card--wide .bento__copy {
    flex: 1 1 46%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento__card--wide .bento__visual {
    flex: 1 1 54%;
}

.bento__card--dark {
    background: var(--ink-900);
    border-color: transparent;
    color: #fff;
}

.bento__card--dark::before {
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(92, 151, 255, 0.16), transparent 45%);
}

.bento__card--dark:hover {
    border-color: rgba(92, 151, 255, 0.3);
}

.bento__ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #fff;
    color: var(--blue-600);
    box-shadow: var(--shadow-sm);
}

.bento__card--dark .bento__ic {
    background: rgba(92, 151, 255, 0.14);
    color: var(--blue-300);
    box-shadow: none;
}

.bento__copy h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink-900);
}

.bento__card--dark .bento__copy h3 {
    color: #fff;
}

.bento__copy p {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-2);
}

.bento__card--dark .bento__copy p {
    color: rgba(255, 255, 255, 0.66);
}

.bento__visual {
    position: relative;
    border-radius: 14px;
}

.bv-decode {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--n-150);
}

.bv-decode code {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--ink-900);
    color: #D5E2F7;
    font-family: var(--font-mono);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bv-decode__arrow {
    align-self: center;
    color: var(--blue-500);
}

.bv-decode__out {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bv-decode__out span {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--blue-50);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-900);
    white-space: nowrap;
}

.bv-decode__out small {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.bv-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    background: var(--paper);
}

.bv-brand__slot {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px dashed rgba(19, 41, 74, 0.4);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #13294A;
}

.bv-history {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--n-150);
}

.bv-history__search {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 7px;
    background: var(--n-50);
    border: 1px solid var(--n-150);
    font-size: 11.5px;
    color: var(--n-400);
}

.bv-history__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 4px;
    font-size: 12px;
}

.bv-history__row b {
    font-weight: 500;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bv-history__row small {
    color: var(--n-400);
}

.bv-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px;
}

.bv-stack__doc {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 30%;
    max-width: 128px;
    aspect-ratio: 1 / 1.3;
    padding: 12px 11px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
    transform: rotate(var(--r, 0deg)) translateY(var(--ty, 0));
    transition: transform 0.6s var(--ease-out);
}

.bv-stack__doc:nth-child(1) {
    --r: -6deg;
    --ty: 8px;
}

.bv-stack__doc:nth-child(3) {
    --r: 6deg;
    --ty: 8px;
}

.bento__card:hover .bv-stack__doc {
    --r: 0deg;
    --ty: 0;
}

.bv-stack__doc b {
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--doc-ink);
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 400;
    color: var(--doc-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bv-stack__doc i {
    height: 4px;
    border-radius: 2px;
    background: var(--doc-line);
}

.bv-stack__doc i:nth-of-type(2) {
    width: 80%;
}

.bv-stack__doc i:nth-of-type(3) {
    width: 60%;
}

/* ================= PLATAFORMA ================= */
/* Las tres herramientas como tarjetas numeradas (la del medio, destacada en tinta) y un
   bloque arena sobre el acceso privado. Mismo lenguaje que las tarjetas del resto de la home. */

.workspace {
    padding: clamp(96px, 12vw, 150px) 0;
    background: linear-gradient(180deg, var(--n-50), #fff 60%);
}

.ws-tools {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.ws-tool {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 28px 32px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--n-150);
    box-shadow: var(--shadow-sm);
}

.ws-tool:nth-child(2) {
    --reveal-delay: 0.08s;
}

.ws-tool:nth-child(3) {
    --reveal-delay: 0.16s;
}

.ws-tool__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ws-tool__ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--blue-50);
    color: var(--blue-700);
}

.ws-tool__step {
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--n-150);
    font-variant-numeric: tabular-nums;
}

.ws-tool__name {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink-900);
}

.ws-tool__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-2);
}

.ws-tool__list {
    list-style: none;
    display: grid;
    gap: 11px;
    margin: auto 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--n-150);
}

.ws-tool__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--n-700);
}

.ws-tool__list .ic {
    margin-top: 1px;
    color: var(--blue-600);
}

.ws-tool--featured {
    background:
        radial-gradient(420px 260px at 85% 0%, rgba(47, 123, 255, 0.35), transparent 70%),
        var(--ink-900);
    border-color: rgba(92, 151, 255, 0.35);
    box-shadow: 0 30px 70px -28px rgba(8, 20, 31, 0.7), 0 0 0 1px rgba(92, 151, 255, 0.16);
}

.ws-tool--featured .ws-tool__ic {
    background: rgba(92, 151, 255, 0.16);
    color: var(--blue-200);
}

.ws-tool--featured .ws-tool__step {
    color: rgba(255, 255, 255, 0.14);
}

.ws-tool--featured .ws-tool__name {
    color: #fff;
}

.ws-tool--featured .ws-tool__desc {
    color: rgba(255, 255, 255, 0.66);
}

.ws-tool--featured .ws-tool__list {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.ws-tool--featured .ws-tool__list li {
    color: rgba(255, 255, 255, 0.82);
}

.ws-tool--featured .ws-tool__list .ic {
    color: var(--blue-300);
}

.ws-access {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px 48px;
    align-items: center;
    margin-top: 22px;
    padding: 30px 34px;
    border-radius: 22px;
    background: var(--paper);
    border: 1px solid rgba(19, 41, 74, 0.08);
}

.ws-access h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink-900);
}

.ws-access p {
    max-width: 640px;
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-2);
}

.ws-access__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================= FAQ ================= */

.faq {
    padding: clamp(96px, 12vw, 150px) 0;
    background: #fff;
    border-top: 1px solid var(--n-150);
}

.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.faq__intro {
    position: sticky;
    top: calc(var(--header-h) + 40px);
}

.faq__intro .section-title {
    font-size: clamp(32px, 3.6vw, 48px);
}

.faq__intro .link-arrow {
    margin-top: 24px;
}

.faq__list {
    border-top: 1px solid var(--n-150);
}

.qa {
    border-bottom: 1px solid var(--n-150);
}

.qa summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 4px 22px 0;
    font-size: 17.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink-900);
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease;
}

.qa summary::-webkit-details-marker {
    display: none;
}

.qa summary:hover {
    color: var(--blue-700);
}

.qa__ic {
    position: relative;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--n-200);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease-out);
}

.qa__ic::before,
.qa__ic::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 1.5px;
    margin: -0.75px 0 0 -5.5px;
    border-radius: 1px;
    background: var(--ink-800);
    transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}

.qa__ic::after {
    transform: rotate(90deg);
}

.qa[open] .qa__ic {
    background: var(--ink-900);
    border-color: var(--ink-900);
    transform: rotate(180deg);
}

.qa[open] .qa__ic::before,
.qa[open] .qa__ic::after {
    background: #fff;
}

.qa[open] .qa__ic::after {
    transform: rotate(0deg);
}

.qa__a {
    padding: 0 56px 24px 0;
}

.qa__a p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-2);
}

.qa__a a {
    color: var(--blue-700);
    font-weight: 600;
}

/* Apertura suave donde el navegador lo soporta (sin JS) */
@supports (interpolate-size: allow-keywords) {
    .faq {
        interpolate-size: allow-keywords;
    }

    .qa::details-content {
        block-size: 0;
        overflow: clip;
        transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
    }

    .qa[open]::details-content {
        block-size: auto;
    }
}

/* ================= CTA FINAL ================= */

.final {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(110px, 13vw, 180px) 0;
    background: var(--ink-900);
    color: #fff;
    text-align: center;
}

.final__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.final__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 25%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 25%, transparent 80%);
    opacity: 0.85;
}

.final__glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 900px;
    height: 560px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(47, 123, 255, 0.32), transparent);
}

.final__inner {
    position: relative;
}

.final__mark {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
    filter: drop-shadow(0 10px 30px rgba(92, 151, 255, 0.35));
}

.final__title {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(40px, 6.2vw, 86px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    color: #fff;
    text-wrap: balance;
}

.final__title em {
    color: var(--blue-300);
}

.final__lead {
    max-width: 600px;
    margin: 24px auto 0;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.final__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.final__contact {
    margin: 26px 0 0;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.55);
}

.final__contact a {
    color: var(--blue-200);
    font-weight: 500;
    text-decoration: none;
}

.final__contact a:hover {
    text-decoration: underline;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1080px) {
    .details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .ws-tools {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto;
    }

    .ws-access {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .scr-builder {
        grid-template-columns: 1fr;
    }

    .scr-preview {
        display: none;
    }
}

@media (max-width: 960px) {
    .proof__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proof__item:nth-child(3) {
        border-left: 0;
    }

    .proof__item:nth-child(n + 3) {
        border-top: 1px solid var(--n-150);
    }

    .problem__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .chaos {
        max-width: 520px;
    }

    /* Recorrido: cada pantalla dentro de su paso (home.js la mueve), sin ventana fija */
    .tour__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tour-step,
    .tour-step__slot,
    .tour-step__slot .screen {
        min-width: 0;
    }

    .tour-step,
    .tour-step:first-child {
        min-height: 0;
        padding: 0 0 64px;
        justify-content: flex-start;
    }

    .js .tour__grid.is-enhanced .tour-step__copy {
        opacity: 1;
    }

    .tour-step__slot {
        display: block;
        margin-top: 28px;
    }

    .tour-step__slot:empty {
        display: none;
    }

    .tour-step__slot .screen {
        position: relative;
        inset: auto;
        opacity: 1;
        transform: none;
        pointer-events: none;
        border-radius: 14px;
        background: var(--canvas);
        box-shadow: 0 0 0 1px rgba(14, 27, 39, 0.07), 0 24px 50px -24px rgba(14, 27, 39, 0.35);
    }

    .tour__stage {
        position: relative;
        top: auto;
        height: auto;
    }

    .tour__grid.is-enhanced .tour__stage {
        display: none;
    }

    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento__card--wide {
        grid-column: 1 / -1;
    }

    .faq__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq__intro {
        position: static;
    }
}

@media (max-width: 980px) {
    .flow__map {
        aspect-ratio: auto;
    }

    .flow__svg,
    .flow__packet {
        display: none;
    }

    .flow__nodes {
        position: relative;
        display: grid;
        gap: 14px;
        padding-left: 26px;
    }

    .flow__nodes::before {
        content: "";
        position: absolute;
        left: 7px;
        top: 24px;
        bottom: 24px;
        width: 2px;
        border-radius: 2px;
        background: linear-gradient(var(--blue-300), var(--sand-400));
        opacity: 0.7;
    }

    .flow-node {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        grid-template-columns: auto minmax(0, 1fr);
        justify-items: start;
        white-space: normal;
    }

    .flow-node::before {
        content: "";
        position: absolute;
        left: -25px;
        top: 50%;
        width: 12px;
        height: 12px;
        margin-top: -6px;
        border-radius: 50%;
        background: var(--ink-900);
        border: 2px solid var(--blue-300);
    }
}

@media (max-width: 760px) {
    .stage {
        margin-bottom: -110px;
    }

    .proof {
        padding-top: 160px;
    }

    .details {
        grid-template-columns: 1fr;
    }

    .ws-tool {
        padding: 26px 22px 28px;
    }

    .ws-access {
        grid-template-columns: 1fr;
        padding: 26px 22px;
    }

    .ws-access__cta {
        align-items: stretch;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .bento__card--wide {
        flex-direction: column;
    }

    .scr-summary,
    .scr-params {
        grid-template-columns: repeat(2, 1fr);
    }

    .scr-summary div:nth-child(3) {
        border-left: 0;
    }

    .scr-summary div:nth-child(n + 3) {
        border-top: 1px solid var(--n-150);
    }

    .scr-tr {
        grid-template-columns: 0.8fr 1.5fr 1.5fr;
    }

    .scr-tr > :nth-child(4) {
        display: none;
    }

    .scr-meta {
        grid-template-columns: 1fr 1fr;
    }

    .scr-totals {
        grid-template-columns: 1fr 1fr;
    }

    .scr-totals .scr-grand {
        grid-column: 1 / -1;
    }

    .qa__a {
        padding-right: 8px;
    }
}

@media (max-width: 560px) {
    .hero__eyebrow-sep,
    .hero__eyebrow-gds {
        display: none;
    }

    .hero__ctas .btn {
        width: 100%;
    }

    .proof__grid {
        grid-template-columns: 1fr;
    }

    .proof__item + .proof__item {
        border-left: 0;
        border-top: 1px solid var(--n-150);
    }

    .chaos {
        aspect-ratio: 4 / 5;
    }

    .frag--sheet {
        right: 0;
    }

    .frag--file {
        left: 18%;
    }

    .frag--file span:last-child {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .docs__rig {
        font-size: 1.9cqw;
        height: auto;
        padding-bottom: 6em;
    }

    .sheet--quote,
    .sheet--flights {
        display: none;
    }

    .sheet--itin {
        position: relative;
        left: auto;
        top: auto;
        width: 48em;
        margin: 0 auto;
    }

    .final__ctas .btn {
        width: 100%;
    }
}

/* ================= MOVIMIENTO REDUCIDO ================= */

@media (prefers-reduced-motion: reduce) {

    .hero__glow,
    .pulse-dot::after,
    .hero__title em {
        animation: none !important;
    }

    .stage__rig {
        --rx: 6deg;
    }
}
