/* ==========================================================================
   Dra. Laura Gutiérrez · Ortodoncista en Puebla
   Paleta: #2d5686 (navy) · #6f9dcc (sky) · #fbfcfd (snow)
   v2 — escala compacta: cada sección pensada para caber en una pantalla
   ========================================================================== */

/* Fuentes autoalojadas (subconjunto latino, licencia SIL OFL) */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-var.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); }

:root {
  --navy-900: #172f4d;
  --navy-800: #1f3d63;
  --navy: #2d5686;
  --navy-600: #3c6799;
  --sky: #6f9dcc;
  --sky-300: #a9c6e4;
  --sky-200: #cfdff0;
  --sky-100: #e7eff8;
  --sky-50: #f3f7fc;
  --snow: #fbfcfd;
  --white: #ffffff;

  --ink: #1b2a3b;
  --ink-2: #3a4d63;
  --muted: #66778a;
  --line: #e4ebf3;

  --wa: #22b35e;
  --wa-dark: #179049;
  --wa-brand: #25d366;

  /* --font-serif se conserva como nombre: es la fuente de títulos (display) */
  --font-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 47, 77, .05), 0 2px 8px rgba(23, 47, 77, .04);
  --shadow: 0 10px 30px -14px rgba(23, 47, 77, .25);
  --shadow-lg: 0 24px 50px -24px rgba(23, 47, 77, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1160px;
  --topbar-h: 34px;
  --header-h: 64px;
  --sec-pad: clamp(2.75rem, 1.5rem + 4.5vh, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy-900); line-height: 1.2; font-weight: 500; letter-spacing: -.012em; margin: 0 0 .55em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 700; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 780px); }
