/* =============================================================
   noche.css — la capa visual "noche de directo".
   Se carga después de main.css y witch.css y redefine el aspecto
   sin tocar la estructura: portada, cifras y cierre son de noche
   (como un directo), el resto va en claro con textura y brillos.
   Los efectos de ratón los alimenta scripts/noche.js con variables
   CSS (--mx/--my en tarjetas, --cx/--cy en los focos).
   ============================================================= */

:root {
    --noche: #0a0614;
    --noche-2: #110a22;
    --noche-3: #1a1033;
    --oro: #ffd166;
    --oro-osc: #f4b53f;
    --papel: #fbfaff;

    --titulos: "Bricolage Grotesque", "Poppins", var(--fuente);
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --radio: 20px;
    --sombra-lg: 0 30px 80px rgba(20, 8, 50, .18);
    --degradado: linear-gradient(100deg, var(--morado), var(--rosa));
}

@property --ang {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

body {
    background: var(--papel);
}

::selection {
    background: var(--rosa);
    color: var(--blanco);
}

h1,
h2,
h3 {
    font-family: var(--titulos);
    font-variation-settings: "opsz" 96;
    letter-spacing: -.035em;
}

h2 {
    font-weight: 800;
}

/* Etiqueta de la palabra de compra: igual en todas partes */
.mio {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: .9em;
    line-height: 1.5;
    background: rgba(255, 209, 102, .14);
    color: var(--oro);
    border: 1px solid rgba(255, 209, 102, .38);
    white-space: nowrap;
}

/* Grano fotográfico sobre los fondos oscuros */
.grano {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .09;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* Aurora: manchas de color desenfocadas que respiran despacio */
.aurora {
    position: absolute;
    inset: -10%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aurora i {
    position: absolute;
    width: 56vmax;
    height: 56vmax;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
    animation: aurora 22s ease-in-out infinite alternate;
}

.aurora i:nth-child(1) {
    top: -30%;
    left: -15%;
    background: radial-gradient(circle, rgba(124, 58, 237, .85), transparent 62%);
}

.aurora i:nth-child(2) {
    top: 10%;
    right: -20%;
    background: radial-gradient(circle, rgba(248, 2, 130, .6), transparent 62%);
    animation-delay: -8s;
    animation-duration: 28s;
}

.aurora i:nth-child(3) {
    bottom: -40%;
    left: 30%;
    width: 40vmax;
    height: 40vmax;
    background: radial-gradient(circle, rgba(255, 209, 102, .28), transparent 62%);
    animation-delay: -15s;
    animation-duration: 34s;
}

@keyframes aurora {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(8%, 6%, 0) scale(1.15);
    }
}

/* Foco que sigue al ratón en las zonas de noche */
.foco {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(560px circle at var(--cx, 50%) var(--cy, 30%), rgba(167, 139, 250, .16), transparent 60%);
    opacity: 0;
    transition: opacity .6s ease;
}

.foco--on {
    opacity: 1;
}

/* Chispas que titilan (las coloca noche.js) */
.chispas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.chispa {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--t, 10px);
    height: var(--t, 10px);
    color: var(--oro);
    opacity: 0;
    animation: titilar var(--d, 4s) ease-in-out var(--r, 0s) infinite;
}

.chispa svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    filter: drop-shadow(0 0 6px rgba(255, 209, 102, .8));
}

@keyframes titilar {

    0%,
    100% {
        opacity: 0;
        transform: scale(.4) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1) rotate(90deg);
    }
}

/* Barra de progreso de lectura, arriba del todo */
.progreso {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--morado), var(--rosa) 60%, var(--oro));
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   Barra de navegación: cristal oscuro sobre cualquier fondo
   ════════════════════════════════════════════════════════════ */
.navbar {
    background: rgba(10, 6, 20, .55);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.navbar--scrolling {
    background: rgba(10, 6, 20, .84);
    border-bottom-color: rgba(255, 255, 255, .1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.navbar .brand {
    color: var(--blanco);
}

.navbar .brand img {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 18px rgba(124, 58, 237, .45);
}

.navbar-menu-item > a:not(.btn) {
    position: relative;
    color: rgba(255, 255, 255, .74);
}

.navbar-menu-item > a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--degradado);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.navbar-menu-item > a:not(.btn):hover {
    color: var(--blanco);
    background: rgba(255, 255, 255, .07);
}

.navbar-menu-item > a:not(.btn):hover::after {
    transform: scaleX(1);
}

.navbar-icon-open,
.navbar-icon-close button {
    color: var(--blanco);
}

.navbar-icon-open:hover,
.navbar-icon-close button:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--blanco);
}

