/* =============================================================================
   Auditor GEO/AEO — Landing styles
   Themed por [data-style="organic" | "electric"] en <html>
   ========================================================================== */

/* --------------------------------------------------------------- variables */
:root {
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.75rem;
    --space-5: 3rem;
    --space-6: 5rem;
    --space-7: 8rem;

    --container-w: min(1200px, 92vw);
}

[data-style="organic"] {
    --text-muted: rgba(244, 237, 224, 0.55);
    --line-color: rgba(244, 237, 224, 0.10);
    --grid-line: rgba(61, 220, 151, 0.05);
    --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
}

[data-style="electric"] {
    --text-muted: rgba(245, 245, 247, 0.55);
    --line-color: rgba(245, 245, 247, 0.08);
    --grid-line: rgba(255, 43, 214, 0.06);
    --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--accent);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "ss01" 1;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container { width: var(--container-w); margin-inline: auto; }

/* --------------------------------------------------------------- background ambient */
[data-style="organic"] body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse 1200px 700px at 100% 0%,
            color-mix(in srgb, var(--primary) 15%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse 800px 500px at 0% 100%,
            color-mix(in srgb, var(--primary) 8%, transparent) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

[data-style="electric"] body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(0deg, transparent 0%, transparent calc(100% - 1px), var(--grid-line) 100%),
        linear-gradient(90deg, transparent 0%, transparent calc(100% - 1px), var(--grid-line) 100%);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------- noise overlay */
.page-noise {
    position: fixed; inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-style="electric"] .page-noise { opacity: 0.10; }

/* --------------------------------------------------------------- cursor */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28),
                opacity 0.25s ease;
    opacity: 0;
}

[data-style="organic"] .cursor {
    mix-blend-mode: normal;
    background: var(--text);
    opacity: 0.75;
    box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 40%, transparent);
}

[data-style="electric"] .cursor {
    background: var(--primary);
    box-shadow: 0 0 24px var(--primary), 0 0 48px color-mix(in srgb, var(--primary) 50%, transparent);
}

/* Cursor custom solo en electric (Ninja). En organic (Asiri) cursor del sistema. */
@media (hover: hover) and (pointer: fine) {
    [data-style="electric"] .cursor { opacity: 1; }
    [data-style="electric"] body { cursor: none; }
    [data-style="electric"] a,
    [data-style="electric"] button,
    [data-style="electric"] input { cursor: none; }
}
[data-style="organic"] .cursor { display: none; }

.cursor.is-hover { transform: translate(-50%, -50%) scale(2.4); }

/* --------------------------------------------------------------- header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--accent) 75%, transparent);
    border-bottom: 1px solid var(--line-color);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.brand__mark {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brand__logo {
    height: 56px;
    width: auto;
    display: block;
    margin-right: 0.1rem;
}

@media (max-width: 700px) {
    .brand__logo { height: 44px; }
}

[data-style="electric"] .brand__mark {
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 18px color-mix(in srgb, var(--primary) 60%, transparent);
}

.brand__sep { color: var(--text-muted); }
.brand__tag { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }

.site-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.site-nav a { color: var(--text-muted); }
.site-nav a:hover { color: var(--primary); }

@media (max-width: 700px) {
    .site-nav { display: none; }
}

/* --------------------------------------------------------------- hero */
.hero {
    min-height: 100vh;
    padding: 8rem 1.5rem 4rem;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* En móvil dejamos altura natural — sino hay padding muerto y el scroll-hint
   se solapa con los badges. */
@media (max-width: 980px) {
    .hero { min-height: 0; padding: 6.5rem 1.25rem 3rem; }
}

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

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    will-change: transform;
}

.hero__blob--1 {
    width: 50vmax; height: 50vmax;
    background: var(--primary);
    top: -20vmax; right: -20vmax;
}

.hero__blob--2 {
    width: 35vmax; height: 35vmax;
    background: var(--primary);
    bottom: -15vmax; left: -10vmax;
    opacity: 0.25;
}

[data-style="electric"] .hero__blob {
    opacity: 0.18;
    filter: blur(120px);
}

[data-style="electric"] .hero__blob--2 {
    opacity: 0.12;
}

.hero__scan {
    display: none;
}

/* Pin de mapa al hover sobre check-cards — solo en organic (Asiri, turismo).
   Cae desde arriba con un pequeño rebote, evocando marcar un destino en un mapa. */
