/* ==========================================================================
   Pilar Lobón · Psicóloga — hoja de estilos
   Paleta tomada de sus publicaciones (turquesa #178F95, arena, crema y gris carbón) · Marcellus + Nunito Sans
   ========================================================================== */

:root {
  /* Marca */
  --c-brand: #178F95;      /* turquesa de marca (decorativo, texto grande) */
  --c-hero: #0E777D;       /* turquesa de fondos con texto blanco (5.3:1) */
  --c-brand-50: #F4F0E7;   /* crema */
  --c-brand-100: #EAE3D6;  /* arena clara */
  --c-brand-200: #D8CDBD;
  --c-brand-300: #C8BCAC;  /* arena */
  --c-deep: #0D6F74;       /* botones */
  --c-deep-700: #0A5357;
  --c-dark: #0C4447;
  --c-ink: #45403C;        /* gris carbón de los titulares */

  /* Semánticos */
  --c-bg: var(--c-brand-50);
  --c-top: var(--c-brand-100);   /* fondo beige del principio de cada página (calma; detalles en turquesa) */
  --c-surface: #FFFFFF;
  --c-text: #4F4A46;
  --c-text-soft: #6B645E;
  --c-heading: var(--c-ink);
  --c-line: rgba(34, 52, 54, .12);
  --c-open: #2E7A50;
  --c-closed: #A3405A;
  --c-wa: #1EA952;
  --c-star: #E2A93B;
  --c-focus: #0A5357;

  /* Tipografía */
  --f-display: "Bree Serif", Rockwell, Georgia, serif;   /* titulares, como en sus publicaciones */
  --f-brand: "Marcellus", Georgia, serif;                /* logotipo "Pilar Lobón · Psicóloga" del banner */
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-h4: clamp(1.2rem, 1.1rem + .4vw, 1.35rem);
  --fs-h3: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --fs-h1: clamp(2.45rem, 1.6rem + 3.8vw, 4.6rem);

  /* Espaciado (ritmo 8px) */
  --s-1: .5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1.15rem, .8rem + 2vw, 2.5rem);
  --container: 1200px;

  /* Formas y sombras */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(34, 52, 54, .06);
  --shadow-md: 0 14px 34px -12px rgba(34, 52, 54, .22);
  --shadow-lg: 0 34px 70px -28px rgba(34, 52, 54, .38);

  /* Movimiento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .18s;
  --t-base: .28s;
  --t-reveal: .9s;

  /* Capas */
  --z-header: 50;
  --z-menu: 45;
  --z-float: 70;
  --z-progress: 80;

  --header-h: 84px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--c-heading);
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 0 0 var(--s-2);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--s-2); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--c-deep-700); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-ink); }
strong { font-weight: 700; color: var(--c-ink); }
address { font-style: normal; }
em { font-style: normal; }

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

::selection { background: var(--c-brand-200); color: var(--c-ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--c-ink); color: #fff;
  border-radius: var(--r-pill);
  font-weight: 700; text-decoration: none;
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: 1rem; color: #fff; }

main { overflow-x: clip; }
main:focus { outline: none; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-deep);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  min-height: 52px;
  padding: .875rem 1.5rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1rem/1.2 var(--f-body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out),
              background-color var(--t-base), color var(--t-base), border-color var(--t-base);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn .icon { width: 1.2em; height: 1.2em; }

.btn--primary { --btn-bg: var(--c-deep); }
.btn--primary:hover { --btn-bg: var(--c-deep-700); }
.btn--dark { --btn-bg: var(--c-ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: rgba(34, 52, 54, .35); }
.btn--ghost:hover { --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink); }
.btn--light:hover { --btn-bg: var(--c-brand-100); }
.btn--sm { min-height: 44px; padding: .625rem 1.25rem; font-size: .9375rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--c-deep-700);
  text-decoration: none;
}
/* Zona táctil de ~44px sin cambiar el aspecto ni el espacio que ocupa */
.link-arrow { position: relative; }
.link-arrow::after { content: ""; position: absolute; inset: -8px 0; }
.link-arrow .icon { transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Estado abierto / cerrado
   -------------------------------------------------------------------------- */
.status {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .25rem .625rem;
  margin: 0;
  padding: .5rem 1rem .5rem .875rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  line-height: 1.3;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-text-soft);
  position: relative; flex: none;
}
.status-label { font-weight: 700; }
.status-sub { color: var(--c-text-soft); }
.status[data-state="open"] .status-dot,
.status[data-state="soon"] .status-dot { background: var(--c-open); }
.status[data-state="open"] .status-label { color: var(--c-open); }
.status[data-state="soon"] .status-label { color: #8A5A12; }
.status[data-state="soon"] .status-dot { background: #C98A1E; }
.status[data-state="closed"] .status-dot { background: var(--c-closed); }
.status[data-state="closed"] .status-label { color: var(--c-closed); }
.status[data-state="open"] .status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--c-open);
  animation: ping 2s var(--ease-out) infinite;
}
.status--light {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}
.status--light .status-sub { color: var(--c-brand-100); }
.status--light[data-state="open"] .status-label { color: #8FE0B0; }
.status--light[data-state="open"] .status-dot { background: #8FE0B0; }
.status--light[data-state="open"] .status-dot::after { border-color: #8FE0B0; }
.status--light[data-state="closed"] .status-label { color: #F2B8C6; }
.status--light[data-state="closed"] .status-dot { background: #F2B8C6; }
.status--light[data-state="soon"] .status-label { color: #F5D08A; }

@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Barra de progreso de lectura
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto; height: 3px;
  z-index: var(--z-progress);
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--c-deep), var(--c-brand));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto;
  z-index: var(--z-header);
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  height: var(--header-h);
  transition: height var(--t-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(244, 240, 231, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--c-line), 0 10px 30px -18px rgba(34, 52, 54, .35);
}
.site-header.is-scrolled .header-inner { height: 70px; }

.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--c-dark);   /* logo oscuro también sobre el beige del principio */
  min-height: 44px;
}
.brand-mark { position: relative; width: 46px; aspect-ratio: 288 / 302; flex: none; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity var(--t-base); }
.brand-mark-light { opacity: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-brand); font-size: 1.55rem; letter-spacing: .01em; }
.brand-role { font-family: var(--f-brand); font-size: .95rem; margin-top: .25rem; padding-left: .125rem; opacity: .95; }
.brand:hover { color: var(--c-dark); }
.site-header.is-scrolled .brand,
.site-header.is-scrolled .brand:hover { color: var(--c-dark); }
.site-header.is-scrolled .brand-mark-light { opacity: 0; }
.site-header.is-scrolled .brand-mark-dark { opacity: 1; }

.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-list > li > a,
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: .25rem;
  min-height: 44px; padding: .5rem .875rem;
  border: 0; background: none; cursor: pointer;
  font: 600 .98rem/1 var(--f-body);
  color: var(--c-ink);
  text-decoration: none;
  border-radius: var(--r-pill);
  position: relative;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.nav-list > li > a::after,
.nav-dropdown-toggle::after {
  content: ""; position: absolute; left: .875rem; right: .875rem; bottom: .5rem; height: 1.5px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-base) var(--ease-out);
}
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current="page"]::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-dropdown-toggle .icon { width: 1rem; height: 1rem; transition: transform var(--t-base) var(--ease-out); }
.nav-dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  min-width: 300px;
  padding: .625rem;
  list-style: none;
  background: var(--c-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility var(--t-base);
}
.nav-dropdown-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .875rem;
  border-radius: var(--r-sm);
  color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: background-color var(--t-fast);
}
.nav-dropdown-menu a .icon {
  width: 36px; height: 36px; padding: 8px;
  border-radius: 50%;
  background: var(--c-brand-100); color: var(--c-deep-700);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] { background: var(--c-brand-50); }
