/* =========================================================================
   Dr. Oscar Ortiz — Periodoncia e Implantología (Zamora, Michoacán)
   Hoja de estilos única. Sistema de diseño: design-system/dr-oscar-ortiz-periodoncia/MASTER.md
   Orden: 1 tokens · 2 reset · 3 utilidades · 4 layout · 5 componentes ·
          6 secciones · 7 responsive · 8 preferencias del usuario
   ========================================================================= */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Color — ver MASTER.md §2 para los ratios de contraste verificados */
  --ink: #0e1112;
  --ink-soft: #2a2f31;
  --muted: #5a6366;
  --muted-on-dark: rgba(255, 255, 255, 0.72);
  --paper: #f7f6f3;
  --paper-2: #eeece7;
  --surface: #ffffff;
  --line: rgba(14, 17, 18, 0.1);
  --line-strong: rgba(14, 17, 18, 0.18);
  --line-dark: rgba(255, 255, 255, 0.16);
  --gold: #c8a96a;           /* decorativo / texto sobre oscuro (9.4:1) */
  --gold-deep: #8a6a2f;      /* texto de acento sobre claro (5.4:1) */
  --gold-wash: rgba(200, 169, 106, 0.12);
  --trust: #0f5c56;          /* verificación y éxito (8.6:1) */
  --trust-wash: rgba(15, 92, 86, 0.08);
  --danger: #a6221b;
  --danger-wash: rgba(166, 34, 27, 0.07);
  --whatsapp: #128c7e;

  /* Tipografía */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.6rem, 6.2vw, 5rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.4rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.9rem);
  --fs-h4: clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  /* Espaciado */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --section-y: clamp(72px, 9vw, 128px);

  /* Forma y profundidad */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14, 17, 18, 0.06);
  --shadow-2: 0 12px 32px -12px rgba(14, 17, 18, 0.18);
  --shadow-3: 0 24px 60px -20px rgba(14, 17, 18, 0.3);

  /* Layout */
  --max: 1200px;
  --max-narrow: 760px;
  --gutter: 24px;
  --header-h: 76px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 220ms;
  --t-slow: 280ms;
}

/* ---------- 2. RESET ----------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
iframe,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.on-dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--gold);
}

::selection {
  background: var(--gold-wash);
  color: var(--ink);
}

/* ---------- 3. UTILIDADES ------------------------------------------------ */
.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - (var(--gutter) * 2), var(--max-narrow));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--gold-deep);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--t-base) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--gold-deep);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.on-dark .eyebrow,
.section--dark .eyebrow {
  color: var(--gold);
}

.section-title {
  font-size: var(--fs-h2);
  max-width: 20ch;
}

.section-title--wide {
  max-width: 30ch;
}

.lead {
  max-width: 62ch;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.section--dark .lead,
.on-dark .lead {
  color: var(--muted-on-dark);
}

.prose p {
  max-width: 68ch;
  margin-bottom: var(--space-4);
  color: var(--muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--gold-deep);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  transition: gap var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  gap: var(--space-3);
  color: var(--ink);
}

.section--dark .text-link,
.on-dark .text-link {
  color: var(--gold);
}

.section--dark .text-link:hover,
.on-dark .text-link:hover {
  color: var(--surface);
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ---------- 4. LAYOUT DE SECCIÓN ----------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section--paper {
  background: var(--paper);
}

.section--dark {
  color: var(--surface);
  background: var(--ink);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--surface);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: end;
  max-width: none;
}

/* ---------- 5. COMPONENTES ----------------------------------------------- */

/* 5.1 Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease),
    color var(--t-base) var(--ease), border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--ink-soft);
  box-shadow: var(--shadow-2);
}

.btn--gold {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: #d8bd85;
  border-color: #d8bd85;
}

.btn--light {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--surface);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--paper);
}

.btn--outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--ink);
  background: var(--paper);
}

.btn--ghost {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold);
}

.btn--whatsapp {
  color: var(--surface);
  background: var(--whatsapp);
  border-color: var(--whatsapp);
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background: #0f7468;
  border-color: #0f7468;
}

.btn--full {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* 5.2 Header y navegación ------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: var(--space-3);
  color: var(--surface);
  transition: padding var(--t-slow) var(--ease), color var(--t-slow) var(--ease),
    background var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}

.site-header--solid,
.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.nav-shell {
  width: min(100% - 32px, 1340px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 106, 0.45);
  border-radius: var(--r-sm);
  background: var(--ink);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}

.brand__text b {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  white-space: nowrap;
}

.brand__text span {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 24px);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 2px;
  opacity: 0.82;
  transition: opacity var(--t-base) var(--ease);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--t-base) var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
  opacity: 1;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Submenú de tratamientos */
.has-sub > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px;
  background: none;
  border: 0;
  font-size: inherit;
  font-weight: inherit;
  opacity: 0.82;
  cursor: pointer;
}