.check-card__pin {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    color: var(--primary);
    opacity: 0;
    transform: translateY(-30px) scale(0.6);
    transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--primary) 40%, transparent));
}

.check-card__pin svg { width: 100%; height: 100%; display: block; }

/* Solo en Asiri */
[data-style="electric"] .check-card__pin { display: none; }

.check-card:hover .check-card__pin {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Pequeño rebote después del drop */
.check-card:hover .check-card__pin svg {
    animation: pin-bounce 0.7s ease 0.35s;
    transform-origin: 50% 100%;
}
@keyframes pin-bounce {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.18) translateY(-4px); }
    70% { transform: scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
    .check-card__pin { transition: opacity 0.25s ease; transform: none; }
    .check-card:hover .check-card__pin svg { animation: none; }
}

[data-style="electric"] .hero__scan {
    display: block;
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
    box-shadow: 0 0 24px var(--primary);
    top: 30%;
    will-change: transform;
}

.hero__inner {
    position: relative;
    z-index: 1;
    width: var(--container-w);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
    /* En móvil, primero el contenido (eyebrow + título + form + badges)
       y debajo la demo del score como secundario. */
    .hero__col-demo { order: 1; opacity: 0.9; }
}

.hero__eyebrow,
.section__eyebrow {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.hero__eyebrow::before,
.section__eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--primary);
}

[data-style="electric"] .hero__eyebrow,
[data-style="electric"] .section__eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6.5vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 400;
    margin-bottom: 1.75rem;
    max-width: 14ch;
}

[data-style="electric"] .hero__title {
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
    max-width: 16ch;
}

.hero__title .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.hero__title .word__inner {
    display: inline-block;
    will-change: transform, opacity;
}

.hero__title .highlight {
    color: var(--primary);
}

[data-style="organic"] .hero__title .highlight .word__inner {
    font-style: italic;
    font-family: var(--font-display);
}

[data-style="electric"] .hero__title .highlight {
    text-shadow:
        0 0 24px color-mix(in srgb, var(--primary) 70%, transparent),
        0 0 48px color-mix(in srgb, var(--primary) 35%, transparent);
}

.hero__sub {
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    color: var(--text-muted);
    max-width: 48ch;
    margin-bottom: 2.5rem;
    line-height: 1.55;
}

/* URL form */
.url-form {
    display: inline-flex;
    align-items: stretch;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--line-color);
    padding: 0.45rem 0.45rem 0.45rem 0;
    max-width: 540px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
}

[data-style="organic"] .url-form { border-radius: 999px; }

.url-form:focus-within {
    border-color: var(--primary);
    background: var(--surface);
}

[data-style="organic"] .url-form:focus-within {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 12%, transparent);
}

[data-style="electric"] .url-form:focus-within {
    box-shadow:
        0 0 0 1px var(--primary),
        0 0 32px color-mix(in srgb, var(--primary) 30%, transparent);
}

.url-form__prefix {
    align-self: center;
    padding-inline: 1rem 0.25rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}

.url-form__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 0.85rem 0.5rem;
    outline: 0;
    letter-spacing: -0.01em;
}

.url-form__input::placeholder {
    color: color-mix(in srgb, var(--text) 30%, transparent);
}

.url-form__submit {
    background: var(--primary);
    color: var(--accent);
    border: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.4rem;
    letter-spacing: 0.005em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28),
                background 0.2s ease;
    white-space: nowrap;
}

[data-style="organic"] .url-form__submit { border-radius: 999px; }

[data-style="electric"] .url-form__submit {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    box-shadow: 0 0 0 1px var(--primary);
}

.url-form__submit:hover {
    transform: translateX(2px);
}

.url-form__submit-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.url-form__submit:hover .url-form__submit-arrow {
    transform: translateX(3px);
}

.url-form--lg {
    max-width: 640px;
    margin: 2rem auto 0;
    padding: 0.65rem 0.65rem 0.65rem 0;
}

.url-form--lg .url-form__input {
    font-size: 1.2rem;
    padding: 1.1rem 0.5rem;
}

.url-form--lg .url-form__submit {
    padding: 1.05rem 1.7rem;
    font-size: 1rem;
}

[data-style="electric"] .url-form--lg .url-form__submit {
    font-size: 0.85rem;
}

