/* ============================================================================
   "RAÍZ" — sistema visual del Dr. Mario Agustín de Villa, geriatra.

   La premisa de diseño no es decorativa: este sitio lo leen adultos mayores y
   sus hijos de cincuenta y tantos, muchas veces desde un teléfono y con
   presbicia. Así que la legibilidad manda sobre todo lo demás.

     · Texto base de 18 px en móvil y 19 px en escritorio, no 16
     · Interlínea de 1.75 en los párrafos
     · Todo el texto por encima de 7:1 de contraste (AAA), no 4.5:1
     · Áreas de toque de 48 px, no 44
     · Los enlaces de texto van subrayados siempre, no solo al pasar el ratón
     · Ningún texto importante sobre fotografía

   La paleta sale del logotipo real: se muestrearon los píxeles del árbol.
   Verde salvia #B8C898 y lavanda #9880A8. Los dos son demasiado claros para
   texto (3.3:1), así que se usan únicamente como ornamento y se derivaron
   versiones profundas —ciruela #3B2D52 y hoja #455829— para lo que se lee.

   El gesto que distingue este sitio de los demás de la cartera es la "copa":
   los retratos y las figuras van en un marco con la parte superior redondeada
   como la copa de un árbol, y el logotipo es justo un árbol.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. FICHAS
--------------------------------------------------------------------------- */
:root {
  /* Tinta — todo esto es para leer */
  --ink:        #241C2E;   /* 15.6:1 sobre crema */
  --ink-2:      #4A4055;   /*  9.3:1 */
  --plum:       #3B2D52;   /* 11.9:1 — titulares */
  --plum-link:  #584078;   /*  8.3:1 — enlaces */
  --leaf-deep:  #455829;   /*  7.5:1 — acento */

  /* Ornamento — nunca texto */
  --lav:        #9880A8;
  --lav-soft:   #EFEAF3;
  --lav-line:   #DED3E6;
  --leaf:       #B8C898;
  --leaf-soft:  #EEF2E3;
  --leaf-line:  #D8E2C3;

  /* Superficies */
  --cream:      #FBF9F5;
  --paper:      #FFFFFF;
  --tint:       #F4F1EA;
  --deep:       #2E2440;   /* secciones oscuras */
  --deep-2:     #211A30;
  --on-deep:    #FBF9F5;   /* 13.8:1 */
  --leaf-lt:    #C9D7AC;   /*  9.6:1 sobre --deep */
  --lav-lt:     #CFC1DC;   /*  8.5:1 sobre --deep */

  /* Acciones */
  --btn:        #4A3A63;
  --btn-h:      #392C4D;
  --wa:         #1C7C4A;
  --wa-h:       #16663C;

  /* Métrica */
  --wrap:       74rem;
  --narrow:     50rem;
  --gap:        clamp(1.25rem, 3vw, 2.25rem);
  --sec:        clamp(4rem, 9vw, 7.5rem);
  --r:          18px;
  --r-lg:       26px;
  --copa:       999px 999px 26px 26px;   /* el marco "copa de árbol" */

  --sh-1:       0 1px 2px rgba(36,28,46,.06), 0 4px 14px rgba(36,28,46,.06);
  --sh-2:       0 2px 6px rgba(36,28,46,.07), 0 16px 40px rgba(36,28,46,.10);
  --sh-3:       0 30px 70px rgba(36,28,46,.16);

  --ease:       cubic-bezier(.22,.61,.36,1);
}

/* ---------------------------------------------------------------------------
   2. BASE
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 420;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 19px; } }

img, svg, iframe, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  color: var(--plum);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Los enlaces de texto van subrayados SIEMPRE. En un sitio para adultos
   mayores, "se ve distinto al pasar el ratón" no es una señal utilizable. */
a { color: var(--plum-link); text-underline-offset: .22em; text-decoration-thickness: from-font; }
a:hover { color: var(--ink); }

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

::selection { background: var(--lav-soft); color: var(--plum); }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -6rem; z-index: 200;
  background: var(--plum); color: #fff; padding: .9rem 1.4rem;
  border-radius: 12px; text-decoration: none; font-weight: 650;
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------------------------------------------------------------------------
   3. RETÍCULA
