/* ==========================================================================
   Mejorarte – Clínica de Bienestar · styles.css
   Single stylesheet. Mobile-first. Tokens sampled from the official logo.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-soft-normal.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-soft-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-soft-italic.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-soft-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/dm-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --terracotta: #AA7358;
  --terracotta-deep: #8E5A42;
  --terracotta-ink: #7A4C37;
  --sage: #85846E;
  --sage-deep: #5F5F4D;
  --blush: #D6B9A3;
  --blush-wash: #F4EAE2;
  --sage-wash: #EEEEE6;
  --cream: #FBF8F4;
  --white: #FFFFFF;
  --ink: #2F2E28;
  --ink-soft: #55534A;
  --hairline: #E7E1D9;
  --online: #3BA55D;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-card: 18px;
  --radius-photo: 24px;
  --radius-pill: 999px;
  --arch: 999px 999px 24px 24px;

  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } } /* 18px */
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--terracotta-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--terracotta-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blush-wash); color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px;
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "SOFT" 100;
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.375rem, 5.2vw, 4.25rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 400; }
h4 { font-size: 1.15rem; font-weight: 400; }
h1 em, h2 em, .accent {
  font-style: italic; color: var(--terracotta); font-weight: 300;
}
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 40em; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-deep); margin: 0 0 18px;
}
.small { font-size: .9rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.band-cream { background: var(--cream); }
.band-blush { background: var(--blush-wash); }
.band-sage { background: var(--sage-wash); }
.wash { background: radial-gradient(ellipse 70% 60% at 15% 0%, rgba(133,132,110,.13), rgba(255,255,255,0) 70%), var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); }
.grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split.reverse > :first-child { order: 2; }
  .split.even { grid-template-columns: 1fr 1fr; }
}
.stack > * + * { margin-top: 16px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--sage-wash); color: var(--sage-deep);
  font-size: .85rem; text-align: center; padding: 9px var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.announce a { color: var(--sage-deep); text-decoration: none; font-weight: 500; }
.announce a:hover { color: var(--ink); text-decoration: underline; }
.announce .sep { margin: 0 .5em; opacity: .6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header.is-compact { border-bottom-color: var(--hairline); }
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h); transition: min-height .3s var(--ease);
}
.site-header.is-compact .header-inner { min-height: 64px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 38px; width: auto; transition: height .3s var(--ease); }
@media (min-width: 1240px) {
  .brand img { height: 48px; }
  .site-header.is-compact .brand img { height: 42px; }
}
.main-nav { display: none; margin-left: auto; }
.main-nav > ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.main-nav a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--radius-pill);
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 450;
  background: none; border: 0; cursor: pointer; min-height: 44px; white-space: nowrap;
}
.main-nav a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--cream); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--terracotta-deep); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 1240px) { .main-nav + .header-actions { margin-left: 8px; } }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  min-width: 44px; min-height: 44px; border-radius: var(--radius-pill);
}
.header-phone svg { width: 20px; height: 20px; color: var(--terracotta-deep); }
.header-phone .num { display: none; }
.lang-toggle {
  display: inline-flex; align-items: center; font-size: .82rem; font-weight: 500; letter-spacing: .06em;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 2px;
}
.lang-toggle a, .lang-toggle span {
  padding: 6px 10px; border-radius: var(--radius-pill); text-decoration: none; color: var(--ink-soft);
  min-height: 32px; display: inline-flex; align-items: center;
}
.lang-toggle span[aria-current] { background: var(--sage-wash); color: var(--ink); }
.lang-toggle a:hover { color: var(--ink); }
.btn.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 50%;
  background: var(--white); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (min-width: 640px) { .btn.header-cta { display: inline-flex; } }
@media (min-width: 1240px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
}
@media (min-width: 1360px) {
  .header-phone .num { display: inline; white-space: nowrap; }
  .header-phone { padding: 0 6px; }
}
@media (max-width: 1239px) { .header-actions .lang-toggle { display: none; } }

/* Mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 48px; padding-block: 40px; }
.mega h2 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); font-weight: 500; margin-bottom: 14px; }
.mega ul { list-style: none; }
.mega a {
  display: block; padding: 8px 0; border-radius: 0; min-height: 0;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 350; color: var(--ink);
}
.mega a:hover { background: none; color: var(--terracotta-deep); }
.mega .cols-2 { columns: 2; column-gap: 32px; }
.mega-feature { background: var(--blush-wash); border-radius: var(--radius-card); padding: 28px; align-self: start; }
.mega-feature p { font-size: .95rem; color: var(--ink-soft); }
.mega-feature a.textlink { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--terracotta-deep); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--cream);
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--hairline); }
.mobile-menu-top img { height: 38px; width: auto; }
.mobile-menu nav { padding: 20px var(--gutter) 40px; }
.mobile-menu .mm-group { margin-bottom: 28px; }
.mobile-menu .mm-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); font-weight: 500; margin-bottom: 8px; }
.mobile-menu ul { list-style: none; }
.mobile-menu a.mm-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px;
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 350; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a.mm-link.small-link { font-size: 1.15rem; }
.mobile-menu .mm-actions { display: grid; gap: 12px; margin-top: 24px; }
.mobile-menu .lang-toggle { align-self: flex-start; margin-top: 8px; }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--terracotta-deep); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-ink); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--sage); }
.btn-secondary:hover { background: var(--sage-wash); color: var(--ink); border-color: var(--sage-deep); }
.btn-quiet { background: var(--white); color: var(--ink); border-color: var(--hairline); }
.btn-quiet:hover { border-color: var(--sage); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  color: var(--terracotta-deep); text-decoration: none; min-height: 44px;
}
.textlink .arr { transition: transform .25s var(--ease); }
.textlink:hover .arr { transform: translateX(4px); }
.call-line { margin-top: 22px; font-size: .95rem; color: var(--ink-soft); }
.call-line a { font-weight: 500; }

/* ---------- Photos ---------- */
.photo { position: relative; border-radius: var(--radius-photo); overflow: hidden; background: var(--sage-wash); }
.photo picture { display: block; width: 100%; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo.arch { border-radius: var(--arch); }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-169 { aspect-ratio: 16 / 9; }
.photo-wrap { position: relative; isolation: isolate; }
.photo-wrap .block {
  position: absolute; z-index: -1; border-radius: var(--radius-photo);
  background: var(--blush-wash); inset: 28px -18px -22px 32px;
}
.photo-wrap .block.terra { background: rgba(170,115,88,.16); }
.photo-wrap .block.sage { background: var(--sage-wash); }
.photo-wrap .block.arch { border-radius: var(--arch); }
@media (min-width: 900px) { .photo-wrap .block { inset: 40px -32px -32px 48px; } }
.photo-wrap .leaf-accent { position: absolute; width: 64px; height: 64px; z-index: 2; }
.leaf-tl { top: -18px; left: -14px; }
.leaf-br { bottom: 26px; right: -22px; }
a:hover .photo img, .card-link:hover .photo img { transform: scale(1.03); }

/* Leaf mark */
.leaf { color: var(--sage); }
.leaf.blush { color: var(--blush); }
.leaf-inline { width: 22px; height: 22px; display: inline-block; vertical-align: -3px; margin-right: 6px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.hero .split { grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero .split { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { max-width: 13em; }
.hero .lead { margin-bottom: 32px; }
.hero-photo { max-width: 520px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .hero-photo { justify-self: end; } }
.page-hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); max-width: 14em; }

/* Breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--ink-soft); padding-top: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--blush); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terracotta-deep); text-decoration: underline; }

/* ---------- Coverage strip ---------- */
.coverage { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--white); }
.coverage-inner { display: grid; gap: 18px; padding-block: 26px; align-items: center; }
.coverage-item { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.coverage-item strong { display: block; color: var(--ink); font-weight: 500; }
.coverage-item svg { width: 28px; height: 28px; color: var(--sage); flex-shrink: 0; margin-top: 2px; }
@media (min-width: 1024px) {
  .coverage-inner { grid-template-columns: 1fr 1.5fr 1fr auto; gap: 32px; }
  .coverage-item + .coverage-item { border-left: 1px solid var(--hairline); padding-left: 28px; }
}

/* ---------- Discipline list (Sage Hill pattern) ---------- */
.discipline-list { list-style: none; border-top: 1px solid var(--hairline); }
.discipline-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -0.015em;
  transition: color .25s var(--ease), padding .25s var(--ease);
}
.discipline-list a .arr { font-family: var(--font-body); font-size: 1.1rem; color: var(--sage); transition: transform .25s var(--ease), color .25s; }
.discipline-list a:hover { color: var(--terracotta-deep); padding-left: 10px; }
.discipline-list a:hover .arr { transform: translateX(4px); color: var(--terracotta-deep); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: clamp(26px, 3vw, 38px);
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.card.tint { background: var(--cream); border-color: transparent; }
.card.tint-blush { background: var(--blush-wash); border-color: transparent; }
.card.tint-sage { background: var(--sage-wash); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .textlink { margin-top: auto; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; transform: translateY(-2px); background: var(--cream); border-color: var(--blush); }
.card-link.tint:hover, .card-link.tint-sage:hover { background: var(--blush-wash); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-photo { padding: 0; overflow: hidden; }
.card-photo .photo { border-radius: 0; aspect-ratio: 3 / 2; }
.card-photo .card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.card-photo .card-body .textlink { margin-top: auto; }

/* Audience cards */
.audience-card { text-decoration: none; color: var(--ink); display: block; }
.audience-card .photo { aspect-ratio: 4 / 5; border-radius: var(--arch); margin-bottom: 18px; }
.audience-card h3 { margin-bottom: 4px; }
.audience-card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 6px; }
.audience-card:hover { color: var(--ink); }
.audience-card:hover h3 { color: var(--terracotta-deep); }

/* ---------- Team numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hairline); }
.stat { padding: 26px 18px 26px 0; border-bottom: 1px solid var(--hairline); }
.stat:nth-child(odd) { border-right: 1px solid var(--hairline); }
.stat:nth-child(even) { padding-left: 22px; }
.stat .num {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1; color: var(--terracotta); letter-spacing: -0.03em; display: block; margin-bottom: 8px;
}
.stat .label { font-size: .98rem; color: var(--ink); }
.stat .sub { display: block; font-size: .85rem; color: var(--ink-soft); }
@media (min-width: 1024px) {
  .stats.four { grid-template-columns: repeat(4, 1fr); }
  .stats.four .stat { border-right: 1px solid var(--hairline); padding-left: 22px; }
  .stats.four .stat:first-child { padding-left: 0; }
  .stats.four .stat:last-child { border-right: 0; }
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px;
  border-radius: var(--radius-pill); background: var(--blush-wash); color: var(--ink);
  font-size: .92rem; font-weight: 450; border: 1px solid transparent;
}
.chip.outline { background: transparent; border-color: var(--hairline); }
.chip.sage { background: var(--sage-wash); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step .n {
  font-family: var(--font-display); font-weight: 300; font-size: 2.2rem; line-height: 1;
  color: var(--terracotta); letter-spacing: -0.02em;
}
.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.steps.horizontal { gap: 24px; }
@media (min-width: 1024px) {
  .steps.horizontal { grid-template-columns: repeat(4, 1fr); }
  .steps.horizontal .step { grid-template-columns: 1fr; border-top: 1px solid var(--blush); border-bottom: 0; padding-top: 26px; }
}

/* ---------- Concern list ---------- */
.check-list { list-style: none; display: grid; gap: 0; }
.check-list li {
  position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--hairline); font-size: 1.02rem;
}
.check-list li:first-child { border-top: 1px solid var(--hairline); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 14px;
  background: var(--sage); -webkit-mask: var(--leaf-mask) center / contain no-repeat; mask: var(--leaf-mask) center / contain no-repeat;
}
@media (min-width: 900px) { .check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 40px; } .check-list.two-col li:nth-child(2) { border-top: 1px solid var(--hairline); } }
:root { --leaf-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5C11 3.6 4.2 8.4 4 16.4c0 1.4.3 2.7.8 3.8 1-4.2 3.7-8 8-10.6-3.4 3.1-5.6 6.6-6.4 10.7 1.1.4 2.3.6 3.6.5 7.3-.6 10.8-7.4 10.5-17.3z'/%3E%3C/svg%3E"); }
.plain-list { list-style: none; }
.plain-list li { padding: 6px 0; }

/* Info blocks */
.info-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-block { padding: 28px; border-radius: var(--radius-card); background: var(--cream); }
.info-block h3 { font-size: 1.2rem; margin-bottom: 8px; }
.info-block p, .info-block li { font-size: .98rem; color: var(--ink-soft); }
.info-block ul { list-style: none; }
.info-block li { padding: 3px 0; }
.label-sm { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); font-weight: 500; display: block; margin-bottom: 10px; }

/* Sub-blocks (service detail sections) */
.sub-block { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hairline); }
.sub-block:first-of-type { border-top: 0; padding-top: 0; }
.sub-block .split { align-items: start; }