.has-sub > button .icon {
  width: 14px;
  height: 14px;
  transition: transform var(--t-base) var(--ease);
}

.has-sub > button[aria-expanded="true"] {
  opacity: 1;
}

.has-sub > button[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.subnav {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 10;
  width: 306px;
  padding: var(--space-2);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.has-sub > button[aria-expanded="true"] + .subnav {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.subnav a {
  display: block;
  padding: 10px var(--space-3);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  opacity: 1;
}

.subnav a::after {
  display: none;
}

.subnav a:hover,
.subnav a:focus-visible {
  background: var(--paper);
  color: var(--gold-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-self: end;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.site-header:not(.is-scrolled):not(.site-header--solid) .nav-cta:hover,
.site-header:not(.is-scrolled):not(.site-header--solid) .nav-cta:focus-visible {
  background: var(--surface);
  color: var(--ink);
}

.site-header.is-scrolled .nav-cta:hover,
.site-header.is-scrolled .nav-cta:focus-visible,
.site-header--solid .nav-cta:hover,
.site-header--solid .nav-cta:focus-visible {
  background: var(--ink);
  color: var(--surface);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* 5.3 Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(92svh, 900px);
  padding-block: clamp(140px, 18vh, 200px) clamp(72px, 10vh, 120px);
  color: var(--surface);
  background: var(--ink);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(0.3) contrast(1.05);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14, 17, 18, 0.94) 0%, rgba(14, 17, 18, 0.7) 46%, rgba(14, 17, 18, 0.34) 100%),
    linear-gradient(0deg, rgba(14, 17, 18, 0.9) 0%, rgba(14, 17, 18, 0.05) 55%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-display);
  color: var(--surface);
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero__lead {
  max-width: 54ch;
  margin-top: var(--space-5);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.74);
  font-size: var(--fs-small);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__meta .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* Tarjeta de credenciales del hero */
.credential-card {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.credential-card h2 {
  font-size: 1.25rem;
  color: var(--surface);
}

.credential-card__list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.credential-card__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.credential-card__list .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--gold);
}

.credential-card__list b {
  display: block;
  color: var(--surface);
  font-weight: 600;
}

.credential-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
}

.chip .icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.chip--light {
  color: var(--trust);
  background: var(--trust-wash);
  border-color: rgba(15, 92, 86, 0.24);
}

.chip--light .icon {
  color: var(--trust);
}

/* 5.4 Barra de confianza -------------------------------------------------- */
.trustbar {
  background: var(--ink);
  color: var(--surface);
  border-top: 1px solid var(--line-dark);
}

.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.trustbar__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.trustbar__item .icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.trustbar__item b {
  display: block;
  color: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* 5.5 Cards de servicio --------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 106, 0.6);
  box-shadow: var(--shadow-2);
}

.service-card--featured {
  border-color: rgba(200, 169, 106, 0.55);
  background: linear-gradient(180deg, var(--gold-wash), transparent 42%), var(--surface);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--gold-deep);
  background: var(--gold-wash);
  border-radius: var(--r-md);
}

.service-card__icon .icon {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.375rem;
}

.service-card p {
  color: var(--muted);
  font-size: 1rem;
}

.service-card ul {
  display: grid;
  gap: var(--space-2);
  font-size: 0.9375rem;
  color: var(--muted);
}

.service-card ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--space-2);
  align-items: start;
}

.service-card ul .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--trust);
}

.service-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.service-card__badge {
  align-self: flex-start;
  padding: 4px 10px;
  color: var(--gold-deep);
  background: var(--gold-wash);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 5.6 Especialista -------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.portrait {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ink);
  box-shadow: var(--shadow-2);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait__caption {
  position: absolute;
  inset: auto 0 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  color: var(--surface);
  background: linear-gradient(0deg, rgba(14, 17, 18, 0.94), transparent);
}

.portrait__caption b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.portrait__caption span {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: var(--fs-small);
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: var(--space-6);
  border-left: 2px solid var(--gold-wash);
}

.timeline li {
  position: relative;
  padding: 0 0 var(--space-5) var(--space-5);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: var(--r-pill);
  background: var(--surface);
}

.timeline b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.timeline span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.license {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--trust-wash);
  border: 1px solid rgba(15, 92, 86, 0.18);
  border-radius: var(--r-md);
}

