/*
  Brisa Fisioterapia · estilo "Mercury" (alpine banking at blue hour).
  Lienzo ónix #171721, tarjetas grafito #1e1e2a un paso más claras y SIN sombras,
  texto marfil #ededf3, gris ceniza para lo secundario y un único cobalto #5266eb
  reservado a la acción principal. Titulares anchos (Archivo expandido) a peso 480,
  nunca negrita; texto en Inter 400. Controles en píldora; tarjetas a 12 px.
  Movimiento: tranquilo y preciso (ease-out largo), nada rebota.
*/
:root {
  --bg: #171721;
  --card: #1e1e2a;
  --card-2: #232331;
  --btn: #272735;
  --slate: #9a9aa8;
  --mist: #e2e3ed;
  --ash: #c3c3cc;
  --ivory: #ededf3;
  --cobalt: #5266eb;
  --cobalt-2: #4355d8;
  --line: rgba(226, 227, 237, 0.1);
  --line-2: rgba(226, 227, 237, 0.18);
  --r: 12px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ivory); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, iframe, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 480; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: rgba(82, 102, 235, 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

/* Tipografía */
.display, .h2, .logo, .care__name, .care__price, .stat strong, .pain__num, .flow__step h3, .visit__steps h3, .scr__big strong {
  font-family: var(--display); font-stretch: 112%; font-weight: 480;
}
.display { font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.06; letter-spacing: 0.002em; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 3.05rem); line-height: 1.12; letter-spacing: 0.01em; }
.soft, .w--soft { color: var(--slate); }
.hero .w--soft { color: var(--ash); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 480; letter-spacing: 0.01em; color: var(--ash); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ivory); }
.lead { max-width: 42ch; font-size: 1.125rem; line-height: 1.5; color: var(--ash); }

.head { margin-bottom: 56px; }
.head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; }

/* Botones: píldoras. Cobalto = la acción principal; marfil en contorno = el resto */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 32px; font: inherit; font-size: 15px; font-weight: 480; text-decoration: none; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease); }
.btn:active, .capture__go:active, .chip:active { transform: scale(0.97); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--ghost { border-color: var(--ivory); color: var(--ivory); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--cobalt-2); }
  .btn--ghost:hover { background: var(--ivory); color: var(--bg); }
}
.ghost { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ivory); font-size: 15px; font-weight: 480; text-decoration: none; }
.ghost i { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .ghost:hover i { transform: translate(2px, -2px); } }

.tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 40px; background: rgba(23, 23, 33, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; color: var(--ivory); }
.tag__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #7ee2b8; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .tag__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s var(--ease) infinite; }
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3); opacity: 0; } }