.container--wide { width: min(100% - 40px, 1160px); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 12px; color: #fff; }

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

/* ---------- Eyebrow & titles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sky);
  margin-bottom: .7rem;
}
.eyebrow::before { content: ""; width: 20px; height: 1.5px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--sky-300); }
.section__title { font-size: clamp(1.5rem, .75rem + 1.2vw + .7vh, 2.2rem); }
.section__title span { color: var(--navy); font-style: italic; }
.section__title--sm { font-size: clamp(1.3rem, .9rem + .9vw, 1.7rem); }
.section__lead { font-size: 1rem; color: var(--muted); max-width: 60ch; }
.section__head { max-width: 700px; margin: 0 auto clamp(1.5rem, 1rem + 2vh, 2.4rem); text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head .section__lead { margin-inline: auto; margin-bottom: 0; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; text-align: left; }
.section__head--row .eyebrow { justify-content: flex-start; }
.section__head--row .section__title { margin-bottom: .3em; }
.section__head--row .section__lead { margin-inline: 0; }
.section__head--split { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2.5rem; max-width: none; text-align: left; }
.section__head--split .eyebrow { justify-content: flex-start; }
.section__head--split .section__title { margin: 0; }
.section__head--split .section__lead { margin: 0; }
.section__head--light .section__title { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--navy); --b-fg: #fff; --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.25em; border-radius: 999px; border: 1.5px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: 700 .9rem/1.15 var(--font-sans); letter-spacing: .005em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { color: var(--b-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn--primary { --b-bg: var(--navy); }
.btn--primary:hover { --b-bg: var(--navy-800); }
.btn--wa { --b-bg: var(--wa); box-shadow: 0 8px 18px -10px rgba(23, 144, 73, .65); }
.btn--wa:hover { --b-bg: var(--wa-dark); box-shadow: 0 12px 24px -12px rgba(23, 144, 73, .7); }
.btn--ghost { --b-bg: rgba(255, 255, 255, .78); --b-fg: var(--navy-900); --b-bd: rgba(45, 86, 134, .16); backdrop-filter: blur(8px); }
.btn--ghost:hover { --b-bg: #fff; }
.btn--outline { --b-bg: transparent; --b-fg: var(--navy); --b-bd: var(--sky-200); }
.btn--outline:hover { --b-bg: var(--sky-50); --b-fg: var(--navy-800); }
.btn--sm { padding: .6em 1.05em; font-size: .84rem; }
.btn--lg { padding: .82em 1.45em; font-size: .94rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .86rem; text-decoration: none; color: var(--navy); }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-900); color: var(--sky-200); font-size: .76rem; }
.topbar__inner { display: flex; align-items: center; gap: 1.4rem; min-height: var(--topbar-h); }
.topbar__item { display: flex; align-items: center; gap: .45em; margin: 0; }
.topbar__item .ico { color: var(--sky); width: 1em; height: 1em; }
.topbar__social { margin-left: auto; display: flex; gap: .25rem; }
.topbar__social a { color: var(--sky-200); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; transition: background .2s, color .2s; }
.topbar__social a .ico { width: 14px; height: 14px; }
.topbar__social a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 253, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(23, 47, 77, .5); background: rgba(251, 252, 253, .95); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy-900); flex: none; }
.brand__mark { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 500; color: var(--navy-900); letter-spacing: -.01em; }
.brand__tag { font-size: .58rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--sky); margin-top: .35em; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { color: var(--sky-300); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: .5em .8em; border-radius: 999px; font-weight: 600; font-size: .86rem; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--navy); background: var(--sky-100); }
.main-nav .main-nav__cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy-900); cursor: pointer; border-radius: 10px; }
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle .ico--close { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; background: var(--sky-50);
  min-height: clamp(470px, calc(100vh - var(--topbar-h) - var(--header-h)), 820px);
  min-height: clamp(470px, calc(100svh - var(--topbar-h) - var(--header-h)), 820px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(251, 252, 253, .97) 0%, rgba(251, 252, 253, .92) 32%, rgba(251, 252, 253, .45) 55%, rgba(251, 252, 253, 0) 72%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; background: linear-gradient(0deg, var(--snow), transparent); }
.hero__inner { padding-block: clamp(1.75rem, 5vh, 3.5rem) clamp(3.75rem, 9vh, 5.5rem); }
.hero__content { max-width: 540px; }
.hero__title { font-size: clamp(1.85rem, .5rem + 1.7vw + 1.6vh, 3.1rem); line-height: 1.08; margin-bottom: .5em; }
.hero__title em { font-style: italic; color: var(--navy); background: linear-gradient(transparent 72%, rgba(111, 157, 204, .22) 72%); }
.hero__lead { font-size: clamp(.94rem, .85rem + .25vw, 1.04rem); color: var(--ink-2); max-width: 50ch; margin-bottom: 1.1em; }
.hero__points { list-style: none; padding: 0; margin: 0 0 clamp(1.1rem, 3vh, 1.7rem); display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; }
.hero__points li { display: flex; align-items: center; gap: .45em; font-weight: 600; font-size: .84rem; color: var(--ink); }
.hero__points .ico { color: #fff; background: var(--sky); border-radius: 50%; padding: 3px; width: 17px; height: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* ---------- Trust bar ---------- */
.trust { position: relative; z-index: 2; margin-top: -2.6rem; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.trust__item { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__num { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); line-height: 1; }
.trust__ico { width: 34px; height: 34px; color: var(--sky); flex: none; padding: 7px; background: var(--sky-50); border-radius: 10px; }
.trust__label { font-size: .8rem; line-height: 1.4; color: var(--muted); }
.trust__label strong { color: var(--navy-900); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec-pad); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vh, 3rem); }
.section--tint { background: linear-gradient(180deg, var(--sky-50) 0%, #f7fafd 100%); }
.section--deep { background: radial-gradient(1000px 420px at 85% -10%, rgba(111, 157, 204, .32), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: var(--sky-200); }

.checklist { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; font-size: .94rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.5; }
.checklist .ico { color: var(--navy); background: var(--sky-100); border-radius: 50%; padding: 4px; width: 22px; height: 22px; margin-top: 1px; }

/* Intro */
.intro__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4.5vw, 4rem); align-items: center; }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.3; max-height: 66vh; object-fit: cover; width: 100%; }
.intro__badge { position: absolute; right: -14px; bottom: -16px; display: flex; gap: .6rem; align-items: center; background: #fff; padding: .7rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 700; font-size: .78rem; color: var(--navy-900); line-height: 1.3; }
.intro__badge .ico { width: 30px; height: 30px; color: #fff; background: var(--sky); border-radius: 50%; padding: 7px; }
.intro__text > p:not(.eyebrow) { font-size: .96rem; }

/* Treatments — tarjetas con imagen de fondo */
.treatments__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.t-card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(240px, 22vh + 110px, 310px); border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.t-card__media { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; }
.t-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.t-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 47, 77, 0) 22%, rgba(23, 47, 77, .55) 52%, rgba(16, 33, 56, .94) 100%); }
.t-card:hover .t-card__media img { transform: scale(1.05); }
.t-card__for { position: absolute; left: 12px; top: 12px; z-index: 1; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); color: var(--navy-900); font-size: .68rem; font-weight: 700; padding: .35em .75em; border-radius: 999px; }
.t-card__body { position: relative; padding: 1rem 1.15rem 1rem; display: flex; flex-direction: column; color: #fff; }
.t-card__body > .t-card__kicker { display: none; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-300); margin-bottom: .25rem; }
.t-card__title { font-size: 1.18rem; margin-bottom: .3em; color: #fff; }
.t-card__title a { color: inherit; text-decoration: none; }
.t-card__body > p { color: rgba(255, 255, 255, .82); font-size: .84rem; line-height: 1.5; margin-bottom: .7rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-card__actions { display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.t-card .link-arrow { color: #fff; }
.t-card__wa { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .14); transition: background .2s, transform .2s; }
.t-card__wa .ico { width: 17px; height: 17px; }
.t-card__wa:hover { background: var(--wa); color: #fff; transform: scale(1.06); }
.t-card--cta { background: radial-gradient(400px 200px at 100% 0%, rgba(111, 157, 204, .35), transparent 70%), linear-gradient(160deg, var(--navy), var(--navy-900)); justify-content: center; }
.t-card--cta .t-card__body { padding: 1.4rem 1.4rem; align-items: flex-start; }
.t-card--cta .t-card__title { font-size: 1.3rem; }
.t-card--cta .t-card__body > p { color: var(--sky-200); -webkit-line-clamp: 4; margin-bottom: 1rem; }
.t-card__big-ico { width: 38px; height: 38px; color: var(--sky-300); margin-bottom: .7rem; }

/* Doctor */
.doctor__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.doctor__media { position: relative; max-width: 400px; width: 100%; justify-self: center; }
.doctor__frame { position: relative; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--sky-100); box-shadow: var(--shadow-lg); }
.doctor__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.doctor__frame img { width: 100%; aspect-ratio: 4 / 5; max-height: 74vh; object-fit: cover; object-position: center 18%; }
.doctor__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--sky-200); border-radius: 200px 200px var(--radius-lg) var(--radius-lg); z-index: -1; }
.doctor__years { position: absolute; left: -18px; bottom: 28px; display: flex; align-items: center; gap: .6rem; background: #fff; padding: .7rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .74rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.doctor__years-num { font-family: var(--font-serif); font-size: 1.8rem; color: var(--navy); line-height: 1; }
.doctor__text > p:not(.eyebrow) { font-size: .95rem; }
.doctor__role { font-weight: 700; font-size: .88rem !important; color: var(--sky); letter-spacing: .02em; margin-top: -.4rem; }
.doctor__quote { margin: 1.1rem 0; padding: .85rem 1.1rem; border-left: 3px solid var(--sky); background: var(--sky-50); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-serif); font-size: 1rem; font-style: italic; color: var(--navy-900); line-height: 1.5; }
.cred-list { list-style: none; padding: 0; margin: 0 0 .9rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.cred { display: flex; gap: .65rem; align-items: center; padding: .65rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cred__ico { width: 32px; height: 32px; padding: 7px; color: var(--navy); background: var(--sky-100); border-radius: 9px; }
.cred__label { display: block; font-size: .8rem; line-height: 1.35; color: var(--navy-900); }
.cred__desc { display: block; font-size: .72rem; color: var(--muted); line-height: 1.35; }
.doctor__verify { font-size: .8rem !important; color: var(--muted); margin-bottom: 1.1rem; }

/* Signs */
.signs__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4.5vw, 4rem); align-items: center; }
.signs__text > p:not(.eyebrow) { font-size: .95rem; }
.signs__list { list-style: none; padding: 0; margin: .9rem 0 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.signs__list li { display: flex; gap: .6rem; align-items: flex-start; background: #fff; padding: .6rem .75rem; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: .84rem; line-height: 1.45; }
.signs__list li:last-child { grid-column: 1 / -1; }
.signs__list .ico { color: #fff; background: var(--sky); border-radius: 50%; padding: 3px; width: 18px; height: 18px; margin-top: 2px; }
.signs__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; max-height: 72vh; object-fit: cover; width: 100%; }

/* Ages */
.ages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.age-card { padding: 1.4rem 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.age-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-200); }
.age-card__ico { width: 42px; height: 42px; padding: 10px; color: var(--navy); background: linear-gradient(135deg, var(--sky-100), var(--sky-50)); border-radius: 12px; margin-bottom: .85rem; }
.age-card h3 { font-size: 1.15rem; }
.age-card p { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* Process */
.process__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { position: relative; padding: 1.35rem 1.25rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); }
.step__num { font-family: var(--font-serif); font-size: 1.7rem; color: var(--sky-300); line-height: 1; display: block; margin-bottom: .7rem; }
.step h3 { color: #fff; font-size: 1.05rem; }
.step p { font-size: .86rem; line-height: 1.55; margin: 0; color: var(--sky-200); }
.process__cta { text-align: center; margin-top: clamp(1.5rem, 3vh, 2.2rem); }

/* Clinic */
.clinic__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4.5vw, 4rem); align-items: center; }
.clinic__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-height: 66vh; object-fit: cover; }
.clinic__text > p:not(.eyebrow) { font-size: .95rem; }