/* Mode cards (Dónde y cómo) */
.mode-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.mode-card .photo { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.mode-card h3 { margin-bottom: 6px; }
.mode-card p { color: var(--ink-soft); font-size: 1rem; }
.mode-card:hover h3 { color: var(--terracotta-deep); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px; font-family: var(--font-display); font-weight: 350; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.15rem, 1.8vw, 1.38rem); line-height: 1.35; color: var(--ink); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 1.5px; background: var(--terracotta-deep); transition: transform .3s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq summary:hover { color: var(--terracotta-deep); }
.faq .answer { padding: 0 2px 24px; color: var(--ink-soft); max-width: 46em; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blush-wash); border-radius: 28px; padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band .split { align-items: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .leaf-bg { position: absolute; right: -30px; top: -30px; width: 200px; height: 200px; opacity: .55; color: var(--blush); }
.cta-band .contacts { list-style: none; display: grid; gap: 8px; font-size: 1rem; }
.cta-band .contacts a { color: var(--ink); font-weight: 500; text-decoration: none; }
.cta-band .contacts a:hover { color: var(--terracotta-deep); text-decoration: underline; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); }
table.pay { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .98rem; }
table.pay caption { text-align: left; padding: 20px 24px 0; color: var(--ink-soft); font-size: .9rem; }
table.pay th, table.pay td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.pay thead th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); font-weight: 500; background: var(--cream); }
table.pay tbody th { font-weight: 500; }
table.pay tbody th a { color: var(--ink); text-decoration: none; }
table.pay tbody th a:hover { color: var(--terracotta-deep); text-decoration: underline; }
table.pay tr:last-child th, table.pay tr:last-child td { border-bottom: 0; }
.yes { color: var(--sage-deep); font-weight: 500; }
.ask { color: var(--terracotta-ink); }
.no { color: #8A877C; }

/* ---------- Monogram ---------- */
.monogram-card { display: grid; gap: 28px; align-items: center; }
@media (min-width: 700px) { .monogram-card { grid-template-columns: 220px 1fr; } }
.monogram {
  width: 200px; height: 240px; border-radius: var(--arch); background: var(--blush-wash);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 300;
  font-size: 4.5rem; letter-spacing: -0.03em; color: var(--terracotta);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 700px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 8px; color: var(--ink); }
.field .req { color: var(--terracotta-deep); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #D9D1C6; border-radius: 12px;
  background: var(--white); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F5F4D' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta-deep); box-shadow: 0 0 0 3px rgba(142,90,66,.15); }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.field .error { font-size: .88rem; color: #A23B2A; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A23B2A; }
.field.has-error .error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--terracotta-deep); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 14px; padding: 18px 20px; font-size: 1rem; display: none; }
.form-status.ok { display: block; background: var(--sage-wash); color: var(--ink); }
.form-status.err { display: block; background: #F8E6E1; color: #7A2B1E; }
.form-card { background: var(--white); border: 1px solid var(--hairline); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }

/* Contact list */
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.contact-list svg { width: 22px; height: 22px; color: var(--sage); margin-top: 3px; }
.contact-list strong { display: block; font-weight: 500; }
.contact-list a { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--hairline); padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; color: var(--ink-soft); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr .9fr 1fr; } }
.footer-logo img { width: 150px; height: auto; margin-bottom: 18px; }
.site-footer h2 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--terracotta-deep); text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-towns { margin-top: 10px; }
.crisis-note { margin-top: 44px; padding: 18px 22px; border-radius: 14px; background: var(--white); border: 1px solid var(--hairline); color: var(--ink); font-size: .95rem; }
.crisis-note a { color: var(--terracotta-deep); font-weight: 500; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 26px 0 32px; margin-top: 32px; border-top: 1px solid var(--hairline); font-size: .85rem; }
.footer-bottom a { color: var(--ink-soft); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline); display: grid; place-items: center; background: var(--white); }
.social svg { width: 18px; height: 18px; color: var(--sage-deep); }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--hairline);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; border-radius: 14px; text-decoration: none; font-size: .8rem; font-weight: 500; color: var(--ink);
  background: var(--cream);
}
.mobile-bar a svg { width: 20px; height: 20px; color: var(--sage-deep); }
.mobile-bar a.primary { background: var(--terracotta-deep); color: var(--white); flex-direction: row; gap: 8px; font-size: .92rem; }
.mobile-bar a.primary svg { color: var(--white); }
@media (max-width: 899px) { body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  a:hover .photo img, .card-link:hover .photo img { transform: none; }
  .card-link:hover { transform: none; }
}

