/* =============================================================
   PAGES — Megamenú del header + páginas nuevas (SPA)
   Usa los mismos tokens de base.css. Se carga al final.
   ============================================================= */

/* =========================================================
   SPLASH / LAUNCH SCREEN
   ========================================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity .7s var(--ease);
}
.splash.is-hidden { opacity: 0; }
.splash.is-gone { display: none; }

.splash__ring { position: relative; width: 160px; height: 160px; display: grid; place-items: center; }
.splash__svg,
.splash__orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash__prog { animation: sp-ring 1.5s ease-out forwards; }
.splash__orbit { animation: sp-orbit 3.5s linear infinite; transform-origin: 50% 50%; }
.splash__mark { width: 80px; height: 80px; animation: sp-beat 1.4s ease-in-out infinite; }

.splash__brand { margin-top: 1.25rem; font-weight: 800; font-size: 1.3rem; letter-spacing: .01em; animation: sp-text .8s .5s both; }
.splash__brand span { color: var(--brand-teal); }
.splash__brand b { color: var(--brand-purple); }

.splash__loading {
  margin-top: .35rem; font-size: .8rem; color: var(--muted);
  display: flex; gap: .25rem; align-items: center;
  animation: sp-text .8s .8s both;
}
.splash__loading .d { animation: sp-dot 1s infinite; }
.splash__loading .d:nth-child(2) { animation-delay: .2s; }
.splash__loading .d:nth-child(3) { animation-delay: .4s; }

@keyframes sp-beat  { 0%,100%{transform:scale(1)} 25%{transform:scale(1.12)} 45%{transform:scale(.96)} 65%{transform:scale(1.06)} }
@keyframes sp-ring  { from{stroke-dashoffset:565} to{stroke-dashoffset:0} }
@keyframes sp-orbit { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes sp-text  { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes sp-dot   { 0%,100%{opacity:.25} 50%{opacity:1} }

@media (prefers-reduced-motion: reduce) {
  .splash__prog { stroke-dashoffset: 0; animation: none; }
  .splash__orbit, .splash__mark { animation: none; }
}


/* =========================================================
   NAV / MEGAMENÚ
   ========================================================= */
.nav__link {
  font-size: .93rem;
  font-weight: 600;
  color: var(--purple-900);
  position: relative;
  padding: .25rem 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s var(--ease);
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad-brand);
  transition: width .25s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--brand-purple); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link .chev { font-size: .7rem; transition: transform .25s var(--ease); }

.nav__item--mega { position: relative; }
/* Puente invisible entre el botón y el panel (evita que se cierre al pasar el mouse) */
.nav__item--mega .mega::before {
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}

/* Panel del megamenú (desktop) */
.mega {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(8px);
  width: 620px;
  max-width: calc(100vw - 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 60;
}
.nav__item--mega:hover .mega,
.nav__item--mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}
.nav__item--mega:hover .nav__mega-toggle .chev,
.nav__item--mega.is-open .nav__mega-toggle .chev { transform: rotate(180deg); }

