/* Heiko Dent — sitio público. Paleta oficial de Heiko (kit de heiko.com.co) + colores clínicos de la carta. */
:root {
    --navy: #0D1F56;
    --night: #050D24;
    --ink: #0D1F56;
    --slate: #2B3968;
    --muted: #5B678C;
    --purple: #7A65E8;
    --purple-2: #584cdb;
    --purple-3: #8d82fd;
    --select: #7367f0;
    --deep: #340A6E;
    --aqua: #0BDFD1;
    --turq: #0EDBB8;
    --lav: #F2F0FD;
    --gray-1: #EEEFF1;
    --gray-2: #DCDCDE;
    --sky: #EFF6FF;
    --red: #ea5455;
    --red-ink: #D8474A;
    --blue: #2563EB;
    --blue-ink: #1D4FC4;
    --white: #FFFFFF;
    --line: rgba(13, 31, 86, .10);
    --grad: linear-gradient(135deg, #8d82fd 0%, #584cdb 100%);
    --grad-aqua: linear-gradient(135deg, #0BDFD1 0%, #7A65E8 100%);
    --r: 20px;
    --shadow: 0 1px 2px rgba(13, 31, 86, .06), 0 12px 32px -12px rgba(13, 31, 86, .18);
    --font-h: 'Figtree', system-ui, sans-serif;
    --font: 'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-h); margin: 0; letter-spacing: -.02em; line-height: 1.06; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--purple);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.h-xl { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; }
.h-lg { font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; }
.h-md { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; }
.grad-text { background: var(--grad-aqua); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
    display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px;
    font: 600 15px/1 var(--font); text-decoration: none; border: 0; cursor: pointer;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(88, 76, 219, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(88, 76, 219, .85); }
.btn-ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--gray-2), 0 1px 2px rgba(13, 31, 86, .06); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--purple), 0 6px 18px -8px rgba(88, 76, 219, .35); transform: translateY(-2px); }
.btn-line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Navegación ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: 72px;
    display: flex; align-items: center;
    transition: background .4s, box-shadow .4s, color .4s;
    color: var(--navy);
}
.nav.is-light { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--navy); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--font-h); letter-spacing: -.02em; }
.brand img { width: 34px; height: auto; }
.brand b { font-weight: 800; }
.brand span { font-weight: 500; opacity: .75; }
.nav-links { display: flex; gap: 28px; font: 500 14px/1 var(--font); }
.nav-links a { text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Hero 3D ---------- */
/* Fondo claro como el hero de udeki.com: papel, velo lavanda y trama de puntos. */
.hero { position: relative; background: linear-gradient(180deg, #FCFBFE 0%, #F6F3FF 58%, #F2F0FD 100%); color: var(--navy); }
.hero-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.stage { position: absolute; inset: 0; }
.stage canvas { width: 100%; height: 100%; }
.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(122, 101, 232, .2) 1px, transparent 1.4px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 85% 70% at 62% 45%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 62% 45%, #000 30%, transparent 80%);
}
.hero-glow { position: absolute; width: 62vw; height: 62vw; right: -14vw; top: 4vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 101, 232, .16), rgba(11, 223, 209, .06) 60%, transparent); pointer-events: none; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.fdi {
    position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
    font: 700 10.5px/1 var(--font); color: #fff; padding: 4px 6px; border-radius: 6px;
    background: rgba(5, 13, 36, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    will-change: transform, opacity;
}
.fdi.is-pending { background: var(--red); box-shadow: none; }
.fdi.is-done { background: var(--blue); box-shadow: none; }
.pin-target {
    position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
    border: 1.5px solid var(--aqua); opacity: 0; pointer-events: none;
    box-shadow: 0 0 0 6px rgba(11, 223, 209, .12), 0 0 30px rgba(11, 223, 209, .35);
}
.pin-target::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(11, 223, 209, .45); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.hero-copy { position: absolute; left: max(16px, calc((100vw - 1200px) / 2)); top: 50%; transform: translateY(-50%); width: min(560px, 100% - 32px); z-index: 3; }
.hero-copy h1 { margin: 0 0 20px; color: var(--night); }
.hero-copy .lead { color: var(--muted); }
.hero .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-new { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 24px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--gray-2), 0 1px 2px rgba(13, 31, 86, .06); font: 500 13px/1.2 var(--font); color: var(--slate); text-decoration: none; transition: box-shadow .3s; }
.badge-new:hover { box-shadow: inset 0 0 0 1px var(--purple), 0 6px 18px -8px rgba(88, 76, 219, .35); }
.badge-new b { padding: 4px 9px; border-radius: 999px; background: var(--turq); color: var(--night); font: 700 11px/1 var(--font); letter-spacing: .04em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-badges span { font: 500 12.5px/1 var(--font); padding: 8px 12px; border-radius: 999px; background: rgba(122, 101, 232, .08); color: var(--slate); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--gray-2), 0 10px 30px -14px rgba(34, 22, 110, .4); font: 500 13px/1 var(--font); color: var(--slate); cursor: pointer; z-index: 3; }
.scroll-cue kbd { font: 600 12px/1 var(--font); padding: 4px 7px; border-radius: 6px; background: var(--gray-1); box-shadow: inset 0 -1px 0 var(--gray-2); color: var(--navy); }
.scroll-cue i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-style: normal; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.beat { position: absolute; left: max(16px, calc((100vw - 1200px) / 2)); top: 50%; width: min(470px, 100% - 32px); transform: translateY(-50%); z-index: 3; opacity: 0; visibility: hidden; }
.beat .kicker { font: 700 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.beat h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; margin: 14px 0 14px; color: var(--night); }
.beat p.lead { color: var(--muted); font-size: 17px; }
.beat .ui { margin-top: 26px; }
.hero-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 12vh; text-align: center; z-index: 3; opacity: 0; visibility: hidden; }
.hero-end h2 { font-size: clamp(32px, 5vw, 64px); font-weight: 800; }
.hero-end h2 { color: var(--night); }
.hero-end p { color: var(--muted); margin: 14px 0 26px; font-size: 18px; }