/* ---------- Misc ---------- */
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.note { font-size: .92rem; color: var(--ink-soft); border-left: 2px solid var(--blush); padding-left: 16px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.err-404 { min-height: 60vh; display: grid; align-items: center; }
.big-404 { font-family: var(--font-display); font-weight: 300; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--terracotta); letter-spacing: -0.04em; }
.divider-leaf { display: flex; justify-content: center; margin: 0 auto 18px; }
.divider-leaf svg { width: 36px; height: 36px; }

/* ==========================================================================
   Chatbot – Asistente de Mejorarte
   ========================================================================== */
.chat-launcher {
  position: fixed; right: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 70;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--terracotta-deep); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(47,46,40,.16);
  transition: transform .25s var(--ease), background-color .2s;
}
.chat-launcher:hover { background: var(--terracotta-ink); transform: translateY(-2px); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .dot { position: absolute; top: 6px; right: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--online); border: 2px solid var(--white); }
@media (min-width: 900px) { .chat-launcher { bottom: 28px; right: 28px; } }
.chat-launcher[aria-expanded="true"] { display: none; }
.chat-tip {
  position: fixed; right: 18px; bottom: calc(162px + env(safe-area-inset-bottom)); z-index: 70;
  max-width: 250px; background: var(--white); color: var(--ink); border: 1px solid var(--hairline);
  border-radius: 16px 16px 4px 16px; padding: 12px 38px 12px 16px; font-size: .93rem; line-height: 1.4;
  box-shadow: 0 8px 22px rgba(47,46,40,.1); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.chat-tip.show { opacity: 1; transform: none; }
.chat-tip button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--ink-soft); font-size: 1.1rem; line-height: 1; border-radius: 50%; }
@media (min-width: 900px) { .chat-tip { right: 28px; bottom: 100px; } }