/* Aviso de demo */
.demo-bar { position: relative; z-index: 50; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding: 10px 16px; background: #0f0f16; color: var(--ash); font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }
.demo-bar a { display: inline-block; padding-block: 14px; margin-block: -14px; color: var(--ivory); font-weight: 480; }
.is-embed .demo-bar { display: none; }

/* ---------- Navegación: transparente sobre la foto; cristal esmerilado al bajar ---------- */
.nav { position: sticky; top: 0; z-index: 40; margin-bottom: -72px; border-bottom: 1px solid transparent; transition: background-color 400ms var(--ease), border-color 400ms var(--ease); }
.nav.is-solid { background: rgba(23, 23, 33, 0.72); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 22px; letter-spacing: 0.01em; text-decoration: none; }
.logo__mark { width: 22px; height: 22px; fill: none; stroke: var(--ivory); stroke-width: 2; stroke-linecap: round; }
.nav nav { margin-inline: auto; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 40px; color: var(--ash); font-size: 15px; text-decoration: none; transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ivory); background: rgba(237, 237, 243, 0.07); } }
.nav__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; color: var(--ash); font-size: 15px; text-decoration: none; }
@media (max-width: 1000px) { .nav__tel span { display: none; } }
@media (max-width: 820px) { .nav nav { display: none; } .nav__tel { margin-left: auto; } }

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: max(100svh, 680px); padding-block: 120px 96px; overflow: clip; text-align: center; }
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(0.55) brightness(0.78) contrast(1.05); }
.hero__veil { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 55% at 50% 48%, rgba(23, 23, 33, 0.55), rgba(23, 23, 33, 0.2) 70%),
  linear-gradient(180deg, rgba(23, 23, 33, 0.65) 0%, rgba(30, 34, 70, 0.35) 40%, rgba(23, 23, 33, 0.7) 78%, #171721 100%); }
.hero__content { display: grid; justify-items: center; max-width: 860px; }
.hero__tag { margin-bottom: 28px; }
.hero__title { color: #fff; }
.w { display: inline-block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; vertical-align: top; }
.w > span { display: inline-block; }
.hero__sub { max-width: 34rem; margin-top: 24px; font-size: 1.125rem; font-weight: 400; line-height: 1.5; color: var(--ivory); opacity: 0.86; }

/* Formulario en píldora: campo con borde marfil a la izquierda + botón cobalto pegado a la derecha */
.capture { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: min(640px, 100%); margin-top: 40px; }
.capture__field { position: relative; display: flex; align-items: center; min-height: 56px; border: 1px solid rgba(237, 237, 243, 0.85); border-right: 0; border-radius: 32px 0 0 32px; background: rgba(23, 23, 33, 0.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.capture__field > i { position: absolute; left: 20px; color: var(--ash); font-size: 18px; pointer-events: none; }
.capture__field::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid var(--ash); border-bottom: 1.6px solid var(--ash); transform: rotate(45deg); pointer-events: none; }
.capture__field select { width: 100%; height: 100%; min-height: 54px; padding: 0 44px 0 48px; border: 0; background: transparent; color: var(--ivory); font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none; cursor: pointer; border-radius: 32px 0 0 32px; }
.capture__field select:focus-visible { outline: none; }
.capture__field:focus-within { border-color: #fff; box-shadow: 0 0 0 3px rgba(237, 237, 243, 0.15); }
.capture__field option { background: var(--card); color: var(--ivory); }
.capture__go { min-height: 56px; padding: 0 24px; border: 0; border-radius: 0 32px 32px 0; background: var(--cobalt); color: #fff; font: inherit; font-size: 16px; white-space: nowrap; cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .capture__go:hover { background: var(--cobalt-2); } }
.capture__slots { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.capture__live { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 14px; color: var(--ash); }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 40px; background: rgba(23, 23, 33, 0.4); color: var(--ivory); font: inherit; font-size: 14px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease); }
.chip[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { border-color: var(--ivory); } }
.capture__status { grid-column: 1 / -1; min-height: 1.5em; margin-top: 14px; font-size: 14px; color: var(--ash); }
.capture__status:not(:empty) { padding: 12px 16px; border-radius: var(--r); background: rgba(30, 30, 42, 0.85); border: 1px solid var(--line); }
@media (max-width: 520px) {
  .capture { grid-template-columns: 1fr; gap: 10px; }
  .capture__field { border-radius: 32px; border-right: 1px solid rgba(237, 237, 243, 0.85); }
  .capture__field select { border-radius: 32px; }
  .capture__go { border-radius: 32px; }
}
.hero__scroll { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; display: grid; place-items: start center; width: 24px; height: 40px; border: 1px solid var(--line-2); border-radius: 20px; }
.hero__scroll span { width: 3px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--ivory); }
@media (prefers-reduced-motion: no-preference) { .hero__scroll span { animation: wheel 2s var(--ease) infinite; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 760px) { .hero__scroll { display: none; } }

/* Entrada de la portada (CSS: funciona aunque no cargue GSAP) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .w > span { animation: rise 1100ms var(--ease) both; animation-delay: calc(200ms + var(--i, 0) * 70ms); }
  .js .hero__tag, .js .hero__sub, .js .capture { animation: fade-up 1000ms var(--ease) both; }
  .js .hero__tag { animation-delay: 80ms; }
  .js .hero__sub { animation-delay: 650ms; }
  .js .capture { animation-delay: 800ms; }
  .js .hero__media img { animation: settle 2400ms var(--ease) both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes settle { from { transform: scale(1.12); filter: saturate(0.3) brightness(0.4); } }

/* Secciones */
section { position: relative; }
.flow, .care, .pain, .visit, .voices, .where { padding-block: clamp(80px, 11vw, 128px); }

/* ---------- Cómo trabajamos: pasos + "app" que cambia de pantalla ---------- */
.flow__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.flow__steps { display: grid; }
.flow__step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; min-height: 52svh; align-content: center; padding-block: 28px; border-top: 1px solid var(--line); opacity: 0.32; transition: opacity 500ms var(--ease); }
.flow__step:last-child { min-height: 60svh; }
.flow__step.is-on { opacity: 1; }
.flow__n { grid-row: 1 / 3; padding-top: 6px; font-size: 13px; font-weight: 480; color: var(--ash); font-variant-numeric: tabular-nums; }
.flow__step h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: 0.01em; }
.flow__step p { margin-top: 12px; max-width: 34ch; color: var(--ash); font-size: 1.0625rem; }
.flow__stage { position: sticky; top: calc(50svh - 230px); perspective: 1400px; }
.app { position: relative; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transform-origin: 50% 100%; will-change: transform; }
.app::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(50% 60% at 60% 40%, rgba(82, 102, 235, 0.16), transparent 70%); pointer-events: none; }
.app__bar { position: relative; display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ash); }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--btn); }
.app__title { margin-inline: auto; }
.app__tabs { position: relative; display: flex; gap: 4px; padding: 12px 18px 0; }
.app__tabs span { position: relative; padding: 8px 12px 12px; font-size: 13px; color: var(--slate); transition: color 300ms ease; }
.app__tabs span::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--ivory); transform: scaleX(0); transition: transform 400ms var(--ease); }
.app__tabs span.is-on { color: var(--ivory); }
.app__tabs span.is-on::after { transform: none; }
.app__screens { position: relative; display: grid; min-height: 380px; border-top: 1px solid var(--line); }
.app__screen { grid-area: 1 / 1; padding: 28px; opacity: 0; visibility: hidden; filter: blur(8px); transform: translateY(12px); transition: opacity 200ms ease, filter 200ms ease, transform 200ms ease, visibility 0s 200ms; }
.app__screen.is-on { opacity: 1; visibility: visible; filter: none; transform: none; transition: opacity 450ms ease 120ms, filter 450ms ease 120ms, transform 600ms var(--ease) 120ms; }

