/* ===========================================================================
   Components — Clínica Dental Mª Cristina Sagarzazu
   ========================================================================= */

/* ---------- WhatsApp botón flotante (estándar clínicas 2026) ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: var(--z-sticky);
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.7em 1.1em 0.7em 0.85em;
  border-radius: var(--radius-pill);
  background: #25D366; color: #fff;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--step--1);
  box-shadow: 0 8px 26px oklch(0.72 0.18 150 / 0.45);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 32px oklch(0.72 0.18 150 / 0.55); }
.wa-float:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float__label { white-space: nowrap; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 #25D36680; animation: wa-pulse 2.8s var(--ease-out) infinite; pointer-events: none; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 #25D36666; } 70% { box-shadow: 0 0 0 14px #25D36600; } 100% { box-shadow: 0 0 0 0 #25D36600; } }
@media (prefers-reduced-motion: reduce) { .wa-float__pulse { animation: none; } .wa-float:hover { transform: translateY(-2px); } }
@media (max-width: 540px) { .wa-float__label { display: none; } .wa-float { padding: 0.8em; } }

/* ---------- Proceso "tu primera visita" (pasos) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-s); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: var(--space-m);
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  counter-increment: step;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: var(--space-xs);
  border-radius: 50%; background: var(--brand); color: var(--white);
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.step p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.step__icon { position: absolute; top: var(--space-m); right: var(--space-m); width: 30px; height: 30px; color: var(--wood); opacity: 0.7; }

/* ---------- Hero cursor glow ---------- */
.hero__glow {
  position: absolute; top: 0; left: 0;
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.13 66 / 0.16), transparent 65%);
  pointer-events: none; z-index: -1;
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) { .hero__glow { display: none; } }

/* reveal-line clipping for hero entrance */
.reveal-line { display: inline-block; overflow: hidden; }
.reveal-line > span { display: inline-block; }

