/* =============================================================
   Clínica Familiar Bosque Alto — sitio de muestra (Grupo ALICAM)
   Dirección: arcos de Coyoacán, salvia + roble, receta médica.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bosque: #1F362B;      /* tinta principal, secciones oscuras */
  --bosque-2: #16271F;    /* franja demo, pie */
  --salvia: #7E9A80;      /* acento frío, ilustraciones */
  --salvia-50: #E3E9DE;   /* fondo de sección suave */
  --lino: #F5F4EE;        /* fondo base */
  --papel: #FCFBF7;       /* tarjetas, receta */
  --roble: #8F5A2F;       /* acento cálido (texto ≥ 4.5:1 sobre lino) */
  --miel: #DDB27A;        /* acento sobre oscuro */
  --wa: #17804A;
  --texto: #2A3A31;
  --texto-suave: #55635A;
  --linea: rgba(31, 54, 43, .14);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --top-h: 112px;
  --r: 18px;
  --r-s: 10px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 1px 2px rgba(22, 39, 31, .06), 0 18px 40px -18px rgba(22, 39, 31, .28);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 12px);
  overflow-x: clip;
  interpolate-size: allow-keywords;
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--lino);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--bosque); text-wrap: balance; }
strong { font-weight: 650; }
address { font-style: normal; }
::selection { background: var(--bosque); color: var(--papel); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--papel); color: var(--bosque);
  border-radius: 8px; font-weight: 600; box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* =============================================================
   4. Typography helpers
   ============================================================= */
.section-head h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 60;
}
.section-head p { margin-top: 1rem; max-width: 46ch; color: var(--texto-suave); }

