/* ==========================================================================
   Cirugía de juanete — Dr. Francisco Castillo
   Paleta tomada de la tarjeta de presentación (verde #1a4b48) y de la campaña.
   ========================================================================== */

:root {
  --paper:    #f4f6f4;
  --paper-2:  #e7eeeb;
  --white:    #ffffff;
  --ink:      #12302e;
  --ink-soft: #3b5552;
  --ink-mute: #5f7572;
  --brand:    #1a4b48;
  --brand-2:  #3d6c66;
  --brand-3:  #2a5d58;
  --sage:     #a9c6be;
  --sage-2:   #d3e3de;
  --line:     rgba(26, 75, 72, 0.14);
  --line-2:   rgba(26, 75, 72, 0.28);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius: 22px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(18px, 1.05vw + 12px, 20px);   /* lectura cómoda para 60+ */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
em { font-style: italic; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--white); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Tipografía común ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--sage); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw + 0.6rem, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--brand);
  text-wrap: balance;
  max-width: 20ch;
}
.section-title em { color: var(--brand-2); }
.section-lede {
  font-size: 1.08rem; color: var(--ink-soft); max-width: 56ch; text-wrap: pretty;
}
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }

section { padding: clamp(80px, 11vw, 150px) var(--gutter); }
section > * { max-width: var(--maxw); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--brand); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 10px 30px -12px rgba(26,75,72,.55);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--brand-3); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 18px 36px -14px rgba(26,75,72,.6); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 1.08rem; padding: 19px 30px; }
.btn-sm { padding: 11px 18px; font-size: 0.95rem; }
.btn-light { --bg: var(--white); --fg: var(--brand); box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); }
.btn-light:hover { background: var(--sage-2); }

.link-arrow {
  font-weight: 600; color: var(--brand); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line-2); padding-bottom: 4px;
  transition: gap .3s var(--ease-out), border-color .3s;
}
.link-arrow::after { content: "↓"; }
.link-arrow:hover { gap: 16px; border-color: var(--brand); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color .35s, box-shadow .35s, height .35s var(--ease-out);
}
.nav.is-solid {
  background: rgba(244, 246, 244, 0.94);
  box-shadow: 0 1px 0 var(--line);
  height: 66px;
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid { background: rgba(244, 246, 244, 0.78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 44px; height: auto; }
.nav-name {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--brand); line-height: 1.15;
  display: flex; flex-direction: column;
}
.nav-name small { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: .06em; color: var(--ink-mute); text-transform: uppercase; }
.nav-links { display: flex; gap: clamp(16px, 2vw, 30px); }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 520px) {
  .nav-name small { display: none; }
  .nav-name { font-size: 0.98rem; }
  .nav .btn-sm span { display: none; }
  .nav .btn-sm { padding: 11px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px));
  padding-bottom: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas: "text figure" "facts figure";
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: clamp(40px, 5vw, 64px);
  align-items: center;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
}
.hero > * { max-width: none; margin: 0; }
/* halo suave detrás del retrato */
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -10%; top: 5%; width: 70%; height: 90%;
  background: radial-gradient(50% 50% at 60% 45%, rgba(169,198,190,.55), transparent 70%);
  filter: blur(40px);
}
.hero-text { grid-area: text; display: grid; gap: 28px; align-self: end; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.1vw + 0.5rem, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--brand);
}
.hero-title em { color: var(--brand-2); font-weight: 400; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span {
  display: inline-block;
  animation: lineUp 1.1s var(--ease-out) both;
}
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

.hero-sub { font-size: clamp(1.08rem, .5vw + 1rem, 1.3rem); color: var(--ink-soft); max-width: 40ch; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero-text .eyebrow, .hero-sub, .hero-ctas { animation: fadeUp 1s var(--ease-out) both; }
.hero-text .eyebrow { animation-delay: .05s; }
.hero-sub { animation-delay: .45s; }
.hero-ctas { animation-delay: .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-figure { grid-area: figure; position: relative; margin: 0; align-self: center; }
.hero-photo {
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);   /* arco */
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sage-2);
  box-shadow: 0 40px 80px -40px rgba(18,48,46,.45);
  animation: archReveal 1.4s var(--ease-out) .15s both;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); animation: photoSettle 1.8s var(--ease-out) .15s both; }