/* show-more collapsible groups */
[data-collapse] { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
[data-collapse] > div { overflow: hidden; }
[data-collapse].is-expanded { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) { [data-collapse] { transition: none; } }

/* ---------- Page loader (first visit only; JS adds .loader-active) -------- */
.loader {
  position: fixed; inset: 0;
  z-index: var(--z-loader);
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.loader[hidden] { display: none; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__tooth { width: clamp(64px, 12vw, 104px); height: auto; }
.loader__tooth path.fill { transition: none; }
.loader__bar {
  margin-top: var(--space-s);
  width: clamp(120px, 30vw, 220px);
  height: 3px; border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 100%;
  background: var(--wood);
  border-radius: 3px;
  transform: scaleX(0); transform-origin: left;
  /* JS drives --p (0..1); GPU-friendly scale, no layout thrash */
  transform: scaleX(var(--p, 0));
}
.loader__name {
  margin-top: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Scroll progress (thin wood line) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--wood));
  z-index: var(--z-toast);
  transform: scaleX(var(--p, 0)); transform-origin: left;
  /* GPU-friendly; JS sets --p (0..1) on scroll */
}

/* ---------- Header ---------- */
/* jump targets (service sections, etc.) clear the sticky header when linked */
section[id], [id].section { scroll-margin-top: calc(var(--header-h, 72px) + 1.25rem); }

.header {
  position: sticky; top: 0;
  z-index: var(--z-header);
  background: oklch(0.97 0.012 82 / 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: oklch(0.98 0.012 82 / 0.94);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-s);
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
}
.brand__logo { width: 38px; height: 38px; flex: none; }
.brand__name small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72em;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: clamp(0.4rem, 1.5vw, 1.4rem); }
.nav__links { display: flex; align-items: center; gap: clamp(0.4rem, 1.2vw, 1rem); }
.nav__link {
  position: relative;
  padding: 0.5em 0.2em;
  font-weight: 500;
  font-size: var(--step--1);
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0.15em;
  width: 100%; height: 2px;
  background: var(--wood);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__link[aria-current="true"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link[aria-current="true"]::after {
  transform: scaleX(1); transform-origin: left;
}

/* Servicios dropdown.
   Desktop: opens on hover/focus, absolutely positioned so it can NEVER change
   the header's height. Mobile: a collapsed accordion inside the drawer, opened
   by .nav__sub-toggle (see initNavDropdown in main.js).
   The submenu is display:none by default and only becomes a flyout inside the
   media query below — that way a stale/blocked stylesheet degrades to a plain
   hidden list instead of dumping 9 links into the header. */
.nav__submenu { display: none; }
.nav__sub-toggle { display: none; }

@media (min-width: 881px) {
  .nav__item--has-sub { position: relative; }
  /* inline-flex so the caret sits next to the label; ::after (the hover
     underline shared by every nav link) is absolute, so it is not a flex item
     and keeps working unchanged */
  .nav__item--has-sub > .nav__link {
    display: inline-flex; align-items: center; gap: 0.3em;
  }
  .nav__item--has-sub > .nav__link::before {
    content: "▾"; font-size: 0.7em; opacity: 0.55;
    transition: transform var(--dur) var(--ease-out);
    order: 2;
  }
  .nav__item--has-sub:hover > .nav__link::before { transform: rotate(180deg); }

  /* [hidden] is repeated on purpose: the attribute stays on the element (it is
     the no-CSS/no-JS safety net) and this rule is what turns it into a flyout */
  .nav__submenu, .nav__submenu[hidden] {
    display: block;
    position: absolute; top: 100%; left: 50%;
    min-width: 250px; margin: 0; padding: 0.45rem;
    background: var(--white); border: 1px solid var(--line-soft);
    border-radius: var(--radius-m); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
    z-index: var(--z-modal);
  }
  /* invisible bridge over the gap, so moving the pointer down doesn't close it */
  .nav__submenu::before {
    content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
  }
  .nav__item--has-sub:hover .nav__submenu,
  .nav__item--has-sub:focus-within .nav__submenu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(6px);
  }
  .nav__submenu a {
    display: block; padding: 0.5em 0.85em;
    font-size: var(--step--1); font-weight: 500; color: var(--ink-soft);
    border-radius: calc(var(--radius-m) - 4px);
    transition: background var(--dur), color var(--dur);
  }
  .nav__submenu a:hover, .nav__submenu a:focus-visible { background: var(--brand-tint); color: var(--ink); }
}

@media (max-width: 880px) {
  /* accordion inside the drawer — collapsed until the caret is tapped */
  .nav__item--has-sub {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    width: 100%; column-gap: 0.5em;
  }
  .nav__sub-toggle {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    background: none; border: 0; cursor: pointer; color: var(--ink-soft);
  }
  .nav__sub-toggle svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
  .nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav__submenu {
    grid-column: 1 / -1;
    margin: 0; padding: 0 0 0.5rem 0.9rem;
    border-left: 2px solid var(--line-soft);
  }
  .nav__submenu[hidden] { display: none; }
  .nav__item--has-sub .nav__submenu:not([hidden]) { display: block; }
  .nav__submenu a {
    display: block; padding: 0.45em 0;
    font-size: var(--step-0); color: var(--ink-soft);
  }
  .nav__submenu a:hover, .nav__submenu a:focus-visible { color: var(--ink); }
}

/* language switcher */
.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.45em 0.7em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: var(--step--1); font-weight: 600;
  color: var(--ink-soft);
  transition: border-color var(--dur), color var(--dur);
}
.lang__btn:hover { border-color: var(--brand); color: var(--ink); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  min-width: 150px;
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
  z-index: var(--z-overlay);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu a {
  display: flex; align-items: center; gap: 0.6em;
  padding: 0.55em 0.7em; border-radius: var(--radius-s);
  font-size: var(--step--1); font-weight: 500; color: var(--ink-soft);
  transition: background var(--dur), color var(--dur);
}
.lang__menu a:hover, .lang__menu a[aria-current="true"] { background: var(--brand-tint); color: var(--brand-deep); }
.lang__menu a[aria-current="true"] { font-weight: 700; }

/* burger */
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger svg { width: 26px; height: 26px; }
.burger line { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transition: transform var(--dur) var(--ease-out), opacity var(--dur); transform-origin: center; }
.is-menu-open .burger .top { transform: translateY(7px) rotate(45deg); }
.is-menu-open .burger .mid { opacity: 0; }
.is-menu-open .burger .bot { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .burger { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(86vw, 360px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0.2rem;
    padding: 6rem var(--space-m) var(--space-m);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    /* visibility (not just the transform) hides this: iOS Safari can round
       vw-based widths short of fully off-canvas, leaving a sliver of the
       first link ("Inicio") visible at the edge even when "closed" */
    visibility: hidden;
    transition: transform var(--dur-slow) var(--ease-out), visibility 0s var(--dur-slow);
    z-index: var(--z-modal);
  }
  .is-menu-open .nav__links {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--dur-slow) var(--ease-out), visibility 0s;
  }
  .nav__link { font-size: var(--step-1); font-family: var(--font-display); color: var(--ink); padding: 0.5em 0; }
  .nav__link::after { bottom: 0.1em; }
  .nav__backdrop {
    position: fixed; inset: 0; background: oklch(0.24 0.02 60 / 0.45);
    opacity: 0; visibility: hidden; transition: opacity var(--dur); z-index: var(--z-overlay);
  }
  .is-menu-open .nav__backdrop { opacity: 1; visibility: visible; }
}

.header__cta { display: inline-flex; }
@media (max-width: 540px) { .header__cta .btn { padding: 0.7em 1.1em; } }

/* ---------- Hero (fullscreen profesional) ---------- */
.hero {
  position: relative;
  /* El header es sticky y ocupa su hueco arriba; el hero llena EXACTAMENTE
     el resto del viewport visible. --header-h lo fija el JS con la altura
     real del header (preciso en cualquier dispositivo). Fallback: 4.5rem.
     100svh = small viewport height → sin salto por la barra del navegador. */
  --_header-h: var(--header-h, 4.5rem);
  min-height: calc(100vh - var(--_header-h));
  min-height: calc(100svh - var(--_header-h));
  display: grid;
  align-items: center;          /* centra el contenido cuando sobra alto */
  overflow: hidden;             /* recorta solo el vídeo de fondo, no el texto */
  isolation: isolate;
}
/* En pantallas bajas (móvil apaisado, ventanas cortas) el contenido manda:
   el hero crece y se ve completo, sin recortar texto. */
@media (max-height: 640px) {
  .hero { min-height: auto; align-items: start; }
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, oklch(0.95 0.02 84 / 0.96) 0%, oklch(0.95 0.02 84 / 0.78) 38%, oklch(0.52 0.08 190 / 0.26) 100%);
}
@media (max-width: 760px) {
  .hero__scrim { background: linear-gradient(180deg, oklch(0.95 0.02 84 / 0.9), oklch(0.95 0.02 84 / 0.7)); }
}
.hero__floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__floaters svg { position: absolute; opacity: 0.5; }