.rail { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 4; }
.rail i { display: block; width: 3px; height: 26px; border-radius: 3px; background: rgba(13, 31, 86, .12); overflow: hidden; position: relative; }
.rail i b { position: absolute; inset: 0; background: var(--purple); transform: scaleY(0); transform-origin: top; }

/* Tarjetas de app sobre el fondo oscuro: son recreaciones de las pantallas reales. */
.app-card { background: #fff; color: var(--navy); border-radius: 18px; box-shadow: 0 30px 70px -28px rgba(34, 22, 110, .35), 0 0 0 1px rgba(13, 31, 86, .06); overflow: hidden; }

/* Barra de dictado (DictationBar.vue) */
.db { padding: 14px; }
.db-row { display: flex; gap: 10px; }
.db-field { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--select); font: 500 15px/1 var(--font); }
.db-field svg { color: var(--select); flex: none; }
.db-text { white-space: nowrap; overflow: hidden; }
.db-text:empty::before { content: attr(data-ph); color: #9AA1B7; }
.caret { width: 2px; height: 20px; background: var(--select); animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.mic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--lav); color: var(--select); position: relative; flex: none; }
.mic::after { content: ''; position: absolute; inset: 0; border-radius: 12px; box-shadow: 0 0 0 0 rgba(115, 103, 240, .5); animation: micp 1.6s infinite; }
@keyframes micp { to { box-shadow: 0 0 0 12px rgba(115, 103, 240, 0); } }
.odo-btn { height: 46px; padding: 0 16px; border-radius: 12px; border: 0; font: 600 14px/1 var(--font); display: inline-flex; align-items: center; gap: 8px; }
.odo-btn-primary { background: var(--select); color: #fff; }
.odo-btn-ghost { background: #fff; color: var(--select); box-shadow: inset 0 0 0 1.5px rgba(115, 103, 240, .35); }
.db-below { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; min-height: 28px; font-size: 12.5px; }
.db-lead { color: var(--muted); font-weight: 500; margin-right: 2px; }
.db-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--lav); font-weight: 600; color: var(--navy); }
.db-k { font-weight: 500; color: var(--muted); }