.nav-dropdown-menu a:hover .icon { background: var(--c-deep); color: #fff; }
/* Servicios en dos grupos: tipos de terapia y motivos de consulta */
.nav-dropdown-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .5rem; min-width: 640px; }
.menu-group ul { list-style: none; }
.menu-group-label {
  display: block; padding: .5rem .875rem .375rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-text-soft);
}

.header-actions { display: flex; align-items: center; gap: .625rem; }
.header-cta { display: none; }

/* Cartel abierto/cerrado en la cabecera, junto a "Pedir cita" */
.status--header { display: none; padding: .5rem 1rem .5rem .75rem; white-space: nowrap; flex-wrap: nowrap; }
.site-header.is-scrolled .status--header { background: var(--c-surface); border-color: var(--c-line); }
@media (min-width: 640px) and (max-width: 1023.98px), (min-width: 1200px) { .status--header { display: inline-flex; } }
@media (max-width: 1279.98px) { .status--header .status-sub { display: none; } }
.brand-text, .nav-list > li > a, .nav-dropdown-toggle, .header-cta { white-space: nowrap; }

.menu-toggle {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.menu-toggle:active { transform: scale(.94); }
.menu-toggle .icon { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity var(--t-fast), transform var(--t-base) var(--ease-out); }
.menu-toggle .icon-close { opacity: 0; transform: rotate(-90deg); }
.menu-toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: rotate(90deg); }
.menu-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: none; }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4);
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 1rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--c-brand-50);
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 44px) 42px);
  transition: clip-path .55s var(--ease-in-out);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
.mobile-nav { list-style: none; }
.mobile-nav > li { border-bottom: 1px solid var(--c-line); opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.mobile-menu.is-open .mobile-nav > li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-nav > li:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-nav > li:nth-child(5) { transition-delay: .2s; }
.mobile-nav > li > a {
  display: block; padding: .875rem 0;
  font-family: var(--f-display); font-size: 1.9rem; line-height: 1.2;
  color: var(--c-ink); text-decoration: none;
}
.mobile-nav > li > a[aria-current="page"] { color: var(--c-deep); }
.mobile-nav-group { padding: .875rem 0; }
.mobile-nav-label { font-family: var(--f-display); font-size: 1.9rem; color: var(--c-ink); }
.mobile-nav-group ul { list-style: none; margin-top: .375rem; }
.mobile-nav-group a {
  display: flex; align-items: center; gap: .75rem;
  min-height: 44px; padding: .375rem 0;
  color: var(--c-text); text-decoration: none; font-weight: 600;
}
.mobile-nav-group a .icon { color: var(--c-deep); }
.mobile-nav-group .menu-group-label { padding: .75rem 0 .125rem; }
.mobile-menu-foot { display: grid; gap: var(--s-2); }
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .header-cta { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Secciones genéricas
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
/* Dos secciones seguidas con el mismo fondo: un solo margen entre ellas, no dos */
.section:not(.section--tint):not(.section--white):not(.section--brand):not(.section--top) + .section:not(.section--tint):not(.section--white):not(.section--brand):not(.section--top) { padding-top: 0; }
.section--compact { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section--tint { background: var(--c-brand-100); }
.section--top { background: var(--c-top); }   /* beige arena del principio, con detalles en turquesa */
.section--white { background: var(--c-surface); }
.section--brand { background: var(--c-hero); color: #fff; }
.section--brand .eyebrow, .section--brand h2 { color: #fff; }
.section--brand .section-head p { color: #fff; }

/* Secciones con onda de entrada y de salida (la misma forma que la del hero) */
.section--wave {
  --wave-h: clamp(40px, 6vw, 90px);
  --wave-top: var(--c-bg);       /* color de la sección de arriba */
  --wave-bottom: var(--c-bg);    /* color de la sección de abajo */
  padding-block: calc(var(--section-y) + var(--wave-h) * .5);
}
.section--wave.section--compact { padding-block: calc(clamp(2.5rem, 2rem + 3vw, 4.5rem) + var(--wave-h)); }
.section--wave::before,
.section--wave::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--wave-h);
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 60c180-40 360-60 540-40s360 70 540 60 270-50 360-60v110H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 60c180-40 360-60 540-40s360 70 540 60 270-50 360-60v110H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.section--wave::before { top: -1px; background: var(--wave-top); transform: scaleY(-1); }
.section--wave::after { bottom: -1px; background: var(--wave-bottom); }
.section--wave > .container { position: relative; z-index: 1; }
.credentials, .consulta { --wave-bottom: var(--c-surface); }   /* debajo va «Dónde estamos», en blanco */

/* Galería «Así es la consulta»: 3 en fila desde tablet; en móvil 1 grande arriba y 2 debajo (simétrico) */
.gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2);
  max-width: 1100px; margin-inline: auto; list-style: none; padding: 0;
}
.gallery-item { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--c-brand-200); aspect-ratio: 3 / 4; }
.gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.04); }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .gallery-item:first-child { grid-column: auto; aspect-ratio: 3 / 4; }
}