--------------------------------------------------------------------------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(100% - 3.5rem, var(--wrap)); } }
.wrap--narrow { max-width: var(--narrow); }
.section { padding-block: var(--sec); position: relative; }
.section--tint  { background: var(--tint); }
.section--paper { background: var(--paper); }
.section--leaf  { background: var(--leaf-soft); }
.section--lav   { background: var(--lav-soft); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.15rem; }
.mt-s { margin-top: 1.5rem; } .mt-m { margin-top: 2.25rem; }

/* ---------------------------------------------------------------------------
   4. TIPOGRAFÍA DE PÁGINA
--------------------------------------------------------------------------- */
.h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); }
.h2 { font-size: clamp(1.95rem, 4.4vw, 3.05rem); }
.h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.h4 { font-size: clamp(1.12rem, 1.8vw, 1.28rem); }
h1 em, h2 em, h3 em, .h1 em, .h2 em, .h3 em {
  font-style: italic;
  color: var(--leaf-deep);
  font-weight: 500;
}
.lead {
  font-size: clamp(1.1rem, 1.9vw, 1.28rem);
  line-height: 1.7;
  color: var(--ink-2);
}
.muted { color: var(--ink-2); }
.small { font-size: .9rem; line-height: 1.6; }

/* La etiqueta de sección lleva una ramita: el guiño al árbol del logotipo,
   en lugar de la línea horizontal o el punto que usan los otros sitios. */
.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--leaf-deep);
}
.label::before {
  content: ""; flex: none; width: 22px; height: 22px;
  background: var(--leaf-deep);
  -webkit-mask: var(--rama) center/contain no-repeat;
  mask: var(--rama) center/contain no-repeat;
}
:root {
  --rama: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22V6" stroke="black" stroke-width="2" stroke-linecap="round" fill="none"/><path d="M12 12c0-3 2.2-5.4 5.4-5.4C17.4 9.8 15.2 12 12 12Z" fill="black"/><path d="M12 16c0-2.6-1.9-4.6-4.6-4.6C7.4 14 9.4 16 12 16Z" fill="black"/><path d="M12 7.2c0-2.6 1.6-4.4 4-4.4 0 2.6-1.6 4.4-4 4.4Z" fill="black"/></svg>');
}
.label--light { color: var(--leaf-lt); }
.label--light::before { background: var(--leaf-lt); }
.label--plain::before { display: none; }

.shead { max-width: 60rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.shead .h2 { margin-top: .7rem; }
.shead .lead { margin-top: 1.1rem; }
.shead__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }

/* ---------------------------------------------------------------------------
   5. BOTONES — 48 px de alto mínimo
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.7rem;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn); color: #fff;
  font-family: inherit; font-size: 1.02rem; font-weight: 650;
  letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--sh-1);
}
.btn:hover { background: var(--btn-h); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 21px; height: 21px; flex: none; }

.btn--wa { background: var(--wa); }
.btn--wa:hover { background: var(--wa-h); }
.btn--ghost {
  background: transparent; color: var(--plum);
  border-color: var(--lav-line); box-shadow: none;
}
.btn--ghost:hover { background: var(--lav-soft); color: var(--plum); border-color: var(--lav); }
.btn--light { background: var(--cream); color: var(--plum); }
.btn--light:hover { background: #fff; color: var(--plum); }
.btn--sm { min-height: 48px; padding: .7rem 1.3rem; font-size: .96rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-a {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-weight: 650; color: var(--plum-link); text-decoration: none;
  border-bottom: 2px solid var(--lav-line); padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-a:hover { border-color: var(--plum-link); gap: .8rem; }
.link-a svg { width: 19px; height: 19px; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--lav-line);
  font-size: .9rem; font-weight: 550; color: var(--ink-2);
}
.chip svg { width: 17px; height: 17px; color: var(--leaf-deep); flex: none; }
.chip--ink {
  background: rgba(251,249,245,.1); border-color: rgba(251,249,245,.26);
  color: var(--on-deep);
}
.chip--ink svg { color: var(--leaf-lt); }

/* ---------------------------------------------------------------------------
   6. CABECERA
--------------------------------------------------------------------------- */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--leaf-deep), var(--lav));
  z-index: 120; transition: width .1s linear;
}
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,249,245,.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--lav-line); background: rgba(251,249,245,.95); }
.nav__in {
  width: min(100% - 2rem, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 78px;
}
@media (min-width: 640px) { .nav__in { width: min(100% - 3.5rem, var(--wrap)); } }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.16; }
.brand__name {
  font-family: "Newsreader", serif; font-size: 1.12rem;
  font-weight: 550; color: var(--plum); letter-spacing: -.012em;
}
.brand__role {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--leaf-deep);
}