.hero__inner { padding-block: clamp(2rem, 5vh, 4rem); position: relative; }
.hero__content { max-width: 40rem; }
.hero h1 { margin-bottom: var(--space-s); }
@media (max-width: 540px) { .hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.4rem); } }
@media (max-width: 540px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; font-size: var(--step-0); padding: 0.9em 1.2em; }
}
.hero h1 .ink-name { color: var(--brand-deep); position: relative; white-space: nowrap; }
.hero .underline-draw {
  display: inline-block; position: relative;
}
.hero .underline-draw svg {
  position: absolute; left: 0; right: 0; bottom: -0.18em;
  width: 100%; height: 0.4em; overflow: visible;
}
.hero__lead { margin-bottom: var(--space-m); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.hero__rating {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-top: var(--space-m);
  font-size: var(--step--1); color: var(--ink-soft); font-weight: 500;
}
.hero__rating strong { color: var(--ink); font-weight: 700; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 1.05em; height: 1.05em; }
.stars .star-fill { fill: var(--wood); }
/* Reviews below 5 stars: same shape, faded — build_reviews.py emits these once
   the wall comes from real Google data. */
.stars .star-empty { fill: var(--wood); opacity: 0.25; }

/* open/closed live pill */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.4em 0.85em; border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 600;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.pill.is-open { background: oklch(0.95 0.05 165); color: var(--mint-deep); border-color: oklch(0.85 0.06 165); }
.pill.is-open .dot { background: var(--mint-deep); box-shadow: 0 0 0 0 oklch(0.52 0.08 168 / 0.5); animation: pulse 2.4s var(--ease-out) infinite; }
.pill.is-closed { background: oklch(0.96 0.02 30); color: oklch(0.5 0.12 30); border-color: oklch(0.88 0.04 30); }
.pill.is-closed .dot { background: oklch(0.6 0.16 30); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.52 0.08 168 / 0.5); }
  70% { box-shadow: 0 0 0 9px oklch(0.52 0.08 168 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.52 0.08 168 / 0); }
}
@media (prefers-reduced-motion: reduce) { .pill .dot { animation: none; } }