.chat-panel {
  position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; top: 0;
  background: var(--cream); display: none; flex-direction: column;
  font-family: var(--font-body);
}
.chat-panel.is-open { display: flex; }
@media (min-width: 640px) {
  .chat-panel { left: auto; top: auto; right: 24px; bottom: 24px; width: 390px; height: min(640px, calc(100vh - 48px)); border-radius: 22px; border: 1px solid var(--hairline); box-shadow: 0 18px 50px rgba(47,46,40,.16); overflow: hidden; }
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--white); border-bottom: 1px solid var(--hairline); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; background: var(--white); padding: 4px; border: 1px solid var(--hairline); }
.chat-head .title { font-weight: 500; font-size: 1rem; line-height: 1.2; }
.chat-head .status { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-soft); }
.chat-head .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--online); display: inline-block; }
.chat-close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.chat-close:hover { background: var(--cream); }
.chat-close svg { width: 20px; height: 20px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: .95rem; line-height: 1.5; word-wrap: break-word; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg.bot { background: var(--white); border: 1px solid var(--hairline); border-bottom-left-radius: 6px; align-self: flex-start; color: var(--ink); }
.msg.bot.alert { background: var(--blush-wash); border-color: var(--blush); }
.msg.user { background: var(--terracotta-deep); color: var(--white); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 92%; }
.msg-actions a, .chat-chips button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: .87rem; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid var(--sage); color: var(--ink); background: var(--white);
}
.msg-actions a:hover, .chat-chips button:hover { background: var(--sage-wash); color: var(--ink); }
.msg-actions a.primary { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: var(--white); }
.msg-actions a.primary:hover { background: var(--terracotta-ink); color: var(--white); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.chat-chips button:disabled { opacity: .5; cursor: not-allowed; }
.typing { align-self: flex-start; background: var(--white); border: 1px solid var(--hairline); border-radius: 16px; border-bottom-left-radius: 6px; padding: 14px 16px; display: inline-flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: chatdot 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none !important; opacity: .7; } }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 6px; background: var(--white); border-top: 1px solid var(--hairline); }
.chat-form input { flex: 1; min-height: 46px; border: 1px solid #D9D1C6; border-radius: var(--radius-pill); padding: 10px 16px; font-size: 1rem; background: var(--white); }
.chat-form input:focus { outline: none; border-color: var(--terracotta-deep); box-shadow: 0 0 0 3px rgba(142,90,66,.15); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--terracotta-deep); color: var(--white); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.chat-form button:disabled { opacity: .5; cursor: not-allowed; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-disclaimer { background: var(--white); font-size: .75rem; color: var(--ink-soft); padding: 4px 18px calc(12px + env(safe-area-inset-bottom)); line-height: 1.4; }

/* ---------- Generator helpers ---------- */
.card-num {
  display: block; font-family: var(--font-display); font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: 2rem; line-height: 1; color: var(--terracotta); letter-spacing: -0.02em; margin-bottom: 26px;
}
.h3like { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 400; letter-spacing: -0.01em; }
.h2like { font-size: clamp(1.875rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: -0.02em; }
.card-photo .card-body h2.h3like { margin-bottom: 10px; }
[data-center] { justify-content: center; }
.hero-photo .photo-wrap, .split .photo-wrap { max-width: 520px; }
.split > .reveal .photo-wrap { margin-inline: auto; }
.page-hero .hero-photo { max-width: 480px; }
.cta-band .contacts li { display: block; }
.cta-band .contacts .label-sm { margin-bottom: 2px; }
.textlink + br + .textlink { margin-top: -6px; }
body { overflow-x: clip; }
.header-phone svg, .btn svg, .contact-list svg { flex-shrink: 0; }
.grid-4 .card h3 { font-size: clamp(1.2rem, 1.5vw, 1.35rem); }
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 767px) { .card-num { font-size: 1.6rem; margin-bottom: 14px; } }
.steps.horizontal .step { align-content: start; }
@media (min-width: 900px) { .split:has(> .form-card) { grid-template-columns: 1.35fr .85fr; align-items: start; } }
.mega-feature .textlink { display: flex; min-height: 36px; }
.site-footer a[href*="wa.me"], .contact-list a[href*="wa.me"] { white-space: nowrap; }

/* ---------- Mobile optimization pass ---------- */
.announce .short { display: none; }
@media (max-width: 639px) {
  .announce { font-size: .8rem; padding: 8px 16px; }
  .announce .long { display: none; }
  .announce .short { display: inline; }
  .header-inner { min-height: 64px; gap: 12px; }
  .site-header.is-compact .header-inner { min-height: 58px; }
  .header-actions { gap: 6px; }
  .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-band .btn-row .btn { flex: 1 1 100%; }
  .hero { padding-top: 32px; }
  .hero .lead, .page-hero .lead { font-size: 1.06rem; }
  .call-line { font-size: .92rem; }
  .chat-launcher { width: 54px; height: 54px; right: 14px; }
  .chat-launcher svg { width: 24px; height: 24px; }
  .chat-tip { right: 14px; bottom: calc(150px + env(safe-area-inset-bottom)); }
  .section-head { margin-bottom: 32px; }
  .cta-band { border-radius: 22px; padding: 32px 22px; }
  .photo-wrap .block { inset: 20px -10px -14px 20px; }
  .leaf-accent { width: 48px; height: 48px; }
  .stat .num { font-size: 2.8rem; }
  .discipline-list a { padding: 15px 2px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 639px) {
  .hide-mobile { display: none; }
  .page-hero .photo.ratio-45 { aspect-ratio: 1 / 1; }
  .page-hero .hero-photo { max-width: 340px; }
  .form-card { padding: 22px 18px; border-radius: 18px; }
  .form-card button[type="submit"] { width: 100%; }
  .page-hero { padding-bottom: 48px; }
}
@media (max-width: 639px) {
  .page-hero:has(.hide-mobile) { padding-bottom: 24px; }
  .page-hero:has(.hide-mobile) + .section { padding-top: 8px; }
}

/* ---------- Revisions Nov 20: bigger logo, social links, real photos ---------- */
:root { --header-h: 84px; }
.brand img { height: 46px; }
@media (min-width: 640px) { .brand img { height: 52px; } }
@media (min-width: 1240px) {
  .brand img { height: 60px; }
  .site-header.is-compact .brand img { height: 52px; }
}
@media (max-width: 639px) {
  .header-inner { min-height: 70px; }
  .site-header.is-compact .header-inner { min-height: 62px; }
  .site-header.is-compact .brand img { height: 42px; }
}
.mobile-menu-top img { height: 44px; }

.social-links { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.social-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 500; }
.social-links a svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--white); color: var(--terracotta-deep); flex-shrink: 0; }
.social-links a:hover { color: var(--terracotta-deep); }
.social-links a:hover svg { border-color: var(--terracotta-deep); }
.social-links .handle { color: var(--ink-soft); font-weight: 400; margin-left: 4px; }
.social-links.inline { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.contact-list .social-links a { font-weight: 500; }
.mobile-menu .social-links a { font-size: 1.05rem; }

.person-figure { margin: 0; }
.person-figure figcaption { margin-top: 48px; font-size: .95rem; color: var(--ink-soft); text-align: center; }
.person-figure figcaption strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); }
@media (max-width: 899px) { .person-figure figcaption { margin-top: 36px; } }