.url-form.is-submitting .url-form__submit { transform: scale(0.97); }

@media (max-width: 540px) {
    /* En mobile, el form se separa en dos elementos independientes
       (input + botón) en lugar del pill envolvente del desktop.
       Más limpio y deja respirar cada control. */
    .url-form {
        display: flex;
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.7rem;
        max-width: 100%;
    }
    .url-form:focus-within {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    /* En mobile el prefix se quita: el placeholder ya da la pista
       y el JS añade https:// automáticamente al enviar. */
    .url-form__prefix { display: none; }

    .url-form__input {
        width: 100%;
        background: color-mix(in srgb, var(--surface) 92%, transparent);
        border: 1px solid var(--line-color);
        padding: 0.95rem 1.25rem;
        font-size: 1.05rem;
        transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }
    [data-style="organic"] .url-form__input { border-radius: 999px; }

    .url-form__input:focus {
        border-color: var(--primary);
        background: var(--surface);
        outline: none;
    }
    [data-style="organic"] .url-form__input:focus {
        box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 14%, transparent);
    }
    [data-style="electric"] .url-form__input:focus {
        box-shadow: 0 0 0 1px var(--primary), 0 0 24px color-mix(in srgb, var(--primary) 30%, transparent);
    }

    .url-form__submit {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* badges */
.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero__badges li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__badges li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

[data-style="electric"] .hero__badges li::before {
    box-shadow: 0 0 8px var(--primary);
}

/* score demo */
.hero__col-demo {
    display: grid;
    place-items: center;
    gap: 2rem;
}

.score-demo {
    position: relative;
    width: 280px;
    aspect-ratio: 1;
}

.score-demo__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-demo__circle--bg {
    fill: none;
    stroke: color-mix(in srgb, var(--text) 8%, transparent);
    stroke-width: 4;
}

.score-demo__circle--progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 540;
    stroke-dashoffset: 540;
}

[data-style="electric"] .score-demo__circle--progress {
    filter: drop-shadow(0 0 8px var(--primary));
    stroke-width: 5;
}

.score-demo__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.score-demo__label,
.score-demo__sub {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.score-demo__sub { margin-top: 0.25rem; }

.score-demo__number {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 9vw, 6rem);
    line-height: 1;
    color: var(--primary);
    margin: 0.25rem 0;
    font-variant-numeric: tabular-nums;
}

[data-style="electric"] .score-demo__number {
    font-weight: 600;
    letter-spacing: -0.04em;
    text-shadow:
        0 0 24px color-mix(in srgb, var(--primary) 65%, transparent),
        0 0 48px color-mix(in srgb, var(--primary) 30%, transparent);
}

.score-demo__caption {
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 280px;
    text-align: center;
    line-height: 1.5;
}

/* score rows preview */
.score-demo__rows {
    width: 100%;
    max-width: 340px;
    display: grid;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.score-demo__rows li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.85rem;
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    border: 1px solid var(--line-color);
    color: var(--text-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(8px);
}

[data-style="organic"] .score-demo__rows li { border-radius: 8px; }

.score-demo__rows .ok { color: var(--primary); }
.score-demo__rows .warn { color: #f5a623; }
.score-demo__rows .bad { color: #ff5577; }

[data-style="electric"] .score-demo__rows .ok { text-shadow: 0 0 8px var(--primary); }

/* hero scroll hint */
.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* En móvil: ocultar el scroll-hint. El hero ya no tiene 100vh fijo y el
   gesto de scroll en móvil es obvio. Antes se solapaba con los badges. */
@media (max-width: 980px) {
    .hero__scroll-hint { display: none; }
}

.hero__scroll-hint:hover {
    color: var(--text);
    transform: translateX(-50%) translateY(2px);
}

.hero__scroll-arrow {
    width: 22px;
    height: 36px;
    overflow: visible;
}

.hero__scroll-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
}

.hero__scroll-tip {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[data-style="electric"] .hero__scroll-line,
[data-style="electric"] .hero__scroll-tip {
    filter: drop-shadow(0 0 6px var(--primary));
}

/* --------------------------------------------------------------- sections */
.section {
    padding: clamp(5rem, 10vw, 8rem) 1.5rem;
    position: relative;
}

.section__head {
    margin-bottom: 4rem;
    max-width: 720px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 400;
    color: var(--text);
}

[data-style="electric"] .section__title {
    font-weight: 600;
    letter-spacing: -0.035em;
}

/* --------------------------------------------------------------- steps */
.steps {
    border-top: 1px solid var(--line-color);
}

.step {
    display: grid;
    grid-template-columns: 110px 1.2fr 1fr;
    gap: clamp(1rem, 4vw, 3rem);
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--line-color);
    align-items: baseline;
    position: relative;
    transition: background 0.3s ease;
}

.step:hover {
    background: color-mix(in srgb, var(--primary) 3%, transparent);
}

@media (max-width: 700px) {
    .step { grid-template-columns: 60px 1fr; }
    .step__desc { grid-column: 1 / -1; padding-left: 60px; }
}

.step__num {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text-muted);
    line-height: 1;
}

[data-style="electric"] .step__num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 500;
    color: var(--primary);
    font-size: clamp(1rem, 2vw, 1.4rem);
}

.step__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: var(--text);
}

