/* Switzer autoalojada (Fontshare, ITF Free Font License). Sin pedidos a terceros. */
@font-face { font-family: 'Switzer'; src: url('/fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/switzer-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/*
  DESIGN SYSTEM — Dra. Dolores Lynch Pueyrredón
  Dirección: editorial, clínica y cercana. Bruma verde + tinta + marfil.
  La interfaz evita recursos genéricos de plantilla: sin gradientes, sombras
  flotantes, emojis decorativos ni serif de "marca personal".
*/

:root {
  --ink: #151714;
  --ink-72: rgba(21, 23, 20, 0.72);
  --ink-52: rgba(21, 23, 20, 0.64);
  --line: rgba(21, 23, 20, 0.18);
  --line-strong: rgba(21, 23, 20, 0.42);
  --lime: #a9d8be;
  --lime-soft: #f0f7f3;
  --paper: #f7f8f2;
  --white: #fffef9;

  /* Alias para páginas heredadas mientras se completa la migración. */
  --navy: var(--ink);
  --navy-70: var(--ink-72);
  --navy-50: var(--ink-52);
  --coral: var(--ink);
  --coral-dark: var(--ink);
  --coral-12: var(--lime-soft);
  --coral-20: rgba(169, 216, 190, 0.52);
  --teal: #3b7d5a;
  --teal-12: var(--lime-soft);
  --sky: var(--paper);
  --sky-deep: var(--lime-soft);

  --font-main: 'Switzer', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: var(--font-main);
  --text-hero: clamp(3.25rem, 7.3vw, 7rem);
  --text-h2: clamp(2.25rem, 4.4vw, 4.6rem);
  --text-h3: clamp(1.25rem, 2vw, 1.75rem);
  --text-body: clamp(1rem, 1.1vw, 1.125rem);
  --text-sm: 0.82rem;
  --text-label: 0.72rem;

  --max-w: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-py: clamp(72px, 10vw, 140px);
  --radius-card: 3px;
  --radius-pill: 999px;
  --radius-btn: 999px;
  --shadow-soft: none;
  --shadow-card: none;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-main);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
h1 { font-size: var(--text-hero); max-width: 980px; }
h2 { font-size: var(--text-h2); max-width: 900px; }
h1, h2 { overflow-wrap: anywhere; }
h3 { font-size: var(--text-h3); line-height: 1.08; letter-spacing: -0.028em; }
p + p { margin-top: 1em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 20px;
}
.skip:focus { left: 0; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-py) 0; }
.section-sky-deep { background: var(--lime-soft); }
.section-lime-soft { background: var(--lime-soft); }
.section-navy { background: var(--ink); color: var(--white); }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--ink-72);
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}
.lede { max-width: 720px; color: var(--ink-72); font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.5; }
/* Los títulos de línea apretada (0.98) pisaban la bajada cuando ocupan 3 o 4 líneas. */
h1 + .lede { margin-top: 28px; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 5px; border-bottom: 1px solid var(--ink);
  font-size: 0.95rem; font-weight: 600;
}
.text-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translate(3px, -3px); }

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 24px;
  border-radius: var(--radius-btn); border: 1px solid var(--ink);
  font-family: var(--font-main); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #2d302b; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.section-navy .btn-outline { color: var(--white); border-color: var(--white); }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 248, 242, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease;
}
header.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max-w); min-height: 82px; margin: 0 auto; padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.logo { display: grid; gap: 1px; color: var(--ink); white-space: nowrap; }
.logo > span { font-size: 1rem; font-weight: 650; letter-spacing: -0.02em; }
.logo small { color: var(--ink-52); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.logo-accent { color: inherit; }
nav#site-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 34px); }
nav#site-nav a:not(.btn-primary) { font-size: 0.88rem; font-weight: 500; }
nav#site-nav a:not(.btn-primary):hover { opacity: 0.55; }
.nav-cta { min-height: 42px; padding: 10px 19px; font-size: 0.82rem; }
.nav-toggle {
  display: none; position: relative; z-index: 101;
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); }
.nav-backdrop { display: none; }