@media (min-width: 768px) { .info-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .info-grid.four { grid-template-columns: repeat(4, 1fr); } }
.plan-chips { margin-top: 6px; }
.photo img[src*="dra-keishla"] { object-position: 50% 20%; }
.photo img[src*="caja-arena"] { object-position: 50% 60%; }
@media (min-width: 1024px) { .coverage-inner { grid-template-columns: 1.35fr 1.45fr .9fr auto; } }

/* ---------- Conoce nuestro espacio (Primera visita) ----------
   Title + one description on top, 6 small photos underneath.
   Sized so the whole section fits on one screen at every breakpoint. */
.space-section { padding-block: clamp(44px, 5.5vw, 72px); }
.space-head { max-width: 860px; margin-bottom: clamp(22px, 3vw, 34px); }
.space-head .eyebrow { margin-bottom: 12px; }
.space-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 12px; }
.space-head .lead { font-size: clamp(1rem, 1.25vw, 1.1rem); max-width: 46em; margin: 0 auto; }
.space-gallery {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; max-width: 520px; margin: 0 auto;
}
.space-item .photo { aspect-ratio: 1 / 1; border-radius: 12px; }
@media (min-width: 640px) { .space-gallery { gap: 12px; } }
@media (min-width: 900px) {
  .space-gallery { grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: none; }
  .space-item .photo { aspect-ratio: 4 / 5; border-radius: 16px; }
}