@media (max-width: 960px) {
    .navbar-menu {
        background: var(--noche-2);
        border-left: 1px solid rgba(255, 255, 255, .08);
        box-shadow: -30px 0 80px rgba(0, 0, 0, .6);
    }

    .navbar-menu-item > a:not(.btn)::after {
        display: none;
    }

    body.menu-abierto::after {
        background: rgba(10, 6, 20, .7);
    }
}

/* ════════════════════════════════════════════════════════════
   Botones: degradado, anillo que gira al pasar y chispas al pulsar
   ════════════════════════════════════════════════════════════ */
.btn,
.header-btn {
    position: relative;
    isolation: isolate;
    overflow: visible;
    background: var(--degradado);
    color: var(--blanco);
    font-family: var(--titulos);
    font-weight: 700;
    letter-spacing: -.01em;
    box-shadow:
        0 12px 30px rgba(124, 58, 237, .38),
        inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
    will-change: transform;
}

.btn::before,
.header-btn::before {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: -2;
    border-radius: inherit;
    background: conic-gradient(from var(--ang), var(--oro), var(--rosa), var(--morado), var(--oro));
    opacity: 0;
    transition: opacity .3s ease;
    animation: girar 2.4s linear infinite;
}

.btn::after,
.header-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--degradado);
}

.btn:hover,
.header-btn:hover {
    background: var(--degradado);
    transform: translateY(-2px);
    box-shadow:
        0 18px 40px rgba(248, 2, 130, .35),
        inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn:hover::before,
.header-btn:hover::before,
.btn:focus-visible::before,
.header-btn:focus-visible::before {
    opacity: 1;
}

@keyframes girar {
    to {
        --ang: 360deg;
    }
}

/* Chispas que saltan del botón al pulsarlo (noche.js) */
.estrella {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    pointer-events: none;
    color: var(--oro);
    animation: estalla .7s cubic-bezier(.2, .8, .2, 1) forwards;
}

.estrella svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes estalla {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(.4);
    }

    to {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(120deg);
    }
}

/* ════════════════════════════════════════════════════════════
   Portada: noche de directo
   ════════════════════════════════════════════════════════════ */
.header {
    isolation: isolate;
    background: var(--noche);
    color: var(--blanco);
}

.header::after {
    /* La portada funde con la cinta de abajo */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    z-index: 0;
    background: linear-gradient(to bottom, transparent, rgba(10, 6, 20, .9));
    pointer-events: none;
}

.header-overlay {
    display: none;
}

.header__wrapper {
    z-index: 1;
    padding: 92px var(--gutter) 128px;
}

/* El río de comentarios que sube por detrás */
.rio {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
}

.rio__burbuja {
    position: absolute;
    left: var(--x);
    bottom: -70px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .5);
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
    transform: translateY(0) scale(var(--s, 1));
    animation: subir var(--dur, 16s) linear forwards;
    will-change: transform, opacity;
}

.rio__burbuja b {
    font-weight: 600;
    color: rgba(255, 255, 255, .38);
}

.rio__burbuja::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--avatar, var(--lila-600));
    opacity: .7;
}

.rio__burbuja--mio {
    color: var(--blanco);
    background: rgba(255, 209, 102, .08);
    border-color: rgba(255, 209, 102, .42);
    box-shadow: 0 0 28px rgba(255, 209, 102, .18);
}

.rio__burbuja--mio b {
    color: rgba(255, 255, 255, .7);
}

@keyframes subir {
    0% {
        transform: translateY(0) scale(var(--s, 1));
        opacity: 0;
    }

    6% {
        opacity: 1;
    }

    90% {
        opacity: .9;
    }

    100% {
        transform: translateY(calc(-1 * var(--alto, 900px) - 90px)) scale(var(--s, 1));
        opacity: 0;
    }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 26px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    backdrop-filter: blur(8px);
}

.hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rosa);
    box-shadow: 0 0 0 0 rgba(248, 2, 130, .6);
    animation: pulso 1.8s ease-out infinite;
}

@keyframes pulso {
    to {
        box-shadow: 0 0 0 10px rgba(248, 2, 130, 0);
    }
}