.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: .25rem; }
@media (min-width: 1080px) { .nav__links { display: flex; align-items: center; } }
.nav__links > li { position: relative; }
.nav__links > li > a {
  display: flex; align-items: center; gap: .3rem;
  padding: .7rem .9rem; border-radius: 12px;
  font-size: .97rem; font-weight: 600; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__links > li > a:hover { background: var(--lav-soft); color: var(--plum); }
.nav__links > li > a[aria-current="page"] { color: var(--leaf-deep); }
.has-sub > a::after {
  content: ""; width: 9px; height: 9px; margin-left: .15rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--ease);
}
.has-sub:hover > a::after, .has-sub:focus-within > a::after { transform: rotate(225deg) translate(-3px, -3px); }

.dropdown {
  position: absolute; top: calc(100% + .35rem); left: 50%;
  translate: -50% 0;
  background: var(--paper); border: 1px solid var(--lav-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  padding: 1.35rem; min-width: 22rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub:hover .dropdown, .has-sub:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; min-width: 43rem; }
.dropdown__h {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--leaf-deep);
  margin: 0 0 .6rem; padding-left: .6rem;
}
.dropdown a {
  display: block; padding: .6rem; border-radius: 12px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  line-height: 1.35;
  transition: background .16s var(--ease);
}
.dropdown a span {
  display: block; font-weight: 420; font-size: .83rem;
  color: var(--ink-2); margin-top: .1rem; line-height: 1.45;
}
.dropdown a:hover { background: var(--leaf-soft); color: var(--plum); }
.dropdown__foot {
  grid-column: 1 / -1; border-top: 1px solid var(--lav-line);
  padding-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem;
}
.nav__cta { display: none; }
@media (min-width: 1080px) { .nav__cta { display: inline-flex; } }

.burger {
  display: grid; place-content: center; gap: 5px;
  width: 52px; height: 52px; padding: 0;
  background: var(--paper); border: 1px solid var(--lav-line);
  border-radius: 14px; cursor: pointer;
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger span {
  display: block; width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--plum); transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------------------------------------------------------------------
   7. MENÚ MÓVIL — pantalla completa
--------------------------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream);
  display: flex; flex-direction: column;
  padding: 92px 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.menu__list > li { border-bottom: 1px solid var(--lav-line); }
.menu__list > li > a {
  display: flex; align-items: center; gap: .9rem;
  min-height: 60px; padding: .9rem .25rem;
  font-family: "Newsreader", serif; font-size: 1.5rem; font-weight: 500;
  color: var(--plum); text-decoration: none;
}
.menu__list .num {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  color: var(--leaf-deep); font-family: "Figtree", sans-serif;
}
.menu__sub { padding: 0 0 1.1rem .25rem; }
.menu__h {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--leaf-deep); margin: .5rem 0 .35rem;
}
.menu__sub a {
  display: block; min-height: 48px; padding: .65rem .25rem;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: 1rem;
}
.menu__foot { margin-top: auto; display: grid; gap: .7rem; }