/* Servicios sobre turquesa */
.section--brand .topic-links span { color: #fff; }
.section--brand .topic-links a { border-color: transparent; }
.section--brand .topic-links a:hover { background: var(--c-brand-100); border-color: var(--c-brand-100); color: var(--c-deep-700); }

/* Franja de credenciales (portada): 2 × 2 en móvil y tablet, 4 en fila en PC */
.credentials .section-head { margin-bottom: var(--s-5); }
.credentials-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s-2);
  max-width: 1040px; margin-inline: auto; list-style: none; padding: 0;
}
@media (max-width: 599.98px) { .credential { padding-inline: .75rem; } }
@media (min-width: 1024px) { .credentials-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); } }
/* Tarjetas blancas sobre el beige, con el icono en turquesa (igual que el resto de tarjetas) */
.credential {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: var(--s-3) var(--s-2);
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.credential .icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--c-brand-100); color: var(--c-deep-700); }
.credential img { width: 56px; height: 56px; object-fit: contain; }
.credential strong { margin-top: .25rem; font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h4); line-height: 1.2; color: var(--c-heading); }
.credential span { font-size: var(--fs-sm); line-height: 1.4; color: var(--c-text-soft); }
.credentials-link { margin: var(--s-4) 0 0; text-align: center; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--fs-lg); color: var(--c-text-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  margin-bottom: var(--s-2);
  font: 700 var(--fs-xs)/1.4 var(--f-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-deep-700);
  text-wrap: balance;   /* si parte en dos líneas, las reparte por igual (sin palabras sueltas) */
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }

.title-accent { color: var(--c-deep); font-style: italic; }

/* --------------------------------------------------------------------------
   Hero (inicio)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 clamp(6rem, 4rem + 6vw, 9rem);
  background: var(--c-top);
  isolation: isolate;
}
/* Los adornos se recortan en su propia capa; así la onda puede sobresalir del borde
   y tapar el medio píxel que en móviles dejaba ver una línea fina del color de fondo */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(10px);
  will-change: transform;
}
.blob--1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.55), rgba(255,255,255,0) 65%); }
.blob--2 { width: 38vmax; height: 38vmax; right: -12vmax; bottom: -18vmax; background: radial-gradient(circle, rgba(23,143,149,.16), rgba(23,143,149,0) 65%); }
.blob--3 { width: 22vmax; height: 22vmax; right: 18%; top: 8%; background: radial-gradient(circle, rgba(255,255,255,.5), rgba(255,255,255,0) 65%); }
.grain {
  position: absolute; inset: -50%;
  opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-watermark {
  position: absolute; left: -4%; bottom: -8%;
  width: min(42vw, 560px); opacity: .07;
}

.hero-grid {
  display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero .eyebrow { color: var(--c-deep-700); }
/* El H1 lleva dentro la etiqueta «Psicóloga en Don Benito» (SEO) y el titular; se ven igual que antes */
.hero-heading { margin: 0; }
.hero-heading .eyebrow { display: flex; width: fit-content; }
.hero-title { display: block; margin-bottom: var(--s-3); color: var(--c-heading); font-size: clamp(2.1rem, 1.5rem + 2.1vw, 3.4rem); }
/* Subrayado: línea fina y redondeada bajo la palabra, que se dibuja de izquierda a derecha */
.hero-title em { position: relative; white-space: nowrap; }
.hero-title em::after {
  content: "";
  position: absolute; left: .03em; right: .03em; bottom: .1em;
  height: max(3px, .07em);
  border-radius: 999px;
  background: var(--c-brand);
  transform-origin: left center;
}
.js .hero-title em::after { transform: scaleX(0); transition: transform .85s var(--ease-in-out) .9s; }
.js .hero-title.is-in em::after { transform: scaleX(1); }
.hero-lead { font-size: var(--fs-lg); color: var(--c-text); max-width: 56ch; margin-bottom: var(--s-4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: var(--s-4); }
/* Sobre beige: botón principal turquesa (el de serie) y secundario con borde turquesa */
.hero .btn--ghost, .page-hero .btn--ghost { --btn-fg: var(--c-deep-700); --btn-bd: rgba(13, 111, 116, .45); }
.hero .btn--ghost:hover, .page-hero .btn--ghost:hover { --btn-bg: var(--c-deep); --btn-fg: #fff; --btn-bd: var(--c-deep); }
.hero-copy > :last-child { margin-bottom: 0; }

.stars { display: inline-flex; gap: 2px; color: var(--c-star); }
.stars .icon { width: 1.05rem; height: 1.05rem; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 520px); }
.arch {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--c-brand-200);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); }
.arch-outline {
  position: absolute; inset: -16px -16px 16px 16px;
  border: 1.5px solid rgba(23, 143, 149, .45);
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  z-index: -1;
}
.float-card {
  position: absolute;
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1rem;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  color: var(--c-ink);
  font-size: var(--fs-sm); line-height: 1.35;
}
.float-card--rating { left: -6%; bottom: 14%; animation: float 7s var(--ease-in-out) infinite; }
.float-card--quote { right: -8%; top: 10%; max-width: 230px; flex-direction: column; align-items: flex-start; gap: .375rem; animation: float 8s var(--ease-in-out) -3s infinite; }
.float-card--quote p { margin: 0; font-family: var(--f-display); font-size: 1.02rem; line-height: 1.35; }
.float-card--quote span { font-size: var(--fs-xs); color: var(--c-text-soft); font-weight: 700; }
.float-card .big { font-family: var(--f-display); font-size: 2rem; line-height: 1; }
.float-card-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-brand-100); color: var(--c-deep-700);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -3px;   /* sobresale 3px y tapa el borde (sin línea fina) */
  height: clamp(40px, 6vw, 90px);
  color: var(--c-bg);
}
.hero-wave svg { width: 100%; height: 100%; fill: currentColor; }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(3.5rem, 6vw, 6rem);
  translate: -50% 0;
  display: none; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 111, 116, .4);
  color: var(--c-deep);
}
/* Sin bucle: la flecha solo baja un poco al pasar el ratón o con el teclado */
.scroll-cue .icon { transition: transform var(--t-base) var(--ease-out); }
.scroll-cue:hover .icon, .scroll-cue:focus-visible .icon { transform: translateY(3px); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  /* La foto crece hasta 560px, sin pasarse del alto de la pantalla en portátiles */
  .hero-visual { justify-self: end; width: min(100%, 560px, max(420px, calc((100svh - 150px) * .8))); }
  .scroll-cue { display: grid; }
}
/* Entre 900 y 1360px el margen lateral es menor que lo que sobresale la cita: se acerca para que no se corte */
@media (min-width: 900px) and (max-width: 1359.98px) {
  .float-card--quote { right: -3%; }
}
@media (max-width: 899.98px) {
  .float-card--quote { right: -2%; top: auto; bottom: -6%; }
  .float-card--rating { left: -2%; bottom: auto; top: 8%; }
}
@media (max-width: 479.98px) {
  .float-card--quote { max-width: 200px; }
  .float-card { padding: .75rem .875rem; }
}