/* ---------- Planes que aceptamos: logo marquee (Planes page) ----------
   Full-width band, about a third of the screen tall. Each logo slot is exactly 1/3 of the
   screen width, so 3 logos are always on screen. Two identical sets scroll right-to-left
   for a seamless loop. Pauses on hover and via the button (WCAG 2.2.2); static under reduced motion. */
.plans-marquee { padding-block: clamp(26px, 4.5vh, 48px); overflow: hidden; }
.plans-marquee-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(14px, 2.6vh, 26px); }
.plans-marquee-head .eyebrow { margin-bottom: 8px; }
.plans-marquee-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin: 0; }
.marquee {
  --card-h: clamp(76px, min(15vh, 22vw), 180px);
  container-type: inline-size; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.marquee-track { list-style: none; display: flex; width: max-content; animation: plans-marquee 36s linear infinite; will-change: transform; }
.marquee-item { flex: 0 0 auto; width: 33.333vw; width: calc(100cqw / 3); padding: 0 6px; }
@media (min-width: 640px) { .marquee-item { padding: 0 9px; } }
.logo-card {
  height: var(--card-h); background: var(--white); border: 1px solid var(--hairline); border-radius: 18px;
  display: grid; grid-template: 100% / 100%; place-items: center; padding: 10px 10px;
}
@media (min-width: 640px) { .logo-card { padding: 16px 20px; } }
.logo-card img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
/* Per-logo sizing so the four marks carry similar visual weight */
.logo-triples img { width: 96%; }
.logo-firstmedical img { width: 92%; }
.logo-menonita img { width: 88%; }
.logo-mmm img { height: 60%; }
@media (min-width: 1024px) {
  .logo-triples img { width: 70%; }
  .logo-firstmedical img { width: 62%; max-width: 281px; } /* source file is small: never upscale past its natural size */
  .logo-menonita img { width: 58%; }
  .logo-mmm img { height: 96%; }
}
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes plans-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sage);
  background: var(--white); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.js .marquee-toggle { display: inline-flex; }