.link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.4rem; font-weight: 600; color: var(--roble);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .45s var(--ease-out);
}
.link:hover { background-size: 35% 1px; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --bg: transparent; --fg: var(--bosque);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem; letter-spacing: .005em; line-height: 1.1;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--solid { --bg: var(--bosque); --fg: var(--papel); }
.btn--solid:hover { --bg: #2B4A3B; box-shadow: 0 10px 24px -12px rgba(31,54,43,.7); transform: translateY(-1px); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(31,54,43,.28); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--bosque); --bg: rgba(31,54,43,.04); }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn--wa:hover { --bg: #136B3E; transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(23,128,74,.75); }
.btn .ico { transition: transform .4s var(--ease-out); }
.btn:hover .ico { transform: rotate(-8deg) scale(1.08); }

/* Arcos: el motivo de la casa (puertas y ventanas de Coyoacán) */
.arch {
  position: relative;
  overflow: hidden;
  background: var(--salvia-50);
  border-radius: 999px 999px var(--r-s) var(--r-s);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero, .arch--wide {
  /* arco rebajado: más ancho que alto */
  border-radius: 50% 50% var(--r-s) var(--r-s) / 26% 26% var(--r-s) var(--r-s);
}

/* =============================================================
   6. Top: franja demo + header
   ============================================================= */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
}
.demo-bar {
  display: block;
  padding: .45rem var(--gutter);
  background: var(--bosque-2); color: rgba(245,244,238,.78);
  font-size: .74rem; line-height: 1.4; text-align: center;
}
.demo-bar strong { color: var(--papel); font-weight: 600; }
.demo-bar__link {
  display: inline-block; margin-left: .55rem;
  color: var(--miel); font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid rgba(221,178,122,.4);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.demo-bar__link:hover { color: #F0CB98; border-color: currentColor; }

.nav {
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav__inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: 68px;
  transition: height .4s var(--ease-out);
}
.nav.is-scrolled { background: rgba(245,244,238,.94); box-shadow: 0 1px 0 var(--linea); }
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { background: rgba(245,244,238,.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-scrolled .nav__inner { height: 60px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--bosque); margin-right: auto; }
.brand__mark { width: 30px; height: 30px; color: var(--bosque); }
.brand__name {
  display: flex; flex-direction: column;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 30;
}
.brand__name small { font-family: var(--sans); font-size: .7rem; letter-spacing: .02em; color: var(--texto-suave); margin-top: .22rem; }

.nav__links { display: none; gap: 1.6rem; font-size: .95rem; font-weight: 500; }
.nav__links a { position: relative; padding-block: .3rem; color: var(--texto); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--roble);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: none; }

.nav__toggle {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(31,54,43,.2);
  transition: box-shadow .3s;
}
.nav__burger { position: relative; width: 18px; height: 10px; }
.nav__burger i {
  position: absolute; left: 0; right: 0; height: 1.6px; background: var(--bosque); border-radius: 2px;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.nav__burger i:first-child { top: 0; }
.nav__burger i:last-child { top: 8.4px; }
.nav__toggle[aria-expanded="true"] .nav__burger i:first-child { top: 4.2px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger i:last-child { top: 4.2px; transform: rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 40;
  padding: calc(var(--top-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--lino);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.menu[hidden] { display: flex; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--bosque);
  padding: .6rem 0; border-bottom: 1px solid var(--linea);
  transform: translateY(10px); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: .2s; }
.menu__foot p { margin-top: .9rem; text-align: center; font-size: .9rem; color: var(--texto-suave); }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: var(--lino); box-shadow: none; backdrop-filter: none; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--top-h) + 1.75rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__grid {
  display: grid; align-items: center;
  grid-template-areas: "kicker" "title" "media" "lead" "actions" "sign";
}
.hero__copy { display: contents; }
.hero__kicker { grid-area: kicker; justify-self: start; }
.hero__title { grid-area: title; }
.hero__media { grid-area: media; margin-top: 1.6rem; }
.hero__lead { grid-area: lead; }
.hero__actions { grid-area: actions; }
.hero__sign { grid-area: sign; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .92rem; font-weight: 500; color: var(--roble);
}
.hero__kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hero__title {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 10.4vw, 5.9rem);
  font-weight: 340;
  line-height: .98;
  letter-spacing: -0.032em;
  font-variation-settings: "opsz" 72;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { margin-top: 2.6rem; max-width: 38ch; font-size: 1.12rem; color: var(--texto-suave); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }
.hero__actions .btn--solid { flex: 1 1 auto; }
.hero__sign {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 1.9rem; font-size: .86rem; line-height: 1.35; color: var(--texto-suave);
}
.hero__sign img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 3px var(--papel), 0 0 0 4px var(--linea); }
.hero__sign strong { display: block; color: var(--bosque); font-size: .95rem; }

.hero__media { position: relative; }
.arch--hero { aspect-ratio: 6 / 5; }
.arch--hero img { object-position: 50% 40%; }

.ticket {
  position: absolute; left: -.25rem; bottom: -1.4rem;
  padding: .8rem 1rem .9rem;
  background: var(--papel); border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: .85rem;
}
.ticket__head { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--bosque); }
.ticket__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2F9E64; }
.ticket__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #2F9E64;
  animation: pulse 2.4s var(--ease-soft) infinite;
}
.ticket__slots { display: flex; gap: .4rem; margin-top: .55rem; }
.ticket__slots li {
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--salvia-50); color: var(--bosque);
  font-variant-numeric: tabular-nums; font-weight: 500;
}

/* Franja de confianza */
.trust {
  display: grid; gap: 0;
  margin-top: clamp(3.5rem, 7vw, 5rem);
}
.trust li {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1rem 0; border-top: 1px solid var(--linea);
  font-size: .98rem; color: var(--texto-suave); line-height: 1.45;
}
.trust .ico { width: 24px; height: 24px; color: var(--roble); margin-top: .05rem; }
.trust strong { color: var(--bosque); font-weight: 650; }

/* =============================================================
   8. Servicios
   ============================================================= */
.services { padding-block: clamp(4rem, 9vw, 7.5rem); }
.services__grid { display: grid; gap: 2.5rem; }
.svc { border-bottom: 1px solid var(--linea); }
.svc__item {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--linea);
}
.svc__item::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--roble); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.svc__item:hover::before { transform: scaleX(1); }
.svc__ico {
  width: 44px; height: 44px; padding: 8px;
  border-radius: 50%; background: var(--salvia-50);
  fill: none; stroke: var(--bosque); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: background-color .4s var(--ease-out), stroke .4s var(--ease-out), transform .5s var(--ease-out);
}
.svc__item:hover .svc__ico { background: var(--bosque); stroke: var(--papel); transform: rotate(-6deg); }
.svc h3 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
.svc p { margin-top: .45rem; color: var(--texto-suave); max-width: 52ch; }
.svc__meta {
  display: inline-block; margin-top: .75rem;
  font-size: .84rem; font-weight: 600; color: var(--roble);
}