/* Ficha de la pieza (ToothSheet.vue) */
.ts-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ts-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--select); color: #fff; font: 800 18px/1 var(--font-h); }
.ts-title { display: block; font: 700 16px/1.2 var(--font-h); }
.ts-summary { display: block; font-size: 12.5px; color: var(--muted); }
.ts-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.ts-eyebrow { display: block; font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ts-types { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-type { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; font: 600 12.5px/1 var(--font); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ts-type.is-on { box-shadow: inset 0 0 0 1.5px var(--select); background: rgba(115, 103, 240, .08); color: var(--select); }
.ts-type svg { width: 16px; height: 16px; }
.ts-faces { display: flex; align-items: center; gap: 14px; }
.ts-face-codes { display: flex; gap: 6px; }
.ts-face-codes b { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 700 13px/1 var(--font); box-shadow: inset 0 0 0 1px var(--line); }
.ts-face-codes b.is-on { background: var(--select); color: #fff; box-shadow: none; }
.ts-cie { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--sky); font-size: 13px; }
.ts-cie b { font-weight: 700; color: var(--blue-ink); }
.ts-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--gray-1); }
.ts-seg span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font: 600 12.5px/1 var(--font); color: var(--muted); }
.ts-seg span.is-on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(13, 31, 86, .12); }
.ts-key { width: 9px; height: 9px; border-radius: 3px; }
.ts-actions { display: flex; gap: 8px; }
.ts-actions .odo-btn { flex: 1; justify-content: center; height: 42px; }

/* Plan de tratamiento (TreatmentPlanBoard.vue) */
.tpb { padding: 16px 18px 18px; }
.tpb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tpb-title { font: 700 15px/1 var(--font-h); }
.tpb-count { font-size: 12px; color: var(--muted); }
.tpb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tpb-table th { text-align: left; font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 6px 8px; }
.tpb-table td { padding: 10px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.tpb-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font: 600 11.5px/1.2 var(--font); white-space: nowrap; }
.chip-pending { background: rgba(234, 84, 85, .10); color: var(--red-ink); }
.chip-done { background: rgba(37, 99, 235, .10); color: var(--blue-ink); }
.chip-sel { background: rgba(115, 103, 240, .10); color: var(--select); }
.chip-ok { background: rgba(14, 219, 184, .14); color: #0A8F7A; }
.tooth-pill { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--lav); font: 700 12px/1 var(--font); color: var(--navy); }
.tpb-total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--gray-2); font: 700 15px/1 var(--font-h); }