[data-style="electric"] .step__title { font-weight: 600; }

.step__desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* --------------------------------------------------------------- checks grid */
.checks__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-color);
    border-left: 1px solid var(--line-color);
}

@media (max-width: 880px) {
    .checks__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .checks__grid { grid-template-columns: 1fr; }
}

.check-card {
    padding: 2.25rem 2rem;
    border-bottom: 1px solid var(--line-color);
    border-right: 1px solid var(--line-color);
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.check-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
        color-mix(in srgb, var(--primary) 12%, transparent), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.check-card:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.check-card:hover::before { opacity: 1; }

.check-card__mark {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-weight: 400;
}

[data-style="electric"] .check-card__mark {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    padding: 0.3rem 0.65rem;
    color: var(--primary);
}

.check-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
    color: var(--text);
    position: relative; z-index: 1;
}

[data-style="electric"] .check-card__title { font-weight: 600; }

.check-card__desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    position: relative; z-index: 1;
}

/* --------------------------------------------------------------- proof */
.proof {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    border-top: 1px solid var(--line-color);
    padding-top: 5rem;
}

@media (max-width: 880px) {
    .proof { grid-template-columns: 1fr; gap: 3rem; }
}

.proof__big {
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 14rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--primary);
    font-weight: 400;
}

[data-style="electric"] .proof__big {
    font-weight: 600;
    text-shadow:
        0 0 40px color-mix(in srgb, var(--primary) 60%, transparent),
        0 0 80px color-mix(in srgb, var(--primary) 30%, transparent);
}

.proof__big-label {
    font-size: 1rem;
    color: var(--text);
    margin-top: 1.25rem;
    max-width: 32ch;
    line-height: 1.55;
}

.proof__args { display: grid; gap: 2.25rem; }

.proof__arg-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: -0.015em;
}

[data-style="electric"] .proof__arg-title { font-weight: 600; }

.proof__arg-body {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------- cta final */
.cta-final {
    padding: clamp(6rem, 12vw, 10rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-style="organic"] .cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 90% at 50% 100%,
            color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%);
    pointer-events: none;
}

[data-style="electric"] .cta-final {
    border-top: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
}

[data-style="electric"] .cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 100%,
            color-mix(in srgb, var(--primary) 18%, transparent), transparent 65%);
    pointer-events: none;
}

.cta-final .container { position: relative; z-index: 1; }

.cta-final .section__eyebrow {
    margin-inline: auto;
    justify-content: center;
}

.cta-final__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0.5rem auto 1rem;
    max-width: 16ch;
    font-weight: 400;
    color: var(--text);
}

[data-style="electric"] .cta-final__title { font-weight: 600; }

.cta-final__sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 40ch;
    margin: 0 auto;
}

/* --------------------------------------------------------------- footer */
.site-footer {
    border-top: 1px solid var(--line-color);
    padding: 2.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.site-footer__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
}

.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer__links a:hover { color: var(--primary); }

/* --------------------------------------------------------------- a11y */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero__blob, .hero__scan { animation: none !important; }
}

::selection {
    background: var(--primary);
    color: var(--accent);
}

/* =============================================================================
   SCAN OVERLAY
   ========================================================================== */

.scan-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.scan-overlay[data-state="visible"] {
    opacity: 1;
    pointer-events: auto;
}

.scan-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--accent) 88%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-style="electric"] .scan-overlay__backdrop {
    background: color-mix(in srgb, var(--accent) 92%, transparent);
}