.header-title {
    font-size: clamp(42px, 6.2vw, 78px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.045em;
    color: var(--blanco);
}

/* La palabra clave brilla con un degradado que se desplaza */
.brillo {
    font-style: normal;
    background: linear-gradient(90deg, #c4b5fd, #fd309b 35%, var(--oro) 65%, #c4b5fd);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: destello 7s linear infinite;
}

@keyframes destello {
    to {
        background-position: -300% 0;
    }
}

.header-text {
    color: rgba(255, 255, 255, .72);
}

.hero__link {
    color: var(--lila-500);
    border: 0;
}

.hero__link::after {
    content: " →";
    display: inline-block;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.hero__link:hover {
    color: var(--blanco);
}

.hero__link:hover::after {
    transform: translateX(5px);
}

.hero__facts {
    color: rgba(255, 255, 255, .68);
}

.hero__facts .icon {
    color: var(--oro);
}

/* La demo: cristal oscuro con un poco de perspectiva */
.demo {
    position: relative;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        0 50px 120px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(124, 58, 237, .15),
        inset 0 1px 0 rgba(255, 255, 255, .1);
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s ease;
}

.demo:hover {
    transform: perspective(1400px) rotateY(0) rotateX(0);
    box-shadow:
        0 60px 140px rgba(0, 0, 0, .6),
        0 0 0 1px rgba(248, 2, 130, .25),
        0 0 80px rgba(124, 58, 237, .25),
        inset 0 1px 0 rgba(255, 255, 255, .1);
}

.demo__bar {
    border-bottom-color: rgba(255, 255, 255, .1);
}

.demo__live {
    box-shadow: 0 0 20px rgba(248, 2, 130, .55);
}

.demo__word {
    color: rgba(255, 255, 255, .6);
}

.demo__word strong {
    padding: 1px 8px;
    border-radius: 8px;
    font-family: var(--mono);
    background: rgba(255, 209, 102, .14);
    color: var(--oro);
    border: 1px solid rgba(255, 209, 102, .38);
}

.demo__title {
    color: rgba(255, 255, 255, .55);
}

.demo__count {
    background: rgba(124, 58, 237, .4);
    color: #ede9fe;
}

.demo__total {
    color: var(--blanco);
    font-family: var(--mono);
}

.demo__msg {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .86);
}

.demo__msg-name {
    color: rgba(255, 255, 255, .45);
}

.demo__msg--buy {
    background: rgba(124, 58, 237, .26);
    border-color: rgba(167, 139, 250, .7);
    box-shadow: 0 0 22px rgba(124, 58, 237, .3);
}

.demo__msg--buy .demo__msg-name {
    color: var(--lila-500);
}

.demo__msg--buy .demo__msg-text {
    color: var(--blanco);
    font-family: var(--mono);
    font-size: 12px;
}

/* Cada pedido es un tique térmico: papel blanco con el borde dentado */
.demo__order {
    position: relative;
    padding: 11px 13px 15px;
    border-radius: 10px 10px 0 0;
    border: 0;
    background: var(--blanco);
    color: var(--tinta);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    -webkit-mask:
        linear-gradient(#000, #000) top / 100% calc(100% - 7px) no-repeat,
        conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 14px 7px repeat-x;
    mask:
        linear-gradient(#000, #000) top / 100% calc(100% - 7px) no-repeat,
        conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 14px 7px repeat-x;
}

.demo__order::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--degradado);
}

.demo__order-name {
    font-family: var(--mono);
    font-size: 12px;
}

.demo__order-price {
    font-family: var(--mono);
}

.demo__state--done {
    background: var(--oro);
    color: var(--tinta);
}

/* ════════════════════════════════════════════════════════════
   Cinta de comentarios
   ════════════════════════════════════════════════════════════ */
.ticker {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 13px 0;
    background: var(--noche-2);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__pista {
    display: flex;
    align-items: center;
    gap: 44px;
    width: max-content;
    padding-right: 44px;
    animation: desfilar 46s linear infinite;
}

.ticker:hover .ticker__pista {
    animation-play-state: paused;
}

.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ticker__item b {
    font-weight: 600;
    color: rgba(255, 255, 255, .35);
}

.ticker__item--mio {
    color: var(--blanco);
}

@keyframes desfilar {
    to {
        transform: translateX(-50%);
    }
}

/* ════════════════════════════════════════════════════════════
   Secciones claras: antetítulos como etiquetas y rejilla de puntos
   ════════════════════════════════════════════════════════════ */
.cs-subtitle,
.feature-subtitle,
.steps-subtitle,
.integration-subtitle,
.faqs-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, .07);
    border: 1px solid rgba(124, 58, 237, .18);
    color: var(--morado-tinta);
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
}

.cs-subtitle::before,
.feature-subtitle::before,
.steps-subtitle::before,
.integration-subtitle::before,
.faqs-subtitle::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rosa);
    box-shadow: 0 0 0 0 rgba(248, 2, 130, .5);
    animation: pulso 2s ease-out infinite;
}