@keyframes archReveal { from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); } to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes photoSettle { from { transform: scale(1.18); } to { transform: scale(1.02); } }

.hero-badge {
  position: absolute; left: -28px; bottom: 36px;
  max-width: 280px;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 0.86rem; line-height: 1.45; color: var(--ink-soft);
  box-shadow: 0 24px 50px -24px rgba(18,48,46,.4);
  animation: fadeUp 1s var(--ease-out) .9s both;
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--brand); margin-bottom: 2px; }

.hero-facts {
  grid-area: facts; align-self: start;
  list-style: none; margin: 0; padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  animation: fadeUp 1s var(--ease-out) .75s both;
}
.hero-facts li { display: grid; gap: 6px; font-size: 0.92rem; line-height: 1.4; color: var(--ink-soft); }
.fact-num { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--brand); font-style: italic; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "figure" "facts";
    min-height: auto;
    row-gap: 44px;
  }
  .hero-text { align-self: start; }
  .hero-figure { max-width: 460px; width: 88%; margin-inline: auto 0; }
  .hero-badge { left: -12%; bottom: -28px; max-width: 250px; }
  .hero-figure { margin-bottom: 28px; }
  .hero::before { top: 35%; width: 110%; right: -30%; }
}
@media (max-width: 560px) {
  .hero-facts { grid-template-columns: 1fr; gap: 18px; }
  .hero-facts li { grid-template-columns: 76px 1fr; align-items: baseline; gap: 14px; }
  .hero-ctas .btn { width: 100%; }
  .hero-figure { width: 82%; }
  .hero-badge { left: -18%; }
}

/* ==========================================================================
   REVEAL (solo se oculta si hay JS; red de seguridad a los 6 s en main.js)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ==========================================================================
   MITOS
   ========================================================================== */
.myths { background: var(--white); border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.myth-list { list-style: none; margin: 0 auto; padding: 0; counter-reset: myth; }
.myth {
  counter-increment: myth;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 5vw, 80px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.myth:last-child { border-bottom: 1px solid var(--line); }
.myth-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.45rem, 1.6vw + 0.8rem, 2.15rem);
  line-height: 1.2; color: var(--ink-mute);
  position: relative; padding-left: 3.2rem;
}
.myth-quote::before {
  content: counter(myth, decimal-leading-zero);
  position: absolute; left: 0; top: .5em;
  font-family: var(--sans); font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  color: var(--brand-2);
}
/* El mito se tacha al entrar en pantalla */
.myth-quote span {
  background-image: linear-gradient(var(--brand-2), var(--brand-2));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0% 2px;
  transition: background-size 1.1s var(--ease-out) .35s, color .6s .35s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.myth.is-revealed .myth-quote span,
html:not(.js) .myth-quote span { background-size: 100% 2px; color: #8a9b98; }
.myth-answer { display: grid; gap: 10px; }
.myth-answer h3 { font-family: var(--serif); font-size: clamp(1.3rem, .8vw + 1rem, 1.6rem); line-height: 1.25; color: var(--brand); font-weight: 600; }
.myth-answer p { color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 760px) {
  .myth { grid-template-columns: 1fr; gap: 16px; }
  .myth-quote { padding-left: 0; padding-top: 1.8rem; }
  .myth-quote::before { top: 0; }
}

/* ==========================================================================
   TÉCNICA
   ========================================================================== */
.technique { background: var(--white); padding-top: 0; }
.technique .section-head { padding-top: clamp(80px, 10vw, 130px); border-top: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.step {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: grid; gap: 14px; align-content: start;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .4s;
}
.step:hover { transform: translateY(-6px); background: var(--sage-2); box-shadow: 0 30px 60px -36px rgba(18,48,46,.45); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--sage); transition: color .4s; }
.step:hover .step-num { color: var(--brand-2); }
.step h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; color: var(--brand); font-weight: 600; }
.step p { color: var(--ink-soft); font-size: 1rem; }
.steps .step:nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3) { transition-delay: .16s; }
.technique-note {
  margin-top: clamp(28px, 4vw, 48px);
  border-left: 3px solid var(--brand-2);
  padding: 6px 0 6px clamp(20px, 3vw, 32px);
}
.technique-note p { font-family: var(--serif); font-size: clamp(1.2rem, .8vw + 1rem, 1.5rem); line-height: 1.45; color: var(--ink); max-width: 60ch; }
.technique-note strong { color: var(--brand); font-weight: 600; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   ANTES / DESPUÉS — firma del sitio
   ========================================================================== */
.results { background: var(--brand); color: var(--white); position: relative; }
.results::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 85% 20%, rgba(169,198,190,.18), transparent 70%),
    radial-gradient(35% 45% at 10% 90%, rgba(61,108,102,.55), transparent 70%);
}
.results-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 90px); align-items: center;
}
.results .section-head { margin-bottom: 0; }
.results .section-title { color: var(--white); }
.results .section-title em { color: var(--sage); }
.results .section-lede { color: rgba(255,255,255,.8); }