/* Pantallas de la app */
.scr { display: grid; gap: 16px; }
.scr__label { font-size: 13px; color: var(--ash); }
.scr__q { font-family: var(--display); font-stretch: 112%; font-size: 1.5rem; line-height: 1.2; }
.scr__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scr__chips span { padding: 8px 14px; border-radius: 40px; background: var(--btn); font-size: 14px; color: var(--ash); }
.scr__chips .is-on { background: var(--ivory); color: var(--bg); }
.scr__row { display: flex; justify-content: space-between; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ash); }
.scr__row strong { font-weight: 480; color: var(--ivory); }
.scr__bar { height: 6px; border-radius: 6px; background: var(--btn); overflow: hidden; }
.scr__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a97f5, var(--cobalt)); transform-origin: left; transform: scaleX(var(--v)); transition: transform 1100ms var(--ease) 300ms; }
.app__screen:not(.is-on) .scr__bar i { transform: scaleX(0); }
.scr__note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--card-2); font-size: 14px; color: var(--ash); }
.scr__note i { margin-top: 2px; color: var(--ivory); font-size: 16px; }
.scr__split { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: center; }
.scr__body { width: 100%; fill: none; stroke: var(--slate); stroke-width: 6; stroke-linecap: round; }
.scr__hot { fill: var(--cobalt); stroke: none; }
.scr__pulse { fill: rgba(82, 102, 235, 0.35); stroke: none; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .scr__pulse { animation: pulse 1.8s ease-out infinite; } }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.scr__meters { display: grid; gap: 14px; }
.scr__meters > div { display: grid; grid-template-columns: 1fr 52px; gap: 8px 12px; align-items: center; font-size: 14px; color: var(--ash); }
.scr__meters > div span { grid-column: 1 / -1; }
.scr__meters > div strong { font-weight: 480; color: var(--ivory); text-align: right; font-variant-numeric: tabular-nums; }
.scr__list { display: grid; }
.scr__list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.scr__list i { font-size: 20px; color: var(--slate); }
.scr__list .is-done i { color: #7ee2b8; }
.scr__list .is-done span { color: var(--ash); text-decoration: line-through; text-decoration-color: var(--slate); }
.scr__list em { font-style: normal; font-size: 13px; color: var(--ash); }
.scr__next { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--card-2); font-size: 14px; color: var(--ash); }
.scr__next strong { margin-left: auto; font-weight: 480; color: var(--ivory); }
.scr__big { font-size: 15px; color: var(--ash); }
.scr__big strong { display: block; font-size: 3rem; line-height: 1.05; color: var(--ivory); }
.scr__chart { width: 100%; height: 150px; overflow: visible; }
.scr__grid { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.scr__area { fill: rgba(82, 102, 235, 0.12); }
.scr__line { fill: none; stroke: var(--cobalt); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease) 250ms; }
.app__screen:not(.is-on) .scr__line { stroke-dashoffset: 1; }
.scr__dot { fill: var(--ivory); }
.scr__weeks { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); }