.license .icon {
  width: 24px;
  height: 24px;
  color: var(--trust);
}

.license b {
  display: block;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.license span {
  display: block;
  color: var(--trust);
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.license small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

/* 5.7 Proceso ------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-5);
  border-top: 2px solid var(--line);
  transition: border-color var(--t-base) var(--ease);
}

.step:hover {
  border-color: var(--gold);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--space-3);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.section--dark .step {
  border-color: var(--line-dark);
}

.section--dark .step::before {
  color: var(--gold);
}

.step h3 {
  font-size: 1.1875rem;
}

.step p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.9375rem;
}

.section--dark .step p {
  color: var(--muted-on-dark);
}

/* 5.8 Galerías ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-md);
  background: var(--paper-2);
  cursor: pointer;
  text-align: left;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item figcaption,
.gallery-item > span {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: var(--space-6) var(--space-4) var(--space-3);
  color: var(--surface);
  background: linear-gradient(0deg, rgba(14, 17, 18, 0.88), transparent);
  font-size: 0.9375rem;
  font-weight: 500;
}

.gallery-item--placeholder {
  display: grid;
  place-items: center;
  gap: var(--space-2);
  padding: var(--space-5);
  color: var(--muted);
  background: repeating-linear-gradient(
      -45deg,
      rgba(14, 17, 18, 0.03) 0 8px,
      transparent 8px 16px
    ),
    var(--paper);
  border: 1px dashed var(--line-strong);
  cursor: default;
  text-align: center;
}

.gallery-item--placeholder .icon {
  width: 30px;
  height: 30px;
  color: var(--line-strong);
}

.gallery-item--placeholder b {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.gallery-item--placeholder small {
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Casos clínicos antes/después */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.case-card__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}

.case-card__side {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  overflow: hidden;
}

.case-card__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__side figcaption {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 3px 10px;
  color: var(--surface);
  background: rgba(14, 17, 18, 0.78);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card__side--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8125rem;
  background: repeating-linear-gradient(
      -45deg,
      rgba(14, 17, 18, 0.03) 0 8px,
      transparent 8px 16px
    ),
    var(--paper);
}

.case-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
}

.case-card__body h3 {
  font-size: 1.1875rem;
}

.case-card__body p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
}

.tag {
  padding: 3px 10px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
}

.consent-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  max-width: 68ch;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  color: var(--trust);
  background: var(--trust-wash);
  border: 1px solid rgba(15, 92, 86, 0.2);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.consent-note .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

/* 5.9 FAQ ----------------------------------------------------------------- */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 860px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.faq details[open] {
  border-color: rgba(200, 169, 106, 0.55);
  box-shadow: var(--shadow-1);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-base) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq__body {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--muted);
}

.faq__body p + p {
  margin-top: var(--space-3);
}

/* 5.10 Cobertura ---------------------------------------------------------- */
.coverage {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.coverage li {
  padding: 8px 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
}

.section--dark .coverage li {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-dark);
}

/* 5.11 Contacto ----------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.contact__details {
  display: grid;
  gap: var(--space-5);
}

.nap {
  display: grid;
  gap: var(--space-4);
}

.nap__row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: start;
}

.nap__row .icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--gold-deep);
}

.nap__row b {
  display: block;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nap__row address,
.nap__row p {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
}

.nap__row a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.nap__row a:hover,
.nap__row a:focus-visible {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

.hours {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 340px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.hours span:last-child {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* Mapa diferido */
.map-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: repeating-linear-gradient(
      -45deg,
      rgba(14, 17, 18, 0.025) 0 10px,
      transparent 10px 20px
    ),
    var(--paper);
  border: 0;
  color: var(--muted);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.map-placeholder .icon {
  width: 34px;
  height: 34px;
  color: var(--gold-deep);
}

.map-placeholder b {
  color: var(--ink);
}

.map-placeholder small {
  font-size: 0.8125rem;
}

/* 5.12 Formulario --------------------------------------------------------- */
.form-card {
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}