.ba {
  position: relative; margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f2e2c;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.6);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
  grid-row: span 2;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-tag {
  position: absolute; top: 18px; z-index: 2;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(18,48,46,.72); color: var(--white);
}
.ba-tag-before { left: 18px; }
.ba-tag-after  { right: 18px; background: rgba(255,255,255,.88); color: var(--brand); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2;
  width: 2px; margin-left: -1px; background: var(--white);
  pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%;
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: var(--white); color: var(--brand);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .3s var(--ease-out);
}
.ba-handle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba:hover .ba-handle span, .ba.is-dragging .ba-handle span { transform: scale(1.1); }
.ba.is-hinting .ba-handle span { animation: nudge 1.6s var(--ease-out) 1; }
@keyframes nudge { 0%,100% { transform: none; } 30% { transform: translateX(-10px); } 60% { transform: translateX(10px); } }
.ba-range {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba-range:focus-visible + * , .ba:focus-within .ba-handle span { outline: 3px solid var(--sage); outline-offset: 3px; }
.ba-note { font-size: .85rem; color: rgba(255,255,255,.62); max-width: 44ch; align-self: start; }

@media (max-width: 900px) {
  .results-inner { grid-template-columns: 1fr; }
  .ba { grid-row: auto; }
}

/* ==========================================================================
   RECUPERACIÓN
   ========================================================================== */
.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--brand-2), var(--sage-2));
}
.tl-item {
  position: relative;
  display: grid; grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 12px 40px;
  padding: 0 0 clamp(36px, 4vw, 52px) 56px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 3px; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brand-2);
  box-shadow: 0 0 0 6px var(--paper);
  transition: background-color .5s .3s;
}
.tl-item.is-revealed::before { background: var(--brand-2); }
.tl-when { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1vw + 1rem, 1.8rem); line-height: 1.15; color: var(--brand-2); }
.tl-item h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; color: var(--brand); font-weight: 600; margin-bottom: 6px; }
.tl-item p { color: var(--ink-soft); max-width: 54ch; }
@media (max-width: 700px) {
  .tl-item { grid-template-columns: 1fr; padding-left: 44px; }
}

/* ==========================================================================
   DOCTOR
   ========================================================================== */
.doctor { background: var(--paper-2); }
.doctor-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.doctor-mark {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 40px 80px -50px rgba(18,48,46,.5);
}
.doctor-mark img { width: 58%; }
.doctor-text { display: grid; gap: 24px; }
.doctor-quote { margin: 8px 0 0; padding: 0; }
.doctor-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, .9vw + 1rem, 1.6rem); line-height: 1.45; color: var(--ink); max-width: 46ch; }
.creds { margin: 12px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.creds > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.creds dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); padding-top: 4px; }
.creds dd { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 860px) {
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-mark { width: 180px; }
  .creds > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--paper); }