/* =============================================================
   9. Doctora
   ============================================================= */
.doctor { background: var(--salvia-50); padding-block: clamp(4rem, 9vw, 7.5rem); }
.doctor__grid { display: grid; gap: 2.5rem; align-items: start; }
.doctor__media { max-width: 460px; }
.arch--portrait { aspect-ratio: 4 / 5; }
.arch--portrait img { object-position: 50% 30%; }
.doctor__media figcaption { margin-top: .8rem; font-size: .85rem; color: var(--texto-suave); }
.doctor__copy h2 {
  font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.02; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 66;
}
.doctor__lead {
  margin-top: 1.4rem;
  font-family: var(--serif); font-size: 1.32rem; line-height: 1.45; color: var(--bosque);
  font-variation-settings: "opsz" 20;
  max-width: 34ch;
}
.doctor__copy > p:not(.doctor__lead) { margin-top: 1rem; max-width: 52ch; color: var(--texto-suave); }
.doctor__quote {
  margin-top: 2rem; padding-left: 1.2rem; border-left: 2px solid var(--roble);
}
.doctor__quote p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.4; color: var(--roble); max-width: 34ch; }

.timeline { margin-top: 2.4rem; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: .8rem;
  padding: .85rem 0; border-top: 1px solid var(--linea);
  font-size: .96rem; line-height: 1.45;
}
.timeline__year { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--roble); line-height: 1.25; font-variant-numeric: oldstyle-nums; }

/* =============================================================
   10. Consultorio (mosaico)
   ============================================================= */
.place { padding-block: clamp(4rem, 9vw, 7.5rem); }
.place__head { margin-bottom: 2.2rem; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.mosaic figure { position: relative; overflow: hidden; border-radius: var(--r); background: var(--salvia-50); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mosaic figure:hover img { transform: scale(1.035); }
.mosaic__a { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.mosaic figure.mosaic__a { border-radius: 50% 50% var(--r) var(--r) / 30% 30% var(--r) var(--r); }
.mosaic__b, .mosaic__c { aspect-ratio: 4 / 5; }
.mosaic figcaption {
  position: absolute; left: .7rem; bottom: .7rem;
  padding: .3rem .65rem; border-radius: 999px;
  background: rgba(252,251,247,.9); color: var(--bosque);
  font-size: .78rem; font-weight: 500;
}

/* =============================================================
   11. Agendar + receta
   ============================================================= */
.book {
  background: var(--bosque); color: rgba(245,244,238,.82);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.book h2, .book h3 { color: var(--papel); }
.book__grid { display: grid; gap: 3rem; align-items: start; }
.book__steps h2 {
  font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.03; letter-spacing: -0.022em;
  font-variation-settings: "opsz" 64;
  max-width: 13ch;
}
.steps { margin: 2.2rem 0 2.4rem; display: grid; }
.steps li {
  display: grid; grid-template-columns: 52px 1fr; gap: 1rem;
  padding: 1.25rem 0; border-top: 1px solid rgba(245,244,238,.14);
}
.steps__n {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(221,178,122,.5); color: var(--miel);
  font-family: var(--serif); font-size: 1.35rem; line-height: 1;
}
.steps h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; letter-spacing: 0; }
.steps p { margin-top: .3rem; font-size: .98rem; max-width: 44ch; }

.rx {
  position: relative;
  background: var(--papel); color: var(--texto);
  border-radius: 6px;
  padding: 1.6rem 1.35rem 1.4rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55), 0 2px 0 rgba(0,0,0,.08);
}
.rx__head {
  display: grid; grid-template-columns: 34px 1fr auto; gap: .75rem; align-items: center;
  padding-bottom: 1rem; margin-bottom: .4rem;
  border-bottom: 2px solid var(--bosque);
}
.rx__mark { width: 34px; height: 34px; color: var(--bosque); }
.rx__clinic { font-family: var(--serif); font-size: 1.12rem; line-height: 1.1; color: var(--bosque); }
.rx__doc { font-size: .8rem; color: var(--texto-suave); margin-top: .15rem; }
.rx__symbol { font-family: var(--serif); font-size: 2.6rem; line-height: .8; color: var(--roble); font-style: italic; }
.rx__title {
  margin-top: 1.35rem;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.3rem; color: var(--roble) !important;
}
.rx__list > div {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .55rem 0;
}
.rx__list dt { flex: 0 1 auto; font-weight: 500; color: var(--bosque); line-height: 1.3; }
.rx__list dt small { display: block; font-size: .8rem; font-weight: 400; color: var(--texto-suave); }
.rx__list > div::after { content: ""; order: 1; flex: 1 1 1rem; min-width: 1rem; border-bottom: 1.5px dotted rgba(31,54,43,.3); transform: translateY(-4px); }
.rx__list dd {
  order: 2; flex: none;
  font-family: var(--serif); font-size: 1.35rem; color: var(--bosque); font-variant-numeric: lining-nums tabular-nums;
}
.rx__list--hours dd { font-family: var(--sans); font-size: .95rem; font-weight: 500; text-align: right; line-height: 1.45; font-variant-numeric: tabular-nums; }
.rx__list--hours > div { align-items: flex-start; }
.rx__list--hours > div::after { align-self: center; transform: none; }
.rx__list--hours dt { white-space: nowrap; }
.rx__pay {
  margin-top: .8rem; padding: .7rem .85rem;
  background: var(--salvia-50); border-radius: 8px;
  font-size: .9rem; color: var(--bosque);
}
.rx__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  margin-top: 1.6rem; padding-top: .8rem;
  font-size: .76rem; color: var(--texto-suave);
}
.rx__sig {
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--bosque);
  padding: 0 .4rem .25rem; border-bottom: 1px solid var(--texto-suave);
  transform: rotate(-4deg);
}