.scan-overlay__panel {
    position: relative;
    width: min(640px, 96vw);
    max-height: min(92vh, 800px);
    overflow-y: auto;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line-color));
    transform: translateY(24px) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.18);
}

[data-style="organic"] .scan-overlay__panel {
    border-radius: 24px;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent);
}

[data-style="electric"] .scan-overlay__panel {
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.8),
        0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent),
        0 0 60px color-mix(in srgb, var(--primary) 20%, transparent);
}

.scan-overlay[data-state="visible"] .scan-overlay__panel {
    transform: translateY(0) scale(1);
}

.scan-overlay__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--line-color);
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

[data-style="organic"] .scan-overlay__close { border-radius: 999px; }

.scan-overlay__close:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.scan-overlay__eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

[data-style="electric"] .scan-overlay__eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 500;
}

.scan-overlay__eyebrow--error   { color: #ff5577; }
.scan-overlay__eyebrow--success { color: var(--primary); }

/* Spinner del state "sending" */
.scan-loader__progress--spinner {
    stroke-dasharray: 280 540;
    animation: spinner-rotate 1.6s linear infinite;
    transform-origin: 100px 100px;
}
@keyframes spinner-rotate {
    from { transform: rotate(-90deg); }
    to   { transform: rotate(270deg); }
}

.scan-overlay__url {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.75rem;
    word-break: break-all;
}

[data-style="electric"] .scan-overlay__url { font-weight: 600; }

.scan-overlay__hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 2rem;
    max-width: 46ch;
}

/* ----------- LOADING ----------- */
.scan-loader {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2.5rem;
}

.scan-loader__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.scan-loader__track {
    fill: none;
    stroke: color-mix(in srgb, var(--text) 8%, transparent);
    stroke-width: 4;
}

.scan-loader__progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 540;
    stroke-dashoffset: 540;
    transition: stroke-dashoffset 0.4s ease;
}

[data-style="electric"] .scan-loader__progress {
    filter: drop-shadow(0 0 8px var(--primary));
}

.scan-loader__pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.scan-loader__pct::after {
    content: '%';
    font-size: 0.4em;
    margin-left: 0.1em;
    opacity: 0.6;
}

[data-style="electric"] .scan-loader__pct {
    font-weight: 600;
    text-shadow: 0 0 16px color-mix(in srgb, var(--primary) 60%, transparent);
}