.form-card__head {
  margin-bottom: var(--space-5);
}

.form-card__head h3 {
  font-size: 1.5rem;
}

.form-card__head p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.9375rem;
}

.form-grid {
  display: grid;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: 6px;
}

.field > label {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.field > label .req {
  color: var(--danger);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  outline: 0;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--muted);
}

.field .hint {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.field .error {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 500;
}

.field .error .icon {
  width: 15px;
  height: 15px;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
  background: var(--danger-wash);
}

.field.is-invalid .error {
  display: flex;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Honeypot: fuera de pantalla, invisible para humanos, sin display:none
   (los bots suelen ignorar los campos con display:none) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.privacy-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.privacy-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--trust);
  cursor: pointer;
}

.privacy-consent a {
  color: var(--gold-deep);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.privacy-consent.is-invalid {
  border-color: var(--danger);
  background: var(--danger-wash);
}

.form-status {
  display: none;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.form-status[data-state="success"],
.form-status[data-state="error"],
.form-status[data-state="info"] {
  display: grid;
  grid-template-columns: 22px 1fr;
}

.form-status[data-state="success"] {
  color: var(--trust);
  background: var(--trust-wash);
  border: 1px solid rgba(15, 92, 86, 0.24);
}

.form-status[data-state="error"] {
  color: var(--danger);
  background: var(--danger-wash);
  border: 1px solid rgba(166, 34, 27, 0.24);
}

.form-status[data-state="info"] {
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
}

.form-status .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.form-status a {
  color: inherit;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--surface);
  border-radius: var(--r-pill);
  animation: spin 700ms linear infinite;
}

.btn.is-busy .spinner {
  display: block;
}

.btn.is-busy .btn__label {
  opacity: 0.75;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 5.13 CTA final ---------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 8vw, 104px);
  color: var(--surface);
  background: linear-gradient(120deg, var(--ink) 0%, #1b2224 100%);
  text-align: center;
}

.cta-band h2 {
  max-width: 22ch;
  margin-inline: auto;
  color: var(--surface);
}

.cta-band p {
  max-width: 58ch;
  margin: var(--space-4) auto 0;
  color: var(--muted-on-dark);
}

.cta-band .btn-row {
  justify-content: center;
}

/* 5.14 Footer ------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(48px, 6vw, 80px) var(--space-6);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.footer__brand .brand {
  color: var(--surface);
}

.footer__brand p {
  max-width: 34ch;
  margin-top: var(--space-4);
  line-height: 1.7;
}

.footer h3 {
  margin-bottom: var(--space-4);
  color: var(--surface);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: var(--space-3);
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 28px;
  transition: color var(--t-base) var(--ease);
}

.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--gold);
}

.footer__col .icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.social a:hover,
.social a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.footer__qr {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  width: max-content;
  margin-top: var(--space-4);
}

.footer__qr img {
  width: 116px;
  height: 116px;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--r-sm);
}

.footer__qr span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__bottom a:hover,
.footer__bottom a:focus-visible {
  color: var(--gold);
}

.medical-disclaimer {
  max-width: 90ch;
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* 5.15 WhatsApp flotante y barra móvil ------------------------------------ */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 56px;
  padding: 0 20px;
  color: var(--surface);
  background: var(--whatsapp);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-3);
  font-size: 0.9375rem;
  font-weight: 600;
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease),
    background var(--t-base) var(--ease);
}

.wa-float.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.wa-float:hover,
.wa-float:focus-visible {
  background: #0f7468;
}

.wa-float .icon {
  width: 24px;
  height: 24px;
  stroke: none;
  fill: currentColor;
}

.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 95;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -12px rgba(14, 17, 18, 0.28);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mobile-bar a {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 8px 4px;
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 600;
}

.mobile-bar a + a {
  border-left: 1px solid var(--line);
}

.mobile-bar .icon {
  width: 21px;
  height: 21px;
  color: var(--gold-deep);
}

.mobile-bar a.is-wa .icon {
  color: var(--whatsapp);
}

