:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --ink: #0f1c1a;
  --muted: #566a66;
  --line: #dde6e1;
  --brand: #0f6b5c;
  --brand-2: #14a38a;
  --brand-ink: #ffffff;
  --brand-soft: #dff1ec;
  --accent: #ff7a3d;
  --accent-soft: #ffe9dd;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 28, 26, .05), 0 18px 50px -12px rgba(15, 28, 26, .18);
  --glow: radial-gradient(60% 60% at 50% 50%, rgba(20, 163, 138, .28), transparent 70%);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1211; --surface: #111c1a; --surface-2: #162624; --ink: #ecf3f1; --muted: #93a9a4;
    --line: #213432; --brand: #38c4a8; --brand-2: #1f9e86; --brand-ink: #04211b; --brand-soft: #15332d;
    --accent: #ff9660; --accent-soft: #3a2518; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 24px 60px -20px rgba(0,0,0,.7);
    --glow: radial-gradient(60% 60% at 50% 50%, rgba(56, 196, 168, .22), transparent 70%);
  }
}
:root[data-theme="dark"] {
  --bg: #0a1211; --surface: #111c1a; --surface-2: #162624; --ink: #ecf3f1; --muted: #93a9a4;
  --line: #213432; --brand: #38c4a8; --brand-2: #1f9e86; --brand-ink: #04211b; --brand-soft: #15332d;
  --accent: #ff9660; --accent-soft: #3a2518; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 24px 60px -20px rgba(0,0,0,.7);
  --glow: radial-gradient(60% 60% at 50% 50%, rgba(56, 196, 168, .22), transparent 70%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 64ch; }
.center { text-align: center; margin-inline: auto; justify-items: center; }
.grad { background: linear-gradient(95deg, var(--brand), var(--brand-2) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* progreso de scroll */
#progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* Header */
header.top { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
header.top.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.18rem; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--brand) 60%, transparent); }
.logo-mark svg { width: 17px; height: 17px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: .15s; }
.nav ul a:hover, .nav ul a.active { color: var(--ink); background: var(--surface-2); }
.nav-right { display: flex; gap: 10px; align-items: center; }

/* Botones */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 600 .98rem var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px color-mix(in srgb, var(--brand) 75%, transparent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: var(--glow); filter: blur(10px); z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; left: -15%; bottom: -30%; width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); z-index: -1; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-6%, 8%) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.rot { display: inline-block; position: relative; min-width: 4ch; color: var(--brand); white-space: nowrap; }
.rot::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .12em; border-radius: 99px; background: linear-gradient(90deg, var(--accent), transparent); }
.rot span { display: inline-block; animation: wordIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.5em) rotateX(-40deg); filter: blur(4px); } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.chips li { list-style: none; display: flex; align-items: center; gap: 8px; }
.chips svg { width: 16px; height: 16px; stroke: var(--brand); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chips { padding: 0; }

/* Marco de navegador */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transform-style: preserve-3d; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar i:nth-child(1) { background: #ff6b5e; } .frame-bar i:nth-child(2) { background: #ffbd3f; } .frame-bar i:nth-child(3) { background: #2bcb5b; }
.frame-bar span { margin: 0 auto; font-size: .76rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 28px; border-radius: 8px; }
.frame video { width: 100%; aspect-ratio: 16 / 10; background: #0e1615; object-fit: cover; }
.hero-visual { position: relative; perspective: 1400px; }
.hero-visual .frame { transform: rotateY(-7deg) rotateX(3deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.hero-visual:hover .frame { transform: rotateY(0) rotateX(0) translateY(-4px); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 14px; font-size: .85rem; font-weight: 600; animation: bob 5s ease-in-out infinite; z-index: 2; }
.float small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); }
.float .dot svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f1 { left: -28px; bottom: 54px; } .f2 { right: -18px; top: 38px; animation-delay: -2s; } .f3 { right: 26px; bottom: -22px; animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--surface); padding: 18px 0; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-weight: 700; font-size: 1.05rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Tour */
.tour { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 6%, transparent) 40%, transparent); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.tab { border: 0; background: transparent; font: 600 .92rem var(--font); color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.tour-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.player { position: relative; }
.player video { cursor: pointer; }
.player-ui { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.pbtn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .15s; }
.pbtn:hover { transform: scale(1.08); }
.pbtn svg { width: 16px; height: 16px; fill: currentColor; }
.bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); cursor: pointer; position: relative; border: 1px solid var(--line); }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 82px; text-align: right; }
.speed { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 .78rem var(--font); border-radius: 8px; padding: 5px 9px; cursor: pointer; }
.big-play { position: absolute; left: 50%; top: calc(50% - 30px); transform: translate(-50%, -50%) scale(1); width: 84px; height: 84px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--brand) 92%, transparent); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent); animation: pulse 2s infinite; transition: opacity .25s, transform .25s; }
.big-play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.big-play.hide { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.7); }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.steps-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps-card h3 { margin-bottom: 4px; font-size: 1.3rem; }
.steps-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.steps-card ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: n; }
.steps-card li { counter-increment: n; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: .94rem; color: var(--muted); transition: .25s; }
.steps-card li::before { content: counter(n); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .78rem; display: grid; place-items: center; transition: .25s; }
.steps-card li.on { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.steps-card li.on::before { background: var(--brand); color: var(--brand-ink); }
.note { font-size: .82rem; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }

/* Tarjetas */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { --mx: 50%; --my: 50%; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); font-size: .96rem; position: relative; }
.icon { position: relative; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 6px; transition: transform .3s; }
.card:hover .icon { transform: rotate(-6deg) scale(1.08); }
.icon svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Roles */
.roles-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; }
.role-list { display: grid; gap: 10px; align-content: start; }
.role-btn { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px 20px; cursor: pointer; font: inherit; color: var(--ink); transition: .2s; display: grid; gap: 2px; }
.role-btn strong { font-size: 1.05rem; }
.role-btn span { color: var(--muted); font-size: .9rem; }
.role-btn:hover { border-color: var(--brand); }
.role-btn[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.perms { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.perms ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.perms li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 500; animation: permIn .4s both; }
.perms li:nth-child(odd) { background: var(--surface-2); }
.perms li .ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.perms li.yes .ico { background: var(--brand-soft); color: var(--brand); }
.perms li.no { color: var(--muted); }
.perms li.no .ico { background: var(--accent-soft); color: var(--accent); }
.perms li.no span.t { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
@keyframes permIn { from { opacity: 0; transform: translateX(-10px); } }

/* Aislamiento */
.iso { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.clinics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.clinic { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; transition: .3s; position: relative; }
.clinic:hover { transform: translateY(-5px); border-color: var(--brand); }
.clinic .db { width: 46px; height: 52px; margin: 6px auto 10px; }
.clinic .db ellipse, .clinic .db path { stroke: var(--brand); fill: var(--brand-soft); stroke-width: 2; }
.clinic b { display: block; font-size: .92rem; }
.clinic small { color: var(--muted); font-size: .78rem; }
.clinic .lock { position: absolute; top: 10px; right: 10px; font-size: .8rem; opacity: .6; }
.shared { margin-top: 14px; text-align: center; font-size: .86rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 10px; }

/* Cómo empezar */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: s; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 5%; right: 5%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 0; }
.tl { position: relative; z-index: 1; display: grid; gap: 8px; }
.tl::before { counter-increment: s; content: counter(s); width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg); }
.tl p { color: var(--muted); font-size: .94rem; }

/* Precios */
.billing { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 36px; font-weight: 600; font-size: .95rem; }
.switch { width: 54px; height: 30px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); position: relative; cursor: pointer; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }
.save { background: var(--accent-soft); color: var(--accent); font-size: .76rem; padding: 3px 10px; border-radius: 99px; font-weight: 700; }
.price { position: relative; }
.price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .billed { font-size: .82rem; color: var(--muted); min-height: 1.3em; }
.price ul { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b5c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.price.featured { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 38%); box-shadow: 0 0 0 1px var(--brand), var(--shadow); transform: translateY(-8px); }
.price.featured:hover { transform: translateY(-12px); }
.badge { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #1c0d04; font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.fineprint { color: var(--muted); font-size: .86rem; margin-top: 24px; max-width: 80ch; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b5c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s; }
details[open] summary::after { transform: rotate(135deg); }
details .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
details[open] .ans { grid-template-rows: 1fr; }
details .ans > div { overflow: hidden; }
details p { color: var(--muted); padding-bottom: 20px; max-width: 70ch; }

/* Demo */
.demo { position: relative; overflow: hidden; background: linear-gradient(135deg, #0b4d42, #0f6b5c 55%, #14a38a); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.demo::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); animation: drift 10s ease-in-out infinite alternate; }
.demo > * { position: relative; }
.demo .eyebrow { color: #a7f0de; }
.demo h2 { margin: 14px 0 14px; }
.demo p { opacity: .88; }
.demo ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: .95rem; }
.demo ul li::before { content: "✓"; margin-right: 10px; color: #a7f0de; font-weight: 800; }
.demo form { display: grid; gap: 14px; background: color-mix(in srgb, #fff 10%, transparent); border: 1px solid rgba(255, 255, 255, .22); padding: 26px; border-radius: 20px; backdrop-filter: blur(8px); }
.demo label { font-size: .82rem; font-weight: 600; display: grid; gap: 6px; }
.demo input, .demo select, .demo textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 2px solid transparent; background: #fff; color: #0f1c1a; width: 100%; transition: border-color .2s; }
.demo input:focus, .demo select:focus, .demo textarea:focus { outline: none; border-color: var(--accent); }
.demo input:user-invalid { border-color: #ff6b5e; }
.demo .btn { background: #0f1c1a; color: #fff; justify-self: stretch; }
.demo .btn:hover { transform: translateY(-2px); background: #000; }
.demo .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .78rem; opacity: .9; }
.demo .consent input { width: auto; margin-top: 3px; }
.form-ok { display: none; text-align: center; padding: 20px 0; gap: 10px; }
.form-ok.show { display: grid; }
.form-ok b { font-size: 1.3rem; }
.demo .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo .ferr, .ferr { color: #ffb4a6; font-size: .82rem; margin: 0; min-height: 1em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Contacto */
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: -140px; bottom: -140px; width: 340px; height: 340px; border-radius: 50%; background: var(--glow); }
.contact > * { position: relative; }
.contact form { display: grid; gap: 14px; background: var(--surface-2); border: 1px solid var(--line); padding: 26px; border-radius: 20px; }
.contact label { font-size: .82rem; font-weight: 600; display: grid; gap: 6px; }
.contact input, .contact textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; transition: border-color .2s; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--brand); }
.contact .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .78rem; color: var(--muted); }
.contact .consent input { width: auto; margin-top: 3px; }
.contact .form-ok { padding: 40px 10px; }
.contact .form-ok b { color: var(--brand); }
.contact .ferr { color: #c2402f; }

/* Banner de consentimiento de cookies: el aviso no se muestra hasta que se pide
   (atributo hidden), y este selector evita que el display:flex del autor lo pise. */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 20px; animation: bannerIn .5s cubic-bezier(.2,.8,.2,1); }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; font-size: .88rem; color: var(--muted); max-width: 72ch; }
.consent-banner b { color: var(--ink); }
.consent-banner a { color: var(--brand); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex: none; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 980px) {
  .contact { grid-template-columns: 1fr; }
  .demo .frow { grid-template-columns: 1fr; }
}

footer { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-brand .logo { margin-bottom: 12px; }
.foot-brand p { margin: 0; max-width: 42ch; line-height: 1.55; }
.foot h4 { margin: 4px 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-contact li { display: flex; gap: 9px; align-items: flex-start; }
.foot-contact svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--brand); }
.foot-bottom { grid-column: 1 / -1; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--line); font-size: .82rem; }

@media (max-width: 980px) {
  .foot { grid-template-columns: 1fr; gap: 24px; }
}

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .tour-grid, .roles-wrap, .iso, .demo { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; } .timeline::before { display: none; }
  .nav ul { display: none; }
  .float { display: none; }
  .hero-visual .frame { transform: none; }
  .price.featured { transform: none; }
}
@media (max-width: 620px) {
  .g3, .g2, .timeline, .clinics { grid-template-columns: 1fr; }
  .tabs { border-radius: 18px; }
  .tab { flex: 1 1 auto; padding: 9px 12px; }
  .player-ui { gap: 10px; padding: 10px 12px; } .time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
