/* Rehactiva — sitio web (v5)
   Layout: la figura del logo hecha persona dentro de un arco (como los vidrios del centro).
   Ritmo de color: barra de contacto (azul hondo) · celeste (hero) · blanco · celeste (equipos) ·
   blanco · azul hondo (proceso) · blanco · azul (médicos) · blanco · celeste (agenda y mapa) ·
   azul hondo (pie). Las franjas de color separan las partes, sin cajas.
   Tipografía: todos los títulos grandes en Mona Sans cursiva y ancha (la voz del logo);
   textos en Public Sans (la del sistema RehactivaPro).
   Dibujos: pictogramas en el estilo de las señales de las puertas del centro (cabeza redonda,
   trazo grueso, azul hondo con acentos naranjas, sobre su "lunita" celeste).
   Tema claro a propósito (paredes blancas, piedra, madera y luz de día del local). */

/* @fonts-start  Fuentes alojadas en el propio sitio (licencia SIL OFL): sin peticiones a Google */
@font-face { font-family: "Mona Sans"; font-style: normal; font-weight: 300 620; font-stretch: 100% 118%; font-display: swap; src: url("../fonts/mona-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Mona Sans"; font-style: italic; font-weight: 300 620; font-stretch: 100% 118%; font-display: swap; src: url("../fonts/mona-sans-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/public-sans-latin.woff2") format("woff2"); }
/* @fonts-end */

:root {
  color-scheme: light;
  --paper: #ffffff;        /* paredes */
  --stone: #eeeae4;        /* piso de piedra del centro */
  --sky: #e9f4f8;          /* celeste: el azul del logo muy diluido */
  --sky-2: #d3e8f0;
  --sky-line: rgba(15, 69, 97, .16);
  --ink: #17232b;          /* texto */
  --ink-2: #4b5a62;        /* texto secundario */
  --deep: #0f4561;         /* azul hondo: proceso y pie */
  --deep-ink: #c6dbe5;     /* texto secundario sobre azul hondo */
  --blue: #28a8cb;         /* azul del logo (gráfico) */
  --blue-ink: #13698a;     /* azul para enlaces y la franja de médicos */
  --chart: #1a7fa3;        /* línea del gráfico (contraste ≥ 3:1 sobre blanco) */
  --orange: #ec922e;       /* naranja del logo (gráficos y acentos) */
  --wa: #25d366;           /* verde de WhatsApp: todos los botones que abren WhatsApp */
  --wa-hover: #1fbe5b;
  --wa-ink: #08331c;       /* texto sobre el verde (contraste 7:1) */
  --line: rgba(23, 35, 43, .12);
  --line-strong: rgba(23, 35, 43, .28);
  --line-ui: #6f7f86;       /* borde de campos y botones de contorno (≥ 3:1 sobre blanco y celeste) */
  --error: #b42318;

  --display: "Mona Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --max: 76rem;
  --section: clamp(4rem, 2.8rem + 4.5vw, 7rem);
  --head-h: 4.25rem;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); scroll-padding-bottom: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--blue-ink); text-underline-offset: .2em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
figure, blockquote, dl, dd, ol, ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 4px; }
.topbar :focus-visible, .band--deep :focus-visible, .band--blue :focus-visible, .foot :focus-visible { outline-color: #fff; }
.band--deep .report :focus-visible { outline-color: var(--blue-ink); }
.topbar :focus-visible { outline-offset: -3px; }
/* Solo para lectores de pantalla */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 1rem; }

