/* =================================================================
   RESPONDIA · Landing pública (respondia.it)
   -----------------------------------------------------------------
   Standalone, sin Tailwind. Reutiliza el lenguaje visual del panel
   (tokens OKLCH, Inter Tight, JetBrains Mono) pero está optimizada
   para una sola página: hero, features, how, pricing, FAQ, CTA.
   ================================================================= */

/* --------- Tokens --------- */
:root {
    --brand:          oklch(0.42 0.09 255);
    --brand-700:      oklch(0.32 0.10 255);
    --brand-soft:     oklch(0.96 0.018 255);
    --signal:         oklch(0.7  0.17 55);
    --signal-soft:    oklch(0.94 0.05 55);
    --ok:             oklch(0.62 0.13 155);
    --ink:            oklch(0.20 0.02 260);
    --ink-2:          oklch(0.36 0.018 260);
    --ink-3:          oklch(0.50 0.012 260);
    --ink-4:          oklch(0.62 0.010 260);
    --ink-5:          oklch(0.82 0.006 260);
    --line:           oklch(0.93 0.006 260);
    --bg:             oklch(0.99 0.003 260);
    --bg-sunken:      oklch(0.97 0.005 260);
    --bg-dark:        oklch(0.18 0.012 260);
    --bg-dark-2:      oklch(0.23 0.012 260);

    --r-2: 8px; --r-3: 12px; --r-4: 18px; --r-5: 28px;
    --d-fast: 160ms; --d-base: 240ms; --d-slow: 420ms;

    --font-ui: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --------- Reset minimal --------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01" on, "ss02" on, "cv11" on, "cv05" on;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--d-fast); }
a:hover { color: var(--brand); }
code { font-family: var(--font-mono); font-size: 0.92em; background: var(--bg-sunken); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
em { font-style: normal; color: var(--signal); font-weight: 600; }
button { font: inherit; cursor: pointer; }

/* --------- Layout helpers --------- */
section { padding: 96px 24px; }
@media (max-width: 768px) { section { padding: 64px 18px; } }

/* --------- Botones --------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; font-size: 14px; font-weight: 500;
    border-radius: var(--r-2); border: 1px solid transparent;
    transition: transform var(--d-fast), box-shadow var(--d-fast), background-color var(--d-fast), color var(--d-fast);
    line-height: 1; letter-spacing: -0.005em;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-signal { background: var(--signal); color: oklch(0.20 0.05 55); border-color: var(--signal); }
.btn-signal:hover { background: oklch(0.66 0.18 55); color: oklch(0.20 0.05 55); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-sunken); color: var(--ink); border-color: var(--ink-5); }

/* --------- Nav --------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 16px 28px;
    background: oklch(0.99 0.003 260 / 0.85);
    backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; color: var(--brand); }
.brand-mark { height: 28px; width: auto; }
.nav-links { display: inline-flex; gap: 22px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: inline-flex; gap: 8px; }
@media (max-width: 800px) {
    .nav-links { display: none; }
}

/* --------- Hero --------- */
.hero {
    padding-top: 80px; padding-bottom: 80px;
    background:
        radial-gradient(1100px 500px at 80% -10%, oklch(0.95 0.04 255) 0%, transparent 60%),
        radial-gradient(700px 400px at 0% 30%,   oklch(0.96 0.05 55) 0%, transparent 60%);
}
.hero-grid {
    max-width: 1240px; margin: 0 auto;
    display: grid; gap: 48px; grid-template-columns: 1.2fr 1fr; align-items: center;
}
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}
.eyebrow { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); font-weight: 600; margin-bottom: 14px; }
.display {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.04; letter-spacing: -0.03em;
    font-weight: 600; color: var(--ink);
    margin: 0 0 20px 0;
}
.lead { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin: 0 0 28px 0; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ink-3); }
.hero-trust .dot { display: inline-block; width: 6px; height: 6px; border-radius: 9999px; background: var(--ok); margin-right: 6px; vertical-align: middle; }