/* =============================================================
   12. Opiniones
   ============================================================= */
.voices { padding-block: clamp(4rem, 9vw, 7.5rem); }
.voices__head { margin-bottom: 2.4rem; }
.voices__note { font-size: .88rem; }
.voices__grid { display: grid; gap: 1rem; }
.voice {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 1.4rem;
  background: var(--papel); border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--linea);
}
.voice blockquote p { font-size: 1.04rem; color: var(--texto); }
.voice blockquote p::before { content: "“"; display: block; font-family: var(--serif); font-size: 3rem; line-height: .7; color: var(--salvia); height: 1.3rem; }
.voice figcaption { font-size: .86rem; color: var(--texto-suave); line-height: 1.4; }
.voice figcaption strong { display: block; color: var(--bosque); font-size: .95rem; }
.voice--big { background: var(--salvia-50); box-shadow: none; }
.voice--big blockquote p {
  font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.35; color: var(--bosque);
  font-variation-settings: "opsz" 28;
}
.voice--big blockquote p::before { font-size: 4.2rem; height: 1.8rem; color: var(--roble); }

/* =============================================================
   13. FAQ
   ============================================================= */
.faq { padding-block: 0 clamp(4rem, 9vw, 7.5rem); }
.faq__grid { display: grid; gap: 2rem; }
.faq__list { border-bottom: 1px solid var(--linea); }
.faq details { border-top: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 600; font-size: 1.04rem; color: var(--bosque);
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background:
    linear-gradient(var(--bosque), var(--bosque)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--bosque), var(--bosque)) center / 1.6px 12px no-repeat,
    var(--salvia-50);
  transition: transform .45s var(--ease-out), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--roble); }
.faq__body p { padding: 0 2.6rem 1.35rem 0; color: var(--texto-suave); max-width: 60ch; }
.faq details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* =============================================================
   14. Contacto
   ============================================================= */