.cs-title,
.feature-title,
.steps-title,
.integration-title,
.faqs-title {
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.04;
}

.cs,
.integration {
    position: relative;
}

.cs::before,
.integration::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(124, 58, 237, .16) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent);
    mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent);
    pointer-events: none;
}

/* Tarjetas con foco: el brillo y el borde siguen al ratón */
.cs-option,
.step,
.timeline__step,
.tool,
.faqs-group,
.faq {
    position: relative;
    isolation: isolate;
}

.cs-option::before,
.step::before,
.timeline__step::before,
.tool::before,
.faqs-group::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, .13), transparent 46%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.cs-option::after,
.step::after,
.timeline__step::after,
.tool::after,
.faqs-group::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    padding: 1.5px;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(248, 2, 130, .9), rgba(124, 58, 237, .7) 40%, transparent 72%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.cs-option:hover::before,
.step:hover::before,
.timeline__step:hover::before,
.tool:hover::before,
.faqs-group:hover::before,
.cs-option:hover::after,
.step:hover::after,
.timeline__step:hover::after,
.tool:hover::after,
.faqs-group:hover::after {
    opacity: 1;
}

.cs-option,
.step,
.timeline__step,
.tool,
.faqs-group {
    background: var(--blanco);
    border-color: rgba(124, 58, 237, .14);
    box-shadow: 0 1px 0 rgba(26, 16, 54, .04), 0 14px 40px rgba(26, 16, 54, .06);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
    transform-style: preserve-3d;
}

.cs-option:hover,
.step:hover,
.timeline__step:hover,
.tool:hover,
.faqs-group:hover {
    box-shadow: 0 1px 0 rgba(26, 16, 54, .04), 0 30px 70px rgba(26, 16, 54, .12);
}

.cs-option__title {
    font-weight: 700;
    border-bottom-color: rgba(124, 58, 237, .14);
}

.cs-option__list dt {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
}

/* La columna de witch.es es un trozo de noche en medio del día */
.cs-option--witch {
    background: radial-gradient(120% 90% at 100% 0%, rgba(248, 2, 130, .35), transparent 55%), var(--noche-3);
    border-color: rgba(167, 139, 250, .35);
    box-shadow: 0 30px 80px rgba(58, 20, 120, .35);
    overflow: hidden;
}

.cs-option--witch::before {
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 209, 102, .16), transparent 46%);
}

.cs-option--witch .cs-option__list dt {
    color: var(--oro);
}

.cs-option--witch .cs-option__list dd {
    color: rgba(255, 255, 255, .88);
}

/* Teléfono: flota despacio con un halo detrás */
.showcase__phone {
    position: relative;
}

.showcase__phone::before {
    content: "";
    position: absolute;
    inset: 10% -10%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(248, 2, 130, .28), rgba(124, 58, 237, .18) 50%, transparent);
    filter: blur(30px);
    animation: aurora 14s ease-in-out infinite alternate;
}

.showcase__phone .phone {
    animation: flotar 7s ease-in-out infinite;
}

@keyframes flotar {
    50% {
        transform: translateY(-12px);
    }
}

.step__number {
    background: var(--degradado);
    color: var(--blanco);
    font-family: var(--mono);
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(124, 58, 237, .4);
}

.timeline__step--live {
    background: radial-gradient(120% 100% at 0% 0%, rgba(124, 58, 237, .08), transparent 60%), var(--blanco);
    border-color: rgba(124, 58, 237, .45);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .08), 0 24px 60px rgba(124, 58, 237, .16);
}

.faq--open {
    border-color: rgba(248, 2, 130, .5);
    box-shadow: 0 0 0 4px rgba(248, 2, 130, .07);
}

/* ════════════════════════════════════════════════════════════
   Cifras: franja de noche a todo lo ancho
   ════════════════════════════════════════════════════════════ */