/* sticky "abierto ahora" — floating live status, top-right below the header,
   revealed once the visitor scrolls past the hero (main.js). is-open/is-closed
   colour it exactly like the hero pill. Right side keeps it clear of the
   bottom-right WhatsApp float and the mobile bottom bar. */
.pill--float {
  position: fixed; z-index: var(--z-sticky);
  top: calc(var(--header-h, 72px) + 10px); right: var(--space-m);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.pill--float.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .pill--float, .pill--float.is-visible { transform: none; transition: opacity var(--dur) linear; }
}

/* ---------- Stat band (count-up) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-m);
  text-align: center;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-l) var(--space-s); } }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--step-4); font-weight: 300;
  color: var(--brand-deep); line-height: 1;
  display: flex; align-items: baseline; justify-content: center; gap: 0.08em;
}
.stat__num .suffix { font-size: 0.5em; color: var(--wood-deep); }
.stat__label { margin-top: 0.5em; font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; }

/* ---------- Feature split (image + text alternating) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-m); }
  .split--reverse .split__media { order: 0; }
}
.split__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
/* Foto vertical: encuadrar hacia la cara para no cortar la cabeza */
.split__media--portrait img { object-position: 50% 28%; }
.split__media--blob { border-radius: 48% 52% 56% 44% / 54% 46% 54% 46%; box-shadow: var(--shadow-md); }
.split__content h2 { margin-bottom: var(--space-s); }
.split__content .lead { margin-bottom: var(--space-s); }

/* badge floating on image */
.media-badge {
  position: absolute; left: var(--space-s); bottom: var(--space-s);
  background: oklch(0.99 0.004 84 / 0.92);
  backdrop-filter: blur(6px);
  padding: 0.7em 1em; border-radius: var(--radius-m);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.7em;
}
.media-badge svg { width: 30px; height: 30px; flex: none; }
.media-badge b { display: block; font-size: var(--step-0); color: var(--ink); line-height: 1.1; }
.media-badge span { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Services grid ---------- */
.services {
  display: grid;
  /* 3 cols on desktop → 6 items = 3+3 (no orphan row); 2 on tablet (2+2+2); 1 on mobile */
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
}
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service {
  position: relative;
  display: flex; flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
  min-height: 230px;
}
.service::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--wood));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__icon { width: 52px; height: 52px; color: var(--brand); }
.service__icon svg { width: 100%; height: 100%; overflow: visible; }
.service h3 { font-size: var(--step-1); }
.service p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.service__more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--step--1); font-weight: 600; color: var(--brand-deep);
}

/* ---------- Values grid (clínica) — 6 items, 3+3 / 2+2+2 / 6×1 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-s); }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.value {
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value__icon {
  width: 48px; height: 48px; margin-bottom: var(--space-xs);
  display: grid; place-items: center;
  border-radius: 14px; background: var(--brand-tint); color: var(--brand-deep);
}
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.value p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }

/* ---------- Team grid (clinica.html) — photos pending, initials for now ---------- */
/* 3 per row: 9 members = 3 clean rows, no orphan row */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-s); }
@media (max-width: 820px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }
/* Flip card: front = photo/name/role, back = years + formación. The card is a
   <button> (keyboard-accessible); initTeamCards() toggles aria-expanded. The
   flip keeps the same footprint, so the grid never reflows. */