/* Hero */
.hero { padding: clamp(18px, 2.5vw, 34px) 0 clamp(76px, 9vw, 126px); background: var(--lime); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(42px, 6vw, 88px); align-items: stretch;
  padding-top: clamp(54px, 7vw, 96px); padding-bottom: clamp(42px, 5vw, 70px);
  background: var(--white); border-radius: 28px;
}
.hero-grid > *, .profile-grid > *, .statement-grid > *, .final-cta-grid > * { min-width: 0; }
.hero h1 { max-width: 780px; }
.hero .lede { margin-top: 26px; max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; margin-top: clamp(54px, 7vw, 92px); border-top: 1px solid var(--line);
}
.trust-item { padding: 20px 18px 0 0; color: var(--ink-72); font-size: 0.72rem; line-height: 1.35; }
.trust-item + .trust-item { padding-left: 18px; border-left: 1px solid var(--line); }
.trust-item strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: clamp(1.6rem, 2.5vw, 2.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }

/* Orientación para familias: mismo fondo que la home (el crema del mural, que sigue la estación y la hora), sin marco verde. */
.family-hero { background: var(--selva-cream, #f7f4e5); }
.family-hero .hero-grid { box-shadow: 0 0 0 1px rgba(21, 23, 20, 0.06), 0 24px 60px rgba(47, 80, 60, 0.12); }
/* De noche el mural se desvanece hacia el fondo claro de la página: el hero sigue ahí para no dejar una costura oscura. */
html[data-tema$="-noche"] .family-hero { background: var(--paper); }

/* Títulos largos de orientación: respetar palabras y el ancho de cada columna. */
.family-hero h1 { font-size: clamp(2.25rem, 5.5vw, 5.2rem); overflow-wrap: normal; word-break: normal; text-wrap: balance; }
.trust-row-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.trust-row-pair .trust-item { min-width: 0; }
.trust-row-pair .trust-item strong { font-size: clamp(1.25rem, 1.8vw, 1.65rem); line-height: 1.15; letter-spacing: -0.03em; overflow-wrap: normal; text-wrap: balance; }
.family-professionals .story-aside h2 { font-size: clamp(1.8rem, 2.5vw, 2.6rem); line-height: 1.12; overflow-wrap: normal; word-break: normal; text-wrap: balance; }

.portrait-placeholder {
  position: relative; min-height: 590px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; background: var(--ink); color: var(--white); border-radius: 18px;
}
.portrait-placeholder::before {
  content: ''; position: absolute; width: 74%; aspect-ratio: 1; right: -18%; top: 14%;
  border: 1px solid rgba(169, 216, 190, 0.6); border-radius: 50%;
}
.portrait-placeholder::after {
  content: ''; position: absolute; width: 44%; aspect-ratio: 1; left: -16%; bottom: 8%;
  background: var(--lime); border-radius: 50%;
}
.portrait-placeholder strong {
  position: relative; z-index: 1; align-self: center; margin: auto 0;
  color: var(--lime); font-size: clamp(7rem, 14vw, 13rem); font-weight: 400;
  line-height: 0.8; letter-spacing: -0.11em;
}
.portrait-kicker, .portrait-caption { position: relative; z-index: 1; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.portrait-caption { align-self: flex-end; max-width: 160px; text-align: right; }
.portrait-placeholder-small { min-height: 520px; background: var(--lime); color: var(--ink); }
.portrait-placeholder-small strong { color: var(--ink); }
.portrait-placeholder-small::before { border-color: rgba(21, 23, 20, 0.42); }
.portrait-placeholder-small::after { background: var(--white); }

/* Fotografías reales optimizadas */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--lime-soft);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(21, 23, 20, 0.06);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.photo-frame-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(21, 23, 20, 0.82);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: calc(100% - 28px);
}
.hero-photo-frame {
  min-height: 560px;
  height: 100%;
}
.profile-photo-frame {
  min-height: 520px;
  height: 100%;
}
.statement-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 32px;
  max-height: 400px;
}
.statement-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-photo-frame {
  margin: 32px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 480px;
}
.story-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.gallery-strip-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  background: var(--lime-soft);
}
.gallery-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}
.gallery-strip-item:hover img {
  transform: scale(1.03);
}
.gallery-strip-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(21, 23, 20, 0.8);
  color: var(--white);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Reseñas de Google Business */