.marquee-toggle:hover { background: var(--sage-wash); border-color: var(--sage-deep); }
.marquee-toggle svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; transform: none !important; width: 100%; }
  .marquee-item[aria-hidden="true"] { display: none; }
  .marquee-item { width: 25%; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .js .marquee-toggle { display: none; }
}

/* Team numbers: tighter labels now that each group shows its degrees */
.stat .label { display: block; line-height: 1.35; }
.stat .sub { line-height: 1.45; margin-top: 4px; }
@media (max-width: 639px) {
  .stat .label { font-size: .92rem; }
  .stat .sub { font-size: .8rem; line-height: 1.4; }
}
.stats-note { margin: 14px 0 0; font-size: .88rem; color: var(--ink-soft); }

/* Contact page · "Redes sociales": one clean row per network (icon, name, handle underneath) */
.contact-list .social-links, .contact-list .social-links.inline { display: grid; gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.contact-list .social-links li { display: block; grid-template-columns: none; gap: 0; margin: 0; padding: 0; }
.contact-list .social-links a { display: flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; color: var(--ink); font-weight: 500; }
.contact-list .social-links a svg { width: 40px; height: 40px; flex: 0 0 40px; margin: 0; padding: 6px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--blush); stroke-width: 1.8; background: var(--terracotta); color: var(--white); }
.contact-list .social-links li:nth-child(2) a svg { background: var(--sage-deep); }
.contact-list .social-links a > span:not(.sr-only) { display: flex; flex-direction: column; line-height: 1.3; }
.contact-list .social-links .handle { margin: 2px 0 0; font-size: .92rem; font-weight: 400; color: var(--ink-soft); }
.contact-list .social-links a:hover { color: var(--terracotta-deep); }
.contact-list .social-links a:hover svg { border-color: var(--terracotta-deep); }