.team-member {
  font: inherit; color: inherit; text-align: center;
  background: none; border: 0; margin: 0; padding: 0; width: 100%;
  cursor: pointer; perspective: 1000px;
}
.team-member__inner {
  position: relative; display: block; min-height: 250px;
  transform-style: preserve-3d;
  transition: transform var(--dur-slow) var(--ease-out);
}
.team-member[aria-expanded="true"] .team-member__inner { transform: rotateY(180deg); }
.team-member__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15em; padding: var(--space-m) var(--space-s);
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-m);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden; transition: box-shadow var(--dur) var(--ease-out);
}
/* front is static; only the back scrolls (if formación is long), scrollbar hidden */
.team-member__back {
  transform: rotateY(180deg);
  overflow: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.team-member__back::-webkit-scrollbar { width: 0; height: 0; display: none; }
.team-member:hover .team-member__face { box-shadow: var(--shadow-md); }
/* Portrait slot: placeholder SVGs today (tools/make_team_placeholders.py),
   real photos later — same box, so swapping the src is the whole change. */
.team-member__photo {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 auto var(--space-xs);
  background: var(--brand-tint);
}
.team-member__name { font-size: var(--step-0); font-weight: 600; margin-bottom: 0.15em; }
.team-member__role { font-size: var(--step--1); color: var(--ink); margin: 0; font-weight: 500; }
.team-member__years { font-size: 0.85rem; color: var(--ink-soft); margin: 0.15em 0 0; }
.team-member__formacion { font-size: 0.8rem; color: var(--ink-soft); font-style: italic; margin: 0.5em 0 0; }
.team-member__flip-hint {
  margin-top: 0.7em; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--brand-deep); opacity: 0.7;
}
/* founder card: subtly set apart so it reads as legacy, not current staff */
.team-member--founder .team-member__face { background: var(--brand-tint); border-color: transparent; }
.team-member--founder .team-member__role { color: var(--brand-deep); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .team-member__inner { transition: none; transform: none !important; }
  .team-member__face { backface-visibility: visible; -webkit-backface-visibility: visible;
    transition: opacity var(--dur); }
  .team-member__back { transform: none; opacity: 0; visibility: hidden; }
  .team-member[aria-expanded="true"] .team-member__front { opacity: 0; visibility: hidden; }
  .team-member[aria-expanded="true"] .team-member__back { opacity: 1; visibility: visible; }
}

/* ---------- Review wall ---------- */
.review-tools { display: flex; flex-wrap: wrap; gap: 0.5em; justify-content: center; margin-bottom: var(--space-l); }
.chip {
  padding: 0.45em 0.95em; border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 600;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.chip:hover { border-color: var(--brand); color: var(--brand-deep); }
.chip.is-active { background: var(--brand); color: var(--white); border-color: var(--brand); }
.chip .count { opacity: 0.6; margin-left: 0.3em; }

.reviews {
  columns: 3 280px;
  column-gap: var(--space-s);
}
.review {
  break-inside: avoid;
  margin-bottom: var(--space-s);
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.review.is-hidden { display: none; }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xs); }
.review .stars svg { width: 0.95em; height: 0.95em; }
.review__g { width: 20px; height: 20px; }
.review__text { font-family: var(--font-display); font-size: var(--step-0); line-height: 1.55; color: var(--ink); }
.review__author { display: flex; align-items: center; gap: 0.65em; margin-top: var(--space-s); }
.review__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95em;
  color: var(--white);
  background: var(--brand);
}
.review__meta b { display: block; font-family: var(--font-sans); font-size: var(--step--1); color: var(--ink); }
.review__meta span { font-size: 0.78rem; color: var(--ink-soft); }

@media (max-width: 620px) { .reviews { columns: 1; } }

/* ---------- Rating hero (opiniones) ---------- */
.rating-hero { display: flex; align-items: center; gap: var(--space-m); margin-top: var(--space-l); flex-wrap: wrap; }
.rating-hero__score {
  font-family: var(--font-display); font-weight: 300; line-height: 1;
  font-size: clamp(3.5rem, 9vw, 6rem); color: var(--brand-deep);
}
.rating-hero .stars svg { width: 1.4em; height: 1.4em; }
.rating-hero p { display: flex; align-items: center; gap: 0.5em; margin-top: 0.4em; color: var(--ink-soft); }
.rating-hero p strong { color: var(--ink); }

/* ---------- Review marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--space-s); width: max-content; will-change: transform; }
.marquee__item {
  flex: none; width: min(78vw, 380px);
  padding: var(--space-m);
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius-m); box-shadow: var(--shadow-sm);
}
.marquee__item p { font-family: var(--font-display); font-size: var(--step-0); line-height: 1.5; margin: 0 0 0.7em; }
.marquee__item cite { font-style: normal; font-weight: 600; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Timeline (generational) ---------- */
.timeline { position: relative; display: grid; gap: var(--space-l); }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--wood)); }
.tl-item { position: relative; padding-left: 3.5rem; }
.tl-item__dot {
  position: absolute; left: 9px; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--brand);
}
.tl-item h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.tl-item p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: var(--space-xs);
}
.gallery figure { overflow: hidden; border-radius: var(--radius-m); margin: 0; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 3; }
.gallery .g-span2 { grid-column: span 2; }
.gallery .g-span4 { grid-column: span 4; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery .g-wide, .gallery .g-span4 { grid-column: span 2; }
  .gallery .g-span2 { grid-column: span 1; }
  .gallery .g-tall { grid-row: span 1; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-xs); }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; transition: border-color var(--dur), background var(--dur); }