/* 5.16 Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(14, 17, 18, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  display: grid;
  gap: var(--space-4);
  width: min(1040px, 100%);
  justify-items: center;
}

.lightbox__inner img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: var(--r-md);
}

.lightbox__inner p {
  color: var(--surface);
  font-family: var(--serif);
  font-size: 1.25rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  cursor: pointer;
}

.lightbox__close .icon {
  width: 22px;
  height: 22px;
}

/* 5.17 Breadcrumbs y páginas internas ------------------------------------- */
.page-hero {
  padding-block: calc(var(--header-h) + clamp(48px, 7vw, 88px)) clamp(48px, 6vw, 80px);
  color: var(--surface);
  background: linear-gradient(120deg, var(--ink) 0%, #1c2325 100%);
}

.page-hero h1 {
  max-width: 22ch;
  margin-top: var(--space-4);
  color: var(--surface);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.page-hero .lead {
  color: var(--muted-on-dark);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.32);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--gold);
}

.breadcrumbs [aria-current="page"] {
  color: var(--surface);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.article-body h2 {
  margin-top: var(--space-8);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin-top: var(--space-6);
  font-size: 1.25rem;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body p {
  max-width: 68ch;
  margin-top: var(--space-4);
}

.article-body ul.bullets {
  display: grid;
  gap: var(--space-3);
  max-width: 68ch;
  margin-top: var(--space-4);
}

.article-body ul.bullets li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: start;
}

.article-body ul.bullets .icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--trust);
}

.callout {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  max-width: 68ch;
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--paper);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.callout .icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--gold-deep);
}

.callout b {
  display: block;
  color: var(--ink);
}

.callout p {
  margin-top: 4px !important;
  font-size: 0.9375rem;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--space-4);
}

.sidebar-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.sidebar-card h3 {
  font-size: 1.125rem;
}

.sidebar-card p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.9375rem;
}

.sidebar-card ul {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.sidebar-card ul a {
  display: block;
  padding: 10px 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.sidebar-card ul a:hover,
.sidebar-card ul a:focus-visible,
.sidebar-card ul a[aria-current="page"] {
  color: var(--gold-deep);
  border-color: var(--gold);
}

.sidebar-card .btn {
  margin-top: var(--space-4);
}

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h3 {
  font-size: 1.1875rem;
}

.post-card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.post-card--todo {
  border-style: dashed;
  background: repeating-linear-gradient(
      -45deg,
      rgba(14, 17, 18, 0.02) 0 8px,
      transparent 8px 16px
    ),
    var(--paper);
  box-shadow: none;
}

/* Página 404 / gracias */
.centered-page {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-4);
  min-height: 78svh;
  padding: calc(var(--header-h) + 48px) var(--gutter) 64px;
  text-align: center;
}

.centered-page h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.centered-page p {
  max-width: 54ch;
  color: var(--muted);
}

.centered-page .success-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--trust);
  background: var(--trust-wash);
  border-radius: var(--r-pill);
}

.centered-page .success-mark .icon {
  width: 38px;
  height: 38px;
}

/* ---------- 6. REVEAL ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 7. RESPONSIVE ------------------------------------------------ */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .credential-card {
    max-width: 560px;
  }

  .contact__grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .trustbar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* El menú pasa a hamburguesa en 1080px: con 6 destinos, el logotipo y el CTA,
   por debajo de ese ancho los enlaces se solapaban con la marca. */