/* Hero interior (páginas) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 5.5rem)) 0 clamp(5.5rem, 4rem + 5vw, 8rem);
  background: var(--c-top);
  isolation: isolate;
}
.page-hero .eyebrow { color: var(--c-deep-700); }
.page-hero h1 { color: var(--c-heading); }
.page-hero .lead { color: var(--c-text); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { font-size: var(--fs-lg); max-width: 60ch; margin-bottom: var(--s-4); }
.page-hero-grid { display: grid; gap: var(--s-5); align-items: center; }
.page-hero-icon {
  display: none;
  width: 200px; height: 200px; padding: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid rgba(23, 143, 149, .45);
  color: var(--c-deep);
  justify-self: end;
}
.page-hero-icon .icon { width: 100%; height: 100%; stroke-width: 1.1; }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr auto; }
  .page-hero-icon { display: block; }
}

.breadcrumb { margin-bottom: var(--s-3); font-size: var(--fs-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .375rem; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .375rem; opacity: .6; }
.breadcrumb a { color: var(--c-deep-700); }
.breadcrumb [aria-current] { font-weight: 700; color: var(--c-ink); }

/* --------------------------------------------------------------------------
   Cinta de palabras (scroll horizontal)
   -------------------------------------------------------------------------- */
.ticker {
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  overflow: hidden;
  background: var(--c-bg);
}
.ticker-track {
  display: flex; gap: 2.5rem; width: max-content;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.4rem + 3vw, 4rem);
  line-height: 1.1;
  color: var(--c-deep);
  transform: translate3d(calc(var(--shift, 0) * -1px), 0, 0);
  will-change: transform;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.ticker-track span::after { content: ""; width: .35em; height: .35em; border-radius: 50%; background: var(--c-brand); }
.ticker-track .outline { color: transparent; -webkit-text-stroke: 1px var(--c-deep); }
/* Segunda cinta, en turquesa, que avanza en sentido contrario */
.ticker-track[data-ticker-dir="right"] { transform: translate3d(calc(var(--shift, 0) * 1px - 800px), 0, 0); }

/* --------------------------------------------------------------------------
   Sobre mí (bloque dividido)
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: .9fr 1.1fr; }
  .split--reverse > :first-child { order: 2; }
  /* La foto empieza a la altura del título y acompaña al texto, centrada en pantalla, mientras se lee */
  .split > .portrait, .split > .split-aside { align-self: start; position: sticky; top: max(calc(var(--header-h) + 2rem), calc(50vh - 230px)); }
}
.portrait { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.portrait-frame {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5;   /* casi la foto entera (vertical), sin cortar brazos */
  border-radius: 50% 50% var(--r-lg) 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-badge {
  position: absolute; right: -4%; bottom: 6%;
  display: grid; place-items: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--c-deep); color: #fff;
  box-shadow: var(--shadow-md);
  font-size: var(--fs-xs); line-height: 1.25; font-weight: 700; letter-spacing: .04em;
}
.portrait-badge img { width: 54px; height: auto; margin: 0 auto .25rem; }
.portrait-deco {
  position: absolute; inset: auto auto -8% -8%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--c-brand-200); z-index: -1;
}

.signature { font-family: var(--f-display); font-size: 1.6rem; color: var(--c-deep); margin-top: var(--s-3); }

.values { display: grid; gap: var(--s-2); margin: var(--s-4) 0; list-style: none; }
.values li { display: flex; gap: var(--s-2); align-items: flex-start; }
.values .icon {
  width: 46px; height: 46px; padding: 12px; border-radius: 50%;
  background: var(--c-brand-100); color: var(--c-deep-700);
}
.values h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; margin: .25rem 0 .125rem; }
.values p { margin: 0; color: var(--c-text-soft); font-size: var(--fs-sm); }
@media (min-width: 600px) { .values { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */
.services-grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-text); text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
/* Círculo de la esquina: centrado en la esquina para que, al crecer, se quede por encima del título */
.service-card::before {
  content: ""; position: absolute; z-index: -1;
  width: 200px; height: 200px; right: -100px; top: -100px;
  border-radius: 50%;
  background: var(--c-brand-100);
  transition: transform .6s var(--ease-out), background-color .45s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--c-text); }
.service-card:hover::before { transform: scale(1.12); background: var(--c-brand-200); }
.service-card-icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: var(--s-3);
  border-radius: 50%;
  background: var(--c-deep); color: #fff;
  transition: transform .45s var(--ease-out);
}
.service-card-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-card-icon { transform: rotate(-8deg) scale(1.06); }
.service-card h3 { margin-bottom: .625rem; }
.service-card p { color: var(--c-text-soft); flex: 1; }
.service-card .link-arrow { margin-top: var(--s-2); }
.service-card:hover .link-arrow .icon { transform: translateX(4px); }