.faq__item[open] { border-color: var(--brand); background: var(--white); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-s);
  padding: var(--space-s) var(--space-m);
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .plus { width: 22px; height: 22px; flex: none; position: relative; }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: var(--brand); border-radius: 2px; transition: transform var(--dur) var(--ease-out); }
.faq__q .plus::after { transform: rotate(90deg); }
.faq__item[open] .plus::after { transform: rotate(0); }
.faq__a { padding: 0 var(--space-m) var(--space-m); color: var(--ink-soft); }
.faq__a p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  isolation: isolate;
}
.cta-band h2 { color: var(--white); margin-bottom: var(--space-s); }
.cta-band p { color: oklch(0.95 0.02 82); margin-inline: auto; margin-bottom: var(--space-m); }
.cta-band .btn--wood { box-shadow: var(--shadow-md); }
.cta-band__deco { position: absolute; inset: 0; z-index: -1; opacity: 0.16; pointer-events: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: var(--space-s); }
.info-row { display: flex; gap: var(--space-s); align-items: flex-start; padding: var(--space-s); border-radius: var(--radius-m); transition: background var(--dur); }
.info-row:hover { background: var(--surface); }
.info-row__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand-tint); color: var(--brand-deep); }
.info-row__icon svg { width: 22px; height: 22px; }
.info-row h4 { font-family: var(--font-sans); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 0.2em; font-weight: 600; }
.info-row a, .info-row p { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); margin: 0; }
.info-row a { transition: color var(--dur); }
.info-row a:hover { color: var(--brand-deep); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 0.6em 0; border-bottom: 1px solid var(--line-soft); font-size: var(--step-0); }
.hours-table th { font-weight: 500; color: var(--ink-soft); font-family: var(--font-sans); }
.hours-table td { color: var(--ink); font-variant-numeric: tabular-nums; }
.hours-table tr.is-today { color: var(--brand-deep); font-weight: 700; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--brand-deep); }

/* seasonal hours (invierno/verano): the page ships both for SEO/no-JS;
   initSeasonalHours() hides everything but the current season (.is-off-season).
   Without JS, both seasons show in full — never dimmed. */
.hours-table caption {
  text-align: left; font-family: var(--font-sans); font-weight: 600;
  font-size: var(--step-0); color: var(--brand-deep); padding: 0.9em 0 0.3em;
}
.is-off-season { display: none; }
.hours-footnote { font-size: var(--step--1); color: var(--ink-soft); margin-top: var(--space-2xs); }
.footer .hours-season { font-weight: 600; color: oklch(0.9 0.015 82); margin-top: 0.5em; }
.footer .hours-footnote { font-size: 0.85em; opacity: 0.8; margin-top: 0.4em; }

/* form */
.form { display: grid; gap: var(--space-s); }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.4em 1em 0.6em;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-m); color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 130px; resize: vertical; }
.field label {
  position: absolute; left: 1em; top: 1.1em;
  color: var(--ink-soft); pointer-events: none;
  transition: transform var(--dur) var(--ease-out), font-size var(--dur), color var(--dur);
  transform-origin: left;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.85em) scale(0.78); color: var(--brand-deep);
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }

/* select field ("¿cómo nos conociste?") — reuses the .field look + a caret */
.field--select select {
  width: 100%; padding: 1.4em 2.6em 0.6em 1em; -webkit-appearance: none; appearance: none;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-m); color: var(--ink); cursor: pointer;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field--select select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
/* a select always shows a value, so its label sits up permanently as a caption */
.field--select label { transform: translateY(-0.85em) scale(0.78); color: var(--brand-deep); }
.field__caret { position: absolute; right: 1em; top: 1.9em; width: 20px; height: 20px; color: var(--ink-soft); pointer-events: none; }