/* --------- Cockpit en hero --------- */
.cockpit {
    background: linear-gradient(165deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: oklch(0.95 0.005 260);
    padding: 22px; border-radius: var(--r-4);
    box-shadow: 0 24px 60px oklch(0.18 0.012 260 / 0.25);
    border: 1px solid oklch(0.30 0.012 260);
}
.cockpit-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(0.78 0.005 260); }
.cockpit-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cockpit-time { font-family: var(--font-mono); font-weight: 500; padding: 3px 8px; background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.1); border-radius: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--signal); box-shadow: 0 0 0 0 oklch(0.7 0.17 55 / 0.55); animation: lp 1.6s ease-out infinite; }
@keyframes lp { 0% { box-shadow: 0 0 0 0 oklch(0.7 0.17 55 / 0.55);} 80%,100%{ box-shadow: 0 0 0 12px oklch(0.7 0.17 55 / 0);}}
.cockpit-big {
    font-family: var(--font-ui); font-size: 64px; font-weight: 600;
    letter-spacing: -0.04em; line-height: 1.05; color: white; margin: 14px 0 8px 0;
    font-variant-numeric: tabular-nums;
}
.cockpit-big small { font-size: 13px; font-weight: 500; color: oklch(0.78 0.005 260); margin-left: 8px; letter-spacing: 0; text-transform: lowercase; }
.cockpit-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: oklch(0.78 0.005 260); padding-bottom: 14px; border-bottom: 1px dashed oklch(1 0 0 / 0.12); }
.waveform { display: inline-flex; gap: 2px; height: 18px; align-items: flex-end; }
.waveform span { display: inline-block; width: 3px; background: var(--signal); border-radius: 2px; animation: wf 1.2s ease-in-out infinite; }
.waveform span:nth-child(1) { height: 30%; animation-delay: 0.0s; }
.waveform span:nth-child(2) { height: 60%; animation-delay: 0.15s; }
.waveform span:nth-child(3) { height: 100%; animation-delay: 0.30s; }
.waveform span:nth-child(4) { height: 50%; animation-delay: 0.45s; }
.waveform span:nth-child(5) { height: 70%; animation-delay: 0.60s; }
@keyframes wf { 0%, 100% { transform: scaleY(0.6);} 50% { transform: scaleY(1.1);} }

.cockpit-funnel { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cf-row { display: grid; grid-template-columns: 90px 1fr 60px; gap: 10px; align-items: center; font-size: 12px; }
.cf-label { color: oklch(0.78 0.005 260); }
.cf-bar { height: 6px; background: oklch(1 0 0 / 0.08); border-radius: 9999px; overflow: hidden; }
.cf-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--signal) 0%, oklch(0.78 0.13 55) 100%); border-radius: 9999px; transition: width var(--d-slow) cubic-bezier(0.2,0.8,0.2,1); }
.cf-val { font-family: var(--font-mono); font-size: 12px; color: white; text-align: right; font-variant-numeric: tabular-nums; }