.reviews-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}
.reviews-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.google-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  text-decoration: none;
  color: var(--ink);
  transition: all 180ms ease;
}
.google-badge-pill:hover {
  background: var(--lime-soft);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.google-badge-pill .g-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.google-badge-pill .g-stars {
  color: #E37400;
  font-size: 1.05rem;
  letter-spacing: 1px;
}
.google-badge-pill .g-rating {
  font-size: 0.95rem;
  font-weight: 700;
}
.google-badge-pill .g-count {
  font-size: 0.78rem;
  color: var(--ink-72);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.review-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 24px rgba(21, 23, 20, 0.04);
}
.review-stars {
  color: #E37400;
  font-size: 0.92rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.review-text {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 24px;
  flex-grow: 1;
}
.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.review-author strong {
  color: var(--ink);
  font-weight: 600;
}
.review-author span {
  color: var(--ink-52);
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.reviews-footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* Statement + profile */
.statement-section { border-bottom: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 9vw, 130px); }
.statement-copy { padding-top: 38px; }
.statement-copy > p:last-child { max-width: 650px; margin-top: 26px; color: var(--ink-72); }
.profile-grid { display: grid; grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr); gap: clamp(48px, 8vw, 120px); align-items: center; }
.profile-grid h1 { font-size: clamp(3.25rem, 5.8vw, 5.1rem); overflow-wrap: normal; }
.profile-grid .lede { margin: 28px 0; }

/* Section headings */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(48px, 7vw, 92px); }