.scan-steps {
    display: grid;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.scan-steps li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: color-mix(in srgb, var(--accent) 50%, transparent);
    border: 1px solid var(--line-color);
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

[data-style="organic"] .scan-steps li { border-radius: 8px; }

.scan-steps li::before {
    content: '·';
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 0.5;
    transition: color 0.3s ease;
}

.scan-steps li.is-active {
    color: var(--text);
    border-color: color-mix(in srgb, var(--primary) 50%, var(--line-color));
}

.scan-steps li.is-active::before {
    content: '→';
    color: var(--primary);
    font-size: 1rem;
    line-height: 1;
}

.scan-steps li.is-done {
    color: color-mix(in srgb, var(--text) 65%, transparent);
}

.scan-steps li.is-done::before {
    content: '✓';
    color: var(--primary);
    font-size: 0.9rem;
    line-height: 1;
}

.scan-steps code {
    color: var(--text);
    font-family: inherit;
    font-weight: 500;
}

/* ----------- RESULT ----------- */
.result-score {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
}

.result-score__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.result-score__bg {
    fill: none;
    stroke: color-mix(in srgb, var(--text) 8%, transparent);
    stroke-width: 4;
}

.result-score__fg {
    fill: none;
    stroke: var(--primary);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 540;
    stroke-dashoffset: 540;
}

[data-style="electric"] .result-score__fg {
    filter: drop-shadow(0 0 12px var(--primary));
}

.result-score__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.result-score__num {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

[data-style="electric"] .result-score__num {
    font-weight: 600;
    text-shadow: 0 0 24px color-mix(in srgb, var(--primary) 60%, transparent);
}

.result-score__sub {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.result-findings {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.result-finding {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--accent) 50%, transparent);
    border: 1px solid var(--line-color);
    border-left-width: 3px;
}

[data-style="organic"] .result-finding { border-radius: 8px; }

.result-finding--strength { border-left-color: var(--primary); }
.result-finding--weakness { border-left-color: #ff5577; }

.result-finding__icon {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--primary);
}

.result-finding--weakness .result-finding__icon { color: #ff5577; }

.result-finding__title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.result-finding__summary {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ----------- LEAD FORM ----------- */
.result-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-color);
}

.result-cta__lead {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.lead-form {
    display: grid;
    gap: 0.75rem;
}

.lead-form input[type="text"],
.lead-form input[type="email"] {
    padding: 0.85rem 1rem;
    background: color-mix(in srgb, var(--accent) 60%, transparent);
    border: 1px solid var(--line-color);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

[data-style="organic"] .lead-form input[type="text"],
[data-style="organic"] .lead-form input[type="email"] { border-radius: 999px; padding-inline: 1.25rem; }

.lead-form input:focus {
    border-color: var(--primary);
    background: var(--surface);
}

.lead-form__consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 0.5rem 0;
}

.lead-form__consent input { margin-top: 0.2rem; accent-color: var(--primary); }
.lead-form__consent a { color: var(--primary); text-decoration: underline; }

.lead-form .url-form__submit {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    margin-top: 0.5rem;
}

.lead-form__note {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    color: color-mix(in srgb, var(--text) 35%, transparent);
    text-align: center;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

/* ----------- ERROR ----------- */
.scan-state--error {
    text-align: center;
    padding: 2rem 0;
}

.scan-state--error .scan-overlay__url {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.scan-state--error .url-form__submit {
    margin: 0 auto;
}

/* =============================================================================
   RESULT — banner destacado del lead form
   ========================================================================== */

.result-cta-banner {
    margin-top: 2.5rem;
    padding: 1.75rem 1.5rem 1.5rem 1.5rem;
    background: var(--accent);
    color: var(--text);
    border: 2px solid var(--primary);
    position: relative;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 8%, transparent);
}

[data-style="organic"] .result-cta-banner {
    border-radius: 18px;
}

[data-style="electric"] .result-cta-banner {
    box-shadow:
        0 0 0 1px var(--primary),
        0 0 32px color-mix(in srgb, var(--primary) 30%, transparent);
}

.result-cta-banner__step {
    display: inline-block;
    background: var(--primary);
    color: var(--accent);
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

[data-style="organic"] .result-cta-banner__step { border-radius: 999px; }

[data-style="electric"] .result-cta-banner__step {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.result-cta-banner__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-weight: 400;
}

[data-style="electric"] .result-cta-banner__title { font-weight: 600; }

.result-cta-banner__sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.result-cta-banner .lead-form input[type="text"],
.result-cta-banner .lead-form input[type="email"] {
    background: color-mix(in srgb, var(--surface) 70%, transparent);
}

/* Botón XL para destacar la acción principal */
.url-form__submit--xl {
    padding: 1.1rem 1.6rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
}

[data-style="electric"] .url-form__submit--xl {
    font-size: 0.9rem;
}

/* =============================================================================
   SENT — pantalla de éxito
   ========================================================================== */

.scan-state--sent {
    text-align: center;
    padding: 1rem 0;
}

.success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
}

.success-icon svg { width: 100%; height: 100%; display: block; }

.success-icon__ring {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    transform-origin: 32px 32px;
    transform: rotate(-90deg);
    animation: success-ring 0.7s ease-out 0.05s forwards;
}

.success-icon__check {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: success-check 0.45s ease-out 0.5s forwards;
}

[data-style="electric"] .success-icon__ring,
[data-style="electric"] .success-icon__check {
    filter: drop-shadow(0 0 10px var(--primary));
}

@keyframes success-ring  { to { stroke-dashoffset: 0; } }
@keyframes success-check { to { stroke-dashoffset: 0; } }

.scan-overlay__title-big {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0.4rem 0 0.85rem;
    color: var(--text);
    font-weight: 400;
}

[data-style="electric"] .scan-overlay__title-big {
    font-weight: 600;
    letter-spacing: -0.04em;
}

.scan-state--sent .scan-overlay__sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 38ch;
    margin: 0 auto 2rem;
}

.scan-state--sent .result-cta {
    border-top: 1px solid var(--line-color);
    padding-top: 1.75rem;
    margin-top: 0.5rem;
}

.scan-state--sent .url-form__submit { display: inline-flex; }