/* --------- Strip de KPIs --------- */
.strip { padding: 56px 24px; background: var(--bg-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
@media (max-width: 800px) { .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
.strip-item { text-align: left; }
.strip-num { font-family: var(--font-ui); font-weight: 600; font-size: 38px; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.strip-num small { font-size: 22px; color: var(--brand); margin-left: 2px; }
.strip-lbl { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* --------- Section heads --------- */
.section-head { max-width: 720px; margin: 0 auto 56px auto; text-align: center; }
.section-head .eyebrow { color: var(--brand); }
.title { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 12px 0; }
.section-head .lead { color: var(--ink-2); margin: 0 auto; }

/* --------- Features --------- */
.features { background: var(--bg); }
.features-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
    position: relative;
    padding: 32px 28px 28px 28px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    transition: box-shadow var(--d-fast), transform var(--d-fast), border-color var(--d-fast);
    overflow: hidden;
}
/* Acento fino superior (escala con hover) */
.feature::before {
    content: "";
    position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
    background: linear-gradient(90deg, var(--brand) 0%, transparent 100%);
    transform: scaleX(0.35); transform-origin: left center;
    transition: transform var(--d-base) cubic-bezier(0.2,0.8,0.2,1), opacity var(--d-base);
    opacity: 0.7;
}
.feature:hover {
    box-shadow: 0 12px 30px oklch(0.18 0.012 260 / 0.06);
    transform: translateY(-2px);
    border-color: var(--ink-5);
}
.feature:hover::before { transform: scaleX(1); opacity: 1; }
.feature-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    opacity: 0.85;
}
.feature h3 {
    font-size: 19px; margin: 0 0 8px 0;
    font-weight: 600; color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.feature p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* --------- How --------- */
.how { background: var(--bg-sunken); }
.how-steps { max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } }
.how-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3); padding: 24px; }
.step-num { display: inline-block; font-family: var(--font-mono); font-size: 13px; color: var(--brand); background: var(--brand-soft); padding: 4px 9px; border-radius: 6px; font-weight: 600; margin-bottom: 12px; }
.how-steps h3 { font-size: 16px; margin: 0 0 4px 0; font-weight: 600; color: var(--ink); }
.how-steps p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* --------- Pricing --------- */
.pricing { background: var(--bg); }
.plans { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }
.plan { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-4); padding: 28px; display: flex; flex-direction: column; }
.plan-featured { border-color: var(--brand); box-shadow: 0 24px 50px oklch(0.42 0.09 255 / 0.10); transform: translateY(-4px); }
.plan-badge { position: absolute; top: -10px; right: 22px; background: var(--signal); color: oklch(0.20 0.05 55); font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; letter-spacing: 0.05em; text-transform: uppercase; }
.plan h3 { font-size: 17px; margin: 0; color: var(--ink-2); font-weight: 600; }
.plan-price { font-family: var(--font-ui); font-size: 42px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 8px 0 4px 0; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.plan-help { font-size: 13px; color: var(--ink-3); margin: 0 0 14px 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px 0; flex: 1; }
.plan ul li { font-size: 14px; color: var(--ink-2); padding: 6px 0 6px 22px; position: relative; line-height: 1.45; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.pricing-note { max-width: 800px; margin: 24px auto 0 auto; text-align: center; font-size: 12px; color: var(--ink-4); }

/* --------- FAQ --------- */
.faq { background: var(--bg-sunken); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3); padding: 16px 18px; transition: box-shadow var(--d-fast); }
.faq details[open] { box-shadow: 0 8px 18px oklch(0.18 0.012 260 / 0.05); }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; transition: transform var(--d-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 10px 0 0 0; }

/* --------- Contacto --------- */
.contact { background: linear-gradient(165deg, var(--brand) 0%, var(--brand-700) 100%); color: white; }
.contact .section-head { color: white; }
.contact .section-head .eyebrow { color: var(--signal); }
.contact .title, .contact .lead { color: white; }
.contact .lead { color: oklch(0.92 0.01 255); }

.contact-form { max-width: 720px; margin: 0 auto; background: var(--bg); color: var(--ink); border-radius: var(--r-4); padding: 28px; box-shadow: 0 24px 60px oklch(0.18 0.012 260 / 0.18); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
    font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--r-2); padding: 11px 13px;
    text-transform: none; letter-spacing: 0; font-weight: 400;
    transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px oklch(0.42 0.09 255 / 0.18); }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .contact-form .row-2 { grid-template-columns: 1fr; gap: 0; } }
.row-check { flex-direction: row !important; align-items: flex-start; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; color: var(--ink-2) !important; }
.row-check span { font-weight: 400; }
.row-check input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-help { font-size: 13px; color: var(--ink-3); }
.form-help.is-ok { color: var(--ok); }
.form-help.is-err { color: oklch(0.55 0.18 25); }