/* ---------------------------------------------------------------------------
   8. BARRA FIJA MÓVIL
--------------------------------------------------------------------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(251,249,245,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--lav-line);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.actionbar.is-on { transform: translateY(0); }
@media (min-width: 1080px) { .actionbar { display: none; } }
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; border-radius: 14px;
  background: var(--btn); color: #fff;
  font-weight: 650; font-size: .98rem; text-decoration: none;
}
.actionbar a.is-wa { background: var(--wa); }
.actionbar svg { width: 20px; height: 20px; }
body.has-bar { padding-bottom: 76px; }
@media (min-width: 1080px) { body.has-bar { padding-bottom: 0; } }

/* ---------------------------------------------------------------------------
   9. PORTADA
--------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) var(--sec); overflow: hidden; }
.hero__aura {
  position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(52% 44% at 76% 12%, rgba(184,200,152,.40), transparent 68%),
    radial-gradient(46% 40% at 16% 4%, rgba(152,128,168,.28), transparent 66%);
  pointer-events: none; z-index: 0;
}
/* Textura de "hojas": puntos sueltos, muy tenues, que dan vida al fondo sin
   competir con el texto. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(69,88,41,.16) 1.6px, transparent 1.7px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 62%);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .86rem; color: var(--ink-2); margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--lav-line); }
.breadcrumb a:hover { color: var(--plum); border-color: var(--plum); }
.breadcrumb span[aria-hidden] { color: var(--lav); }

.hero .h1 { margin-block: .7rem 1.1rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.9rem; }

/* La "copa": marco con la parte de arriba redondeada como la copa de un árbol.
   Es el gesto que distingue este sitio de los demás de la cartera. */
.copa {
  position: relative; border-radius: var(--copa); overflow: hidden;
  background: var(--lav-soft); box-shadow: var(--sh-3);
  aspect-ratio: 4 / 5;
}
.copa img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.copa--sm { aspect-ratio: 1 / 1; }

.hero__fig { position: relative; }
.hero__fig::before {
  content: ""; position: absolute; inset: -14px -14px 40px -14px;
  border: 2px solid var(--leaf-line); border-radius: var(--copa);
  z-index: -1;
}
/* Tarjeta de calificación colgada del retrato */
.hero__badge {
  position: absolute; right: -.5rem; bottom: 1.4rem;
  background: var(--paper); border: 1px solid var(--lav-line);
  border-radius: 18px; padding: .85rem 1.1rem;
  box-shadow: var(--sh-2); display: flex; align-items: center; gap: .75rem;
  max-width: 15rem;
}
.hero__badge b { font-family: "Newsreader", serif; font-size: 1.6rem; color: var(--plum); line-height: 1; }
/* `:not(.stars)` no es un adorno. La tarjeta lleva un <span> de texto que
   contiene el <span class="stars"> de las cinco estrellas, y un selector
   descendente `.hero__badge span` gana en especificidad a `.stars`: le impone
   display:block y el gris del texto, con lo que las estrellas se apilan en
   vertical y pierden el dorado. Lo mismo aplica en .rev-score, más abajo. */
.hero__badge span:not(.stars) { display: block; font-size: .78rem; color: var(--ink-2); line-height: 1.35; }
.stars { display: inline-flex; gap: 1px; color: #D9A227; }
.stars svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------------------
   10. TARJETAS
--------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--lav-line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--leaf-line); }
.card h3 { font-size: 1.24rem; }
.card p { color: var(--ink-2); font-size: .98rem; line-height: 1.68; }
.card .link-a { margin-top: auto; align-self: flex-start; font-size: .94rem; }

.card__ico {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-content: center;
  background: var(--leaf-soft); color: var(--leaf-deep);
  border: 1px solid var(--leaf-line);
}
.card__ico svg { width: 26px; height: 26px; }
.card--lav .card__ico { background: var(--lav-soft); color: var(--plum-link); border-color: var(--lav-line); }

.card--img { padding: 0; overflow: hidden; }
.card--img > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card--img > .card__body {
  padding: clamp(1.35rem, 2.4vw, 1.75rem);
  display: flex; flex-direction: column; gap: .7rem; flex: 1;
}

/* Lista numerada de pasos */
.pasos { counter-reset: p; display: grid; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.pasos li {
  position: relative; padding-left: 4rem;
  min-height: 3rem;
}
.pasos li::before {
  counter-increment: p; content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--lav-soft); color: var(--plum);
  border: 1px solid var(--lav-line);
  font-family: "Newsreader", serif; font-size: 1.02rem; font-weight: 600;
}
.pasos h4 { margin-bottom: .25rem; }
.pasos p { color: var(--ink-2); font-size: .98rem; }

/* Lista de comprobación */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.65; }
.checks svg { width: 23px; height: 23px; flex: none; margin-top: .22rem; color: var(--leaf-deep); }