/* Sprite del logo (los <symbol> se usan con <use>; no va con display:none o se pierde el degradado) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: block; color: #16181a; aspect-ratio: 3624 / 1044; overflow: visible; }
.logo--light { color: #fff; --tag-op: .75; }
.rh-tag { fill-opacity: var(--tag-op, .6); }

/* ---------- Barra de contacto: teléfono y ubicación sin tener que bajar ---------- */
.topbar { background: var(--deep); color: #fff; font-size: .875rem; line-height: 1.25; }
.topbar__in { display: flex; align-items: center; gap: 0 1.25rem; min-height: 2.75rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; color: #fff; text-decoration: none; white-space: nowrap; }
.topbar__item svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar__item span { color: var(--deep-ink); }
.topbar__item:first-child span { color: #fff; font-weight: 600; letter-spacing: .01em; }
.topbar__item b { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: .22em; }
.topbar__item:hover b, .topbar__item:hover span { color: #fff; text-decoration-color: #fff; }
.topbar__long, .topbar__short, .topbar__note { display: none; }
.topbar__note { margin-left: auto; color: var(--deep-ink); }
@media (min-width: 480px) { .topbar__short { display: inline; } .topbar__short::after { content: " ·"; } }
@media (min-width: 960px) {
  .topbar__short { display: none; }
  .topbar__long { display: inline; }
  .topbar__long::after { content: " ·"; }
  .topbar__note { display: inline-flex; }
}

/* ---------- Tipografía: una sola voz para los títulos ---------- */
h1, h2 {
  font-family: var(--display);
  font-style: italic;
  letter-spacing: -0.022em;
}
h1 {
  font-stretch: 118%;
  font-weight: 360;
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.8rem);
  line-height: 1.02;
}
h2 {
  font-stretch: 116%;
  font-weight: 400;
  font-size: clamp(2.05rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.04;
}
.h2--sm { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); }
h3 {
  font-family: var(--display);
  font-stretch: 106%;
  font-weight: 580;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1.1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-ui); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--sky); }
.btn--sm { min-height: 2.75rem; padding: .55rem 1.05rem; font-size: .9375rem; }
.ico { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }

/* ---------- Cabecera ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--sky);
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.top.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
}
.top__in { display: flex; align-items: center; gap: 1rem; min-height: var(--head-h); }
.top__logo { display: flex; align-items: center; min-height: 2.75rem; flex: none; margin-right: auto; }
.top__logo .logo { width: 8.16rem; height: 2.35rem; }
@media (min-width: 960px) { .top__logo .logo { width: 9.55rem; height: 2.75rem; } }
.top__nav { display: none; gap: clamp(1.1rem, -1rem + 2.6vw, 1.75rem); }
.top__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.top__nav a:hover { color: var(--blue-ink); }
.top__menu {
  min-height: 2.75rem; padding: .5rem .9rem;
  border: 0; border-radius: 999px; background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-ui);
  font: 600 .9375rem/1 var(--body); color: var(--ink); cursor: pointer;
}
.menu { border-top: 1px solid var(--line); background: var(--paper); padding: .5rem var(--gutter) 1rem; display: grid; }
.menu a {
  padding: .85rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-style: italic; font-stretch: 112%; font-weight: 420; font-size: 1.3rem;
  color: var(--ink); text-decoration: none;
}
@media (max-width: 380px) { .top__cta { display: none; } }
@media (min-width: 1100px) {
  .top__nav { display: flex; }
  .top__menu, .menu { display: none !important; }
}

/* ---------- Hero (celeste) ---------- */
.hero {
  background: var(--sky);
  padding-block: clamp(1rem, .5rem + 2.5vw, 3.5rem) clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  overflow: clip;
}
.hero__in { display: grid; gap: clamp(1.25rem, 1rem + 2vw, 3rem); align-items: center; }
.hero__text { display: grid; gap: 1.4rem; justify-items: start; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.hero__phone { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--ink); text-decoration-thickness: 1.5px; }
.hero__where { font-size: .9375rem; color: var(--ink-2); }

.hero__art { position: relative; width: 100%; max-width: min(20rem, 82vw); margin-inline: auto; aspect-ratio: 1026 / 1044; }
@media (min-width: 600px) { .hero__art { max-width: 28rem; } }
.hero__arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__arc--orange { fill: var(--orange); z-index: 1; }
.hero__arc--blue { fill: var(--blue); z-index: 3; }
/* La figura del logo entre los dos arcos (mismo viewBox que los arcos, así calza exacta) */
.hero__logo { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; }

@media (min-width: 960px) {
  .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero__text { grid-column: 1; grid-row: 1; }
  .hero__art { grid-column: 2; grid-row: 1; max-width: 34rem; }
}

/* Datos rápidos bajo el hero */
.facts-strip {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem;
  margin-top: clamp(1.75rem, 1.2rem + 2vw, 3rem); padding-top: 1.35rem;
  border-top: 1px solid var(--sky-line);
  color: var(--ink-2); font-size: .9375rem; line-height: 1.35;
}
.facts-strip strong {
  display: block; margin-bottom: .15rem;
  font-family: var(--display); font-style: italic; font-stretch: 112%; font-weight: 480;
  font-size: 1.15rem; line-height: 1.15; color: var(--deep);
}
@media (min-width: 960px) {
  .facts-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .facts-strip li { padding-inline: 1.5rem; }
  .facts-strip li:first-child { padding-left: 0; }
  .facts-strip li + li { border-left: 1px solid var(--sky-line); }
}

/* Los arcos del logo se dibujan una vez al cargar */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
@keyframes rh-draw { from { --sweep: 0deg; } to { --sweep: 360deg; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__arc--orange {
    -webkit-mask-image: conic-gradient(from 248deg at 49% 48%, #000 var(--sweep), transparent 0);
    mask-image: conic-gradient(from 248deg at 49% 48%, #000 var(--sweep), transparent 0);
    animation: rh-draw 1.5s cubic-bezier(.55, .08, .2, 1) .2s both;
  }
  .hero__arc--blue {
    -webkit-mask-image: conic-gradient(from 308deg at 49% 48%, transparent calc(360deg - var(--sweep)), #000 0);
    mask-image: conic-gradient(from 308deg at 49% 48%, transparent calc(360deg - var(--sweep)), #000 0);
    animation: rh-draw 1.1s cubic-bezier(.55, .08, .2, 1) .75s both;
  }
}

/* ---------- Secciones y franjas ---------- */
.block { padding-block: var(--section); }
.block--flush { padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.band--deep { background: var(--deep); color: var(--deep-ink); }
.band--deep h2, .band--deep h3 { color: #fff; }
.band--blue { background: var(--blue-ink); color: #d6ebf3; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.band--blue h2 { color: #fff; }
.band--sky { background: var(--sky); }
/* Arcos del logo como gráfico de fondo en las franjas azules */
.band--art { position: relative; overflow: hidden; }
.band--art > .wrap { position: relative; z-index: 1; }
.band-arc { position: absolute; pointer-events: none; height: auto; }
.band-arc--orange { width: clamp(24rem, 14rem + 34vw, 50rem); right: clamp(-14rem, -4rem - 8vw, -3rem); top: clamp(-5rem, -1rem - 3vw, -1rem); fill: var(--blue); opacity: .2; }
.head { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.head p { font-size: 1.125rem; color: var(--ink-2); }
.head--light p { color: var(--deep-ink); }

/* Acordeón (tratamientos y preguntas frecuentes) */
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-stretch: 106%; font-weight: 500;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); line-height: 1.22;
}
.acc summary::-webkit-details-marker { display: none; }
.acc { transition: background-color .8s ease, box-shadow .8s ease; }
.acc.is-hl { background-color: var(--sky); box-shadow: 0 0 0 .75rem var(--sky); }
.acc summary:hover span { color: var(--blue-ink); }
.acc summary i { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.acc summary i::before, .acc summary i::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px;
  margin-top: -1px; background: var(--blue-ink); border-radius: 2px; transition: transform .2s ease;
}
.acc summary i::after { transform: rotate(90deg); }
.acc[open] summary i::after { transform: rotate(0deg); }
.acc p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); max-width: 38rem; }

/* ---------- Tratamientos ---------- */
.tx { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); }
.tx__intro { display: grid; gap: 1rem; align-content: start; }
.tx__intro > p { font-size: 1.125rem; color: var(--ink-2); max-width: 30rem; }

/* Mapa del cuerpo: figura en el estilo de los pictogramas de las puertas del centro,
   sobre un círculo celeste (la "lunita" de la cabina). */
.bodymap { display: grid; gap: 1.1rem; margin-top: clamp(1rem, .6rem + 1.5vw, 1.75rem); }
.bodymap__title { font-family: var(--display); font-style: italic; font-stretch: 112%; font-weight: 460; font-size: 1.35rem; line-height: 1.2; }
.bodymap__title span { margin-left: .3rem; font-family: var(--body); font-style: normal; font-weight: 400; font-size: .9375rem; color: var(--ink-2); }
.bodymap__stage { position: relative; width: min(100%, 13rem); aspect-ratio: 200 / 360; margin-inline: auto; }
.bodymap__fig { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fig__moon { fill: var(--sky); }
.fig__limb { fill: none; stroke: var(--deep); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.fig__leg { stroke-width: 19; }
.fig__torso { fill: var(--deep); stroke: var(--sky); stroke-width: 6; paint-order: stroke; }
.fig__head { fill: var(--deep); }
.spot {
  position: absolute; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.spot::before {
  content: ""; width: .95rem; height: .95rem; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(15, 69, 97, .3); transition: transform .2s ease;
}
.spot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 1rem; margin: -.5rem 0 0 -.5rem;
  border-radius: 50%; border: 2px solid var(--orange); opacity: 0; pointer-events: none;
}
.spot:hover::before, .spot:focus-visible::before { transform: scale(1.25); }
.spot[aria-pressed="true"]::before { transform: scale(1.4); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange); }
.spot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spot--cabeza { left: 50%; top: 10%; }
.spot--cuello { left: 50%; top: 17.8%; }
.spot--hombro { left: 67%; top: 22.5%; }
.spot--pecho { left: 42%; top: 30%; }
.spot--espalda { left: 50%; top: 44%; }
.spot--cadera { left: 63%; top: 51.4%; }
.spot--rodilla { left: 41%; top: 72.8%; }
.spot--tobillo { left: 60%; top: 91.6%; }
.bodymap__panel { display: grid; gap: .35rem; align-content: start; padding-left: 1rem; border-left: 2px solid var(--orange); min-height: 8.5rem; }
.bodymap__zone { font-family: var(--display); font-style: italic; font-stretch: 112%; font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.bodymap__text { color: var(--ink-2); }
.bodymap__links { font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 520px) {
  .bodymap { grid-template-columns: 12.5rem minmax(0, 1fr); align-items: center; }
  .bodymap__title { grid-column: 1 / -1; }
}
.tx__list { display: grid; align-content: start; }
.tx__home { margin-top: 1.5rem; font-weight: 600; }

.tech { display: grid; gap: .9rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem) 0 0; border-top: 2px solid var(--blue); }
.tech__list {
  font-family: var(--display); font-stretch: 104%; font-weight: 400;
  font-size: clamp(1.15rem, 1.05rem + .6vw, 1.45rem); line-height: 1.55; max-width: 46ch;
}
.tech__note { color: var(--ink-2); font-size: .9375rem; }

@media (min-width: 960px) {
  .tx { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Cuándo venir: seis pictogramas que abren su tratamiento en la lista */
.why {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.25rem; margin-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
.why a { display: grid; gap: .35rem; justify-items: start; align-content: start; color: inherit; text-decoration: none; }
.why .picto { width: min(100%, 7.25rem); margin-bottom: .55rem; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.why__t { font-family: var(--display); font-style: italic; font-stretch: 110%; font-weight: 520; font-size: 1.15rem; line-height: 1.2; color: var(--ink); }
.why__t::after { content: "\00a0→"; position: relative; left: 0; font-style: normal; color: var(--blue-ink); transition: left .2s ease; }
.why__d { font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.why a:hover .why__t { color: var(--blue-ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .why a:hover .picto { transform: translateY(-5px); }
  .why a:hover .why__t::after { left: 3px; }
}
@media (min-width: 640px) { .why { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem; } }

/* Debajo del mapa del cuerpo: la misma figura, del mismo tamaño, entrenando.
   Ocupa la misma columna de 12.5rem que el mapa del cuerpo y, en escritorio, se estira hasta
   el final de la lista de tratamientos para que no quede un hueco abajo a la izquierda. */
.lift {
  display: grid; gap: 1.1rem; align-items: center; align-content: center;
  margin-top: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); padding-top: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.lift .picto { width: min(100%, 13rem); margin-inline: auto; }
.lift figcaption { color: var(--ink-2); max-width: 22rem; padding-left: 1rem; border-left: 2px solid var(--orange); }
.lift b { display: block; margin-bottom: .3rem; font-family: var(--display); font-style: italic; font-stretch: 112%; font-weight: 500; font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.picto--body .p-bell { stroke-width: 8; }
.picto--body .p-lift--l { transform-origin: 64px 92px; }
.picto--body .p-lift--r { transform-origin: 136px 92px; }
@media (min-width: 520px) {
  .lift { grid-template-columns: 12.5rem minmax(0, 1fr); }
  .lift .picto { width: 100%; }
}
@media (min-width: 960px) {
  .tx__intro { display: flex; flex-direction: column; }
  .lift { flex: 1 1 auto; }
}

/* ---------- Tecnología: los equipos del centro (columnas con filete, sin tarjetas) ---------- */
.devices { list-style: none; display: grid; gap: 3rem; }
.device { display: grid; gap: .45rem; align-content: start; }
.device .picto { width: min(100%, 12.5rem); margin-bottom: .9rem; }
.device__cat { font-size: .9375rem; font-weight: 600; color: var(--blue-ink); }
.device h3 { font-style: italic; font-stretch: 114%; font-weight: 460; font-size: clamp(1.5rem, 1.25rem + .8vw, 1.85rem); line-height: 1.1; }
.device__model { font-weight: 600; color: var(--deep); }
/* Varios modelos: uno por línea; si un nombre se parte, la segunda línea va con sangría */
.device__model span { display: block; padding-left: 1rem; text-indent: -1rem; }
.device__model span + span { margin-top: .2rem; }
.device__desc { margin-top: .4rem; color: var(--ink-2); max-width: 30rem; }
.device__uses { list-style: none; display: grid; gap: .5rem; max-width: 30rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--sky-line); font-size: .9375rem; line-height: 1.45; }
.device__uses li { position: relative; padding-left: 1.15rem; }
.device__uses li::before { content: ""; position: absolute; left: 0; top: .5em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--orange); }
.devices__more { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid var(--sky-line); color: var(--ink-2); }
@media (min-width: 640px) {
  .device { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1.75rem; }
  .device .picto { grid-row: 1 / span 6; margin-bottom: 0; }
}
/* Cuatro bloques: 2 x 2 con filetes, sin tarjetas */
@media (min-width: 960px) {
  .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .device { grid-template-columns: 9.5rem minmax(0, 1fr); padding: clamp(2rem, 1.2rem + 1.4vw, 2.75rem) clamp(1.5rem, .5rem + 1.6vw, 2.5rem); }
  .device:nth-child(odd) { padding-left: 0; }
  .device:nth-child(even) { padding-right: 0; border-left: 1px solid var(--sky-line); }
  .device:nth-child(-n+2) { padding-top: 0; }
  .device:nth-child(n+3) { padding-bottom: 0; border-top: 1px solid var(--sky-line); }
}

/* ---------- El centro: tira de fotos verticales ---------- */
.centro__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.centro__head .head { margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.gal-nav { display: none; gap: .6rem; margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.gal-nav__btn {
  display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line-ui); transition: box-shadow .15s ease, opacity .15s ease;
}
.gal-nav__btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.gal-nav__btn:disabled { opacity: .35; cursor: default; }
.gal-nav__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) { .gal-nav { display: flex; } }

.gallery {
  list-style: none;
  display: flex; gap: clamp(.75rem, .5rem + 1vw, 1.25rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 0 var(--edge) .75rem;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.g { flex: 0 0 min(74vw, 20rem); scroll-snap-align: start; }
.g picture { display: block; overflow: hidden; background: var(--stone); }
.g img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .g:hover img { transform: scale(1.04); } }
.g figcaption { margin-top: .75rem; font-size: .9375rem; font-weight: 500; }
@media (min-width: 960px) { .g { flex-basis: 22rem; } }

/* ---------- Proceso (azul hondo) ---------- */
.proc { display: grid; gap: clamp(2.75rem, 2rem + 3vw, 4rem); }
.steps { list-style: none; display: grid; align-content: start; }
.step { position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2.1rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: calc(1.625rem - .5px); top: 3.25rem; bottom: 0; width: 1px; background: rgba(255, 255, 255, .28); }
.step:last-child::before { display: none; }
.disc {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: #fff; color: var(--deep);
  font-family: var(--display); font-style: italic; font-stretch: 110%; font-weight: 420; font-size: 1.45rem; line-height: 1;
}
.step h3 { margin: .55rem 0 .45rem; font-size: 1.25rem; }
.step p { color: var(--deep-ink); max-width: 30rem; }
@media (min-width: 1040px) {
  .proc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: clamp(3rem, 2rem + 4vw, 6rem); }
}

/* Informe de evolución (ejemplo) */
.report {
  display: grid; gap: 1.6rem;
  padding: clamp(1.25rem, 1rem + 1.6vw, 2.1rem);
  background: var(--paper); color: var(--ink); border-radius: 22px;
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .55);
}
.band--deep .report h3 { color: var(--ink); }
.report__head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.report__head > div { display: grid; gap: .25rem; min-width: 0; }
.report__mark { width: 2.6rem; height: 2.6rem; flex: none; }
.report__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.report__kpis div { display: grid; gap: .1rem; padding: .7rem .85rem; border-radius: 12px; background: var(--sky); }
.report__kpis dt { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.report__kpis dd { font-family: var(--display); font-style: italic; font-stretch: 112%; font-weight: 460; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); line-height: 1.1; color: var(--deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.report__kpis dd span { font-size: .8em; color: var(--ink-2); }
.report__parts { font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
.report__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.report__foot .report__table { flex-basis: 100%; }
.report__foot .report__table:not([open]) { flex-basis: auto; }
.report__head h3 { font-family: var(--display); font-style: italic; font-stretch: 114%; font-weight: 450; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); }
.report__sub { color: var(--ink-2); font-size: .875rem; }
.report__label { font-weight: 600; font-size: .9375rem; margin-bottom: .6rem; }

.chart { position: relative; }
.chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__svg--lg { display: none; }
@media (min-width: 520px) {
  .chart__svg--sm { display: none; }
  .chart__svg--lg { display: block; }
}
.c-band--hi { fill: rgba(236, 146, 46, .16); }
.c-band--mid { fill: rgba(236, 146, 46, .07); }
.c-band-label { font: 600 11.5px var(--body); fill: var(--ink-2); }
.c-grid { stroke: #e2e8eb; stroke-width: 1; }
.c-base { stroke: #aab7bd; stroke-width: 1; }
.c-tick { font: 500 12px var(--body); fill: var(--ink-2); }
.c-tick--axis { font-weight: 600; }
.c-line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-dot { fill: var(--chart); stroke: #fff; stroke-width: 2; }
.c-end { font: 700 13px var(--body); fill: var(--ink); }
.c-hover { outline: none; cursor: crosshair; }
.c-hit { fill: transparent; }
.c-cross { stroke: var(--ink); stroke-width: 1; opacity: 0; }
.c-halo { fill: none; stroke: var(--chart); stroke-width: 2; opacity: 0; }
.c-tip { opacity: 0; pointer-events: none; }
.c-tip rect { fill: var(--ink); }
.c-tip__v { font: 700 14px var(--body); fill: #fff; }
.c-tip__l { font: 500 11px var(--body); fill: #c9d3d8; }
.c-hover:hover .c-cross, .c-hover:focus-visible .c-cross { opacity: .35; }
.c-hover:hover .c-halo, .c-hover:focus-visible .c-halo,
.c-hover:hover .c-tip, .c-hover:focus-visible .c-tip { opacity: 1; }
.c-hover:focus-visible .c-hit { stroke: var(--blue-ink); stroke-width: 2; }

/* Medidor de movilidad: el tramo vacío es un paso más claro del mismo azul */
.rom__track { position: relative; height: .7rem; border-radius: 999px; background: #d9ebf2; }
.rom__fill { position: absolute; inset: 0 auto 0 0; width: calc(125 / 150 * 100%); border-radius: 999px; background: var(--chart); }
.rom__mark { position: absolute; top: -.35rem; bottom: -.35rem; width: 2px; border-radius: 2px; background: var(--ink); }
.rom__mark--start { left: calc(90 / 150 * 100%); background: #fff; box-shadow: 0 0 0 1px var(--chart); }
.rom__mark--goal { left: calc(135 / 150 * 100%); }
.rom__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: .8rem; font-size: .875rem; color: var(--ink-2); }
.rom__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.rom__legend b { color: var(--ink); font-weight: 700; }
.key { display: inline-block; flex: none; }
.key--start { width: 2px; height: .95rem; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px var(--chart); }
.key--now { width: 1rem; height: .45rem; border-radius: 999px; background: var(--chart); }
.key--goal { width: 2px; height: .95rem; border-radius: 2px; background: var(--ink); }

.report__table summary { cursor: pointer; padding-block: .7rem; font-size: .875rem; font-weight: 600; color: var(--blue-ink); width: max-content; }
.report__data { margin-top: .8rem; border-collapse: collapse; font-size: .875rem; }
.report__data caption { text-align: left; color: var(--ink-2); margin-bottom: .4rem; }
.report__data th, .report__data td { padding: .3rem 1.4rem .3rem 0; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }

/* Frase del centro */
.motto {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: clamp(1.25rem, 1rem + 2.5vw, 3.5rem);
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.motto__img { width: clamp(7rem, 5rem + 8vw, 13rem); height: auto; border-radius: 50%; }
.motto__text p {
  font-family: var(--display); font-style: italic; font-stretch: 118%; font-weight: 340;
  font-size: clamp(1.7rem, 1rem + 3.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em;
  color: #fff; max-width: 16ch;
}

/* ---------- Socios ---------- */
.partners { display: grid; gap: 2.75rem; }
.partner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 1.5rem; align-items: start; align-content: start; }
.partner__photo {
  display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; width: min(100%, 13rem);
  background: var(--sky);
}
.partner__photo picture, .partner__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.partner__photo span {
  font-family: var(--display); font-style: italic; font-stretch: 118%; font-weight: 300;
  font-size: clamp(2.1rem, 1.7rem + 1.6vw, 3.4rem); letter-spacing: -0.03em; color: var(--deep);
}
.partner h3 { font-style: italic; font-stretch: 114%; font-weight: 450; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.partner__role { margin: .45rem 0 .9rem; color: var(--blue-ink); font-weight: 600; font-size: .9375rem; }
.partner__stat { display: grid; gap: .2rem; max-width: 30rem; margin-bottom: .9rem; color: var(--ink-2); font-size: .9375rem; line-height: 1.4; }
.partner__stat b { font-family: var(--display); font-style: italic; font-stretch: 116%; font-weight: 400; font-size: clamp(2.1rem, 1.7rem + 1.5vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; color: var(--deep); }
.partner__bio { color: var(--ink-2); max-width: 34rem; }
.creds { list-style: none; display: grid; gap: .6rem; max-width: 34rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.creds li { display: grid; gap: .05rem; }
.creds b { font-weight: 600; font-size: .9375rem; line-height: 1.35; color: var(--ink); }
.creds span { font-size: .875rem; color: var(--ink-2); }
@media (min-width: 640px) and (max-width: 1039px) { .partner { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); } .partner__photo { width: 100%; } }
@media (min-width: 1040px) {
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .partner { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .partner__photo { width: min(100%, 16rem); }
  .partner:first-child { padding-right: clamp(2rem, 1rem + 2vw, 3.5rem); }
  .partner + .partner { padding-left: clamp(2rem, 1rem + 2vw, 3.5rem); border-left: 1px solid var(--line); }
}

/* ---------- Para médicos (franja azul) ---------- */
.docs { display: grid; gap: 2.5rem; }
.docs__text { display: grid; gap: 1.1rem; justify-items: start; }
.docs__text p { font-size: 1.125rem; max-width: 34rem; }
.docs__text .btn { margin-top: .5rem; }
.docs__list { list-style: none; display: grid; align-content: center; }
.docs__list li { padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.docs__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .28); }
.docs__list span { color: #fff; font-weight: 600; }
@media (min-width: 960px) { .docs { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(3rem, 2rem + 4vw, 6rem); } }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); }
.faq__intro { display: grid; gap: 1rem; align-content: start; }
.faq__intro p { font-size: 1.125rem; color: var(--ink-2); max-width: 26rem; }
@media (min-width: 960px) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .faq__intro { position: sticky; top: calc(var(--head-h) + 2rem); }
}

/* ---------- Agenda y ubicación (celeste) ---------- */
.visit { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); }
.visit__book, .visit__info { display: grid; gap: 1.1rem; align-content: start; }
.visit__book > p { font-size: 1.125rem; color: var(--ink-2); max-width: 34rem; }
.visit__h { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }

.wa { display: grid; gap: 1.1rem; margin-top: .5rem; max-width: 34rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field input[type="text"], .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line-ui); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--blue-ink); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field--choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.field--choice legend { width: 100%; margin-bottom: .4rem; }
.field--choice label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; font-size: 1rem; cursor: pointer; min-height: 2.75rem; }
.field--choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--blue-ink); margin: 0; }
.wa .btn { justify-self: start; }
.wa__error { color: var(--error); font-weight: 600; font-size: .9375rem; }
.wa__note { font-size: .875rem; color: var(--ink-2); }

/* Mapa: tarjeta de respaldo (relieve decorativo) y el mapa de Google encima al hacer scroll */
.map {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-top: .25rem;
  border-radius: 22px; background: var(--deep);
}
.map__topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__topo path { fill: none; stroke: rgba(255, 255, 255, .17); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map__card {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1.15rem .6rem .6rem; border-radius: 999px; background: #fff;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, .45); white-space: nowrap;
}
.map__card::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px;
  background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0;
}
.map__mark { width: 2.5rem; height: 2.5rem; flex: none; }
.map__card p { font-size: .875rem; line-height: 1.3; color: var(--ink-2); }
.map__card strong { color: var(--ink); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s ease; }
.map__note { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; font-size: .8125rem; line-height: 1.35; color: #c6dbe5; }
.map.is-live iframe { opacity: 1; }

.addr { font-style: normal; display: grid; margin-top: .4rem; font-family: var(--display); font-stretch: 104%; font-weight: 450; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.3; }
.visit__maps { display: flex; flex-wrap: wrap; gap: .6rem; }
.facts { display: grid; gap: 1.1rem; margin-top: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--sky-line); }
.facts div { display: grid; gap: .15rem; align-content: start; }
.facts dt { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.facts dd a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; } }

@media (min-width: 960px) {
  .visit { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* ---------- Pie ---------- */
.foot { background: var(--deep); color: var(--deep-ink); padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); }
.foot__in { display: grid; gap: 2.25rem; }
.foot__logo { width: min(14rem, 70%); height: auto; }
.foot__line {
  margin-top: 1.25rem; max-width: 18ch; color: #fff;
  font-family: var(--display); font-style: italic; font-stretch: 116%; font-weight: 380;
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); line-height: 1.15; letter-spacing: -0.015em;
}
.foot__col { display: grid; align-content: start; font-size: .9375rem; }
.foot__h { color: #fff; font-weight: 600; margin-bottom: .25rem; }
.foot a { color: #fff; }
.foot__col a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot__col .foot__acceso { margin-top: .5rem; font-size: .8125rem; color: #9fbac7; }
.foot__col .foot__acceso:hover,
.foot__col .foot__acceso:focus-visible { color: #fff; }
.foot__legal { padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .8125rem; color: #9fbac7; }
@media (min-width: 960px) {
  .foot { padding-bottom: clamp(3rem, 2.5rem + 3vw, 5rem); }
  .foot__in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr); }
  .foot__legal { grid-column: 1 / -1; }
}

/* Botón flotante de WhatsApp (escritorio), como el de KALMED y Medactiva */
.wa-float {
  position: fixed; right: clamp(1rem, .5rem + 1.5vw, 2rem); bottom: calc(clamp(1rem, .5rem + 1.5vw, 2rem) + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: none; align-items: center; gap: .55rem; min-height: 3.25rem; padding: .8rem 1.3rem .8rem 1.1rem;
  border-radius: 999px; background: var(--wa); color: var(--wa-ink); text-decoration: none; font: 600 1rem/1 var(--body);
  box-shadow: 0 14px 30px -12px rgba(8, 51, 28, .55);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, background-color .15s ease, visibility 0s;
}
.wa-float:hover { background: var(--wa-hover); }
.wa-float .ico { width: 1.4rem; height: 1.4rem; }
.wa-float.is-off { transform: translateY(1.5rem); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, visibility 0s .3s; }
@media (min-width: 960px) { .wa-float { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .map iframe, .wa-float { transition: none; } }

/* ---------- Pictogramas ----------
   Mismo dibujo que la figura del mapa del cuerpo: cabeza redonda, trazo grueso y redondeado,
   azul hondo con acentos naranjas, y la "lunita" celeste detrás (blanca sobre las franjas celestes). */
.picto { display: block; width: 100%; height: auto; overflow: visible; }
.p-moon { fill: var(--sky); }
.band--sky .p-moon { fill: var(--paper); }
.p-limb { fill: none; stroke: var(--deep); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.p-arm { stroke-width: 7; }
.p-small { stroke-width: 6; }
.p-body { stroke-width: 12; }
.p-arm-l { stroke-width: 15; }
.p-leg-l { stroke-width: 19; }
.p-probe, .p-pen { stroke-width: 7; }
.p-line { fill: none; stroke: var(--deep); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.p-thin { stroke-width: 3.5; opacity: .55; }
.p-fill, .p-head, .p-torso-f, .p-pad { fill: var(--deep); }
.p-accent { fill: var(--orange); }
.p-pain { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.p-pain-ring { fill: none; stroke: var(--orange); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.p-speed, .p-wave, .p-air { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; }
.p-lung, .p-screen, .p-knob { fill: var(--sky); }
.p-trachea { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; }
.p-bell { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.p-dot { fill: var(--sky); opacity: .8; }
.p-wave-e { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.p-cable { fill: none; stroke: var(--deep); stroke-width: 2.5; stroke-linecap: round; opacity: .7; }
.p-us { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.p-bars { fill: none; stroke: var(--blue); stroke-width: 4.5; stroke-linecap: round; }
.p-shock { fill: none; stroke: var(--orange); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.p-beam { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; }
.p-target { fill: none; stroke: var(--deep); stroke-width: 2.4; }
.p-ring { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; }
.p-field { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }

@keyframes p-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes p-swing { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes p-swing-arm { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes p-bob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes p-fade { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }
@keyframes p-knead { from { transform: translateX(-7px); } to { transform: translateX(7px); } }
@keyframes p-breath { 0%, 100% { transform: scale(.9); } 45%, 55% { transform: scale(1.06); } }
@keyframes p-hop { 0%, 60%, 100% { transform: translateY(0); } 75% { transform: translateY(-5px); } }
@keyframes p-press-l { 0%, 100% { transform: rotate(-62deg); } 45%, 60% { transform: rotate(14deg); } }
@keyframes p-press-r { 0%, 100% { transform: rotate(62deg); } 45%, 60% { transform: rotate(-14deg); } }
@keyframes p-flow { to { stroke-dashoffset: -1; } }
@keyframes p-eq { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes p-shock { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  /* Cada pictograma se mueve una sola vez y para antes de 5 s (WCAG 2.2.2: sin bucles que no se puedan detener).
     Las cuentas con medio ciclo terminan en la pose de reposo, para que no haya salto al final. */
  .p-pain-ring { animation: p-pulse 2.2s ease-out 2 forwards; }
  .p-leg, .p-arm, .p-lift { transform-box: view-box; }
  .p-leg { transform-origin: 56px 66px; }
  .p-leg--a { animation: p-swing .7s ease-in-out 6.5 alternate; }
  .p-leg--b { animation: p-swing .7s ease-in-out 6.5 alternate-reverse; }
  .p-arm--a, .p-arm--b { transform-origin: 62px 42px; }
  .p-arm--a { animation: p-swing-arm .7s ease-in-out 6.5 alternate-reverse; }
  .p-arm--b { animation: p-swing-arm .7s ease-in-out 6.5 alternate; }
  .p-runner { animation: p-bob .35s ease-in-out 12 alternate; }
  .p-speed { animation: p-fade 1.4s ease-in-out 3.5; }
  .p-therapist { animation: p-knead 1.6s ease-in-out 2.5 alternate; }
  .p-wave { animation: p-fade 2.4s ease-in-out 1.5; }
  .p-lungs { transform-box: fill-box; transform-origin: center bottom; animation: p-breath 3.2s ease-in-out 1; }
  .p-air { animation: p-fade 3.2s ease-in-out 1.5; }
  .p-kid { animation: p-hop 1.8s ease-in-out 2; }
  .p-lift--l { transform-origin: 58px 78px; animation: p-press-l 2.4s cubic-bezier(.45, 0, .25, 1) 1.5 forwards; }
  .p-lift--r { transform-origin: 102px 78px; animation: p-press-r 2.4s cubic-bezier(.45, 0, .25, 1) 1.5 forwards; }
  .p-wave-e { stroke-dasharray: .5 .5; animation: p-flow 1.6s linear 3; }
  .p-wave-e--slow { animation-duration: 2.6s; animation-iteration-count: 1; }
  .p-us--1 { animation: p-fade 1.4s ease-in-out 2.5; }
  .p-us--2 { animation: p-fade 1.4s ease-in-out .35s 2.5; }
  .p-bars { transform-box: fill-box; transform-origin: bottom; animation: p-eq 1.2s ease-in-out 3 alternate; }
  .p-shock { animation: p-shock 1.6s ease-out 2 forwards; }
  .p-shock--2 { animation-delay: .8s; }
  .p-beam { animation: p-fade 1.1s ease-in-out 3.5; }
  .p-field { animation: p-fade 2s ease-in-out 1.5; }
  .p-field--2 { animation-delay: 1s; }
  /* Esperan quietos hasta que entran en pantalla; si sales a mitad, se pausan */
  .js-motion .picto:not(.is-on) * { animation-play-state: paused; }
}

/* ---------- Movimiento ----------
   Una sola idea: las cosas suben suave y las líneas se dibujan, como el avance de un tratamiento.
   Nada queda oculto al cargar: lo que ya está en pantalla se ve de inmediato y solo lo que está
   más abajo espera a que llegues con el scroll. Si el sistema pide menos movimiento, no hay nada. */
@keyframes rh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rh-settle { from { transform: translateY(14px) scale(.975); } to { transform: none; } }
@keyframes rh-pulse { 0% { transform: scale(.7); opacity: .6; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  /* El título y la foto no cambian de opacidad (son lo primero que debe pintarse) */
  .hero__text > :not(h1) { animation: rh-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: .1s; }
  .hero__text > :nth-child(3) { animation-delay: .22s; }
  .hero__text > :nth-child(4) { animation-delay: .34s; }
  .hero__logo { animation: rh-settle 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  .facts-strip li { animation: rh-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .facts-strip li:nth-child(1) { animation-delay: .5s; }
  .facts-strip li:nth-child(2) { animation-delay: .6s; }
  .facts-strip li:nth-child(3) { animation-delay: .7s; }
  .facts-strip li:nth-child(4) { animation-delay: .8s; }

  .spot[aria-pressed="true"]::after { animation: rh-pulse 2.4s ease-out 2; }

  .js-motion .rv { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .js-motion .rv.rv-wait { opacity: 0; transform: translateY(26px); }
  .gallery .g:nth-child(2), .steps .step:nth-child(2) { --d: .08s; }
  .gallery .g:nth-child(3), .steps .step:nth-child(3) { --d: .16s; }
  .gallery .g:nth-child(4), .steps .step:nth-child(4) { --d: .24s; }
  .gallery .g:nth-child(5) { --d: .32s; }
  .gallery .g:nth-child(6) { --d: .4s; }
  .gallery .g:nth-child(7) { --d: .48s; }
  .partners .partner:nth-child(2), .docs__list, .faq__list, .visit__info, .report { --d: .12s; }

  /* El informe se arma al aparecer: la línea del dolor se dibuja y los puntos llegan uno a uno */
  .js-motion .report .c-line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.4, 0, .2, 1) .45s; }
  .js-motion .report.rv-wait .c-line { stroke-dashoffset: 1; }
  .js-motion .report .c-dots circle { transition: opacity .35s ease; }
  .js-motion .report.rv-wait .c-dots circle { opacity: 0; }
  .c-dots circle:nth-child(1) { transition-delay: .45s; }
  .c-dots circle:nth-child(2) { transition-delay: .62s; }
  .c-dots circle:nth-child(3) { transition-delay: .79s; }
  .c-dots circle:nth-child(4) { transition-delay: .96s; }
  .c-dots circle:nth-child(5) { transition-delay: 1.13s; }
  .c-dots circle:nth-child(6) { transition-delay: 1.3s; }
  .c-dots circle:nth-child(7) { transition-delay: 1.47s; }
  .c-dots circle:nth-child(8) { transition-delay: 1.64s; }
  .c-dots circle:nth-child(9) { transition-delay: 1.81s; }
  .c-dots circle:nth-child(10) { transition-delay: 1.98s; }
  .js-motion .report .rom__fill { transform-origin: left center; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1) .7s; }
  .js-motion .report.rv-wait .rom__fill { transform: scaleX(0); }

  /* Los arcos del logo se dibujan al llegar a la franja (igual que en el inicio) */
  .js-motion .band-arc {
    -webkit-mask-image: conic-gradient(from 248deg at 49% 48%, #000 var(--sweep), transparent 0);
    mask-image: conic-gradient(from 248deg at 49% 48%, #000 var(--sweep), transparent 0);
    animation: rh-draw 2.2s cubic-bezier(.55, .08, .2, 1) .2s both paused;
  }
  .js-motion .band-arc.is-in { animation-play-state: running; }
}
/* La línea del proceso se llena a medida que bajas (solo navegadores que lo soportan) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rh-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    .step::before { transform-origin: top; animation: rh-grow linear both; animation-timeline: view(); animation-range: entry 60% cover 55%; }
  }
}