@media (max-width: 1080px) {
  :root {
    --gutter: 20px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu {
    position: fixed;
    inset: calc(var(--header-h) - 6px) 16px auto;
    display: grid;
    gap: 0;
    max-height: calc(100svh - var(--header-h) - 32px);
    overflow-y: auto;
    padding: var(--space-3);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-3);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
      visibility var(--t-base);
  }

  .site-header.is-open .nav-menu {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav-menu > li {
    border-bottom: 1px solid var(--line);
  }

  .nav-menu > li:last-child {
    border-bottom: 0;
  }

  .nav-menu a,
  .has-sub > button {
    width: 100%;
    min-height: 52px;
    padding-inline: var(--space-3);
    justify-content: space-between;
    opacity: 1;
  }

  .nav-menu a::after {
    display: none;
  }

  .subnav {
    position: static;
    width: 100%;
    padding: 0 0 var(--space-2) var(--space-3);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .has-sub > button[aria-expanded="true"] + .subnav {
    display: block;
    transform: none;
  }

  .subnav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    color: var(--muted);
  }

  .mobile-bar {
    display: grid;
  }

  body {
    padding-bottom: 58px;
  }

  .wa-float {
    bottom: calc(74px + env(safe-area-inset-bottom));
    height: 52px;
    padding: 0 16px;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 460px;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
  }

  .hero__media img {
    opacity: 0.38;
  }

  .btn {
    width: 100%;
  }

  .btn-row .btn,
  .hero__actions .btn {
    width: 100%;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .trustbar__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .case-card__media {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .wa-float span {
    display: none;
  }

  .wa-float {
    width: 52px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- 8. PREFERENCIAS DEL USUARIO ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .wa-float {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #40484a;
    --line: rgba(14, 17, 18, 0.24);
    --line-strong: rgba(14, 17, 18, 0.42);
  }
}

@media print {
  .site-header,
  .wa-float,
  .mobile-bar,
  .lightbox,
  .map-frame,
  .hero__media {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    padding: 0;
  }

  .hero,
  .section--dark,
  .cta-band,
  .site-footer {
    color: #000 !important;
    background: #fff !important;
  }
}

/* ---------- 9. AÑADIDOS: hero sin foto y retrato pendiente ---------------
   Mientras el cliente no suba fotografías reales, el hero y el retrato usan
   composiciones CSS en lugar de fotos de stock (regla: nada de stock
   presentado como el consultorio real). Al subir la imagen basta con
   descomentar el <picture> del HTML; estos estilos quedan debajo.          */
.hero__media--pattern {
  background:
    radial-gradient(1200px 620px at 78% 8%, rgba(200, 169, 106, 0.2), transparent 62%),
    radial-gradient(900px 520px at 8% 92%, rgba(15, 92, 86, 0.24), transparent 60%),
    linear-gradient(140deg, #0e1112 0%, #171e20 52%, #0e1112 100%);
}

.hero__media--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 68% 34%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 68% 34%, #000 0%, transparent 72%);
}

.hero__media--pattern::after {
  background: linear-gradient(0deg, rgba(14, 17, 18, 0.72) 0%, transparent 46%);
}

.portrait--placeholder {
  display: grid;
  place-items: center;
  gap: var(--space-4);
  aspect-ratio: 4 / 5;
  padding: var(--space-6);
  text-align: center;
  background:
    radial-gradient(600px 400px at 50% 10%, rgba(200, 169, 106, 0.16), transparent 65%),
    var(--ink);
}

.portrait--placeholder img {
  width: 130px;
  height: 130px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--r-md);
}

.portrait--placeholder p {
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.portrait--placeholder .chip {
  border-color: rgba(200, 169, 106, 0.4);
}

/* Rejilla de dos columnas genérica para bloques de texto + apoyo */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.tech-list {
  display: grid;
  gap: var(--space-4);
}

.tech-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
}

.tech-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tech-list .icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  background: rgba(200, 169, 106, 0.12);
  border-radius: var(--r-sm);
}

.tech-list b {
  display: block;
  color: var(--surface);
  font-size: 1rem;
}

.tech-list p {
  margin-top: 2px;
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10. ÁREAS TÁCTILES (WCAG 2.1 §2.5.5 / 2.2 §2.5.8) ------------
   Verificado en navegador: estos eran los únicos objetivos accionables por
   debajo de 44×44 px. Los enlaces incrustados dentro de un párrafo quedan
   exentos por la propia norma y no se tocan.                               */
.nav-menu > li > a {
  padding-inline: 8px;
}

.footer__col ul {
  gap: 0;
}

.footer__col ul a {
  min-height: 44px;
  align-items: center;
}

.footer__bottom nav {
  gap: var(--space-2);
}

.footer__bottom nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
}

.nap__row p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.privacy-consent {
  grid-template-columns: 24px 1fr;
}

.privacy-consent input[type="checkbox"] {
  width: 24px;
  height: 24px;
}

/* ---------- 10. CASOS: imagen única compuesta ---------------------------- */
.case-card__single {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper);
  cursor: zoom-in;
  overflow: hidden;
}

.case-card__single img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  transition: transform 500ms var(--ease);
}

.case-card__single:hover img,
.case-card__single:focus-visible img {
  transform: scale(1.02);
}

.case-card__zoom {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--surface);
  background: rgba(14, 17, 18, 0.72);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.case-card__zoom .icon {
  width: 15px;
  height: 15px;
}

/* ---------- 11. RESEÑAS DE GOOGLE ---------------------------------------- */
.reviews__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.rating-badge {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: var(--space-5) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  text-align: center;
}

.rating-badge__score {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
}

.rating-badge__count {
  color: var(--muted);
  font-size: 0.8125rem;
}

.rating-badge__source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #e8a723;
}

.stars svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.review-card blockquote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.review-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