/* Señales de alarma */
.alarma {
  background: var(--paper); border: 1px solid var(--lav-line);
  border-left: 5px solid var(--leaf-deep);
  border-radius: var(--r); padding: clamp(1.4rem, 2.6vw, 2rem);
}
.alarma ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .8rem; }
@media (min-width: 720px) { .alarma ul { grid-template-columns: 1fr 1fr; gap: .8rem 1.8rem; } }
.alarma li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.6; font-size: .98rem; }
.alarma li::before {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: .62rem;
  border-radius: 50%; background: var(--leaf-deep);
}
.alarma__h { display: flex; align-items: center; gap: .7rem; }
.alarma__h svg { width: 26px; height: 26px; color: var(--leaf-deep); flex: none; }

/* ---------------------------------------------------------------------------
   11. BLOQUE EDITORIAL (texto + imagen)
--------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 4.5vw, 3.75rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--wide-l { }
@media (min-width: 900px) { .split--wide-l { grid-template-columns: 1.15fr .85fr; } }
.split--flip > :first-child { order: 2; }
@media (max-width: 899px) { .split--flip > :first-child { order: 0; } }

.figure { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure--copa { border-radius: var(--copa); }
.figure--tall img { aspect-ratio: 4 / 5; }

/* ---------------------------------------------------------------------------
   12. OPINIONES
--------------------------------------------------------------------------- */
.rev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.4rem; }
.rev-score { display: inline-flex; align-items: center; gap: .6rem; }
.rev-score b { font-family: "Newsreader", serif; font-size: 1.7rem; color: var(--plum); line-height: 1; }
.rev-score span:not(.stars) { font-size: .88rem; color: var(--ink-2); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 25rem);
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; margin-inline: -1rem; padding-inline: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--lav-line) transparent;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 1000px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.rail-nav { display: flex; gap: .5rem; }
@media (min-width: 1000px) { .rail-nav { display: none; } }
.rail-nav button {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--lav-line);
  color: var(--plum); cursor: pointer; display: grid; place-content: center;
}
.rail-nav button:hover { background: var(--lav-soft); }
.rail-nav svg { width: 21px; height: 21px; }

.rev {
  position: relative; margin: 0;
  background: var(--paper); border: 1px solid var(--lav-line);
  border-radius: var(--r-lg); padding: 2rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; gap: .9rem;
}
.rev__mark {
  position: absolute; top: .1rem; right: 1.3rem;
  font-family: "Newsreader", serif; font-size: 4.5rem; line-height: 1;
  color: var(--leaf); opacity: .7;
}
.rev blockquote { margin: 0; }
.rev blockquote p { font-size: 1.02rem; line-height: 1.7; color: var(--ink); }
.rev__foot { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: .5rem; }
.rev__av {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-content: center;
  background: var(--lav-soft); color: var(--plum);
  font-family: "Newsreader", serif; font-size: 1.2rem; font-weight: 600;
  border: 1px solid var(--lav-line);
}
.rev__who b { display: block; font-size: .96rem; color: var(--ink); font-weight: 650; }
.rev__who span { display: block; font-size: .82rem; color: var(--ink-2); }

/* Origen de la opinión, arriba de la tarjeta */
.rev__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.rev__src {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--leaf-deep); background: var(--leaf-soft);
  border: 1px solid var(--leaf-line); border-radius: 999px; padding: .22rem .6rem;
}