/* booking / request-appointment block (homepage #cita) */
.booking { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-md); padding: clamp(1.6rem, 4vw, 3rem); }
.booking__intro { margin-bottom: var(--space-m); }
.booking__intro .lead { margin-inline: auto; }
.booking__submit { width: 100%; margin-top: var(--space-2xs); }
.booking__alt { margin-top: var(--space-s); font-size: var(--step--1); color: var(--ink-soft); }
.booking__alt a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.map-embed { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(0.92); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 200%);
  z-index: var(--z-toast);
  background: var(--ink); color: var(--white);
  padding: 0.8em 1.3em; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); font-size: var(--step--1); font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.6em;
  transition: transform var(--dur-slow) var(--ease-out);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--mint); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: oklch(0.85 0.02 82); padding-block: var(--space-xl) var(--space-m); margin-top: var(--space-2xl); }
.footer a { color: oklch(0.88 0.02 82); transition: color var(--dur); }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-l); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-m); } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: inline-flex; align-items: center; gap: 0.6em; color: var(--white); font-family: var(--font-display); font-size: var(--step-1); margin-bottom: var(--space-xs); }
.footer__brand svg { width: 34px; height: 34px; }
.footer h4 { color: var(--white); font-family: var(--font-sans); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-s); font-weight: 600; }
.footer ul { display: grid; gap: 0.55em; }
.footer ul a { font-size: var(--step--1); }
.footer__social { display: flex; gap: 0.6em; margin-top: var(--space-s); }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: oklch(0.32 0.03 82); transition: background var(--dur), transform var(--dur); }
.footer__social a:hover { background: var(--brand); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: var(--space-l); padding-top: var(--space-m);
  border-top: 1px solid oklch(0.38 0.02 60);
  display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-m);
  align-items: center; justify-content: space-between;
  font-size: var(--step--1); color: oklch(0.7 0.02 82);
}
.footer__credit a { color: var(--wood); font-weight: 600; }
.footer__credit a:hover { color: oklch(0.74 0.13 66); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-s); }

/* ---------- Section dividers (gum-line wave) ---------- */
.wave-top { display: block; width: 100%; height: clamp(40px, 6vw, 80px); }
.wave-top path { fill: var(--surface); }

/* ---------- Decorative tinted band ---------- */
.band-tint { background: var(--brand-tint); }
.band-warm { background: var(--surface-warm); }
.band-surface { background: var(--surface); }

/* page hero (interior) */
.page-hero { position: relative; padding-block: clamp(4rem, 12vh, 8rem) var(--space-xl); background: var(--surface); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -10%; top: -30%;
  width: 50vw; height: 50vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, var(--brand-tint), transparent 68%);
  opacity: 0.7; pointer-events: none;
}
.page-hero .breadcrumb { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: var(--space-s); display: flex; gap: 0.5em; flex-wrap: wrap; }
.page-hero .breadcrumb a:hover { color: var(--brand-deep); }
.page-hero h1 { max-width: 18ch; }
.page-hero p { margin-top: var(--space-s); max-width: 52ch; }

/* prose for legal pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-l); margin-bottom: var(--space-s); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-m); margin-bottom: var(--space-xs); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.3em; display: grid; gap: 0.4em; margin-block: var(--space-s); }
.prose a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.page-404 { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: var(--space-xl) 0; }
.page-404 .float-tooth { width: clamp(120px, 24vw, 200px); margin-inline: auto; margin-bottom: var(--space-m); }
.page-404 h1 { font-size: var(--step-5); }
.page-404 .redirect-note { margin-top: var(--space-m); font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Realce de fotos: un punto de saturación y vivacidad ---------- */
/* Solo a las fotografías (.webp); no afecta a logos/iconos SVG ni PNG. */
img[src$=".webp"] {
  filter: saturate(1.12) contrast(1.04) brightness(1.01);
}

/* =========================================================================
   Familiar Warmth — homepage (Stitch B layout): hero, trust, about,
   testimonials, final CTA, mobile bar. Added 2026-07-26.
   ========================================================================= */