.mega__cats { background: var(--surface-2); padding: .5rem; }
.mega__cat {
  width: 100%;
  text-align: left;
  padding: .65rem .8rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  color: var(--purple-900);
  display: flex; align-items: center; gap: .5rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.mega__cat .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.mega__cat .arrow { margin-left: auto; color: var(--purple-200); }
.mega__cat:hover,
.mega__cat.is-active { background: var(--surface); color: var(--brand-purple); box-shadow: var(--shadow-sm); }

.mega__list { padding: .75rem; min-width: 0; display: flex; flex-direction: column; }
.mega__link { max-width: 100%; }
.mega__list-head {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  padding: .25rem .5rem .5rem;
}

/* Enlace destacado a "Enfermedades que tratamos" dentro del megamenú */
.mega__feature {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .6rem .7rem; margin-bottom: .55rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 217, 211, .12);
  border: 1px solid rgba(56, 217, 211, .35);
  transition: background .18s var(--ease);
}
.mega__feature:hover { background: rgba(56, 217, 211, .22); }
.mega__feature-t { font-weight: 700; font-size: .92rem; color: var(--brand-purple); }
.mega__feature-d { font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* Lista limpia: solo nombres, con flecha al pasar el mouse */
.mega__names { display: flex; flex-direction: column; gap: .1rem; }
.mega__name {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .55rem .6rem; border-radius: var(--radius-sm);
  font-size: .93rem; font-weight: 600; color: var(--purple-950);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.mega__name:hover { background: rgba(56, 217, 211, .12); color: var(--brand-purple); }
.mega__name .arw {
  color: var(--brand-purple); opacity: 0;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.mega__name:hover .arw { opacity: 1; transform: translateX(3px); }
.mega__all {
  margin: .5rem .6rem .1rem; padding-top: .6rem;
  border-top: 1px solid var(--line);
  font-size: .85rem; font-weight: 700; color: var(--brand-purple);
}
.mega__all:hover { text-decoration: underline; }
.mega__link {
  display: block; width: 100%; text-align: left;
  padding: .5rem .55rem; border-radius: var(--radius-sm);
  transition: background .18s var(--ease);
}
.mega__link:hover { background: rgba(56,217,211,.12); }
.mega__link b { display: block; font-size: .92rem; color: var(--purple-950); font-weight: 700; }
.mega__link:hover b { color: var(--brand-purple); }
.mega__link small { display: block; font-size: .8rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bloque de categorías solo para móvil (oculto en desktop) */
.mega__mobile { display: none; }

/* Nombre de condición clicable en la home (va a su detalle) */
.condition__name[data-route] { cursor: pointer; transition: color .2s var(--ease); }
.condition__name[data-route] span { color: var(--brand-purple); opacity: 0; transition: opacity .2s var(--ease); }
.condition__name[data-route]:hover { color: var(--brand-purple); }
.condition__name[data-route]:hover span { opacity: 1; }

.dot--dolor  { background: var(--brand-purple); }
.dot--regen  { background: var(--brand-teal); }
.dot--comple { background: #b08be0; }
.dot--bien   { background: var(--brand-teal-700); }

/* =========================================================
   BOTÓN / VOLVER / HERO DE PÁGINA
   ========================================================= */
.back-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .9rem; font-weight: 600; color: var(--brand-purple);
  margin-bottom: .75rem;
}
.back-link:hover { text-decoration: underline; }

.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 90% -20%, rgba(56,217,211,.16), transparent 60%),
    var(--surface-2);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .lead { font-size: 1.1rem; max-width: 60ch; margin-top: .5rem; }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: .6rem; }

.section-pad { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* =========================================================
   PÁGINA CATEGORÍA — grilla de tarjetas + tarjetas de detalle
   ========================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.25rem; }
.cat-card { display: flex; flex-direction: column; gap: .3rem; cursor: pointer; }
.cat-card h3 { font-size: 1.15rem; }
.cat-card .tech { font-size: .78rem; font-weight: 600; color: var(--brand-teal-700); }
.cat-card .tag { font-size: .93rem; color: var(--muted); margin-top: .25rem; flex: 1; }
.cat-card__foot { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.cat-card .link { font-weight: 700; color: var(--brand-purple); font-size: .9rem; }
.cat-card:hover .link { color: var(--brand-teal-700); }

/* =========================================================
   PÁGINA DETALLE DE TRATAMIENTO (reusa .trat-detail__*)
   ========================================================= */
.detail-hero__grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.detail-hero__media { border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 16/11; background: var(--grad-brand);
  display: grid; place-items: center; }
.detail-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero__media-fallback { font-size: 4rem; }
.detail-body { max-width: 820px; }
.detail-body h2 { font-size: 1.6rem; margin-top: 2.25rem; margin-bottom: 1rem; }
.detail-cta {
  margin-top: 2.5rem; border-radius: var(--radius-xl); background: var(--grad-brand);
  color: #fff; padding: clamp(1.5rem,4vw,2rem);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.detail-cta h3 { color: #fff; margin: 0; }
.detail-cta p { color: rgba(255,255,255,.85); margin-top: .25rem; }

/* =========================================================
   PÁGINA DOLENCIAS (lista) + DETALLE DE DOLENCIA
   ========================================================= */
.zone-block { margin-bottom: 2rem; }
.zone-block h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.chip {
  padding: .5rem .95rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .9rem; color: var(--purple-900);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--brand-teal); background: rgba(56,217,211,.1); color: var(--brand-teal-700); }
.chip small { color: var(--muted); }

.cond-hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; }

/* =========================================================
   BODY MAP — mapa del cuerpo interactivo
   ========================================================= */
.bodymap {
  position: relative;
  display: block;
  min-height: 620px;
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  overflow: hidden;
}
.bodymap::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 20% 10%, rgba(56, 217, 211, .18), transparent 60%);
  pointer-events: none;
}
.bodymap > * { position: relative; z-index: 1; }