/* Cards (guide) */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.card__cat { align-self: flex-start; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--sky-100); padding: .35em .75em; border-radius: 999px; text-decoration: none; margin-bottom: .6rem; }
.card__title { font-size: 1.05rem; line-height: 1.32; margin-bottom: .45em; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--navy); }
.card__excerpt { font-size: .85rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin: auto 0 0; display: flex; align-items: center; gap: .4em; font-size: .74rem; font-weight: 600; color: var(--muted); }
.card__meta .ico { color: var(--sky); }

/* Variante compacta (home): miniatura + título */
.cards-grid--compact { gap: .8rem; }
.cards-grid--compact .card { flex-direction: row; align-items: stretch; }
.cards-grid--compact .card__media { flex: none; width: 112px; aspect-ratio: auto; }
.cards-grid--compact .card__body { padding: .8rem .95rem; }
.cards-grid--compact .card__cat { font-size: .58rem; margin-bottom: .4rem; }
.cards-grid--compact .card__title { font-size: .94rem; margin-bottom: .35em; }
.cards-grid--compact .card__excerpt { display: none; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__head p { color: var(--muted); font-size: .95rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.35; color: var(--navy-900); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--sky-50); color: var(--navy); transition: transform .3s var(--ease), background .3s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); background: var(--sky-100); }
.faq__answer { padding: 0 2.5rem .9rem 0; color: var(--muted); font-size: .92rem; }
.faq__answer p { margin: 0; }