/* --------- Footer --------- */
.foot { background: var(--bg-dark); color: oklch(0.85 0.005 260); padding: 64px 24px 28px 24px; border-top: 1px solid oklch(0.30 0.012 260); }
.foot-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
.foot a { color: oklch(0.85 0.005 260); }
.foot a:hover { color: var(--signal); }
.foot .brand-mark { color: white; }
.foot-blurb { font-size: 13.5px; color: oklch(0.72 0.005 260); margin-top: 14px; max-width: 36ch; line-height: 1.55; }
.foot h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: white; margin: 6px 0 14px 0; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.status-ok { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; background: var(--ok); margin-right: 8px; vertical-align: middle; }
.foot-base { max-width: 1240px; margin: 40px auto 0 auto; padding-top: 20px; border-top: 1px solid oklch(0.30 0.012 260); display: flex; justify-content: space-between; font-size: 12px; color: oklch(0.65 0.005 260); flex-wrap: wrap; gap: 8px; }

/* =================================================================
   GSAP-driven elements · orbs, hero split, marquee, pin-how, etc.
   ================================================================= */

/* --------- Hero contenedor relativo (para orbs absolutos) --------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; }
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.orb {
    position: absolute; display: block;
    width: 520px; height: 520px; border-radius: 9999px;
    filter: blur(60px); opacity: 0.55; mix-blend-mode: multiply;
    will-change: transform;
}
.orb-1 { top: -140px; right: -140px; background: radial-gradient(closest-side, oklch(0.8 0.13 255) 0%, transparent 70%); }
.orb-2 { bottom: -200px; left: -160px; width: 620px; height: 620px; background: radial-gradient(closest-side, oklch(0.85 0.12 55) 0%, transparent 70%); opacity: 0.45; }
.orb-3 { top: 40%; left: 45%; width: 360px; height: 360px; background: radial-gradient(closest-side, oklch(0.92 0.06 200) 0%, transparent 70%); opacity: 0.45; }
.orb-grid {
    inset: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(to right, oklch(0.20 0.02 260 / 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, oklch(0.20 0.02 260 / 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
    opacity: 0.7;
    filter: none;
}

/* --------- Hero split words (cada palabra es una "ranura" oculta y el span interior sube) --------- */
.hero-word {
    display: inline-block; overflow: hidden; vertical-align: bottom;
    line-height: 1.04; padding: 0 0.06em 0.06em 0;
}
.hero-word > span {
    display: inline-block; will-change: transform;
}