.bodymap__figure { width: 330px; max-width: 100%; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* Foto de la figura frontal (recortada de la imagen de 3 vistas) */
.bodymap__stage {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 100 / 210;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bodymap__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 6% center;    /* por defecto: figura frontal (izquierda) */
  transition: object-position .5s var(--ease);
}
/* Desplaza la imagen para mostrar cada figura (por vista) */
.bodymap__stage[data-view="front"] .bodymap__img { object-position: 12% center; }
.bodymap__stage[data-view="back"]  .bodymap__img { object-position: 52% center; }
.bodymap__stage[data-view="side"]  .bodymap__img { object-position: 91% center; }

/* Selectores (Hombre/Mujer y Frente/Espalda/Costado) */
.bodymap__toggles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}
.bodymap__seg-group {
  display: inline-flex;
  gap: .2rem;
  padding: .25rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-pill);
}
.bodymap__seg,
.bodymap__view {
  padding: .4rem .9rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, .72);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.bodymap__seg:hover,
.bodymap__view:hover { color: #fff; }
.bodymap__seg.is-active,
.bodymap__view.is-active { background: var(--brand-teal); color: var(--purple-950); }
.bodymap__overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* Zonas: puntitos rojos que laten (con onda tipo radar) */
.bodymap__zone { cursor: pointer; outline: none; }
.bodymap__hit { fill: transparent; pointer-events: all; }
.bodymap__dot {
  fill: #ff3b3b; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
  animation: bm-beat 1.5s ease-in-out infinite;
}
.bodymap__ping {
  fill: #ff3b3b; opacity: .5; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
  animation: bm-ping 1.5s ease-out infinite;
}
.bodymap__zone:hover .bodymap__dot,
.bodymap__zone:focus-visible .bodymap__dot,
.bodymap__zone.is-active .bodymap__dot {
  fill: #ff0000;
  filter: drop-shadow(0 0 5px rgba(255, 40, 40, .95));
}
.bodymap__zone.is-active .bodymap__dot { animation: none; transform: scale(1.5); }
.bodymap__zone.is-active .bodymap__ping { opacity: .75; }
@keyframes bm-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes bm-ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bodymap__dot { animation: none; }
  .bodymap__ping { display: none; }
}

/* Botón General / Sistémico */
.bodymap__general {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-weight: 600; font-size: .88rem;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.bodymap__general:hover,
.bodymap__general.is-active { background: var(--brand-teal); color: var(--purple-950); border-color: transparent; }
.bodymap__hint { font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* Tarjeta de información flotante (aparece al costado de la zona) */
.bodymap__panel {
  position: absolute;
  width: clamp(255px, 23vw, 315px);
  background: rgba(18, 10, 38, .82);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-lg);
  transition: top .35s var(--ease);
}
/* Flechita que apunta hacia la figura */
.bodymap__panel::after {
  content: ""; position: absolute; top: 26px;
  border: 9px solid transparent;
}
.bodymap__panel.is-right::after { right: 100%; border-right-color: rgba(18, 10, 38, .82); }
.bodymap__panel.is-left::after  { left: 100%;  border-left-color: rgba(18, 10, 38, .82); }
.bodymap__panel.is-pop { animation: bm-pop .3s var(--ease); }
@keyframes bm-pop {
  from { opacity: 0; transform: translateX(-10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.bodymap__eyebrow { color: var(--brand-teal); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .07em; }
.bodymap__panel h3 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: .35rem 0 .5rem; }
.bodymap__desc { color: rgba(255, 255, 255, .82); font-size: .98rem; line-height: 1.55; }
.bodymap__list { list-style: none; margin: 1rem 0 1.35rem; display: grid; gap: .55rem; }
.bodymap__list li {
  position: relative; padding-left: 1.3rem;
  color: rgba(255, 255, 255, .85); font-size: .95rem; cursor: pointer;
  transition: color .2s var(--ease);
}
.bodymap__list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-teal);
}
.bodymap__list li:hover { color: var(--brand-teal); }
.bodymap__more { width: 100%; justify-content: center; }

/* Pantallas medianas/móvil: la tarjeta se apila debajo de la figura centrada */
@media (max-width: 1080px) {
  .bodymap { min-height: 0; }
  .bodymap__panel {
    position: static;
    width: 100%; max-width: 520px; min-height: 0;
    left: auto !important; top: auto !important;
    margin: 1.5rem auto 0;
  }
  .bodymap__panel::after { display: none; }
}

/* =========================================================
   MISIÓN / VISIÓN / VALORES / MAPA
   ========================================================= */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mv-card { display: flex; gap: 1rem; align-items: flex-start; }
.mv-card .eyebrow { margin-bottom: .4rem; }
.mv-card p { color: var(--purple-800); }
.mv-icon { font-size: 2rem; line-height: 1; flex: 0 0 auto; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; }

.map-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.map-embed {
  aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--purple-50);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   FORMULARIOS (reserva / trabaja)
   ========================================================= */
.form-card { max-width: 780px; margin-inline: auto; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--purple-900); }
.field input,
.field select,
.field textarea {
  width: 100%; padding: .7rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--surface-2); color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brand-purple); background: var(--surface); }