.faq-list { display: grid; gap: 12px; max-width: 920px; }
.faq .section-head { max-width: 920px; }
.faq-item {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid transparent;
  transition: border-color .3s, box-shadow .4s var(--ease-out);
}
.faq-item:hover { border-color: var(--line-2); }
.faq-item[open] { border-color: var(--line-2); box-shadow: 0 24px 50px -36px rgba(18,48,46,.4); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px clamp(20px, 3vw, 30px);
  font-family: var(--serif); font-size: clamp(1.12rem, .5vw + 1rem, 1.3rem); font-weight: 500; line-height: 1.35; color: var(--brand);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 14px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 14px no-repeat,
    var(--sage-2);
  transition: transform .4s var(--ease-out), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 clamp(20px, 3vw, 30px) 26px; display: grid; gap: 14px; color: var(--ink-soft); max-width: 72ch; }
.faq-body a { color: var(--brand); font-weight: 600; }
.faq-item[open] .faq-body { animation: fadeUp .5s var(--ease-out) both; }

/* ==========================================================================
   CONSULTORIOS
   ========================================================================== */
.places { background: var(--paper); padding-top: 0; }
.place-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.place {
  display: grid; gap: 8px; align-content: start;
  background: var(--white); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.place:hover { transform: translateY(-6px); border-color: var(--brand-2); box-shadow: 0 30px 60px -36px rgba(18,48,46,.45); }
.place-zone { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); }
.place h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; color: var(--brand); font-weight: 600; margin-top: 6px; }
.place p { color: var(--ink-soft); }
.place-map { margin-top: 14px; font-weight: 600; font-size: .95rem; color: var(--brand); display: inline-flex; gap: 8px; }
.place-map::after { content: "→"; transition: transform .3s var(--ease-out); }
.place:hover .place-map::after { transform: translateX(5px); }
.place-grid .place:nth-child(2) { transition-delay: .06s; }
.place-grid .place:nth-child(3) { transition-delay: .12s; }
@media (max-width: 860px) { .place-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.final {
  background: var(--brand-2);
  color: var(--white);
  text-align: center;
  position: relative;
}
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 110%, rgba(26,75,72,.9), transparent 70%);
}
.final-inner { position: relative; display: grid; justify-items: center; gap: 28px; max-width: 880px; }
.final-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 3.8vw + .6rem, 3.9rem); line-height: 1.08; letter-spacing: -0.015em;
  text-wrap: balance;
}
.final-title em { color: var(--sage-2); }
.final-sub { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 46ch; }
.final-alt { font-size: .98rem; color: rgba(255,255,255,.75); }
.final-alt a { color: var(--white); font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 64px var(--gutter) 110px; font-size: .95rem; }
.footer > * { max-width: var(--maxw); margin-inline: auto; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: grid; gap: 12px; }
.footer-brand img { width: 64px; }
.footer-brand strong { color: var(--white); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.footer-ced { font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.5); }

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: #1f8f5f; color: var(--white);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 15px 22px 15px 18px; border-radius: 999px;
  box-shadow: 0 16px 36px -12px rgba(0,0,0,.4);
  transform: translateY(140%); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s, background-color .25s;
}
.wa-float .ico { width: 1.5em; height: 1.5em; }
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { background: #197a50; }
html:not(.js) .wa-float { transform: none; opacity: 1; }
@media (max-width: 640px) {
  .wa-float { left: 16px; right: 16px; bottom: 14px; justify-content: center; padding: 16px; font-size: 1.05rem; }
}

/* ==========================================================================
   AVISO DE PRIVACIDAD
   ========================================================================== */
.legal { padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) var(--gutter) clamp(80px, 10vw, 130px); }
.legal-inner { max-width: 760px; margin-inline: auto; display: grid; gap: 18px; }
.legal-back { justify-self: start; font-weight: 600; font-size: .95rem; color: var(--brand); text-decoration: none; margin-bottom: 8px; }
.legal-back:hover { text-decoration: underline; }
.legal-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 2.6vw + 1rem, 3.1rem); line-height: 1.1; letter-spacing: -0.015em;
  color: var(--brand); text-wrap: balance; margin-bottom: 20px;
}
.legal-title em { color: var(--brand-2); }
.legal h2 {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--brand);
  margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.legal li::marker { color: var(--brand-2); }
.legal a:not(.legal-back) { color: var(--brand); font-weight: 600; }