/* --------- Indicador de scroll en el hero --------- */
.hero-scroll-hint {
    position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
    z-index: 2; pointer-events: none;
}
.hero-scroll-line { display: block; width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--ink-3)); animation: scrollHint 1.6s ease-in-out infinite; }
@keyframes scrollHint { 0%, 100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* --------- Marquesina infinita --------- */
.marquee {
    padding: 18px 0 !important;
    background: var(--bg-dark); color: oklch(0.85 0.005 260);
    border-top: 1px solid oklch(0.30 0.012 260);
    border-bottom: 1px solid oklch(0.30 0.012 260);
    overflow: hidden;
}
.marquee-track {
    display: inline-flex; gap: 38px; white-space: nowrap;
    font-family: var(--font-ui); font-weight: 500; font-size: 14px;
    letter-spacing: 0.02em;
    will-change: transform;
}
.marquee-track > span:first-child { color: var(--signal); }
.marquee-track > span { padding-left: 0; flex-shrink: 0; }

/* --------- Nav scrolled (sombra al bajar) --------- */
.nav.is-scrolled {
    box-shadow: 0 4px 18px oklch(0.18 0.012 260 / 0.06);
    background: oklch(0.99 0.003 260 / 0.92);
}

/* =================================================================
   HOW · DEMO MOCKUP CINEMÁTICO
   ----------------------------------------------------------------- */
.demo-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* --------- Selector de escenario (tabs) --------- */
/* El wrap de las tabs se centra con un wrapper de text-align center
   y .demo-tabs es inline-flex para no ocupar 100% del ancho. */
.demo-tabs {
    display: inline-flex; gap: 4px; padding: 4px;
    background: var(--bg-sunken); border: 1px solid var(--line);
    border-radius: 9999px;
    margin: 0 auto 18px auto;
    box-shadow: 0 1px 0 oklch(1 0 0 / 0.6) inset;
    flex-wrap: wrap;
    justify-content: center;
}
/* Centrado horizontal vía wrapper */
.demo-wrap { text-align: center; }
.demo-frame, .how-chips { text-align: left; }
.demo-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    background: transparent; border: 0;
    border-radius: 9999px;
    font-family: var(--font-ui); font-size: 13px; font-weight: 600;
    color: var(--ink-3);
    cursor: pointer;
    transition: background-color var(--d-fast), color var(--d-fast), box-shadow var(--d-fast), transform var(--d-fast);
    letter-spacing: -0.005em;
}
.demo-tab svg { stroke: currentColor; flex-shrink: 0; opacity: 0.85; }
.demo-tab:hover { color: var(--ink); }
.demo-tab.is-active {
    background: var(--bg);
    color: var(--brand);
    box-shadow: 0 4px 14px oklch(0.18 0.012 260 / 0.08);
}
.demo-tab.is-active svg { opacity: 1; }
.demo-tab:active { transform: scale(0.97); }
.demo-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Frame estilo navegador */
.demo-frame {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-4);
    box-shadow:
        0 30px 60px oklch(0.18 0.012 260 / 0.18),
        0 8px 18px oklch(0.18 0.012 260 / 0.06);
    overflow: hidden;
    transform: perspective(1600px) rotateX(0deg);
}
.demo-bar {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 16px;
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--line);
    font-size: 12px; color: var(--ink-3);
}
.demo-dots { display: inline-flex; gap: 6px; }
.demo-dots i { display: block; width: 11px; height: 11px; border-radius: 9999px; background: var(--ink-5); }
.demo-dots i:nth-child(1) { background: oklch(0.7 0.18 25); }
.demo-dots i:nth-child(2) { background: oklch(0.78 0.18 80); }
.demo-dots i:nth-child(3) { background: oklch(0.70 0.16 145); }
.demo-url { flex: 1; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 9999px; color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; max-width: 560px; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 9999px; font-size: 11px; color: var(--ink-2); font-weight: 600; }

/* Cuerpo: 3 columnas (sidebar / call / KPIs) */
.demo-body {
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    min-height: 520px;
    background: var(--bg);
}
@media (max-width: 980px) {
    .demo-body { grid-template-columns: 1fr; }
    .demo-side, .demo-right { display: none; }
}

/* SIDEBAR mini ----------------------------------------------- */
.demo-side {
    padding: 18px 14px;
    border-right: 1px solid var(--line);
    background: var(--bg-sunken);
    font-size: 13px;
    overflow-y: auto;
}
.demo-side h6 {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); font-weight: 700;
    margin: 14px 0 8px 0;
}
.demo-side h6:first-child { margin-top: 0; }
.demo-list, .demo-team { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.demo-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: var(--r-2);
    background: transparent; color: var(--ink-2); font-size: 12.5px;
    cursor: default;
}
.demo-list li.is-active { background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.demo-team li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; font-size: 12.5px; color: var(--ink); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--brand); color: white; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.avatar-h { background: linear-gradient(135deg, oklch(0.62 0.13 155), oklch(0.55 0.13 200)); }