.stats {
    padding: 0;
}

.stats__container {
    isolation: isolate;
    max-width: none;
    padding: 120px var(--gutter);
    border-radius: 0;
    background: var(--noche);
}

.stats-img {
    opacity: .1;
    z-index: 0;
}

.stats-overlay {
    z-index: 0;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(124, 58, 237, .35), transparent 70%),
        linear-gradient(to bottom, var(--papel), transparent 6%),
        linear-gradient(to top, var(--papel), transparent 6%);
}

.aurora--stats i:nth-child(1) {
    top: -40%;
    left: 5%;
    opacity: .4;
}

.aurora--stats i:nth-child(2) {
    top: 0;
    right: 0;
    opacity: .35;
}

.stats-title {
    z-index: 1;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.04em;
}

.stats-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 22px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--morado), var(--rosa), var(--oro));
}

.stats__wrapper {
    z-index: 1;
    max-width: var(--ancho);
    margin: 56px auto 0;
}

.stats-card {
    position: relative;
    overflow: hidden;
    padding: 36px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .4s ease, box-shadow .4s ease;
}

.stats-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(248, 2, 130, .22), transparent 50%);
    opacity: 0;
    transition: opacity .4s ease;
}

.stats-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 209, 102, .4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .45);
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card-total {
    position: relative;
    font-size: clamp(60px, 7vw, 92px);
    font-weight: 800;
    letter-spacing: -.05em;
    background: linear-gradient(180deg, var(--blanco) 20%, var(--lila-500) 70%, var(--oro));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 10px 30px rgba(124, 58, 237, .5));
}

.stats-card-title {
    position: relative;
    margin-top: 12px;
    color: rgba(255, 255, 255, .72);
}

/* ════════════════════════════════════════════════════════════
   Cierre: vuelta a la noche
   ════════════════════════════════════════════════════════════ */
.cta-final {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: none;
    padding: 140px var(--gutter) 150px;
    background: var(--noche);
    color: var(--blanco);
}

.cta-final::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 10%;
    z-index: 0;
    background: linear-gradient(to bottom, var(--papel), transparent);
}

.aurora--cta i:nth-child(1) {
    top: auto;
    bottom: -60%;
    left: 20%;
    width: 70vmax;
    height: 70vmax;
    opacity: .5;
}

.aurora--cta i:nth-child(2) {
    top: -50%;
    right: -10%;
    opacity: .3;
}

.cta-final-title {
    position: relative;
    z-index: 1;
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.cta-final-text {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .7);
}

.cta-final .btn {
    position: relative;
    z-index: 1;
    padding: 18px 40px;
    font-size: 17.5px;
    box-shadow:
        0 20px 60px rgba(124, 58, 237, .55),
        0 0 0 1px rgba(255, 255, 255, .1) inset;
}

.footer {
    background: var(--noche-2);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* ════════════════════════════════════════════════════════════
   Aparición al hacer scroll: con desenfoque y más recorrido
   ════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(8px);
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1), filter .8s ease;
}

.reveal--visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ════════════════════════════════════════════════════════════
   Pantallas estrechas y quien pida menos movimiento
   ════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
    /* En pantallas estrechas el río taparía el texto: fuera */
    .rio {
        display: none;
    }

    /* Menos desenfoque y una mancha menos: la GPU del móvil lo agradece */
    .aurora i {
        width: 90vmax;
        height: 90vmax;
        filter: blur(40px);
    }

    .aurora i:nth-child(3) {
        display: none;
    }
}

@media (max-width: 960px) {
    .header__wrapper {
        padding-top: 48px;
        padding-bottom: 96px;
    }

    .demo {
        transform: none;
    }

    .header-title {
        font-size: clamp(38px, 10vw, 60px);
    }

    .stats__container {
        padding: 88px var(--gutter);
    }

    .cta-final {
        padding: 100px var(--gutter) 110px;
    }
}

@media (hover: none) {

    .cs-option::after,
    .step::after,
    .timeline__step::after,
    .tool::after,
    .faqs-group::after {
        display: none;
    }
}

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

    .aurora i,
    .brillo,
    .showcase__phone .phone,
    .hero__eyebrow-dot,
    .ticker__pista,
    .chispa,
    .btn::before,
    .header-btn::before {
        animation: none;
    }

    .rio,
    .foco {
        display: none;
    }

    .demo {
        transform: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