.contact { background: var(--salvia-50); padding-block: clamp(4rem, 9vw, 7.5rem); }
.contact__grid { display: grid; gap: 3rem; }
.contact h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.022em; font-variation-settings: "opsz" 64; }
.contact__lead { margin-top: .8rem; color: var(--texto-suave); }

.form { margin-top: 1.8rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--bosque); }
.field__opt { font-weight: 400; color: var(--texto-suave); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  border: 1px solid rgba(31,54,43,.2); border-radius: 12px;
  background: var(--papel);
  font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--bosque) 50%), linear-gradient(135deg, var(--bosque) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 2.6rem;
}
.field input::placeholder, .field textarea::placeholder { color: #7D877F; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bosque); box-shadow: 0 0 0 3px rgba(126,154,128,.35);
}
.field.is-invalid input { border-color: #A3412B; box-shadow: 0 0 0 3px rgba(163,65,43,.15); }
.form .btn { margin-top: .4rem; }
.form__done {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--bosque); color: var(--papel);
  font-size: .95rem; line-height: 1.45;
  animation: rise .5s var(--ease-out);
}
.form__done[hidden] { display: none; }
.form__done .ico { width: 22px; height: 22px; color: var(--miel); margin-top: .05rem; }
.form__done strong { display: block; }

.visit { display: grid; gap: 1.5rem; align-content: start; }
.arch--wide { aspect-ratio: 3 / 2; }
.visit__info { display: grid; gap: 1rem; }
.map { width: 100%; height: auto; }
.visit address { line-height: 1.5; color: var(--texto-suave); }
.visit address strong { display: block; color: var(--bosque); font-size: 1.05rem; }
.visit__list { display: grid; gap: .35rem; font-size: .95rem; color: var(--texto-suave); }
.visit__list a { color: var(--bosque); font-weight: 600; }
.visit__list a span { font-weight: 400; color: var(--texto-suave); }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { background: var(--bosque-2); color: rgba(245,244,238,.7); padding-block: 3.5rem 6.5rem; font-size: .92rem; }
.footer__grid { display: grid; gap: 2.2rem; }
.footer .brand__mark { color: var(--miel); width: 36px; height: 36px; }
.footer__name { margin-top: .9rem; font-family: var(--serif); font-size: 1.4rem; color: var(--papel); }
.footer__brand p:last-child { margin-top: .3rem; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; }
.footer__nav a { color: rgba(245,244,238,.85); transition: color .3s; }
.footer__nav a:hover { color: var(--miel); }
.footer__demo { padding-top: 1.4rem; border-top: 1px solid rgba(245,244,238,.12); }
.footer__demo p + p { margin-top: .7rem; }
.footer__demo a { color: var(--miel); font-weight: 600; border-bottom: 1px solid rgba(221,178,122,.4); transition: border-color .3s; }
.footer__demo a:hover { border-color: var(--miel); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: .55rem;
  height: 56px; padding: 0 16px;
  border-radius: 999px;
  background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(23,128,74,.6), 0 2px 6px rgba(0,0,0,.12);
  font-weight: 600; font-size: .95rem;
  transform: translateY(0);
  transition: transform .4s var(--ease-out), background-color .3s, box-shadow .4s var(--ease-out);
  animation: rise .8s var(--ease-out) 1.4s both;
}
.js .wa-float { animation: none; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), background-color .3s; }
.js .wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.js .wa-float.is-shown:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { background: #136B3E; transform: translateY(-3px); }
.wa-float__label { display: none; }

/* =============================================================
   16. Efectos
   ============================================================= */
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes archOpen { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Momento de entrada del hero: un solo gesto orquestado */
.hero__kicker { animation: fadeIn .8s var(--ease-out) .1s both; }
.hero__title .line > span { animation: lineUp 1.1s var(--ease-out) both; }
.hero__title .line:nth-child(1) > span { animation-delay: .15s; }
.hero__title .line:nth-child(2) > span { animation-delay: .27s; }
.hero__lead, .hero__actions, .hero__sign { animation: rise .9s var(--ease-out) both; }
.hero__lead { animation-delay: .45s; }
.hero__actions { animation-delay: .55s; }
.hero__sign { animation-delay: .65s; }
.arch--hero { animation: archOpen 1.4s var(--ease-out) .2s both; }
.arch--hero img { animation: settle 2.2s var(--ease-out) .2s both; }
.ticket { animation: rise .9s var(--ease-out) 1.1s both; }

/* Revelados suaves al hacer scroll (solo con JS; sin JS todo está visible) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .svc__item[data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }

/* =============================================================
   17. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero__actions .btn--solid { flex: 0 0 auto; }
  .trust { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .voices__grid { grid-template-columns: 1fr 1fr; }
  .voice--big { grid-column: 1 / -1; }
  .mosaic { gap: 1rem; }
}

@media (min-width: 720px) {
  .demo-bar { font-size: .8rem; }
  .ticket { left: -1.5rem; bottom: 2rem; }
  .doctor__grid { grid-template-columns: .85fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
  .doctor__media { position: sticky; top: calc(var(--top-h) + 1.5rem); }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .rx { padding: 2rem 2rem 1.6rem; }
  .wa-float__label { display: inline; }
  .wa-float { padding: 0 20px 0 16px; }
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; min-height: 42px; padding: .6rem 1.1rem; font-size: .92rem; }
  .nav__toggle { display: none; }
  .nav__inner { gap: 2.2rem; }

  .hero { padding-top: calc(var(--top-h) + 2.5rem); }
  .hero__grid { grid-template-columns: 1fr 1.08fr; grid-template-areas: "copy media"; gap: clamp(2.5rem, 5vw, 5rem); }
  .hero__copy { display: block; grid-area: copy; }
  .hero__media { margin-top: 0; }
  .hero__lead { margin-top: 1.4rem; }
  .hero__title { font-size: clamp(3.6rem, 6.2vw, 5.9rem); }
  .arch--hero { aspect-ratio: 1 / 1.02; border-radius: 999px 999px var(--r-s) var(--r-s); }
  .arch--hero img { object-position: 50% 40%; }
  .trust { margin-top: 4.5rem; }

  .services__grid { grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); }
  .services__head { position: sticky; top: calc(var(--top-h) + 2rem); align-self: start; }
  .svc__item { grid-template-columns: 52px 1fr; gap: 1.4rem; padding: 1.8rem 0; }
  .svc__ico { width: 52px; height: 52px; padding: 11px; }
  .svc__meta { margin-top: .5rem; }

  .mosaic { grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
  .mosaic__a { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; min-height: 560px; }
  .mosaic__b, .mosaic__c { aspect-ratio: 3 / 2; }
  .place__head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
  .place__head p { margin-top: 0; }

  .book__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6.5rem); align-items: center; }
  .rx { transform: rotate(1.2deg); transition: transform .8s var(--ease-out); }
  .rx:hover { transform: rotate(0deg) translateY(-4px); }
  .js .rx[data-reveal] { transform: translateY(18px) rotate(2.5deg); }
  .js .rx[data-reveal].is-in { transform: rotate(1.2deg); }
  .js .rx[data-reveal].is-in:hover { transform: rotate(0deg) translateY(-4px); }

  .voices__grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
  .voice--big { grid-column: 1; grid-row: 1 / span 2; padding: 2.4rem 2.2rem; }
  .voices__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }

  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); }
  .faq .section-head { position: sticky; top: calc(var(--top-h) + 2rem); align-self: start; }

  .contact__grid { grid-template-columns: 1fr 1.05fr; }
  .visit__info { grid-template-columns: 1fr 1fr; align-items: start; gap: 1.2rem 1.5rem; }
  .visit__info .map { grid-column: 1 / -1; height: 210px; border-radius: 14px; }

  .footer { padding-block: 4rem 4rem; }
  .footer__grid { grid-template-columns: 1.2fr .8fr 1.2fr; gap: 3rem; }
  .footer__demo { padding-top: 0; border-top: 0; }
}

@media (min-width: 1280px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; }
}

/* =============================================================
   18. Movimiento reducido: solo apagamos lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket__dot::after { animation: none; opacity: 0; }
  .arch--hero img { animation: none; }
}
body.menu-open .wa-float { opacity: 0 !important; pointer-events: none !important; }