.field textarea { resize: vertical; min-height: 90px; }
.form-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form-check input { width: 1.05rem; height: 1.05rem; margin-top: .15rem; flex: 0 0 auto; }
.form-error { color: #c0392b; font-weight: 600; font-size: .9rem; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }

/* Confirmación */
.confirm { max-width: 640px; margin-inline: auto; text-align: center; }
.confirm__check {
  width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%;
  background: rgba(56,217,211,.18); color: var(--brand-teal-700);
  display: grid; place-items: center; font-size: 2rem;
}
.confirm__summary { text-align: left; margin-top: 2rem; }
.confirm__summary p { color: var(--purple-800); font-size: .95rem; margin-bottom: .2rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .detail-hero__grid,
  .cond-hero__grid,
  .mv-grid,
  .map-card { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  /* En móvil el megamenú se muestra como acordeón dentro del menú lateral */
  .nav__item--mega { width: 100%; }
  .mega {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    background: transparent;
  }
  .nav__item--mega.is-open .mega { display: block; }
  /* Anula el desplazamiento del megamenú de escritorio (más específico) */
  .nav__item--mega.is-open .mega,
  .nav__item--mega:hover .mega { transform: none; }
  .mega__cats,
  .mega__list { display: none; }       /* en móvil usamos enlaces de categoría */
  .mega__mobile { display: block; padding: .25rem 0 .5rem; }
  .mega__mobile .mega__link { padding: .55rem 0; }
  .nav__mega-toggle { width: 100%; justify-content: flex-start; }
}

/* =========================================================
   VISTA DE ZONA (detalle desde "Ver más" del mapa del cuerpo)
   ========================================================= */
/* Ubicación del dolor (sub-zonas) */
.zona-spots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
}
.zona-spot {
  display: flex; gap: 1rem; align-items: flex-start;
  width: 100%; text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.zona-spot:hover { transform: translateY(-3px); border-color: var(--brand-teal); }
.zona-spot.is-active {
  border-color: var(--brand-purple);
  box-shadow: inset 0 0 0 1px var(--brand-purple), var(--shadow-sm);
}
.zona-spot__n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .95rem;
}
.zona-spot__body b { color: var(--purple-900); display: block; margin-bottom: .15rem; }
.zona-spot__body span { color: var(--muted); font-size: .9rem; line-height: 1.5; display: block; }

/* Botón "Ver todas las enfermedades" (reset del filtro) */
.zona-conds__reset {
  display: inline-flex; align-items: center; margin-top: .9rem;
  background: none; border: 1px solid var(--line);
  color: var(--brand-purple); font-weight: 700; font-size: .85rem;
  padding: .45rem .95rem; border-radius: var(--radius-pill);
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.zona-conds__reset:hover { background: var(--surface-2); border-color: var(--brand-purple); }
.zona-conds .cat-card { transition: opacity .25s var(--ease); }

/* Causas comunes */
.zona-causes-sec { background: var(--surface-2); }
.zona-causes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1rem;
}
.zona-cause {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.zona-cause:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.zona-cause__ico { font-size: 1.7rem; line-height: 1; }
.zona-cause b { color: var(--purple-900); display: block; margin-bottom: .15rem; }
.zona-cause p { color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* Camino a la recuperación — en forma de ESCALERA con saltador en la cima */
.zona-journey {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  position: relative;
  padding-top: 150px;   /* espacio para el saltador en la cima */
}
.zona-step {
  flex: 1 1 0; min-width: 0;
  position: relative;
  transform: translateY(calc(var(--step, 0) * -30px));
}
/* Flechita que sube entre escalones */
.zona-step:not(:last-child)::after {
  content: "↗";
  position: absolute; right: -.85rem; top: 32%;
  color: var(--brand-teal); font-weight: 800; font-size: 1.15rem; opacity: .75;
}
/* Número del escalón */
.zona-phase__step {
  position: absolute; z-index: 3; top: -15px; left: 1.1rem;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-teal); color: var(--purple-950);
  font-weight: 800; font-size: .92rem;
  box-shadow: 0 6px 14px rgba(30, 18, 51, .35);
}
/* Banderita de "meta" ondeando en la cima (sobre el último escalón) */
.zona-journey__peak {
  position: absolute; z-index: 4;
  left: 90%; top: -26px;
  width: 40px; height: auto;
  transform: translateX(-50%);
  transform-origin: 50% 88%;
  filter: drop-shadow(0 5px 8px rgba(30, 18, 51, .3));
  animation: peak-wave 2.6s ease-in-out infinite;
}
@keyframes peak-wave {
  0%, 100% { transform: translateX(-50%) rotate(-3.5deg); }
  50%      { transform: translateX(-50%) rotate(3.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .zona-journey__peak { animation: none; }
}
.zona-phase {
  position: relative;
  height: 100%;
  background: var(--grad-dark); color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.25rem 1.4rem;
  overflow: hidden;
}
.zona-phase::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px 160px at 100% 0%, rgba(56, 217, 211, .16), transparent 60%);
  pointer-events: none;
}
.zona-phase__ico { font-size: 1.8rem; }
.zona-phase h4 { color: #fff; margin: .6rem 0 .4rem; font-size: 1.02rem; }
.zona-phase p { color: rgba(255, 255, 255, .75); font-size: .86rem; line-height: 1.5; }
.zona-phase__time {
  display: inline-block; margin-top: .8rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-teal);
}

/* Escalera de recuperación en móvil -> lista vertical */
@media (max-width: 820px) {
  .zona-journey { flex-direction: column; align-items: stretch; padding-top: 78px; gap: 1.7rem; }
  .zona-step { transform: none !important; }
  .zona-step:not(:last-child)::after {
    content: "↓"; right: auto; left: 50%; top: auto; bottom: -1.3rem;
    transform: translateX(-50%); font-size: 1.2rem;
  }
  .zona-journey__peak { left: 50%; top: 26px; }
}

/* =========================================================
   PÁGINAS LEGALES (Términos, Privacidad, Promociones)
   ========================================================= */
.legal { max-width: 820px; }
.legal__intro {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  margin-bottom: 2rem;
}
.legal__intro p { margin: 0; color: var(--purple-900); }
.legal__intro p + p { margin-top: .35rem; }

.legal__sec { margin-bottom: 1.9rem; }
.legal__sec h2 {
  font-size: 1.18rem;
  color: var(--brand-purple);
  margin-bottom: .7rem;
  line-height: 1.35;
}
.legal__sec h3 {
  font-size: 1rem;
  color: var(--purple-950);
  margin: 1rem 0 .5rem;
}
.legal__sec p {
  color: var(--purple-800);
  line-height: 1.7;
  margin-bottom: .7rem;
}
.legal__list {
  list-style: none;
  display: grid;
  gap: .5rem;
  margin: 0 0 .7rem;
}
.legal__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--purple-800);
  line-height: 1.6;
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: .6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
}

.legal__related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal__related > span {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .7rem;
}
.legal__related-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.legal__related-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand-purple);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: .5rem 1rem;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.legal__related-links a:hover {
  background: var(--purple-50);
  border-color: var(--brand-purple);
}