/* ---------------------------------------------------------------------------
   12-bis. FRANJA DE OPINIONES BAJO LA PORTADA
   Prueba social en el primer scroll. Quien busca geriatra llega comparando y
   asustado: antes del currículum quiere saber si trataron bien a la abuela de
   alguien más.
--------------------------------------------------------------------------- */
.section--strip {
  background: var(--lav-soft);
  border-block: 1px solid var(--lav-line);
  padding-block: clamp(2.25rem, 4.5vw, 3.25rem);
}
.strip__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.75rem;
  margin-bottom: 1.6rem;
}
.strip__head .h3 { flex: 1 1 18rem; margin: 0; }
.strip__head .link-a { margin-left: auto; }
.strip__score { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.strip__score b {
  font-family: "Newsreader", serif; font-size: 2.1rem; line-height: 1;
  color: var(--plum);
}
.strip__n { font-size: .86rem; color: var(--ink-2); }
.rail--strip { grid-auto-columns: min(80vw, 23rem); }
@media (min-width: 1000px) {
  .rail--strip { grid-template-columns: repeat(3, 1fr); }
}
.rail--strip .rev { padding: 1.5rem 1.4rem 1.3rem; }
.rail--strip .rev blockquote p { font-size: .97rem; }

/* ---------------------------------------------------------------------------
   12-ter. FILTROS DE LA PÁGINA DE OPINIONES
--------------------------------------------------------------------------- */
.filtros { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filtro {
  min-height: 48px; padding: .6rem 1.15rem; border-radius: 999px;
  background: var(--paper); border: 2px solid var(--lav-line);
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.filtro:hover { border-color: var(--lav); background: var(--lav-soft); }
.filtro[aria-pressed="true"] {
  background: var(--btn); border-color: var(--btn); color: #fff;
}
.grid-resenas {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  align-items: start;
}
.grid-resenas .rev[hidden] { display: none; }
.sin-resultados { color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   12-quater. AUTORÍA DE LA PÁGINA
--------------------------------------------------------------------------- */
.autor {
  display: grid; gap: 1.5rem; align-items: start;
  background: var(--paper); border: 1px solid var(--lav-line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 640px) { .autor { grid-template-columns: auto 1fr; gap: 1.75rem; } }
.autor__foto {
  width: 104px; height: 104px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--leaf-soft);
}
.autor__txt > * + * { margin-top: .6rem; }
.autor__txt .h3 { margin-top: .5rem; }
.autor__txt p { line-height: 1.7; }

/* ---------------------------------------------------------------------------
   13. PREGUNTAS FRECUENTES
--------------------------------------------------------------------------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: var(--paper); border: 1px solid var(--lav-line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--leaf-line); box-shadow: var(--sh-1); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; min-height: 56px;
  font-family: "Newsreader", serif; font-size: 1.16rem; font-weight: 500;
  color: var(--plum); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px; margin-top: .42rem;
  border-right: 2.5px solid var(--leaf-deep); border-bottom: 2.5px solid var(--leaf-deep);
  transform: rotate(45deg); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__body { padding: 0 1.35rem 1.35rem; color: var(--ink-2); }
.faq__body p { font-size: 1rem; line-height: 1.72; }

/* ---------------------------------------------------------------------------
   14. CONSULTORIO
--------------------------------------------------------------------------- */
.sedes { display: grid; gap: var(--gap); }
.sede {
  background: var(--paper); border: 1px solid var(--lav-line);
  border-radius: var(--r-lg); overflow: hidden;
  display: grid;
}
@media (min-width: 860px) { .sede { grid-template-columns: 1fr 1fr; } }
.sede__map { min-height: 17rem; background: var(--tint); }
.sede__map iframe { width: 100%; height: 100%; min-height: 17rem; border: 0; }
.sede__body { padding: clamp(1.5rem, 2.8vw, 2.25rem); display: flex; flex-direction: column; gap: .7rem; }
.sede__ciudad {
  font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--leaf-deep);
}
.sede h3 { font-size: 1.5rem; }
.sede p { color: var(--ink-2); font-size: .98rem; }
.sede .btn-row { margin-top: .5rem; }

.datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.datos li { display: flex; gap: .95rem; align-items: flex-start; }
.datos svg { width: 24px; height: 24px; flex: none; margin-top: .18rem; color: var(--leaf-deep); }
.datos b { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .1rem; }
.datos a { font-weight: 600; }

/* ---------------------------------------------------------------------------
   15. FORMULARIO
--------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .92rem; font-weight: 650; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 16px;            /* 16 px exactos: por debajo, iOS hace zoom al enfocar */
  min-height: 52px; padding: .8rem 1rem;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--lav-line); border-radius: 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--plum-link);
  box-shadow: 0 0 0 4px rgba(88,64,120,.14);
}
.field small { font-size: .84rem; color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   16. LLAMADA FINAL
--------------------------------------------------------------------------- */
.cta { background: var(--deep); color: var(--on-deep); overflow: hidden; position: relative; }
.cta__aura {
  position: absolute; inset: auto -20% -60% -20%; height: 130%;
  background:
    radial-gradient(44% 46% at 24% 92%, rgba(184,200,152,.28), transparent 68%),
    radial-gradient(44% 46% at 78% 96%, rgba(152,128,168,.30), transparent 68%);
  pointer-events: none;
}
.cta__in { position: relative; text-align: center; max-width: 52rem; }
.cta h2 { color: var(--on-deep); }
.cta h2 em { color: var(--leaf-lt); }
.cta .lead { color: rgba(251,249,245,.84); }
.cta__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 2.1rem; }