@media (max-width: 900px) {
  .flow__grid { grid-template-columns: 1fr; }
  .flow__stage { top: 76px; order: -1; z-index: 2; }
  .app__screens { min-height: 300px; }
  .app__screen { padding: 20px; }
  .flow__step { min-height: 46svh; }
  .scr__split { grid-template-columns: 80px 1fr; gap: 18px; }
}
@media (max-width: 900px) and (max-height: 820px) { .app__screens { min-height: 250px; } .scr__note, .scr__chips span:nth-child(4) { display: none; } .scr__chart { height: 90px; } }

/* ---------- Tratamientos: rejilla de tarjetas grafito ---------- */
.card { border-radius: var(--r); background: var(--card); }
.care__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.care__card { display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 32px; transition: background-color 300ms var(--ease), transform 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .care__card:hover { background: var(--card-2); transform: translateY(-4px); } }
.care__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ash); }
.care__time { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 40px; background: var(--btn); }
.care__name { margin-top: 18px; font-size: 1.5rem; line-height: 1.2; letter-spacing: 0.015em; }
.care__text { color: var(--ash); }
.care__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.care__price { font-size: 1.75rem; line-height: 1; }
@media (max-width: 960px) { .care__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .care__grid { grid-template-columns: 1fr; } .care__card { min-height: 0; padding: 24px; } }

/* ---------- ¿Cuánto te duele? ---------- */
.pain__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.pain__intro .lead { margin-top: 20px; }
.pain__warn { display: flex; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ash); }
.pain__warn i { margin-top: 2px; font-size: 18px; color: var(--ivory); }
.pain__tool { padding: 32px; }
.pain__read { display: flex; align-items: baseline; gap: 10px; }
.pain__num { font-size: clamp(4.5rem, 9vw, 7rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.pain__of { font-size: 1.25rem; color: var(--slate); }
.pain__word { margin-left: auto; padding: 6px 14px; border-radius: 40px; background: var(--btn); font-size: 14px; color: var(--ash); }
.pain__range { --p: 33%; width: 100%; height: 44px; margin: 20px 0 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.pain__range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #8a97f5, var(--cobalt) var(--p), var(--btn) var(--p)); }
.pain__range::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #8a97f5, var(--cobalt) var(--p), var(--btn) var(--p)); }
.pain__range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--ivory); border: 0; transition: scale 200ms var(--ease); }
.pain__range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--ivory); border: 0; }
.pain__range:active::-webkit-slider-thumb { scale: 1.15; }
.pain__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate); }
.pain__levels { display: grid; margin-top: 28px; }
.pain__level { grid-area: 1 / 1; display: grid; gap: 10px; justify-items: start; align-content: start; padding: 24px; border-radius: var(--r); background: var(--card-2); opacity: 0; visibility: hidden; transform: translateY(10px); filter: blur(6px); transition: opacity 200ms ease, transform 200ms ease, filter 200ms ease, visibility 0s 200ms; }
.pain__level.is-on { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity 400ms ease 100ms, transform 500ms var(--ease) 100ms, filter 400ms ease 100ms; }
.pain__range-lbl { font-size: 13px; color: var(--ash); }
.pain__level h3 { font-family: var(--display); font-stretch: 112%; font-size: 1.4rem; line-height: 1.2; }
.pain__level p:not(.pain__range-lbl) { color: var(--ash); }
.pain__level .btn { margin-top: 8px; }
@media (max-width: 860px) { .pain__grid { grid-template-columns: 1fr; } .pain__tool { padding: 24px; } }

/* ---------- Primera visita: texto + foto ---------- */
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.visit__steps { display: grid; gap: 4px; }
.visit__steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-block: 24px; border-top: 1px solid var(--line); }
.visit__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 14px; color: var(--ivory); }
.visit__steps h3 { font-size: 1.35rem; line-height: 1.2; }
.visit__steps p { margin-top: 6px; color: var(--ash); }
.visit__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--card); }
.visit__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: saturate(0.6) brightness(0.85); will-change: transform; }
@media (max-width: 860px) { .visit__grid { grid-template-columns: 1fr; } .visit__media { aspect-ratio: 4 / 3; } }

/* ---------- Cifras ---------- */
.stats { padding-block: 24px clamp(64px, 8vw, 96px); }
.stats__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: grid; gap: 8px; padding: 8px 24px; border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 14px; color: var(--ash); }
@media (max-width: 760px) { .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } .stat { padding-inline: 16px; } }