.service-card--cta { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-brand-100); }
.service-card--cta::before { background: rgba(255, 255, 255, .06); }
.service-card--cta:hover { color: var(--c-brand-100); }
.service-card--cta:hover::before { background: rgba(255, 255, 255, .1); }
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: var(--c-brand-200); }
.service-card--cta .service-card-icon { background: var(--c-brand); color: #fff; }
.service-card--cta .link-arrow { color: #fff; }

/* --------------------------------------------------------------------------
   Proceso
   -------------------------------------------------------------------------- */
.steps-wrap { position: relative; }
.steps { position: relative; display: grid; gap: var(--s-4); list-style: none; }
.steps-line {
  position: absolute; left: 31px; top: 12px; bottom: 12px; width: 2px;
  background: var(--c-brand-200);
}
.steps-line span {
  position: absolute; inset: 0;
  background: var(--c-deep);
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: var(--s-3); }
.step-num {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-surface); border: 2px solid var(--c-brand-200);
  font-family: var(--f-display); font-size: 1.5rem; color: var(--c-deep-700);
  position: relative; z-index: 1;
  transition: background-color .5s var(--ease-out), color .5s, border-color .5s;
}
.step.is-in .step-num { background: var(--c-deep); border-color: var(--c-deep); color: #fff; }
.step h3 { margin: .75rem 0 .375rem; }
.step p { color: var(--c-text-soft); margin: 0; }

/* Desde tablet: línea vertical centrada y pasos alternando a un lado y a otro (simétrico) */
@media (min-width: 768px) {
  .steps-wrap { max-width: 920px; margin-inline: auto; }
  .steps { gap: var(--s-5); }
  .steps-line { left: 50%; translate: -1px 0; top: 32px; bottom: 32px; }
  .step { grid-template-columns: 1fr 64px 1fr; gap: var(--s-4); align-items: start; }
  .step .step-num { grid-column: 2; grid-row: 1; }
  .step > div { grid-column: 3; grid-row: 1; }
  .step:nth-child(even) > div { grid-column: 1; text-align: right; }
}

/* --------------------------------------------------------------------------
   Opiniones
   -------------------------------------------------------------------------- */
/* Valoración: cinco estrellas grandes que se rellenan una a una y, al final, "pum" con el 5,0 */
.rating-show { text-align: center; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.rating-show .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }

.big-stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 1.65 20 20'%3E%3Cpath d='M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z'/%3E%3C/svg%3E");
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(.4rem, 1.6vw, 1.5rem);
  max-width: 1000px;
  margin: var(--s-2) auto var(--s-4);
}
.big-stars::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 70%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 143, 149, .35), rgba(23, 143, 149, 0) 65%);
  opacity: 0; pointer-events: none;
}
.big-star {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  background: rgba(23, 143, 149, .14);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}
.big-star::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #2BB0B5, var(--c-brand) 45%, var(--c-hero));
  transform-origin: left center;
}
.js .big-star::after { transform: scaleX(0); }
.js .big-stars.is-in .big-star::after { animation: star-fill .45s var(--ease-in-out) calc(var(--i) * .45s + .25s) forwards; }
.js .big-stars.is-in .big-star {
  animation: star-pop .4s var(--ease-out) calc(var(--i) * .45s + .65s) both,
             star-pum .5s var(--ease-out) 2.55s forwards;
}
.js .big-stars.is-in::before { animation: stars-burst 1s var(--ease-out) 2.5s both; }

.rating-score { display: grid; justify-items: center; gap: .375rem; margin: 0; }
.rating-score-num {
  font-family: var(--f-display);
  font-size: clamp(4rem, 2.8rem + 6vw, 8rem);
  line-height: .95; color: var(--c-ink);
}
.rating-score-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 var(--fs-lg)/1.3 var(--f-body);
  color: var(--c-text-soft);
}
.rating-score-label .icon { width: 1.1em; height: 1.1em; color: var(--c-deep); }
.js .rating-score { opacity: 0; }
.js .big-stars.is-in ~ .rating-score { animation: score-pop .7s cubic-bezier(.34, 1.56, .64, 1) 2.65s both; }
.rating-show--solo { margin-bottom: 0; }
.rating-show-link { margin-top: var(--s-3); }
.js .rating-show-link { opacity: 0; }
.js .big-stars.is-in ~ .rating-show-link { animation: score-pop .6s var(--ease-out) 3s both; }

@keyframes star-fill { to { transform: scaleX(1); } }
@keyframes star-pop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes star-pum { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.18); } }
@keyframes stars-burst {
  0% { opacity: 0; transform: scale(.4); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes score-pop {
  0% { opacity: 0; transform: translateY(12px) scale(.5); }
  100% { opacity: 1; transform: none; }
}

.marquee {
  position: relative;
  display: grid; gap: var(--s-3);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex; gap: var(--s-3); width: max-content;
  padding-block: .5rem 1.5rem;
  animation: marquee var(--duration, 70s) linear infinite;
}
.marquee-row--reverse .marquee-track { animation-direction: reverse; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.review {
  display: flex; flex-direction: column; gap: var(--s-2);
  width: min(82vw, 400px);
  margin: 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review blockquote { margin: 0; flex: 1; font-size: 1rem; line-height: 1.65; color: var(--c-text); }
.review blockquote::before { content: "“"; display: block; height: .5em; font-family: var(--f-display); font-size: 3.2rem; line-height: 1; color: var(--c-brand); }
.review figcaption { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-sm); }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-brand-100); color: var(--c-deep-700);
  font-family: var(--f-display); font-size: 1.15rem;
}
.review-name { display: block; font-weight: 700; color: var(--c-ink); }
.review-src { display: inline-flex; align-items: center; gap: .25rem; color: var(--c-text-soft); font-size: var(--fs-xs); }
.review-src .icon { width: .85rem; height: .85rem; }

.marquee-controls { display: flex; justify-content: center; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-3); flex-wrap: wrap; }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem 1rem;
  border-radius: var(--r-pill); border: 1px solid var(--c-line);
  background: var(--c-surface); color: var(--c-ink);
  font: 600 var(--fs-sm)/1 var(--f-body); cursor: pointer;
}
.marquee-toggle .icon { width: 1rem; height: 1rem; }
.marquee-toggle .icon-play { display: none; }
.marquee.is-paused + .marquee-controls .icon-play,
.marquee-toggle[aria-pressed="true"] .icon-play { display: block; }
.marquee-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* --------------------------------------------------------------------------
   Ubicación y horario
   -------------------------------------------------------------------------- */