/* ---------------------------------------------------------------------------
   17. ENLACES INTERNOS
--------------------------------------------------------------------------- */
.links-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.links-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  min-height: 56px; padding: .85rem 1.15rem;
  background: var(--paper); border: 1px solid var(--lav-line); border-radius: 14px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.links-grid a:hover { border-color: var(--leaf-line); background: var(--leaf-soft); transform: translateX(3px); color: var(--plum); }
.links-grid svg { width: 18px; height: 18px; flex: none; color: var(--leaf-deep); }

/* ---------------------------------------------------------------------------
   18. PIE
--------------------------------------------------------------------------- */
.foot { background: var(--deep-2); color: rgba(251,249,245,.80); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1100px) { .foot__grid { grid-template-columns: 1.4fr 1.05fr .9fr .9fr 1.05fr; } }
.foot h4 {
  color: var(--leaf-lt); font-family: "Figtree", sans-serif;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .93rem; }
.foot a { color: rgba(251,249,245,.86); text-decoration: none; border-bottom: 1px solid rgba(251,249,245,.2); }
.foot a:hover { color: #fff; border-color: var(--leaf-lt); }
.foot__badge {
  display: grid; place-content: center; width: 72px; height: 72px;
  border-radius: 20px; background: rgba(251,249,245,.94); margin-bottom: 1rem;
}
.foot__badge img { width: 56px; height: 56px; object-fit: contain; }
.foot__name { font-family: "Newsreader", serif; font-size: 1.28rem; color: var(--on-deep); margin: 0 0 .3rem; }
.foot__role { font-size: .9rem; line-height: 1.6; margin: 0; }
.foot__note { font-size: .85rem; line-height: 1.68; }
.foot__bar {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(251,249,245,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .85rem;
}
.foot__bar p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------------------------------------------------------------------------
   19. MAPA DEL SITIO
--------------------------------------------------------------------------- */
.mapa { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .mapa { grid-template-columns: 1fr 1fr; } }
.mapa h3 { font-size: 1.3rem; margin-bottom: .9rem; }
.mapa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.mapa a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--lav-line); font-weight: 550; }
.mapa a:hover { color: var(--plum); border-color: var(--plum); }

/* ---------------------------------------------------------------------------
   19-bis. ÁREAS DE TOQUE
   La premisa del sitio es que lo usan adultos mayores y sus hijos, muchos con
   presbicia y desde el teléfono. Los enlaces de navegación principales ya están
   a 48 px, pero los del pie, la miga de pan y los enlaces de texto quedaban en
   19-25 px de alto, que en esta población es un objetivo difícil de acertar.
   Aquí se les da cuerpo, sobre todo en móvil.
--------------------------------------------------------------------------- */
.foot ul a, .foot__links a { display: inline-block; padding-block: .3rem; }
.datos a { display: inline-block; padding-block: .2rem; }

@media (max-width: 899px) {
  .foot ul { gap: .1rem; }
  .foot ul a, .foot__links a { padding-block: .75rem; }
  .foot__links { gap: .4rem 1.25rem; }
  .breadcrumb { gap: .2rem .45rem; }
  .breadcrumb a { display: inline-block; padding-block: .6rem; }
}