.review-card figcaption b {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.review-card figcaption time {
  color: var(--muted);
}

.review-note {
  max-width: 68ch;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ---------- 12. VIDEO ---------------------------------------------------- */
.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ink);
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-caption {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 0.8125rem;
}

.section--dark .video-caption {
  color: var(--muted-on-dark);
}

/* ---------- 13. GALERÍA DE RESULTADOS ------------------------------------ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.result-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
}

.result-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.result-item:hover img,
.result-item:focus-visible img {
  transform: scale(1.04);
}

.result-item span {
  display: block;
  padding: 10px var(--space-4) 12px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 700px) {
  .reviews__head {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* ---------- 14. HORARIOS EN EL FOOTER ------------------------------------ */
.footer__hours {
  display: grid;
  gap: 3px;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.footer__hours b {
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__hours span {
  color: rgba(255, 255, 255, 0.66);
}

/* Enlace del aviso de privacidad: área táctil algo mayor sin romper el flujo */
.privacy-consent a {
  display: inline-block;
  padding-block: 3px;
}

/* ---------- 15. FIGURA DENTRO DE ARTÍCULO -------------------------------- */
.article-figure {
  max-width: 68ch;
  margin: var(--space-6) 0 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.article-figure figcaption {
  margin-top: var(--space-3);
  padding-left: var(--space-3);
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.article-figure figcaption b {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- 16. HERO: SALUDO DE BIENVENIDA ------------------------------- */
.hero__welcome {
  margin-top: var(--space-5);
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
}

.hero__welcome + .hero__lead {
  margin-top: var(--space-3);
}

/* ---------- 17. FRANJA DE BIENVENIDA ------------------------------------- */
.welcome-band {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.welcome-band__inner p {
  max-width: 82ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  text-align: center;
  text-wrap: pretty;
}

.welcome-band__inner strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 18. PERMISOS Y REGISTROS ------------------------------------- */
.permit-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.permit-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line-dark);
}

.permit-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.permit-list span {
  color: var(--muted-on-dark);
  font-size: 0.875rem;
}

.permit-list b {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Permisos en el pie de página */
.footer__permits {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
}

.footer__permits > b {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__permits ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3) var(--space-6);
}

.footer__permits li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  font-size: 0.8125rem;
}

.footer__permits li span {
  color: rgba(255, 255, 255, 0.55);
}

.footer__permits li b {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 19. SUBMENÚ: PUENTE SOBRE EL HUECO --------------------------- */
/* El panel se dibuja 10px por debajo del botón. Ese hueco no pertenecía a
   ningún elemento, así que al bajar el ratón hacia el submenú se disparaba
   `mouseleave` en el <li> y el menú se cerraba. Este pseudo-elemento cubre
   el hueco de forma invisible y mantiene el puntero "dentro". */
.subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

/* En móvil el submenú va en flujo: el puente sobra. */
@media (max-width: 900px) {
  .subnav::before {
    display: none;
  }
}

/* ---------- 20. CITA DE POSICIONAMIENTO EN EL HERO ----------------------- */
.pioneer-quote {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
}

.pioneer-quote .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--gold);
  fill: none;
}

.pioneer-quote p {
  color: var(--surface);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
}

/* El hero ahora lleva 5 datos: en escritorio caben en dos filas holgadas */
.hero__meta {
  row-gap: var(--space-3);
}

/* ---------- 21. VIDEO DENTRO DE ARTÍCULO --------------------------------- */
/* En las páginas de tratamiento el video puede ser vertical (grabado con
   teléfono). Aquí no se fuerza el 16/9 ni se recorta: se respeta la
   proporción real del archivo y se limita la altura para que no domine. */
.article-figure .video-frame {
  aspect-ratio: auto;
  max-height: 70svh;
  display: grid;
  place-items: center;
  background: var(--ink);
}

.article-figure .video-frame video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70svh;
  object-fit: contain;
}

/* ---------- 22. PUNTOS DEL HERO EN PÁGINAS DE TRATAMIENTO ---------------- */
/* Los puntos que el cliente definió para cada servicio, sobre el fondo
   oscuro del encabezado de la página. */
.hero-points {
  display: grid;
  gap: var(--space-3);
  max-width: 62ch;
  margin-top: var(--space-5);
}

.hero-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-points .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--gold);
}

@media (max-width: 620px) {
  .hero-points li {
    font-size: 0.9375rem;
  }
}