.location-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
@media (min-width: 1024px) { .location-grid { grid-template-columns: 1.05fr .95fr; align-items: stretch; } }

.address-big {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);
  line-height: 1.08; color: var(--c-ink);
  margin: 0 0 var(--s-2);
}
.address-big span { display: block; }
.address-big .muted { color: var(--c-deep); }
.address-clinic { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0; color: var(--c-text-soft); }
.address-clinic img { width: 64px; height: auto; }
.address-clinic strong { display: block; color: var(--c-ink); }
.location-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: var(--s-4); }

.hours-card {
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.hours-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); }
.hours-card-head h3 { display: flex; align-items: center; gap: .625rem; margin: 0; font-size: var(--fs-h4); }
.hours-card .status { background: var(--c-brand-50); border-color: var(--c-line); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .75rem .375rem; text-align: left; border-bottom: 1px solid var(--c-line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today { background: var(--c-brand-50); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--c-ink); }
.hours tr.is-today th::after {
  content: "Hoy"; margin-left: .625rem; padding: .125rem .5rem;
  border-radius: var(--r-pill); background: var(--c-deep); color: #fff;
  font-size: .72rem; letter-spacing: .05em; vertical-align: .1em;
}
.hours-note { margin: var(--s-2) 0 0; font-size: var(--fs-xs); color: var(--c-text-soft); }
.hours-note strong { color: var(--c-ink); }
/* Horario partido: mañana · tarde (en pantallas estrechas, uno debajo del otro) */
.hours td span { display: inline-block; white-space: nowrap; }
.hours td span + span::before { content: "·"; margin: 0 .5rem; color: var(--c-text-soft); }
@media (max-width: 520px) {
  .hours td span { display: block; }
  .hours td span + span::before { content: none; }
}

.map {
  position: relative; min-height: 380px; height: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-brand-100);
  box-shadow: var(--shadow-md);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: var(--s-2);
  padding: var(--s-4); text-align: center;
  background:
    repeating-linear-gradient(28deg, transparent 0 46px, rgba(16,120,126,.12) 46px 52px),
    repeating-linear-gradient(-62deg, transparent 0 70px, rgba(16,120,126,.1) 70px 78px),
    linear-gradient(160deg, var(--c-brand-100), var(--c-brand-200));
}
.map-pin {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50% 50% 50% 0;
  background: var(--c-deep); color: #fff;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, .55), 0 0 0 30px rgba(255, 255, 255, .25), var(--shadow-md);
  margin-bottom: var(--s-3);
}
.map-pin .icon { transform: rotate(45deg); width: 28px; height: 28px; }
.map-placeholder p { margin: 0; font-size: var(--fs-xs); color: var(--c-text-soft); max-width: 34ch; }

/* --------------------------------------------------------------------------
   Preguntas frecuentes
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .75rem; max-width: 860px; margin-inline: auto; }
.faq-item {
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.faq-item[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 64px; padding: 1rem 1.5rem;
  cursor: pointer; list-style: none;
  font-weight: 700; color: var(--c-ink); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A5357' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--t-base) var(--ease-out), background-color var(--t-base);
}
.faq-item[open] summary::after { transform: rotate(135deg); background-color: var(--c-brand-200); }
.faq-body { padding: 0 1.5rem 1.25rem; color: var(--c-text-soft); }
.faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Banda final de llamada a la acción
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem);
  border-radius: clamp(24px, 3vw, 40px);
  background: var(--c-deep-700);
  color: var(--c-brand-100);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; z-index: -1;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,143,149,.45), transparent 65%);
}
.cta-band::after {
  content: ""; position: absolute; inset: -40% auto auto -10%; z-index: -1;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 54ch; margin: 0 auto var(--s-4); font-size: var(--fs-lg); }
.cta-band-tree { position: absolute; right: 4%; bottom: -10%; width: 220px; opacity: .1; z-index: -1; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.cta-band .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bd: #fff; }

/* --------------------------------------------------------------------------
   Contenido de páginas de servicio
   -------------------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); margin-top: var(--s-5); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--c-text); }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--s-2); }
.prose li { margin-bottom: .375rem; }
.lead-text { font-size: var(--fs-lg); color: var(--c-ink); }

.checklist { display: grid; gap: .875rem; list-style: none; padding: 0; }
@media (min-width: 700px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li {
  display: flex; gap: .875rem; align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  margin: 0;
}
.checklist .icon {
  width: 30px; height: 30px; padding: 6px; border-radius: 50%;
  background: var(--c-deep); color: #fff; stroke-width: 2.4;
}

.feature-grid { display: grid; gap: var(--s-3); }
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  /* Con un número impar de tarjetas, la última ocupa la fila entera en vez de quedarse sola */
  .feature-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .feature-grid--3 > :last-child:nth-child(odd) { grid-column: auto; }
}
.feature {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 52px; height: 52px; padding: 12px; margin-bottom: var(--s-2);
  border-radius: 50%; background: var(--c-brand-100); color: var(--c-deep-700);
}
.feature h3 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.feature p { margin: 0; color: var(--c-text-soft); }