/* ---------------------------------------------------------------------------
   19-ter. PÁGINA /opinion/ — pedir la opinión del paciente
   Tarjeta suelta, sin menú ni pie: se abre desde un QR en recepción o desde un
   WhatsApp tras la consulta, y sirve para una sola cosa.

   IMPORTANTE: el enlace a Google se muestra con CUALQUIER calificación. Mandar
   a Google solo a quien califica bien y desviar a un formulario a quien
   califica mal es «review gating», lo prohíben las políticas de Google y puede
   costar la eliminación de las reseñas o la suspensión de la ficha.
--------------------------------------------------------------------------- */
.op [hidden] { display: none !important; }
.op { background: var(--tint); min-height: 100vh; }
.op__wrap {
  min-height: 100vh; display: grid; place-items: center;
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
}
.op__card {
  width: min(100%, 36rem); background: var(--paper);
  border: 1px solid var(--lav-line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: var(--sh-3); text-align: center;
}
.op__logo { display: flex; justify-content: center; margin-bottom: 1.1rem; }
.op__logo img { height: 64px; width: auto; }
.op h1, .op h2 { font-size: clamp(1.45rem, 5.2vw, 1.95rem); margin: 0 0 .6rem; }
.op h1 em { font-style: normal; color: var(--leaf-deep); }
.op__ubic { color: var(--ink-2); margin: 0 0 1.5rem; font-size: 1rem; }
.op__opciones {
  border: 0; padding: 0; margin: 0 0 1.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
}
@media (min-width: 560px) { .op__opciones { grid-template-columns: repeat(4, 1fr); } }
.op__op {
  position: relative; cursor: pointer;
  display: grid; justify-items: center; gap: .2rem;
  padding: 1rem .5rem; min-height: 104px;
  border: 2px solid transparent; border-radius: 18px; background: var(--tint);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.op__op:hover { background: var(--lav-soft); transform: translateY(-2px); }
.op__op input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.op__op:has(input:checked) { border-color: var(--btn); background: var(--lav-soft); }
.op__op:has(input:focus-visible) { outline: 3px solid var(--plum-link); outline-offset: 3px; }
.op__emoji { font-size: 2.3rem; line-height: 1.1; }
.op__txt { font-weight: 700; font-size: .95rem; color: var(--ink); }
.op__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; min-height: 54px; padding: .9rem 1.4rem;
  border: 2px solid transparent; border-radius: 16px;
  background: var(--btn); color: #fff;
  font: inherit; font-weight: 650; font-size: 1.02rem;
  cursor: pointer; text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
.op__btn:hover { background: var(--btn-h); color: #fff; transform: translateY(-1px); }
.op__btn:disabled { background: var(--lav-line); color: var(--ink-2); cursor: not-allowed; transform: none; }
.op__btn--google { background: var(--leaf-deep); }
.op__btn--google:hover { background: #374619; }
.op__btn--chico {
  width: auto; min-height: 48px; padding: .6rem 1.4rem;
  font-size: .97rem; border-radius: 999px; justify-self: center;
}
.op__btn--sec { background: transparent; color: var(--plum); border-color: var(--lav-line); }
.op__btn--sec:hover { background: var(--lav-soft); color: var(--plum); }
.op__gracias { margin: 1.1rem 0 0; color: var(--ink-2); font-size: .95rem; }
.op__acciones { display: grid; gap: .7rem; margin-top: .5rem; justify-items: center; }
.op__form { text-align: left; margin-top: 1.35rem; display: grid; gap: .45rem; }
.op__form label { font-weight: 650; font-size: .93rem; color: var(--ink); margin-top: .45rem; }
.op__form input, .op__form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: .85rem 1rem;
  border: 2px solid var(--lav-line); border-radius: 14px;
  background: var(--paper); color: var(--ink);
}
.op__form input:focus, .op__form textarea:focus {
  outline: none; border-color: var(--plum-link);
  box-shadow: 0 0 0 4px rgba(88,64,120,.14);
}
.op__nota { font-size: .88rem; color: var(--ink-2); margin: 0; line-height: 1.6; }
.op__form .op__btn { margin-top: .7rem; }
.op__pie { text-align: center; margin: 1.1rem 0 0; font-size: .86rem; }
.op__pie a { color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   20. ANIMACIÓN
--------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-d1.is-in { transition-delay: .07s; }
.reveal-d2.is-in { transition-delay: .14s; }
.reveal-d3.is-in { transition-delay: .21s; }
.reveal-d4.is-in { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   21. IMPRESIÓN — una familia imprime la dirección y el horario
--------------------------------------------------------------------------- */
@media print {
  .nav, .menu, .actionbar, .progress, .rail-nav, .cta, .hero__aura, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