/* Pills genéricas dentro del demo */
.demo-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; font-size: 10px; font-weight: 700; border-radius: 9999px;
    text-transform: lowercase; letter-spacing: 0.02em;
    background: var(--bg-sunken); color: var(--ink-3); border: 1px solid var(--line);
}
.demo-pill .live-dot { width: 6px; height: 6px; }
.demo-pill.is-mute { background: var(--bg-sunken); color: var(--ink-4); }
.demo-pill.is-ok   { background: oklch(0.96 0.05 155); color: oklch(0.32 0.13 155); border-color: oklch(0.84 0.10 155); }
.demo-pill.is-busy { background: oklch(0.96 0.05 55);  color: oklch(0.36 0.16 55);  border-color: oklch(0.84 0.10 55); }

/* CENTRO: tarjeta de llamada -------------------------------- */
.demo-center { padding: 22px; display: flex; align-items: stretch; }
.call-card {
    flex: 1;
    display: flex; flex-direction: column; gap: 14px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3); padding: 18px;
}
.call-head { display: flex; align-items: center; justify-content: space-between; }
.call-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.call-timer { font-family: var(--font-mono); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Parties */
.call-parties { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.party { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-2); }
.party-avatar { width: 40px; height: 40px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.party-avatar svg { width: 100%; height: 100%; display: block; }
.avatar-c { background: linear-gradient(135deg, oklch(0.78 0.13 200), oklch(0.55 0.16 220)); color: white; font-weight: 700; }
.party-info { min-width: 0; }
.party-name { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.party-tag  { font-size: 9px; padding: 2px 5px; background: var(--brand-soft); color: var(--brand-ink); border-radius: 4px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.party-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.party-wave { display: inline-flex; gap: 2px; height: 18px; align-items: flex-end; }
.party-wave span { display: inline-block; width: 3px; background: var(--signal); border-radius: 2px; animation: wfP 1.2s ease-in-out infinite; }
.party-wave span:nth-child(1){ height: 30%; animation-delay: .0s;}
.party-wave span:nth-child(2){ height: 70%; animation-delay: .12s;}
.party-wave span:nth-child(3){ height: 100%;animation-delay: .24s;}
.party-wave span:nth-child(4){ height: 60%; animation-delay: .36s;}
.party-wave span:nth-child(5){ height: 90%; animation-delay: .48s;}
.party-wave span:nth-child(6){ height: 50%; animation-delay: .60s;}
.party-wave span:nth-child(7){ height: 75%; animation-delay: .72s;}
@keyframes wfP { 0%,100%{transform:scaleY(.5)} 50%{transform:scaleY(1.15)} }

/* Línea de conexión entre parties */
.call-link { display: inline-flex; align-items: center; gap: 6px; }
.call-link .link-dot  { width: 6px; height: 6px; border-radius: 9999px; background: var(--brand); }
.call-link .link-line { display: inline-block; width: 56px; height: 2px; background: var(--brand); border-radius: 9999px; transform-origin: left center; }
@media (max-width: 700px) {
    .call-parties { grid-template-columns: 1fr; }
    .call-link { transform: rotate(90deg); margin: 4px auto; }
}

/* TRANSCRIPT */
.transcript {
    background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--r-2);
    padding: 12px; min-height: 180px; max-height: 220px; overflow-y: auto;
    font-size: 13.5px; color: var(--ink); line-height: 1.5;
    display: flex; flex-direction: column; gap: 10px;
    scrollbar-width: thin;
}
.tr-line { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: flex-start; opacity: 0; animation: trIn .3s ease-out forwards; }
@keyframes trIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tr-who   { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink-3); padding-top: 6px; }
.tr-bubble{ display: inline-flex; align-items: baseline; gap: 4px; padding: 8px 12px; border-radius: 12px; max-width: 100%; word-wrap: break-word; line-height: 1.45; }
.tr-ai .tr-who { color: var(--brand); }
.tr-ai .tr-bubble  { background: var(--brand-soft); color: var(--ink); border-bottom-left-radius: 4px; }
.tr-cli .tr-who { color: oklch(0.55 0.16 220); }
.tr-cli .tr-bubble { background: oklch(0.95 0.04 220); color: var(--ink); border-bottom-right-radius: 4px; }
.tr-caret { display: inline-block; width: 6px; height: 14px; background: currentColor; opacity: 0.5; animation: blink 0.9s steps(2) infinite; vertical-align: -2px; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* Footer de la call card: análisis + botón */
.call-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.call-foot .b { font-size: 12px; padding: 5px 10px; }
.call-transfer { padding: 8px 14px; font-size: 13px; transition: box-shadow .25s ease, transform .25s ease, opacity .25s ease; }
.call-transfer:disabled { opacity: 0.5; cursor: not-allowed; }
.call-transfer.is-glow { box-shadow: 0 0 0 0 oklch(0.7 0.17 55 / 0.6); animation: glow 1.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 oklch(0.7 0.17 55 / 0.4); } 50% { box-shadow: 0 0 0 8px oklch(0.7 0.17 55 / 0); } }

/* RIGHT: KPIs en vivo --------------------------------------- */
.demo-right {
    padding: 18px 14px;
    border-left: 1px solid var(--line);
    background: var(--bg-sunken);
    display: flex; flex-direction: column; gap: 10px;
}
.demo-kpi {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-2);
    padding: 12px;
}
.demo-kpi-lbl { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); font-weight: 700; margin-bottom: 4px; }
.demo-kpi-num { font-family: var(--font-ui); font-size: 26px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; transition: color 0.6s; }
.demo-kpi.is-hi { background: linear-gradient(160deg, var(--brand-soft) 0%, var(--bg) 100%); border-color: oklch(0.84 0.05 255); }
.demo-kpi.is-hi .demo-kpi-num { color: var(--brand); }
.mini-spark { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-2); padding: 10px; }
.mini-spark-lbl { display: block; font-size: 10px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 6px; }
.mini-spark svg { width: 100%; height: 50px; display: block; }