.quote-block {
  position: relative; margin: 0;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  border-radius: var(--r-lg);
  background: var(--c-hero);
  color: #fff;
  overflow: hidden; isolation: isolate;
}
.quote-block::before {
  content: "“"; position: absolute; left: 1.5rem; top: -1.5rem; z-index: -1;
  font-family: var(--f-display); font-size: 12rem; line-height: 1; color: rgba(255,255,255,.16);
}
.quote-block blockquote { margin: 0 0 var(--s-3); font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); line-height: 1.35; }
.quote-block figcaption { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.quote-block .avatar { background: rgba(255,255,255,.18); color: #fff; }

.related { display: grid; gap: var(--s-2); }
@media (min-width: 700px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related { grid-template-columns: repeat(4, 1fr); } }
.related a {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; min-height: 64px;
  border-radius: var(--r-md);
  background: var(--c-surface); border: 1px solid var(--c-line);
  color: var(--c-ink); text-decoration: none; font-weight: 700;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base), background-color var(--t-base);
}
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--c-brand-100); color: var(--c-deep-700); }

/* Enlace al final de una tarjeta de área */
.feature-link { margin-top: var(--s-2); font-size: var(--fs-sm); }
/* La flecha del enlace no hereda el círculo de los iconos de la tarjeta */
.feature .feature-link .icon { width: 1.25em; height: 1.25em; padding: 0; margin: 0; border-radius: 0; background: none; color: currentColor; }

/* Etiquetas de enfoques terapéuticos */
/* Rejilla simétrica: 2 columnas en móvil y 3 desde 600px (6 etiquetas = 3 × 2); .chips--pairs siempre 2 × 2 */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .5rem; list-style: none; padding: 0; margin: var(--s-2) 0 var(--s-3); }
@media (min-width: 600px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chips.chips--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 599.98px) { .chips li { padding-inline: .75rem; } }
.chips li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 40px;
  margin: 0; padding: .5rem 1rem;
  border-radius: var(--r-pill);
  background: var(--c-brand-100); color: var(--c-deep-700);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.25;
}
.prose .chips { padding-left: 0; }
.prose .chips li { margin: 0; color: var(--c-deep-700); }
.chips--center { max-width: 640px; margin-inline: auto; }

.link-row { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; }

/* Motivos de consulta bajo las tarjetas de servicios */
.topic-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .625rem; margin-top: var(--s-4); }
.topic-links span { font-weight: 700; color: var(--c-ink); margin-right: .25rem; }
.topic-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  background: var(--c-surface); border: 1px solid var(--c-line);
  color: var(--c-deep-700); font-weight: 600; text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.topic-links a:hover { background: var(--c-deep); border-color: var(--c-deep); color: #fff; }

/* Revisión profesional del contenido (E-E-A-T) */
.prose .reviewed {
  display: flex; gap: .625rem; align-items: flex-start;
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm); color: var(--c-text-soft);
}
.reviewed .icon { flex: none; width: 22px; height: 22px; color: var(--c-deep); }
/* Fecha de actualización en bloques centrados (Equipo) */
.section-head--center .reviewed {
  display: inline-flex; gap: .625rem; align-items: center;
  margin: var(--s-2) 0 0;
  font-size: var(--fs-sm); color: var(--c-text-soft);
}

/* --------------------------------------------------------------------------
   Equipo
   -------------------------------------------------------------------------- */
.team-grid { display: grid; gap: var(--s-4); max-width: 1040px; margin-inline: auto; }
@media (min-width: 800px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card {
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 1rem);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo { position: relative; margin: 0; aspect-ratio: 3 / 4;   /* la foto entera, en vertical: sin cortar brazos */ overflow: hidden; background: var(--c-brand-100); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.team-photo--initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--c-brand-100), var(--c-brand-200)); }
.team-photo--initials img { position: absolute; right: -4%; bottom: -12%; width: 44%; height: auto; object-fit: contain; opacity: .12; }
.team-photo--initials span { position: relative; font-family: var(--f-display); font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: 1; color: var(--c-deep); }
.team-body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); }
.team-role { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-deep-700); }
.team-name { font-size: var(--fs-h3); margin: .35rem 0 var(--s-3); }
.team-facts { list-style: none; padding: 0; display: grid; gap: .75rem; margin: 0 0 var(--s-3); }
.team-facts li { display: flex; gap: .75rem; align-items: flex-start; color: var(--c-text); }
.team-facts .icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--c-brand-100); color: var(--c-deep-700); }
.team-facts span { padding-top: .25rem; }
.team-body .link-arrow { margin-top: auto; }

.footer-team { margin-top: .625rem; }

.aside-card {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.aside-card h2 { font-size: var(--fs-h3); }
.aside-card .btn { width: 100%; margin-top: .625rem; }
.aside-card .status { margin-bottom: var(--s-2); background: var(--c-brand-50); border-color: var(--c-line); }
.aside-list { list-style: none; display: grid; gap: .625rem; margin: var(--s-2) 0; font-size: var(--fs-sm); }
.aside-list li { display: flex; gap: .625rem; align-items: flex-start; }
.aside-list .icon { color: var(--c-deep); margin-top: .25rem; }

.with-aside { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .with-aside { grid-template-columns: 1fr 340px; align-items: start; } }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card--primary { grid-column: 1 / -1; }   /* WhatsApp a lo ancho y debajo teléfono + email */
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card--primary { grid-column: auto; }
}
.contact-card {
  display: flex; flex-direction: column; gap: .375rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-line);
  color: var(--c-text); text-decoration: none;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--c-text); }