/* ---- Hero (2-column) ---- */
.hero-intro { padding-block-start: clamp(2rem, 6vh, 4rem); }
.hero-intro__grid { align-items: center; }
.text-brand { color: var(--brand); }
.hero-intro h1 { margin-bottom: var(--space-s); }
.hero-intro__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-m) 0; }
.hero-intro__proof { display: flex; align-items: center; gap: var(--space-s); }
.hero-intro__proof-text { font-size: var(--step--1); color: var(--ink-soft); }
.hero-intro__proof-text strong { color: var(--ink); }
.hero-intro__media { position: relative; }
.hero-intro__glow { position: absolute; inset: -12% -12% auto auto; width: 60%; aspect-ratio: 1; background: var(--brand-tint); border-radius: 50%; filter: blur(60px); opacity: 0.6; z-index: 0; }
.hero-intro__frame { position: relative; z-index: 1; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.hero-intro__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-intro__frame .media-badge { z-index: 2; }

/* ---- Trust strip ---- */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-m) var(--space-xl); margin-top: var(--space-l); padding-top: var(--space-l); border-top: 1px solid var(--line); text-align: center; }
.trust-strip li { display: flex; flex-direction: column; gap: 0.1em; }
.trust-strip strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: var(--step-0); }
.trust-strip span { font-size: var(--step--1); color: var(--ink-soft); }

/* ---- About ---- */
/* frame matches the hero video (.hero-intro__frame): same proportions, no
   padding, same shadow weight — one consistent photo language on the page */
.about__media img { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 28%; }
.about__caption { margin-top: var(--space-s); text-align: center; font-size: var(--step--1); color: var(--ink-soft); }
.about__quote { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink); line-height: 1.4; border-left: 3px solid var(--brand); padding-left: var(--space-s); font-style: normal; }

/* ---- Testimonials ---- */
.testimonials__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-m); flex-wrap: wrap; margin-bottom: var(--space-l); }
.testimonials__rating { display: flex; align-items: center; gap: 0.5em; font-size: var(--step-1); }
.testimonials__rating strong { color: var(--ink); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-s); }
@media (max-width: 820px) { .testimonials__grid { grid-template-columns: 1fr; } }
.testimonial { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-sm); padding: var(--space-m); display: flex; flex-direction: column; gap: var(--space-xs); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial p { color: var(--ink); font-style: italic; margin: 0; }
.testimonial__who { display: flex; align-items: center; gap: 0.6em; font-weight: 600; color: var(--ink); font-style: normal; margin-top: auto; }
.testimonial__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; flex: none; }
.stars--sm { color: #e8a13a; letter-spacing: 0.08em; font-size: 1rem; }
.gmark { font-family: var(--font-sans); font-weight: 700; }
.gmark .b1{color:#4285F4}.gmark .b2{color:#EA4335}.gmark .b3{color:#FBBC04}.gmark .b4{color:#4285F4}.gmark .b5{color:#34A853}.gmark .b6{color:#EA4335}

/* ---- Final CTA banner ---- */
.cta-banner { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); opacity: 0.9; }
.cta-banner__content { position: relative; z-index: 1; padding: clamp(2.5rem, 6vw, 5rem) var(--space-l); max-width: 640px; margin-inline: auto; }
.cta-banner__content h2 { color: var(--white); margin-bottom: var(--space-s); }
.cta-banner__content p { color: rgba(255,255,255,0.9); margin: 0 auto var(--space-m); }
.cta-banner__actions { display: flex; gap: var(--space-xs); justify-content: center; flex-wrap: wrap; }
.cta-banner .btn--lg:not(.cta-banner__ghost) { background: var(--white); color: var(--brand); }
.cta-banner .btn--lg:not(.cta-banner__ghost)::before { background: var(--surface-warm); }
.cta-banner__ghost { color: var(--white); border-color: rgba(255,255,255,0.55); }

/* ---- Mobile sticky CTA bar ---- */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
    display: flex; gap: 1px; background: var(--line);
    box-shadow: 0 -4px 20px hsl(var(--shadow-color) / 0.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cta__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5em; padding: 1em; font-family: var(--font-sans); font-weight: 700; font-size: var(--step-0); }
  .mobile-cta__btn--wa { background: var(--brand); color: var(--white); }
  .mobile-cta__btn--call { background: var(--white); color: var(--brand); }
  .wa-float { display: none; }
  body { padding-bottom: 62px; }
}

/* ---- Multi-select chips (contacto: ¿cómo nos conociste?) ---- */
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5em; }
.chips legend { width: 100%; font-family: var(--font-sans); font-weight: 600; font-size: var(--step--1); color: var(--ink); margin-bottom: 0.5em; padding: 0; }
.chips legend span { font-weight: 400; color: var(--ink-soft); }
.chip { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: inline-block; padding: 0.5em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-pill); font-size: var(--step--1); color: var(--ink-soft); background: var(--white); transition: border-color var(--dur), background var(--dur), color var(--dur); }
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--brand-tint); outline-offset: 2px; }