/* Evolución firmada */
.ev { padding: 16px 18px 18px; display: grid; gap: 14px; }
.ev-top { display: flex; align-items: center; gap: 14px; }
.ev-ring { width: 64px; height: 64px; flex: none; }
.ev-ring circle { fill: none; stroke-width: 7; }
.ev-steps { display: flex; gap: 6px; }
.ev-steps span { font: 700 11.5px/1 var(--font); padding: 6px 8px; border-radius: 7px; background: var(--gray-1); color: var(--muted); }
.ev-steps span.is-on { background: var(--blue); color: #fff; }
.ev-note { font-size: 13px; line-height: 1.55; color: var(--slate); background: var(--lav); padding: 12px 14px; border-radius: 12px; min-height: 84px; }
.ev-note .ai { font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--select); display: block; margin-bottom: 6px; }
.ev-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sig { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 10px 8px; }
.sig svg { width: 100%; height: 44px; }
.sig path { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sig small { display: block; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; }
.ev-lock { display: flex; align-items: center; gap: 8px; font: 600 12.5px/1.2 var(--font); color: var(--blue-ink); background: rgba(37, 99, 235, .08); padding: 10px 12px; border-radius: 10px; }

/* ---------- Secciones claras ---------- */
section.block { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.block-lav { background: var(--lav); }
.block-dark { background: var(--night); color: #fff; }
.block-dark .lead { color: rgba(255, 255, 255, .7); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.reveal-line { overflow: hidden; display: block; }
.reveal-line > span { display: inline-block; }

/* Carta 2D (DentalChart.vue) */
.chart-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.chart-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 22px 22px 26px; min-width: 0; }
.chart-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.chart-top .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 700 14px/1 var(--font-h); flex: none; }
.who b { display: block; font: 700 15px/1.2 var(--font-h); }
.who small { color: var(--muted); font-size: 12.5px; }
.view-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--gray-1); font: 600 12.5px/1 var(--font); }
.view-switch span { padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.view-switch span.is-on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(13, 31, 86, .12); }
.arch-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; margin: 0 -6px; padding: 0 6px; }
.arch { display: grid; grid-template-columns: repeat(16, minmax(36px, 1fr)); min-width: 640px; position: relative; }
.arch + .arch { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--gray-2); }
.arch::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--gray-2); }
.tcol { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; position: relative; border-radius: 12px; transition: background .3s; }
.tcol .n { font: 700 11px/1 var(--font); color: var(--muted); }
.tcol svg.tooth { width: 100%; max-width: 40px; height: auto; overflow: visible; }
.tcol svg.surf { width: 26px; height: 26px; }
.tcol.is-sel .n { color: var(--select); }
.tcol .sel { position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1.6px var(--select); background: rgba(115, 103, 240, .06); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tcol.is-sel .sel { opacity: 1; }
.glyph-layer > * { transform-box: fill-box; transform-origin: center; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

.side-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
.side-card h4 { font: 700 14px/1 var(--font-h); display: flex; justify-content: space-between; }
.side-card h4 small { font: 500 12px/1 var(--font); color: var(--muted); }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; font: 600 10.5px/1.15 var(--font); text-align: center; color: var(--slate); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s, color .3s; }
.cat svg { width: 26px; height: 26px; }
.cat.is-on { background: rgba(115, 103, 240, .08); box-shadow: inset 0 0 0 1.5px var(--select); color: var(--select); }
.flist { display: grid; gap: 6px; max-height: 236px; overflow: hidden; }
.frow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--gray-1); }
.frow b { font-weight: 700; }
.frow .chip { margin-left: auto; }

/* ---------- Un día en la clínica (scroll horizontal) ---------- */
.day { overflow: hidden; }
.day-track { display: flex; gap: 28px; padding: 0 max(16px, calc((100vw - 1200px) / 2)); width: max-content; }
.panel { width: min(1040px, 86vw); flex: none; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center; background: #fff; border-radius: 28px; padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); min-height: 520px; }
.panel .pnum { font: 800 64px/1 var(--font-h); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; margin: 14px 0 12px; }
.panel p { color: var(--muted); }
.panel ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--slate); }
.panel li { display: flex; gap: 8px; }
.panel li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--turq) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px; }
.screen { background: var(--gray-1); border-radius: 18px; padding: 14px; min-height: 420px; position: relative; overflow: hidden; min-width: 0; }
.scr-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.scr-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-2); }
.scr-bar span { margin-left: 8px; font: 600 12px/1 var(--font); color: var(--muted); }
.scr-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(13, 31, 86, .06); }