/* Location */
.location__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: stretch; }
.location__address { display: flex; gap: .85rem; padding: 1.05rem 1.1rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: .85rem; line-height: 1.55; font-size: .92rem; }
.location__ico { width: 38px; height: 38px; padding: 9px; color: #fff; background: var(--navy); border-radius: 10px; }
.location__note { display: flex; gap: .55rem; align-items: center; font-size: .85rem; color: var(--muted); }
.location__note .ico { color: var(--sky); }
.location__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); min-height: clamp(300px, 52vh, 420px); border: 5px solid #fff; }
.location__map iframe { width: 100%; height: 100%; min-height: clamp(290px, 52vh, 410px); }

.social { display: flex; gap: .5rem; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; }
.site-footer .social a { width: 36px; height: 36px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s; }
.site-footer .social a .ico { width: 17px; height: 17px; }
.site-footer .social a:hover { background: var(--sky); }
.social--dark a { color: var(--navy); font-weight: 600; font-size: .84rem; padding: .42em .85em .42em .55em; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.social--dark a:hover { border-color: var(--sky-200); background: var(--sky-50); }
.social--dark .ico { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer-cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-800) 60%, var(--navy-900) 100%); color: var(--sky-200); position: relative; overflow: hidden; }
.footer-cta::before { content: ""; position: absolute; width: 440px; height: 440px; right: -120px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(111, 157, 204, .4), transparent 70%); }
.footer-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2rem, 1.5rem + 2.5vh, 3rem); }
.footer-cta__title { color: #fff; font-size: clamp(1.35rem, 1rem + 1vw, 1.85rem); margin-bottom: .35em; }
.footer-cta__text { max-width: 60ch; margin: 0; font-size: .92rem; }

.site-footer { background: var(--navy-900); color: #b9cbe0; font-size: .86rem; padding-top: clamp(2.4rem, 2rem + 2vh, 3.2rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; padding-bottom: 2.2rem; }
.site-footer__about p { margin: 1rem 0 1.1rem; color: #a9bdd4; }
.site-footer__title { font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: #c8d7e8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__address { line-height: 1.6; margin-bottom: .8rem; }
.site-footer__address strong { color: #fff; }
.site-footer__link { display: flex; align-items: center; gap: .45rem; margin-top: .4rem; }
.site-footer__link .ico { color: var(--sky); }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 1.4rem 5.5rem; font-size: .76rem; color: #8ea6c1; }
.credentials-line { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-bottom: .8rem; }
.credentials-line strong { color: #dce7f3; }
.disclaimer { max-width: 100ch; }
.copy { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.wa-float__btn { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa-brand); color: #fff; box-shadow: 0 10px 24px -8px rgba(18, 140, 70, .6), 0 2px 6px rgba(0, 0, 0, .08); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.wa-float__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: wa-pulse 2.8s infinite; }
.wa-float__ico { width: 30px; height: 30px; position: relative; }
.wa-float__label { position: relative; background: #fff; color: var(--navy-900); font-weight: 700; font-size: .82rem; line-height: 1.2; padding: .6rem .85rem; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); white-space: nowrap; opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.wa-float__label::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; background: #fff; border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.wa-float:hover .wa-float__btn { transform: scale(1.06); box-shadow: 0 14px 30px -8px rgba(18, 140, 70, .65); }
.wa-float:hover .wa-float__label, .wa-float.is-expanded .wa-float__label { opacity: 1; transform: none; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Page hero / breadcrumbs ---------- */
.page-hero { background: radial-gradient(800px 320px at 90% 0%, rgba(111, 157, 204, .22), transparent 60%), linear-gradient(180deg, var(--sky-50), var(--snow)); padding: clamp(1.6rem, 1rem + 3vh, 2.6rem) 0 clamp(1.2rem, 1rem + 1.5vh, 1.8rem); }
.page-hero__title { font-size: clamp(1.75rem, 1rem + 1.6vw + .8vh, 2.7rem); }
.page-hero__lead { font-size: 1rem; color: var(--muted); max-width: 68ch; }
.page-hero--simple { padding-bottom: .8rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs span[aria-hidden] { color: var(--sky-300); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45em .95em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .82rem; transition: all .2s; }
.chip span { font-size: .68rem; background: var(--sky-100); color: var(--navy); border-radius: 999px; padding: .1em .5em; }
.chip:hover { border-color: var(--sky-300); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 1.8rem; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; max-height: 380px; }
.feature__body { padding: clamp(1.3rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; justify-content: center; }
.feature__title { font-size: clamp(1.3rem, 1rem + .9vw, 1.7rem); }
.feature__title a { color: inherit; text-decoration: none; }
.feature__body > p { color: var(--muted); font-size: .92rem; }
.feature .btn { align-self: flex-start; margin-top: .6rem; }

.guide-about__inner { display: flex; gap: 1.6rem; align-items: flex-start; max-width: 860px; }
.guide-about__avatar { border-radius: 50%; width: 96px; height: 96px; flex: none; box-shadow: var(--shadow); border: 4px solid #fff; }
.guide-about__title { font-size: 1.35rem; }
.guide-about p { color: var(--muted); font-size: .94rem; }

/* ---------- Article ---------- */
.article__header { background: linear-gradient(180deg, var(--sky-50), var(--snow)); padding: clamp(1.5rem, 1rem + 2.5vh, 2.4rem) 0 1.6rem; }
.article__title { font-size: clamp(1.7rem, 1rem + 1.5vw + .8vh, 2.55rem); line-height: 1.14; }
.article__excerpt { font-size: 1.04rem; color: var(--muted); }
.byline { display: flex; gap: .85rem; align-items: center; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.byline__avatar { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.byline__text { display: flex; flex-direction: column; line-height: 1.45; }
.byline__name { font-weight: 700; color: var(--ink); font-size: .86rem; }
.byline__name a { text-decoration: none; }
.byline__meta { font-size: .76rem; color: var(--muted); }
.article__hero { margin: 0 auto clamp(1.8rem, 1.2rem + 2vh, 2.6rem); max-width: 980px; }
.article__hero img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: auto; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4rem); padding-bottom: 4rem; }
.article__main { max-width: 720px; }
.article__aside { position: relative; }
.toc, .aside-cta { position: sticky; top: calc(var(--header-h) + 20px); }
.toc { padding: 1.1rem 1.1rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.toc__title { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .05rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: .55rem; padding: .32rem .45rem; border-radius: 8px; font-size: .8rem; line-height: 1.4; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: .66rem; font-weight: 700; color: var(--sky-300); padding-top: .15em; }
.toc a:hover, .toc a.is-active { background: var(--sky-50); color: var(--navy); }
.toc a.is-active::before { color: var(--navy); }
.aside-cta { top: auto; padding: 1.2rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: var(--sky-200); text-align: center; font-size: .82rem; }
.aside-cta img { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto .6rem; border: 3px solid rgba(255, 255, 255, .25); }
.aside-cta__title { font-family: var(--font-serif); font-size: 1rem; color: #fff; line-height: 1.3; margin-bottom: .4rem; }

.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.3rem, 1rem + .8vw, 1.65rem); margin-top: 2.1em; padding-top: .15em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; color: var(--navy-800); }
.prose .lead { font-size: 1.1rem; color: var(--ink); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--sky); }
.prose ol li::marker { color: var(--navy); font-weight: 700; }
.prose a { font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 1rem 1.3rem; border-left: 3px solid var(--sky); background: var(--sky-50); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; color: var(--navy-900); }
.callout { margin: 1.6em 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--sky-50); border: 1px solid var(--sky-200); color: var(--ink-2); font-size: .94rem; line-height: 1.65; }
.callout strong { color: var(--navy); }
.callout--tip { background: #f7f4ee; border-color: #ebe1cf; }
.callout--tip strong { color: #8a6a2f; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; font-size: .88rem; line-height: 1.55; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; }
.tbl thead th { background: var(--navy); color: #fff; text-align: left; font-weight: 700; padding: .7rem .9rem; white-space: nowrap; }
.tbl td { padding: .65rem .9rem; border-top: 1px solid var(--line); vertical-align: top; background: #fff; }
.tbl tbody tr:nth-child(even) td { background: var(--sky-50); }

.article-figure { margin: 2em 0; }
.article-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; text-align: center; font-style: italic; }

.inline-cta { display: flex; align-items: center; gap: 1.2rem; justify-content: space-between; margin: 2.2em 0; padding: 1.2rem 1.4rem; border-radius: var(--radius-lg); background: radial-gradient(420px 180px at 100% 0%, rgba(111, 157, 204, .3), transparent 70%), linear-gradient(140deg, var(--navy), var(--navy-900)); color: var(--sky-200); }
.inline-cta .eyebrow { margin-bottom: .3rem; color: var(--sky-300); }
.inline-cta__title { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; color: #fff; margin: 0 0 .25rem; }
.inline-cta p { margin: 0; font-size: .86rem; line-height: 1.5; }

.article-faq { margin-top: 3rem; }
.article-faq h2 { font-size: 1.6rem; }
.sources { margin-top: 2.4rem; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sources h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; }
.sources h2 .ico { color: var(--sky); }
.sources ol { margin: 0 0 1rem; padding-left: 1.25rem; font-size: .85rem; display: grid; gap: .4rem; }
.sources ol span { color: var(--muted); }
.sources__note { font-size: .78rem; color: var(--muted); margin: 0; padding-top: .9rem; border-top: 1px dashed var(--line); }

.author-box { display: flex; gap: 1.2rem; margin-top: 1.6rem; padding: 1.4rem; border-radius: var(--radius); background: var(--sky-50); border: 1px solid var(--sky-200); }
.author-box img { width: 80px; height: 80px; border-radius: 50%; flex: none; border: 4px solid #fff; box-shadow: var(--shadow-sm); }
.author-box__kicker { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin: 0 0 .2rem; }
.author-box__name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy-900); margin: 0 0 .4rem; }
.author-box p { font-size: .86rem; }
.author-box__links { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .82rem; font-weight: 600; }
.author-box__links a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }

.article-end-cta { margin-top: 2rem; text-align: center; padding: 1.8rem 1.4rem; border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, var(--sky-50)); border: 1px solid var(--line); }
.article-end-cta__title { font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy-900); margin-bottom: .35rem; }
.article-end-cta p { color: var(--muted); font-size: .92rem; }

.notfound__code { font-family: var(--font-serif); font-size: 4.5rem; line-height: 1; color: var(--sky-300); margin: 0 0 .5rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 1500px) {
  :root { --container: 1220px; }
  body { font-size: 1.03rem; }
}

/* ---------- Pantallas bajas (laptops con zoom) ---------- */
@media (min-width: 768px) and (max-height: 700px) {
  :root { --topbar-h: 30px; --header-h: 58px; }
  .hero__lead { margin-bottom: .8em; }
  .trust__item { padding: .8rem 1rem; }
  .trust__num { font-size: 1.7rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .article__layout { grid-template-columns: 1fr; }
  .article__aside { order: 2; }
  .toc { position: static; }
  .aside-cta { display: none; }
  .article__main { max-width: 720px; margin-inline: auto; }
  .cards-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .site-header__cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-header__inner { position: relative; }
  .main-nav { position: absolute; top: 100%; left: -20px; right: -20px; background: var(--snow); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: .8rem 20px 1.3rem; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  body.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  body.nav-open .nav-toggle .ico--open { display: none; }
  body.nav-open .nav-toggle .ico--close { display: block; }
  .main-nav ul { flex-direction: column; gap: .15rem; }
  .main-nav ul a { padding: .75em 1em; font-size: .98rem; border-radius: 10px; }
  .main-nav .main-nav__cta-mobile { display: flex; margin-top: .8rem; width: 100%; padding: .85em 1.2em; font-size: .95rem; }
  .treatments__grid, .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .intro__grid, .doctor__grid, .signs__grid, .clinic__grid, .faq__grid, .location__grid, .feature, .section__head--split { grid-template-columns: 1fr; }
  .section__head--split { gap: .8rem; }
  .faq__head { position: static; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ages__grid { grid-template-columns: 1fr; }
  .doctor__media { max-width: 360px; }
  .doctor__frame img { max-height: none; }
  .signs__media { order: -1; }
  .signs__media img { aspect-ratio: 16 / 10; max-height: none; }
  .intro__media img, .clinic__media img { max-height: none; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  :root { --header-h: 60px; }
  body { font-size: .97rem; }
  .topbar__item--hide-sm { display: none; }
  .topbar__item { min-width: 0; }
  .topbar__item span { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.02rem; }
  .brand__tag { font-size: .54rem; letter-spacing: .12em; }
  .hero { min-height: auto; align-items: flex-end; }
  .hero__bg { inset: 0 0 auto 0; height: 46vh; min-height: 300px; }
  .hero__bg img { object-position: 74% 40%; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
  .hero::before { display: none; }
  .hero__inner { padding-top: max(40vh, 270px); padding-bottom: 3.6rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .treatments__grid, .cards-grid, .process__steps, .site-footer__grid, .cards-grid--compact { grid-template-columns: 1fr; }
  .t-card { min-height: 240px; }
  .signs__list { grid-template-columns: 1fr; }
  .trust { margin-top: -2rem; }
  .trust__item { padding: .85rem; gap: .5rem; flex-direction: column; align-items: flex-start; }
  .trust__num { font-size: 1.6rem; }
  .intro__badge { right: 10px; bottom: -14px; }
  .doctor__years { left: 0; }
  .doctor__media::before { inset: 12px -10px -12px 10px; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
  .inline-cta .btn { width: 100%; }
  .faq__answer { padding-right: 0; }
  .author-box, .guide-about__inner { flex-direction: column; }
  .wa-float { right: 14px; bottom: 14px; }
  .wa-float__btn { width: 52px; height: 52px; }
  .wa-float__ico { width: 28px; height: 28px; }
  .wa-float__label { display: none; }
  .article__hero img { border-radius: var(--radius); }
  .prose { font-size: 1rem; }
}

/* ---------- Tipografía v3: Plus Jakarta Sans + Inter + Instrument Serif (acentos) ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.024em; line-height: 1.16; }
h3, h4 { font-weight: 600; letter-spacing: -.015em; }
.brand__name { font-weight: 700; letter-spacing: -.02em; }
.hero__title { letter-spacing: -.03em; }
.hero__title em, .section__title span {
  font-family: var(--font-accent); font-weight: 400; font-style: italic;
  font-size: 1.12em; letter-spacing: -.005em; line-height: 1;
}
.doctor__quote, .prose blockquote { font-family: var(--font-accent); font-weight: 400; font-size: 1.22rem; line-height: 1.4; }
.trust__num, .doctor__years-num, .step__num, .notfound__code { font-weight: 700; letter-spacing: -.03em; }
.faq__item summary { font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.aside-cta__title, .inline-cta__title, .author-box__name, .article-end-cta__title { font-weight: 700; letter-spacing: -.02em; }
.btn, .main-nav ul a { font-family: var(--font-serif); }
.eyebrow { letter-spacing: .14em; }

/* ==========================================================================
   Gestor de cookies · banner, panel de preferencias y contenido bloqueado
   ========================================================================== */
.cc-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 95;
  width: min(450px, calc(100% - 40px));
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(23, 47, 77, .38), 0 2px 8px rgba(23, 47, 77, .06);
  padding: 1.1rem 1.2rem 1.15rem;
  opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.cc-banner.is-visible { opacity: 1; transform: none; }
.cc-banner__head { display: flex; align-items: center; gap: .65rem; margin-bottom: .5rem; }
.cc-banner__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky-100); color: var(--navy); }
.cc-banner__icon .ico { width: 20px; height: 20px; }
.cc-banner__title { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 1rem; letter-spacing: -.015em; color: var(--navy-900); }
.cc-banner__text { margin: 0 0 .95rem; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.cc-banner__text a { font-weight: 600; }
.cc-banner__actions { display: flex; align-items: center; gap: .5rem; }
.cc-banner__actions [data-cc="settings"] { margin-right: auto; }
.cc-banner__actions [data-cc="reject"], .cc-banner__actions [data-cc="accept"] { flex: 1 1 0; }

.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 600 .82rem/1.15 var(--font-serif); letter-spacing: -.005em;
  padding: .7em 1.05em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn--primary { background: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgba(45, 86, 134, .7); }
.cc-btn--primary:hover { background: var(--navy-800); }
.cc-btn--outline { background: #fff; color: var(--navy); border-color: var(--sky-200); }
.cc-btn--outline:hover { background: var(--sky-50); border-color: var(--sky-300); }
.cc-btn--ghost { background: transparent; color: var(--ink-2); padding-inline: .5em; text-decoration: underline; text-decoration-color: var(--sky-300); text-underline-offset: 3px; }
.cc-btn--ghost:hover { color: var(--navy); }

/* Panel de preferencias */
.cc-modal {
  border: 0; padding: 0; margin: auto; border-radius: 20px; color: var(--ink-2);
  width: min(640px, calc(100% - 24px)); max-height: min(88vh, 780px);
  box-shadow: 0 40px 80px -30px rgba(23, 47, 77, .55);
  background: var(--snow); overflow: hidden;
}
.cc-modal[open] { display: flex; animation: cc-pop .35s var(--ease); }
.cc-modal::backdrop { background: rgba(23, 47, 77, .45); backdrop-filter: blur(4px); }
@keyframes cc-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.cc-modal__dialog { display: flex; flex-direction: column; width: 100%; max-height: inherit; margin: 0; }
.cc-modal__head { display: flex; align-items: center; gap: .8rem; padding: 1.05rem 1.3rem; background: #fff; border-bottom: 1px solid var(--line); }
.cc-modal__title { margin: 0; font-size: 1.12rem; }
.cc-modal__status { margin: .1rem 0 0; font-size: .74rem; color: var(--muted); }
.cc-modal__close { margin-left: auto; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: background .2s; }
.cc-modal__close:hover { background: var(--sky-50); }
.cc-modal__body { overflow-y: auto; padding: 1rem 1.3rem .4rem; overscroll-behavior: contain; }
.cc-modal__intro { font-size: .84rem; line-height: 1.6; color: var(--muted); margin: 0 0 1rem; }
.cc-modal__intro a { font-weight: 600; }
.cc-modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; padding: .9rem 1.3rem; background: #fff; border-top: 1px solid var(--line); }

.cc-cat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; margin-bottom: .7rem; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cc-cat__label { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; }
.cc-cat__name { font-family: var(--font-serif); font-weight: 700; font-size: .93rem; letter-spacing: -.01em; color: var(--navy-900); }
.cc-cat__badge { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #17834a; background: rgba(34, 179, 94, .12); padding: .25em .65em; border-radius: 999px; }
.cc-cat__desc { margin: .45rem 0 .35rem; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.cc-cat__details summary { cursor: pointer; font-size: .76rem; font-weight: 600; color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: .3rem; }
.cc-cat__details summary::-webkit-details-marker { display: none; }
.cc-cat__details summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.cc-cat__details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.cc-cookies { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.cc-cookies li { display: grid; gap: .1rem; background: var(--sky-50); border-radius: 10px; padding: .55rem .7rem; }
.cc-cookies__name { font: 700 .76rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); word-break: break-word; }
.cc-cookies__meta { font-size: .7rem; color: var(--muted); }
.cc-cookies__purpose { font-size: .76rem; line-height: 1.45; color: var(--ink-2); }

/* Interruptor accesible */
.cc-switch { position: relative; flex: none; display: inline-flex; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.cc-switch__track { width: 44px; height: 26px; border-radius: 999px; background: #cdd8e4; position: relative; transition: background .25s var(--ease); }
.cc-switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23, 47, 77, .3); transition: transform .25s var(--ease); }
.cc-switch input:checked + .cc-switch__track { background: var(--navy); }
.cc-switch input:checked + .cc-switch__track .cc-switch__thumb { transform: translateX(18px); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-switch__track { opacity: .55; }
.cc-switch input:focus-visible + .cc-switch__track { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Mapa bloqueado hasta consentimiento */
.map-consent {
  position: relative; height: 100%; min-height: clamp(290px, 52vh, 410px);
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .95) 0 120px, rgba(255, 255, 255, 0) 260px),
    repeating-linear-gradient(28deg, transparent 0 46px, rgba(111, 157, 204, .16) 46px 49px),
    repeating-linear-gradient(-62deg, transparent 0 70px, rgba(111, 157, 204, .13) 70px 74px),
    linear-gradient(180deg, var(--sky-50), var(--sky-100));
}
.map-consent__inner { max-width: 360px; padding: 1.5rem 1.2rem; }
.map-consent__pin { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow); margin-bottom: .8rem; }
.map-consent__pin .ico { width: 26px; height: 26px; }
.map-consent__title { margin: 0 0 .35rem; font-family: var(--font-serif); font-weight: 700; font-size: .98rem; letter-spacing: -.015em; color: var(--navy-900); }
.map-consent__text { margin: 0 0 1rem; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.map-consent__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.map-consent__link { margin-top: .8rem; background: none; border: 0; padding: 0; font: 600 .76rem/1.2 var(--font-sans); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.map-consent__link:hover { color: var(--navy); }
.map-consent.is-loaded { background: var(--sky-50); }
.map-consent.is-loaded > .map-consent__inner { display: none; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Pie: enlaces legales */
.site-footer__legal .copy { margin-top: .4rem; }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.3rem; margin-top: .55rem; }
.legal-links a, .legal-links__btn { color: #b9cbe0; text-decoration: none; font: inherit; }
.legal-links a:hover, .legal-links__btn:hover { color: #fff; }
.legal-links__btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: 0; cursor: pointer; }
.legal-links__btn .ico { width: 1.05em; height: 1.05em; }

/* Páginas legales */
.legal .prose h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.25rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.legal-toc__title { margin: 0 0 .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; font-size: .86rem; line-height: 1.5; columns: 2; column-gap: 2rem; }
.legal-toc li { break-inside: avoid; padding: .12rem 0; }
.legal-toc li::marker { color: var(--sky); font-weight: 600; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--navy); text-decoration: underline; }
.legal-callout { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, var(--sky-50), #fff); border: 1px solid var(--sky-200); border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.legal-callout__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.legal-callout__icon .ico { width: 22px; height: 22px; }
.legal-callout__title { margin: 0; font-family: var(--font-serif); font-weight: 700; color: var(--navy-900); font-size: .98rem; }
.legal-callout__text { margin: .1rem 0 0; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.legal-callout .btn { margin-left: auto; flex: none; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .82rem; line-height: 1.5; }
.legal-table th { background: var(--sky-50); text-align: left; padding: .65rem .8rem; font-family: var(--font-serif); font-weight: 600; font-size: .76rem; color: var(--navy-900); white-space: nowrap; }
.legal-table td { padding: .65rem .8rem; border-top: 1px solid var(--line); vertical-align: top; }
.legal-table code { background: var(--sky-100); color: var(--ink); padding: .1em .45em; border-radius: 6px; font-size: .76rem; word-break: normal; overflow-wrap: normal; }
.legal-table td:first-child { min-width: 10rem; }
.cookie-cat { margin: 1.8rem 0; }
.cookie-cat__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.cookie-cat__head .cookie-cat__title { margin: 0; }
.cookie-cat__state { font-size: .7rem; font-weight: 700; color: var(--muted); background: #eef2f6; border-radius: 999px; padding: .3em .8em; }
.cookie-cat__state.is-on { color: #17834a; background: rgba(34, 179, 94, .12); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.prose .note { background: var(--sky-50); border-left: 3px solid var(--sky); padding: .8rem 1rem; border-radius: 0 10px 10px 0; font-size: .88rem; }
.legal-signature { margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

@media (max-width: 767px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 1rem; border-radius: 16px; }
  .cc-banner__actions { flex-wrap: wrap; }
  .cc-banner__actions [data-cc="settings"] { order: 3; flex: 1 1 100%; margin: .1rem 0 0; }
  body.cc-banner-open .wa-float { opacity: 0; visibility: hidden; }
  .cc-modal { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .cc-modal__foot .cc-btn { flex: 1 1 calc(50% - .5rem); }
  .cc-modal__foot [data-cc="accept"] { flex-basis: 100%; order: -1; }
  .legal-toc ol { columns: 1; }
  .legal-callout { flex-wrap: wrap; }
  .legal-callout .btn { margin-left: 0; width: 100%; }
}
.wa-float { transition: opacity .3s var(--ease), visibility .3s; }