/* Service index */
.service-list { border-top: 1px solid var(--line-strong); }
.service-list-home { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-row { padding: 26px 24px 34px 0; border-bottom: 1px solid var(--line); }
.service-list-home .service-row + .service-row { padding-left: 24px; border-left: 1px solid var(--line); }
.service-number { display: block; margin-bottom: 72px; color: var(--ink-52); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.service-row h3 { max-width: 300px; }
.service-row p { max-width: 390px; margin-top: 18px; color: var(--ink-72); font-size: 0.94rem; }
.service-list-full .service-row { display: grid; grid-template-columns: 80px minmax(180px, 0.8fr) minmax(260px, 1.2fr); gap: 32px; align-items: start; padding: 30px 0; }
.service-list-full .service-number { margin: 0; }
.service-list-full .service-row p { margin-top: 0; }
.service-list-full .service-copy p { max-width: 560px; }
.coverage-strip { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: baseline; margin-top: 70px; padding: 38px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.coverage-strip .eyebrow { margin: 0; }

/* Editorial notes */
.notes-section { border-top: 1px solid var(--line); }
.editorial-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.editorial-item { position: relative; min-height: 310px; padding: 24px 56px 28px 0; border-bottom: 1px solid var(--line); transition: background 180ms ease; }
.editorial-item + .editorial-item { padding-left: 24px; border-left: 1px solid var(--line); }
.editorial-index { display: block; margin-bottom: 58px; color: var(--ink-52); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.editorial-item .eyebrow { margin-bottom: 14px; }
.editorial-arrow { position: absolute; right: 18px; top: 24px; font-size: 1.15rem; transition: transform 180ms ease; }
.editorial-item:hover { background: var(--lime-soft); }
.editorial-item:hover .editorial-arrow { transform: translate(4px, -4px); }

/* Existing cards: flatter, more documental, no floating template feel. */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; box-shadow: none; transition: border-color 180ms ease; }
.card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.card-icon { display: none; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-72); font-size: 0.94rem; }
/* Tarjeta con foto de stock genérica arriba del título (ver stock-manifest.json). */
.card-photo { padding: 0; overflow: hidden; }
.card-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-photo h3 { margin: 0; padding: 22px 28px 26px; }
.article-card { display: flex; flex-direction: column; gap: 8px; }
.article-card .eyebrow { align-self: flex-start; }
.article-list { display: grid; gap: 28px; }

/* Story */
.story-layout { display: grid; grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr); gap: clamp(48px, 9vw, 130px); }
.story-aside { align-self: start; position: sticky; top: 120px; }
.story-aside > span { display: block; margin-bottom: 22px; color: var(--ink-52); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.story-aside strong { display: block; max-width: 340px; font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.04em; }
.story-copy { max-width: 730px; }
.story-copy h2 + p { margin-top: 30px !important; }
.story-copy h2:not(:first-child) { margin-top: 86px; }
.story-copy p { color: var(--ink-72); }

/* CV & Trayectoria */
.cv-block { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.cv-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.cv-year { color: var(--ink-52); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; line-height: 1.4; }
.cv-desc strong { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.cv-desc p { color: var(--ink-72); font-size: 0.92rem; margin: 0 !important; line-height: 1.5; }
.cv-desc span { display: block; color: var(--ink-52); font-size: 0.84rem; margin-top: 3px; }
.pub-list { list-style: none; padding: 0; margin-top: 24px; border-top: 1px solid var(--line-strong); }
.pub-item { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-72); line-height: 1.55; }
.pub-item strong { color: var(--ink); font-weight: 600; }
.pub-item em { font-style: italic; color: var(--ink); }
@media (max-width: 680px) {
  .cv-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}

/* Articles */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.article-body h3 { margin: 1.6em 0 0.5em; }
.article-body p { color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 1em 0; }
.article-body li { margin-bottom: 0.5em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-meta { border-block: 1px solid var(--line); padding: 16px 0; margin: 24px 0 40px; font-size: var(--text-sm); color: var(--ink-72); }
.article-meta-review { margin-bottom: 4px; }
.ref-list { font-size: 0.88rem; color: var(--ink-72); }
.breadcrumb { margin-bottom: 22px; color: var(--ink-52); font-size: 0.78rem; }
.breadcrumb a:hover { color: var(--ink); }

/* Contact */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 0.82rem; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); font-family: var(--font-main); font-size: 0.94rem; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-status { margin-top: 14px; font-size: 0.84rem; }
#contacto-contexto { margin: 0 0 24px; }
.form-status.ok { color: #476824; }
.form-status.error { color: #9b2f25; }
.honeypot { position: absolute; left: -9999px; }
.cta-consulta { margin: 48px 0; padding: clamp(34px, 5vw, 60px); background: var(--lime); color: var(--ink); border-radius: 4px; text-align: left; }
.cta-consulta h3 { color: var(--ink); margin-bottom: 14px; }
.cta-consulta p { max-width: 620px; margin: 0 0 24px; color: var(--ink-72); }

/* Final CTA */
.final-cta { background: var(--lime); }
.final-cta-grid { display: grid; grid-template-columns: 0.35fr 1.25fr 0.7fr; gap: 32px; align-items: end; }
.final-cta-grid .eyebrow { align-self: start; margin: 9px 0 0; }
.final-cta-grid p { margin-bottom: 24px; color: var(--ink-72); }

/* Footer */
footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.footer-top { max-width: var(--max-w); margin: 0 auto; padding: 74px var(--pad-x) 52px; display: grid; grid-template-columns: 1.45fr 0.75fr 0.9fr; gap: 48px; }
.footer-brand { margin-bottom: 14px; color: var(--white); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.footer-desc { max-width: 390px; color: rgba(255, 255, 255, 0.58); font-size: 0.86rem; }
.footer-col h4 { margin-bottom: 17px; color: rgba(255, 255, 255, 0.42); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col li { margin-bottom: 10px; font-size: 0.84rem; }
.footer-col a:hover { color: var(--lime); }
.footer-legal { max-width: var(--max-w); margin: 0 auto; padding: 20px var(--pad-x); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.62); font-size: 0.74rem; }

.mobile-cta { display: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-placeholder { min-height: 520px; }
  .hero-photo-frame { min-height: 480px; }
  .profile-photo-frame { min-height: 440px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .statement-grid, .profile-grid, .story-layout { grid-template-columns: 1fr; }
  .story-aside { position: static; }
  .service-list-home, .editorial-list { grid-template-columns: 1fr; }
  .service-list-home .service-row + .service-row, .editorial-item + .editorial-item { padding-left: 0; border-left: 0; }
  .service-number { margin-bottom: 36px; }
  .editorial-item { min-height: 230px; }
  .final-cta-grid { grid-template-columns: 1fr 1.5fr; }
  .final-cta-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 860px) {
  header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--lime-soft); }
  body.menu-open { overflow: hidden; }
  .nav-toggle { z-index: 103; }
  .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 101; border: 0; background: rgba(21, 23, 20, 0.35); cursor: pointer; }
  .nav-toggle { display: flex; }
  nav#site-nav { position: fixed; inset: 0 0 auto 18%; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; z-index: 102; padding: 108px 28px max(32px, env(safe-area-inset-bottom)); background: var(--lime); visibility: hidden; transform: translateX(100%); transition: transform 240ms ease, visibility 240ms; border-left: 1px solid var(--line); box-shadow: none; }
  nav#site-nav.open { visibility: visible; transform: translateX(0); }
  nav#site-nav ul { flex-direction: column; align-items: flex-start; gap: 25px; }
  nav#site-nav a:not(.btn-primary) { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
  nav#site-nav .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  nav#site-nav { transition: none; }
}

@media (max-width: 720px) {
  :root { --text-hero: clamp(3rem, 15vw, 5rem); --section-py: 76px; }
  .nav-inner { min-height: 70px; }
  .hero { padding: 12px 0 76px; }
  .hero-grid { margin: 0 12px; width: auto; padding: 50px 24px 24px; border-radius: 20px; }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .family-hero h1 { font-size: clamp(2.25rem, 10vw, 3.8rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; }
  .portrait-placeholder { min-height: 430px; }
  .hero-photo-frame { min-height: 380px; }
  .profile-photo-frame { min-height: 360px; }
  .gallery-strip { grid-template-columns: 1fr; }
  .reviews-top { flex-direction: column; align-items: flex-start; }
  .google-badge-pill { width: 100%; justify-content: center; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .trust-item + .trust-item { padding-left: 0; border-left: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .service-list-full .service-row { grid-template-columns: 45px 1fr; gap: 18px; }
  .service-list-full .service-row p, .service-list-full .service-copy { grid-column: 2; }
  .coverage-strip { grid-template-columns: 1fr; }
  .final-cta-grid { grid-template-columns: 1fr; }
  .final-cta-grid > div:last-child { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; padding-bottom: 118px; }
  .mobile-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; gap: 8px; padding: 11px 14px; background: var(--white); border-top: 1px solid var(--line); }
  .mobile-cta .btn-primary { flex: 1.25; min-height: 46px; padding: 11px; font-size: 0.82rem; }
  .btn-wa { flex: 0.75; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 600; }
  body { padding-bottom: 70px; }
}

/* FAQ (home) */
.faq-section { background: var(--paper); }
.faq-list { max-width: 860px; margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: var(--text-h3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; font-size: 1.6rem; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.faq-item p { max-width: 720px; margin: 0 0 24px; color: var(--ink-72); }


/* ══ Variante "Selva": fondo animado a partir del mural del consultorio ══ */
:root {
  
  --selva-teal: #2f6f6a;
  --selva-olive: #6b8f3e;
  --selva-mint: #a9d8be;
  --selva-sand: #d9c99f;
}

@keyframes driftA { to { transform: translate(26px, 4px); } }
.drift-a { animation: driftA 14s ease-in-out infinite alternate; }

/* Hero: el video del mural reemplaza el marco verde */
.hero-selva { position: relative; overflow: hidden; background: var(--selva-cream, #f7f4e5); padding-bottom: clamp(210px, 28vw, 440px); }
/* El video sobresale 90px por debajo del hero: el parallax nunca deja ver el borde */
.hero-selva .hero-bg { position: absolute; left: 0; right: 0; bottom: -90px; z-index: 0; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%); }
.hero-selva::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(247, 248, 242, 0), var(--paper)); }
.hero-selva .hero-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-selva .hero-grid { position: relative; z-index: 2; background: rgba(255, 254, 249, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 0 0 1px rgba(21, 23, 20, 0.06), 0 24px 60px rgba(47, 80, 60, 0.12); }

/* Acordeón "Del nacimiento a la juventud" (adaptación del 1-2-3 de Petalyx) */
.areas-section { position: relative; overflow: hidden; padding-bottom: clamp(48px, 6vw, 88px); }
.areas-section .section-heading { margin-bottom: clamp(24px, 4vw, 48px); }
.areas-stage { position: relative; }
.areas-bird { position: absolute; z-index: 3; top: 4%; left: 0; width: min(22vw, 300px); pointer-events: none; will-change: transform; }
.areas-bird img { width: 100%; height: auto; }
.areas-track { display: flex; height: clamp(500px, 64vh, 680px); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.area-panel { position: relative; flex: 0 0 clamp(88px, 9vw, 140px); overflow: hidden; border-right: 1px solid var(--line);
  cursor: pointer; outline: none; transition: flex-grow 0.9s cubic-bezier(0.77, 0, 0.18, 1); }
.area-panel:last-child { border-right: 0; }
.area-panel.is-active { flex-grow: 1; cursor: default; }
.area-panel:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.area-in { position: absolute; left: clamp(14px, 1.8vw, 28px); bottom: clamp(24px, 6vh, 56px);
  display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 30px); width: max-content; }
.area-num { font-size: clamp(150px, 32vh, 300px); font-weight: 500; line-height: 0.74; letter-spacing: -0.07em; color: var(--selva-teal); }
.area-panel:nth-child(2) .area-num { color: var(--selva-olive); }
.area-panel:nth-child(3) .area-num { color: #86c4a3; }
.area-panel:nth-child(4) .area-num { color: var(--selva-sand); }
.area-step { width: min(380px, 28vw); padding-bottom: 4px; opacity: 0; transform: translateX(-24px); filter: blur(6px);
  transition: opacity 0.4s, transform 0.5s, filter 0.4s; }
.area-panel.is-active .area-step { opacity: 1; transform: none; filter: none;
  transition: opacity 0.7s 0.4s, transform 0.9s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s 0.4s; }
.area-step h3 { margin-bottom: 12px; }
.area-step p { color: var(--ink-72); font-size: 0.94rem; line-height: 1.45; }

/* Cierre al atardecer */
.final-cta-dusk { position: relative; overflow: hidden; background: #3b3f6a; min-height: clamp(560px, 82vh, 780px); padding-top: clamp(56px, 8vw, 110px); }
.final-cta-bg { position: absolute; inset: 0; z-index: 0; }
.final-cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.final-cta-dusk .leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.final-cta-dusk > .container { position: relative; z-index: 2; }
.final-cta-card { padding: clamp(28px, 4vw, 52px); border-radius: 26px; background: rgba(255, 254, 249, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(20, 24, 60, 0.28); align-items: center; }
.leaf { position: absolute; top: -24px; width: 16px; height: 24px; opacity: 0.8; animation: leaf-fall linear infinite;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 24'%3E%3Cpath d='M8 0C14 6 16 14 8 24 0 14 2 6 8 0Z' fill='%238fae7a'/%3E%3Cpath d='M8 3v19' stroke='%23587446' stroke-width='.8' fill='none'/%3E%3C/svg%3E"); }
@keyframes leaf-fall { to { transform: translate(var(--dx, 0), 95vh) rotate(540deg) scale(var(--sc, 1)); } }

/* Galería del consultorio (movida desde la home a Contacto) */
.gallery-section .section-heading { margin-bottom: 24px; }

@media (max-width: 860px) {
  .areas-track { flex-direction: column; height: auto; border-bottom: 0; }
  .area-panel { flex: none; overflow: visible; border-right: 0; border-top: 1px solid var(--line); cursor: auto; }
  .area-in { position: relative; left: auto; bottom: auto; width: auto; padding: 28px var(--pad-x); gap: 18px; }
  .area-num { font-size: 96px; }
  .area-step { width: auto; flex: 1; opacity: 1; transform: none; filter: none; }
  .areas-bird { display: none; }
  .hero-selva { padding-bottom: calc(min(100vw, 440px) - 70px); }
  .hero-selva .hero-bg { bottom: 0; }
  .hero-selva::after { height: 36px; }
  .hero-selva .hero-video { aspect-ratio: auto; height: min(100vw, 440px); object-position: 62% 100%; }
}
@media (max-width: 760px) {
  .final-cta-dusk { min-height: 0; padding-bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .drift-a, .leaf { animation: none; }
  .leaf { display: none; }
  .area-panel, .area-step { transition: none; }
}

/* Franja del mural animado en las páginas interiores */
.page-mural { position: relative; height: clamp(150px, 21vw, 290px); overflow: hidden; background: var(--selva-cream, #f7f4e5);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.page-mural video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 82%; }
@media (max-width: 760px) { .page-mural { height: 130px; } .page-mural video { object-position: 62% 88%; } }

/* Temas nocturnos: la tarjeta del hero casi opaca para que no se vea grisácea sobre el cielo oscuro */
html[data-tema$="-noche"] .hero-selva .hero-grid { background: rgba(255, 254, 249, 0.97); }
html[data-tema$="-noche"] .page-mural { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }

/* Foto con <picture> dentro de los marcos de historia */
.story-photo-frame picture { display: block; width: 100%; height: 100%; }
@media (min-width: 861px) { .story-photo-muneca picture img { height: 480px; object-fit: cover; object-position: 50% 58%; } }