/* Agenda */
.ag { display: grid; grid-template-columns: 40px repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; }
.ag-h { font: 700 12px/1.2 var(--font-h); padding: 6px 4px 10px; display: flex; align-items: center; gap: 6px; }
.ag-h i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 10px/1 var(--font); font-style: normal; flex: none; }
.ag-hours { display: grid; grid-auto-rows: 52px; font: 500 10.5px/1 var(--font); color: var(--muted); padding-top: 30px; }
.ag-col { position: relative; height: 362px; border-radius: 12px; background: repeating-linear-gradient(#fff 0 51px, var(--gray-1) 51px 52px); }
.ag-cardx { position: absolute; left: 5px; right: 5px; border-radius: 10px; padding: 7px 8px; font-size: 11px; line-height: 1.25; border-left: 3px solid; overflow: hidden; }
.ag-cardx b { display: block; font-size: 11.5px; }
.st-pend { background: #FFF5E6; border-color: #F5A524; }
.st-conf { background: rgba(14, 219, 184, .13); border-color: var(--turq); }
.st-sala { background: rgba(122, 101, 232, .12); border-color: var(--purple); }
.st-aten { background: rgba(37, 99, 235, .10); border-color: var(--blue); }
.st-fin { background: var(--gray-1); border-color: #9AA1B7; }
.wa { position: absolute; right: 14px; bottom: 14px; width: 250px; background: #E7FFDB; border-radius: 14px 14px 4px 14px; padding: 10px 12px; font-size: 12px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .35); }
.wa b { color: #128C7E; display: block; font-size: 11px; margin-bottom: 2px; }
.wa .reply { margin-top: 8px; background: #fff; border-radius: 10px 10px 10px 2px; padding: 8px 10px; }
.wa-btns { display: flex; gap: 6px; margin-top: 8px; }
.wa-btns span { flex: 1; text-align: center; padding: 6px; border-radius: 8px; background: #fff; color: #128C7E; font-weight: 600; }

/* Ficha */
.fx-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.fx-head b { font: 700 15px/1.2 var(--font-h); display: block; }
.fx-head small { color: var(--muted); font-size: 12px; }
.fx-alert { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: rgba(234, 84, 85, .08); border-top: 1px solid rgba(234, 84, 85, .2); border-bottom: 1px solid rgba(234, 84, 85, .2); font-size: 12px; }
.fx-alert .chip { background: #fff; }
.fx-tabs { display: flex; gap: 2px; padding: 0 10px; overflow: hidden; border-bottom: 1px solid var(--line); }
.fx-tabs span { padding: 11px 9px; font: 600 12px/1 var(--font); color: var(--muted); white-space: nowrap; position: relative; }
.fx-tabs span.is-on { color: var(--select); }
.fx-tabs span.is-on::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; background: var(--select); border-radius: 2px; }
.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.fx-kpi { background: var(--gray-1); border-radius: 12px; padding: 12px; }
.fx-kpi small { color: var(--muted); font-size: 11.5px; }
.fx-kpi b { display: block; font: 800 20px/1.2 var(--font-h); margin-top: 4px; }
.fx-list { padding: 0 12px 12px; display: grid; gap: 6px; }
.fx-list div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; padding: 9px 12px; border-radius: 10px; background: var(--gray-1); }

/* Presupuesto */
.ck { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--gray-2); display: inline-grid; place-items: center; vertical-align: middle; transition: background .3s, box-shadow .3s; }
.ck.is-on { background: var(--select); box-shadow: none; }
.ck.is-on::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.approve-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--lav); font-size: 13px; }

/* Cuenta */
.acct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.bar-pay { height: 10px; border-radius: 99px; background: var(--gray-1); overflow: hidden; margin: 8px 0 4px; }
.bar-pay i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; }
.receipt { position: relative; background: #fff; border-radius: 14px; padding: 14px; font-size: 12px; box-shadow: 0 1px 2px rgba(13, 31, 86, .06); }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 6px, #fff 6.5px) 0 0/12px 8px repeat-x; }
.receipt .row { display: flex; justify-content: space-between; padding: 4px 0; }
.receipt .tot { border-top: 1px dashed var(--gray-2); margin-top: 6px; padding-top: 8px; font: 700 14px/1 var(--font-h); }
.quotas { display: grid; gap: 6px; }
.quota { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; background: #fff; font-size: 12.5px; }

/* Por reagendar */
.rq { display: grid; gap: 8px; }
.rq-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
.rq-row b { display: block; font-size: 13px; }
.rq-row small { color: var(--muted); }
.rq-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; background: #25D366; color: #fff; font: 600 11.5px/1 var(--font); white-space: nowrap; }
.rq-btn.sent { background: rgba(14, 219, 184, .16); color: #0A8F7A; }

@media (max-width: 900px) {
    .day-track { flex-direction: column; width: auto; gap: 18px; }
    .panel { width: 100%; grid-template-columns: 1fr; gap: 22px; min-height: 0; }
    .chart-shell { grid-template-columns: 1fr; }
}

/* ---------- IA ---------- */
.ai-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.ai-card { background: rgba(255, 255, 255, .04); border-radius: 26px; padding: 26px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); display: grid; gap: 18px; align-content: start; min-width: 0; position: relative; overflow: hidden; }
.ai-card h3 { font-size: 22px; font-weight: 700; }
.ai-card p { color: rgba(255, 255, 255, .66); font-size: 15px; }
.ai-tag { justify-self: start; font: 700 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); padding: 6px 10px; border-radius: 999px; background: rgba(11, 223, 209, .1); }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 900px) { .ai-grid > * { grid-column: span 12 !important; } }
.xray { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 8; }
.xray svg { width: 100%; height: 100%; }
.scan { position: absolute; top: 0; bottom: 0; width: 18%; left: -20%; background: linear-gradient(90deg, transparent, rgba(11, 223, 209, .28), transparent); mix-blend-mode: screen; }
.scan::after { content: ''; position: absolute; right: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); }
.sugg { display: grid; gap: 8px; }
.sugg-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.sugg-row .pct { margin-left: auto; font: 700 12px/1 var(--font); color: var(--aqua); }
.sugg-row .acc { font: 600 11.5px/1 var(--font); padding: 6px 9px; border-radius: 8px; background: var(--select); color: #fff; }
.smile { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #1a0f12; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.smile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.smile .after { clip-path: inset(0 0 0 50%); }
.smile .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); }
.smile .handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font: 700 15px/1 var(--font); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.smile .tagx { position: absolute; top: 12px; font: 700 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; background: rgba(0, 0, 0, .45); color: #fff; }
.smile .wm { position: absolute; right: 12px; bottom: 10px; font: 600 10.5px/1 var(--font); color: rgba(255, 255, 255, .7); }
.wave { display: flex; align-items: center; gap: 3px; height: 54px; }
.wave i { flex: 1; border-radius: 3px; background: var(--grad-aqua); height: 20%; }
.dict-out { font-size: 14px; color: rgba(255, 255, 255, .85); min-height: 44px; }
.dict-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dict-chips span { padding: 6px 10px; border-radius: 8px; font: 600 12px/1 var(--font); background: rgba(115, 103, 240, .22); color: #D9D4FF; }

/* ---------- Periodontograma ---------- */
.perio { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 22px; }
.perio-scroll { overflow-x: auto; }
.perio svg { min-width: 760px; width: 100%; height: auto; }
.perio-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.stat { background: var(--lav); border-radius: 16px; padding: 16px; }
.stat small { color: var(--muted); font-size: 12.5px; }
.stat b { display: block; font: 800 30px/1.1 var(--font-h); margin-top: 4px; }
@media (max-width: 700px) { .perio-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Operación (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.bx { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; min-width: 0; overflow: hidden; }
.bx h3 { font-size: 19px; font-weight: 700; }
.bx p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .bento > * { grid-column: span 12 !important; } }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--gray-1); font-size: 12.5px; }
.dotx { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.meter { height: 6px; width: 70px; border-radius: 6px; background: var(--gray-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 6px; }
.env svg { width: 100%; height: 140px; }
.hon-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: 12.5px; }
.hon-bar { height: 10px; border-radius: 10px; background: var(--gray-1); overflow: hidden; }
.hon-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 10px; }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.flow span { padding: 8px 10px; border-radius: 10px; background: var(--gray-1); font-weight: 600; }
.flow span.ok { background: rgba(14, 219, 184, .16); color: #0A8F7A; }
.flow em { color: var(--muted); font-style: normal; }
.gauge svg { width: 100%; max-width: 220px; margin: 0 auto; }
.phone { width: 210px; margin: 0 auto; border-radius: 30px; background: var(--navy); padding: 10px; box-shadow: 0 20px 40px -18px rgba(13, 31, 86, .6); }
.phone-in { background: var(--lav); border-radius: 22px; padding: 14px 10px; display: grid; gap: 8px; min-height: 300px; align-content: start; }
.phone-in h5 { margin: 0 0 2px; font: 700 13px/1 var(--font-h); }
.ph-card { background: #fff; border-radius: 12px; padding: 9px 10px; font-size: 11px; }
.ph-card b { display: block; font-size: 12px; }
.ph-x { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-x i { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #1b1f2c, #3a4256); }
.bday { background: var(--lav); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--slate); min-height: 70px; }

/* ---------- Normativa ---------- */
.norm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.norm-card { border-radius: 22px; padding: 22px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); display: grid; gap: 10px; align-content: start; }
.norm-card b { font: 700 18px/1.2 var(--font-h); }
.norm-card p { color: rgba(255, 255, 255, .66); font-size: 14px; }
.norm-card .chip { justify-self: start; }
.chip-early { background: rgba(245, 165, 36, .16); color: #F5B54A; }
.chip-live { background: rgba(14, 219, 184, .16); color: var(--turq); }
@media (max-width: 900px) { .norm { grid-template-columns: 1fr; } }

/* ---------- Familia ---------- */
.family { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fam { border-radius: 24px; padding: 26px; background: #fff; box-shadow: var(--shadow); display: grid; gap: 10px; position: relative; overflow: hidden; }
.fam.is-dent { background: var(--navy); color: #fff; }
.fam.is-dent p { color: rgba(255, 255, 255, .7); }
.fam b { font: 800 22px/1 var(--font-h); }
.fam p { color: var(--muted); font-size: 14.5px; }
.fam small { font: 600 12px/1 var(--font); color: var(--purple); }
.fam.is-dent small { color: var(--aqua); }
@media (max-width: 900px) { .family { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { background: radial-gradient(90% 120% at 80% 0%, #2a1f86 0%, var(--navy) 45%, var(--night) 100%); color: #fff; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: center; }
.form { background: #fff; color: var(--navy); border-radius: 26px; padding: 26px; display: grid; gap: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.form label { display: grid; gap: 6px; font: 600 12.5px/1 var(--font); color: var(--slate); }
.form input, .form select { height: 46px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--gray-2); padding: 0 14px; background: #fff; font-size: 15px; transition: box-shadow .2s; }
.form input:focus, .form select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--select); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { justify-content: center; margin-top: 6px; }
.form .note { font-size: 12px; color: var(--muted); }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form.is-sent .form-ok { display: block; }
.form.is-sent > :not(.form-ok) { display: none; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

footer { background: var(--night); color: rgba(255, 255, 255, .6); padding: 40px 0; font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer .brand { color: #fff; }

/* ---------- Móvil: la historia 3D ---------- */
@media (max-width: 900px) {
    .hero-copy { top: auto; bottom: 64px; transform: none; }
    .hero-copy h1 { font-size: 40px; }
    .beat { top: auto; bottom: 16px; transform: none; }
    .beat h2 { font-size: 26px; margin: 8px 0 6px; }
    .beat p.lead { font-size: 14.5px; }
    .beat .ui { margin-top: 12px; }
    .beat .hide-m { display: none; }
    .rail { display: none; }
    .hero-badges { display: none; }
    .scroll-cue { display: none; }
    .fdi { font-size: 9px; padding: 3px 4px; }
}

/* Sin WebGL: se queda la carta 2D como protagonista del hero. */
.no-webgl .stage { display: grid; place-items: center; padding: 0 16px; }
.no-webgl .stage .fallback { width: min(560px, 100%); opacity: .9; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Navegación por pasos: flechas en pantalla y del teclado. */
.stepper { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: inset 0 0 0 1px var(--gray-2), 0 10px 26px -12px rgba(34, 22, 110, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .3s var(--ease), opacity .3s; }
.stepper button:hover { transform: translateY(-2px); }
.stepper button:focus-visible, .scroll-cue:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.stepper button[disabled] { opacity: .35; cursor: default; transform: none; }
.stepper #stepDown { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(88, 76, 219, .7); }
@media (max-width: 900px) { .stepper button { width: 40px; height: 40px; } }