/* ---------- Opiniones: cinta continua ---------- */
.voices { overflow: clip; }
.voices__score { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ash); }
.voices__stars { display: flex; gap: 2px; color: var(--ivory); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; padding-inline: 12px; }
.voice { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; width: min(420px, 82vw); padding: 32px; }
.voice blockquote { font-family: var(--display); font-stretch: 106%; font-size: 1.3rem; line-height: 1.4; }
.voice__who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ash); line-height: 1.4; }
.voice__who strong { font-weight: 480; color: var(--ivory); }
.voice__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--btn); color: var(--ivory); font-weight: 480; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Dónde estamos ---------- */
.where__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: stretch; }
.where__card { display: flex; flex-direction: column; gap: 20px; padding: 32px; }
.where__card .eyebrow { margin-bottom: 0; }
.where__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.where__now { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; border-radius: 40px; background: var(--btn); font-size: 14px; color: var(--ash); }
.where__now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--slate); }
.where__now.is-open::before { background: #7ee2b8; }
.where__facts { display: grid; gap: 10px; }
.where__facts li { display: flex; gap: 12px; align-items: center; color: var(--ash); }
.where__facts i { font-size: 18px; color: var(--ivory); }
.where__facts a { color: var(--ivory); }
.where__hours { display: grid; padding-top: 8px; border-top: 1px solid var(--line); }
.where__hours div { display: flex; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.where__hours dt { color: var(--ash); }
.where__hours .is-today dt, .where__hours .is-today dd { color: var(--ivory); font-weight: 480; }
.where__card .btn { align-self: flex-start; margin-top: auto; }
.where__map { position: relative; min-height: 480px; overflow: hidden; border-radius: var(--r); background: var(--card); }
.where__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(200deg) saturate(0.45) brightness(0.88) contrast(0.92); }
@media (max-width: 860px) { .where__grid { grid-template-columns: 1fr; } .where__map { min-height: 340px; } .where__card { padding: 24px; } }

/* ---------- Cierre ---------- */
.closing { display: grid; place-items: center; min-height: 88svh; padding-block: 120px; overflow: clip; isolation: isolate; text-align: center; }
.closing__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) brightness(0.7); }
.closing__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #171721 0%, rgba(23, 23, 33, 0.45) 30%, rgba(30, 34, 70, 0.4) 60%, #171721 100%); }
.closing__content { display: grid; justify-items: center; max-width: 820px; }
.closing__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Pie ---------- */
.footer { padding-block: 56px 40px; border-top: 1px solid var(--line); }
html:not(.is-embed) .footer { padding-bottom: 112px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { display: inline-block; padding-block: 10px; color: var(--ash); font-size: 15px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { color: var(--ivory); } }
.footer__legal { max-width: 80ch; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 480; letter-spacing: 0.01em; line-height: 1.6; color: var(--slate); }

/* Demo de AtelierWeb: botón fijo para pedir una web así */
.demo-cta { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; max-width: calc(100vw - 40px); padding: 8px 20px; border-radius: 32px; background: rgba(30, 30, 42, 0.9); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ash); font-size: 13px; line-height: 1.3; text-decoration: none; transition: opacity 300ms ease, translate 300ms var(--ease); }
.demo-cta strong { color: var(--ivory); font-size: 15px; font-weight: 480; }
.demo-cta.is-tucked { opacity: 0; translate: 0 12px; pointer-events: none; }
.is-embed .demo-cta { display: none; }
@media (max-width: 480px) { .demo-cta { left: 8px; bottom: 8px; padding: 8px 14px; } }

/* Aparición al bajar: sube, se enfoca y aparece. Con "reducir movimiento" todo se ve quieto. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease), filter 900ms var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app__screen, .pain__level, .flow__step { transition: none; }
}

/* Móvil: la app queda arriba y cada paso se lee debajo, en la parte baja de la pantalla */
@media (max-width: 900px) {
  .flow__step { min-height: 78svh; align-content: end; padding-bottom: 12svh; }
  .flow__step:last-child { min-height: 78svh; }
  .app__screens { min-height: 260px; }
  .scr__note { display: none; }
  .scr { gap: 12px; }
}

/* Reserva de sitio para evitar saltos al cargar */
.capture { min-height: 56px; }
.capture__go { min-width: 12.5rem; }
.where__map { aspect-ratio: 16 / 10; min-height: 0; }
@media (max-width: 860px) { .where__map { min-height: 280px; } }
@media (min-width: 861px) { .where__map { aspect-ratio: auto; min-height: 480px; } }
/* El mapa solo se mueve tras pulsarlo (no atrapa el scroll) */
.where__map iframe { pointer-events: none; }
.where__map.is-active iframe { pointer-events: auto; }
.where__map:not(.is-active)::after { content: "Pulsa para mover el mapa"; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 6px 14px; border-radius: 32px; background: rgba(23, 23, 33, 0.8); color: var(--ivory); font-size: 13px; pointer-events: none; }