/* Toast flotante de resultado */
.demo-toast {
    position: absolute; bottom: 18px; right: 18px; left: 18px;
    margin: 0 auto; max-width: 360px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: oklch(0.20 0.05 155);
    color: white;
    border-radius: var(--r-3);
    box-shadow: 0 16px 40px oklch(0.18 0.012 260 / 0.35);
    font-size: 13px;
}
.toast-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: oklch(0.55 0.18 155); color: white; border-radius: 9999px; font-weight: 800; flex-shrink: 0; }
.toast-title { font-weight: 700; color: white; }
.toast-sub   { color: oklch(0.85 0.05 155); font-size: 12px; }

/* CHIPS de los 4 pasos debajo del mockup */
.how-chips { list-style: none; padding: 0; margin: 32px 0 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; }
@media (max-width: 880px) { .how-chips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .how-chips { grid-template-columns: 1fr; } }
.how-chips li { display: flex; align-items: flex-start; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-2); padding: 14px; }
.how-chips li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.how-chips strong { font-size: 14px; color: var(--ink); font-weight: 600; }
.how-chips span { font-size: 12.5px; color: var(--ink-3); }
.how-chips .step-num { margin-bottom: 0; }

/* --------- Reveal fallback (cuando no hay GSAP) --------- */
[data-reveal], [data-reveal-down] { /* GSAP los oculta y revela; el fallback en JS los muestra al inicio. */ }

/* --------- prefers-reduced-motion: anular animaciones --------- */
@media (prefers-reduced-motion: reduce) {
    .hero-word > span,
    [data-reveal], [data-reveal-down],
    .hero-orbs .orb,
    .hero-scroll-hint { opacity: 1 !important; transform: none !important; animation: none !important; }
    .live-dot, .waveform span, .cf-bar i, .marquee-track, .plan-featured { animation: none !important; transition: none !important; }
    .how-card { opacity: 1 !important; transform: none !important; }
}