.contact-card .icon { width: 52px; height: 52px; padding: 12px; margin-bottom: .625rem; border-radius: 50%; background: var(--c-brand-100); color: var(--c-deep-700); }
.contact-card strong { font-size: 1.1rem; }
.contact-card span { color: var(--c-text-soft); font-size: var(--fs-sm); word-break: break-word; }
.contact-card--primary { background: var(--c-deep); border-color: var(--c-deep); color: var(--c-brand-100); }
.contact-card--primary:hover { color: var(--c-brand-100); }
.contact-card--primary strong { color: #fff; }
.contact-card--primary span { color: var(--c-brand-100); }
.contact-card--primary .icon { background: #fff; color: var(--c-wa); }

/* --------------------------------------------------------------------------
   Páginas legales
   -------------------------------------------------------------------------- */
.legal { max-width: 78ch; }
.legal h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); margin-top: var(--s-5); }
.legal ul { padding-left: 1.25rem; margin-bottom: var(--s-2); }
.legal li { margin-bottom: .375rem; }
.legal .pending { background: #FFF3CD; padding: .125rem .375rem; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--section-y);
  padding: var(--s-5) 0 calc(var(--s-4) + env(safe-area-inset-bottom));
  background: var(--c-dark);
  color: var(--c-brand-200);
  font-size: var(--fs-sm);
}
.footer-wave { position: absolute; left: 0; right: 0; top: -59px; height: 60px; color: var(--c-dark); }
.footer-wave svg { width: 100%; height: 100%; fill: currentColor; }
.footer-grid { display: grid; gap: var(--s-5) var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.brand--footer { color: #fff; margin-bottom: var(--s-3); }
.brand--footer .brand-mark { width: 56px; }
.brand--footer .brand-mark img { position: static; }
.footer-brand p { max-width: 40ch; }
.footer-title { font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-3); }
.footer-links { list-style: none; display: grid; gap: .25rem; }
.site-footer a { color: var(--c-brand-100); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links a, .footer-address a { display: inline-flex; align-items: flex-start; gap: .625rem; min-height: 40px; padding-block: .5rem; }
.footer-links .icon, .footer-address .icon { width: 1.15rem; height: 1.15rem; margin-top: .25rem; color: var(--c-brand-300); }
.footer-col .status { margin: var(--s-2) 0 .6rem; }
.footer-hours { margin: 0; color: var(--c-brand-200); }
.site-footer strong { color: #fff; }   /* sobre el fondo oscuro, nunca el marrón general */
.footer-crisis {
  display: flex; align-items: flex-start; gap: .75rem;
  padding-block: var(--s-3);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: var(--c-brand-100);
}
.footer-crisis .icon { width: 1.4rem; height: 1.4rem; color: var(--c-brand-300); margin-top: .125rem; }
.footer-crisis p { margin: 0; }
.footer-crisis strong { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding-top: var(--s-3); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .375rem 1.5rem; list-style: none; }
.footer-bottom a { display: inline-block; padding-block: .625rem; }

/* --------------------------------------------------------------------------
   WhatsApp flotante
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--c-wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(30, 169, 82, .6);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
  transform: scale(0);
  animation: pop-in .6s var(--ease-out) 1.2s forwards;
}
.wa-float .icon { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); color: #fff; box-shadow: 0 16px 34px -8px rgba(30, 169, 82, .75); }
@keyframes pop-in { to { transform: scale(1); } }
.wa-bubble {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(5.4rem + env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: flex; gap: .5rem; align-items: flex-start;
  max-width: 270px;
  padding: .875rem .625rem .875rem 1rem;
  border-radius: var(--r-md) var(--r-md) 4px var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
  color: var(--c-text); font-size: var(--fs-sm); line-height: 1.45;
  animation: bubble-in .45s var(--ease-out);
}
.wa-bubble[hidden] { display: none; }
.wa-bubble p { margin: 0; }
.wa-bubble-close {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; margin: -.625rem -.25rem -.625rem 0;
  border: 0; border-radius: 50%; background: none; color: var(--c-text-soft); cursor: pointer;
}
.wa-bubble-close .icon { width: 18px; height: 18px; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* --------------------------------------------------------------------------
   Animaciones de aparición al hacer scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(.94); }
@media (max-width: 899.98px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translate3d(0, 28px, 0); }
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .word > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms + 120ms);
}
.js [data-split].is-in .word > span { transform: none; }

.js .arch img { transition: transform 1.6s var(--ease-out); transform: scale(1.18); }
.js .hero-visual.is-in .arch img { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   Movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal], .js [data-split] .word > span { opacity: 1; transform: none; }
  .wa-float { transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee-row--reverse { display: none; }
  .marquee-toggle { display: none; }
  .ticker-track { transform: none; }
  .js .big-star::after, .js .big-stars.is-in .big-star::after { transform: none; animation: none; }
  .js .big-stars.is-in .big-star, .js .big-stars.is-in::before { animation: none; }
  .js .rating-score, .js .big-stars.is-in ~ .rating-score,
  .js .rating-show-link, .js .big-stars.is-in ~ .rating-show-link { opacity: 1; animation: none; }
}

/* --------------------------------------------------------------------------
   Impresión
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .wa-float, .wa-bubble, .scroll-progress, .mobile-menu, .map, .marquee-controls { display: none !important; }
  .hero, .page-hero { padding-top: 2rem; background: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Páginas interiores: avisos, trayectoria, ajustes de prosa
   -------------------------------------------------------------------------- */
.prose .checklist, .prose .feature-grid { padding: 0; margin: var(--s-3) 0 var(--s-4); }
.prose .checklist li { margin: 0; }
.prose .feature h3 { margin-top: 0; }

.notice {
  display: flex; gap: .875rem; align-items: flex-start;
  margin: var(--s-4) 0;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--c-brand-100);
  border-left: 4px solid var(--c-deep);
  color: var(--c-ink);
  font-size: var(--fs-sm);
}
.notice .icon { color: var(--c-deep); width: 1.5rem; height: 1.5rem; margin-top: .125rem; }
.notice p { margin: 0; color: var(--c-ink); }

.timeline { list-style: none; padding: 0; margin: var(--s-3) 0; border-left: 2px solid var(--c-brand-200); }
.timeline li { position: relative; padding: 0 0 var(--s-4) var(--s-4); margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .375rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-surface); border: 3px solid var(--c-deep);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-deep-700); }
.timeline h3 { font-size: var(--fs-h4); margin: .25rem 0 .25rem; }
.timeline p { margin: 0; color: var(--c-text-soft); }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--f-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 1; color: rgba(23, 143, 149, .35); }
.h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
#related-title { text-align: center; }   /* centrado como las preguntas frecuentes de encima */
body.menu-open .wa-float, body.menu-open .wa-bubble { display: none; }
@media (min-width: 1024px) {
  .location-grid { align-items: start; }
  .map { position: sticky; top: calc(var(--header-h) + 1.5rem); height: min(680px, 78vh); }
}
