/* ============================================================
   Clínica Jiménez Ortiz — Sistema de diseño 2026
   Rediseño estático · mobile-first · sin frameworks
   ============================================================ */

/* ---------- Fuentes autoalojadas (variables, subset latino) ---------- */
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/spectral-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #16304a;          /* texto: azul tinta, no negro */
  --navy: #16304f;         /* azul corporativo (del logo) */
  --navy-deep: #0d1e31;    /* fondos oscuros */
  --slate: #5a6b7d;        /* texto secundario */
  --accent: #1a5578;       /* acción principal: azul profundo */
  --accent-strong: #123f59;
  --accent-soft: #e9f2f8;  /* fondos suaves de acento */
  --azure: #3a8fc4;        /* azul claro del isotipo */
  --gold: #9c7f4f;         /* acento de elegancia, uso muy contenido */
  --gold-soft: #f3ecdf;
  --wa: #1faa59;           /* whatsapp: color de plataforma, no se toca */
  --bg: #fcfbf9;           /* porcelana cálida */
  --bg-alt: #f1efea;       /* arena */
  --card: #ffffff;
  --line: #e4dfd5;
  --line-soft: #edeae2;

  --ff-display: "Spectral", "Iowan Old Style", Georgia, serif;
  --ff-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xxl: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  --fs-xl: clamp(1.75rem, 1.25rem + 2vw, 2.6rem);
  --fs-lg: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  --fs-md: clamp(1.12rem, 1.02rem + .4vw, 1.3rem);
  --fs-base: 1.0625rem;
  /* Escala legible: 17 / 15,2 / 14 px. Los valores anteriores (14,4 y 12,8 px)
     dejaban migas de pan, pies de foto, cabeceras de tabla y etiquetas por
     debajo del umbral cómodo de lectura en móvil. El texto que es CONTENIDO
     (párrafos de tarjeta, celdas de tabla, listas) va a 1rem, nunca por debajo. */
  --fs-sm: .95rem;
  --fs-xs: .875rem;

  --space-1: .375rem;
  --space-2: .75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.25rem;
  --space-6: 5rem;

  --radius: 4px;
  --radius-sm: 3px;
  --shadow-sm: none;
  --shadow-md: 0 1px 2px rgba(22, 48, 74, .05), 0 6px 20px rgba(22, 48, 74, .06);
  --shadow-lg: 0 2px 6px rgba(22, 48, 74, .06), 0 18px 48px rgba(22, 48, 74, .10);
  --container: 70rem;
  --header-h: 4.25rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
/* Los iconos SVG inline llevan tamaño propio (1em) y no se estiran en flex.
   Los tamaños específicos (.contact-list svg, .btn svg…) sobrescriben esto. */
svg { flex: none; width: 1em; height: 1em; vertical-align: -.125em; }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-xxl); letter-spacing: -.015em; font-weight: 500; }
h2 { font-size: var(--fs-xl); letter-spacing: -.012em; font-weight: 500; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
strong { font-weight: 600; color: var(--navy); }
ul, ol { padding-left: 1.35rem; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }
::selection { background: #cfe2f0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(160deg, var(--navy-deep), #16324f 70%); color: #dbe5ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.section--dark .eyebrow { color: #d9bd86; }
.section-head { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--fs-md); color: var(--slate); }
.section--dark .lead { color: #b9c9d8; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 2px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { opacity: .92; }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-strong); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--light:hover { box-shadow: var(--shadow-md); color: var(--accent-strong); }
.btn--wa { background: transparent; color: var(--navy); border-color: var(--line); box-shadow: none; }
.btn--wa:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--wa svg { color: var(--wa); }
.btn--wa:hover svg { color: #fff; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn--sm { padding: .5rem 1rem; font-size: var(--fs-sm); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-deep); color: #c8d6e2;
  font-size: var(--fs-sm);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .45rem; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: #a9d4ee; }
.topbar__contact { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 1em; height: 1em; flex: none; color: #9cc9e8; }
.topbar__note { display: none; }
.topbar__rating { display: none; }
@media (min-width: 48em) {
  .topbar__note { display: inline-flex; align-items: center; gap: .45rem; }
  .topbar__rating { display: flex; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: var(--shadow-sm); }
.header .container, .topbar .container { max-width: 84rem; }
.header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand__name {
  font-family: var(--ff-display); font-weight: 600; color: var(--navy);
  font-size: 1.06rem; line-height: 1.05; letter-spacing: .01em; white-space: nowrap;
}
.brand__name small { display: block; font-family: var(--ff-body); font-weight: 500; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); }

.nav { display: none; }
.header__cta { display: none; }
@media (min-width: 72em) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
  .nav li { margin: 0; position: relative; }
  .nav a {
    display: block; padding: .5rem .6rem; text-decoration: none; white-space: nowrap;
    color: var(--ink); font-weight: 500; font-size: 1rem; border-radius: 8px;
  }
  .nav a:hover, .nav li.is-open > a { color: var(--accent-strong); background: var(--accent-soft); }
  .nav a[aria-current="page"] { color: var(--accent-strong); }
  .nav__toggle-icon { display: inline-block; margin-left: .3rem; transition: transform .2s; font-size: .7em; transform: translateY(-.15em); }
  .nav li.is-open .nav__toggle-icon { transform: rotate(180deg) translateY(.15em); }
  .nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 17rem;
    background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md); padding: .5rem;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav li.is-open > .nav__sub, .nav li:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(4px); }
  .nav__sub ul { display: block; }
  .nav__sub a { padding: .55rem .8rem; font-size: .98rem; border-radius: 7px; }
}


/* Compacta la navegación en portátiles (72–84em) para que quepa sin desbordar */
@media (min-width: 72em) and (max-width: 84em) {
  .nav a { padding: .45rem .5rem; font-size: .88rem; }
  .brand__name { font-size: .98rem; }
  .brand img { width: 38px; height: 38px; }
  .header__cta { padding: .45rem .9rem; font-size: .85rem; }
}

/* menú móvil */
.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.nav-burger span { height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 72em) { .nav-burger { display: none; } }

.drawer {
  position: fixed; inset: 0; z-index: 90; display: none;
}
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(16, 35, 58, .5); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(22rem, 88vw);
  background: #fff; box-shadow: var(--shadow-lg); overflow-y: auto;
  padding: 1.25rem 1.25rem 6rem;
  animation: drawerIn .25s ease;
}
@keyframes drawerIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__panel ul { list-style: none; margin: 0; padding: 0; }
.drawer__panel > ul > li { border-bottom: 1px solid var(--line-soft); }
.drawer__panel a {
  display: block; padding: .85rem .35rem; text-decoration: none;
  color: var(--ink); font-weight: 500;
}
.drawer__panel a:hover { color: var(--accent-strong); }
.drawer__panel details summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: .85rem .35rem; font-weight: 500; cursor: pointer; color: var(--ink);
}
.drawer__panel details summary::after { content: "+"; font-weight: 600; color: var(--accent); font-size: 1.1rem; }
.drawer__panel details[open] summary::after { content: "–"; }
.drawer__panel details ul { padding-left: .85rem; padding-bottom: .5rem; }
.drawer__panel details a { font-weight: 400; font-size: 1rem; padding-block: .5rem; }
.drawer__cta { display: grid; gap: .6rem; margin-top: 1.25rem; }

/* ---------- Hero portada ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #f6f3ec 55%, #e9efe9);
}
.hero__inner {
  display: grid; gap: 2.5rem; align-items: center;
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
}
@media (min-width: 56em) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--azure); }
.hero__sub { font-size: var(--fs-md); color: var(--slate); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: 1.75rem; padding: 0; list-style: none; }
.hero__trust li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: .42rem .9rem; font-size: var(--fs-sm); font-weight: 500; color: var(--navy);
  box-shadow: var(--shadow-sm); margin: 0;
}
.hero__trust svg { width: 1em; height: 1em; color: var(--accent); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(255, 255, 255, .95); border-radius: var(--radius-sm);
  padding: .7rem 1rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .7rem; font-size: var(--fs-sm);
}
.hero__badge strong { display: block; font-size: 1rem; }
.hero__badge .stars { color: var(--gold); letter-spacing: .1em; }

/* hero interior */
.page-hero { background: linear-gradient(165deg, #f6f3ec 55%, #edeee6); border-bottom: 1px solid var(--line-soft); }
.page-hero__inner { padding-block: clamp(2.2rem, 5vw, 3.8rem); max-width: 54rem; }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumbs { font-size: var(--fs-xs); color: var(--slate); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: var(--line); font-size: 1rem; }
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 1.4rem; }
@media (min-width: 40em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 40em) and (max-width: 55.99em) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--navy); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
/* Los títulos de tarjeta van en h2 (páginas de listado) o h3 (secciones internas);
   se estilan igual para que la jerarquía semántica no altere el diseño. */
.card__body :is(h2, h3) { font-size: 1.25rem; margin-bottom: .4em; font-family: var(--ff-display); font-weight: 600; line-height: 1.15; color: var(--navy); }
.card__body :is(h2, h3) a { color: inherit; text-decoration: none; }
.card__body :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__body p { color: var(--slate); font-size: 1rem; margin-bottom: 1rem; }
.card__link {
  margin-top: auto; font-weight: 600; font-size: var(--fs-sm); color: var(--accent-strong);
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
}
.card:hover .card__link { text-decoration: underline; text-underline-offset: 3px; }

.card--mini { flex-direction: row; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.card--mini h3 { font-size: 1.05rem; font-family: var(--ff-body); margin: 0; }
.card--mini .card__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong);
}
.card--mini .card__icon svg { width: 24px; height: 24px; }

/* ---------- Franja de confianza ---------- */
.truststrip { border-block: 1px solid var(--line-soft); background: #fff; }
.truststrip__inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  padding-block: 1.8rem; text-align: center;
}
@media (min-width: 48em) { .truststrip__inner { grid-template-columns: repeat(4, 1fr); } }
.truststrip strong { display: block; font-family: var(--ff-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); color: var(--navy); font-weight: 600; }
.truststrip span { font-size: var(--fs-sm); color: var(--slate); }

/* ---------- Antes / después ---------- */
.ba {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-md); touch-action: none; user-select: none;
  aspect-ratio: 4 / 3; background: var(--navy-deep);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none;
}
.ba__handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 600;
  box-shadow: var(--shadow-md);
}
.ba__tag {
  position: absolute; bottom: .8rem; z-index: 2; font-size: var(--fs-xs); font-weight: 600;
  background: rgba(16, 35, 58, .78); color: #fff; border-radius: 2px; padding: .25rem .7rem;
  pointer-events: none;
}
.ba__tag--before { left: .8rem; }
.ba__tag--after { right: .8rem; }
figure.ba-figure { margin: 0; }
figure.ba-figure figcaption { font-size: var(--fs-sm); color: var(--slate); margin-top: .7rem; text-align: center; }

/* galería simple */
.gallery-grid { display: grid; gap: 1.2rem; }
@media (min-width: 40em) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid figure { margin: 0; }
.gallery-grid img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); width: 100%; }
.gallery-grid figcaption { font-size: var(--fs-xs); color: var(--slate); margin-top: .5rem; }

/* ---------- Vídeo (facade YouTube) ---------- */
.yt {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: var(--navy-deep); cursor: pointer; border: 0; padding: 0;
  box-shadow: var(--shadow-md); width: 100%; display: block;
}
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.94) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23136a4f'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center/26px no-repeat;
  box-shadow: var(--shadow-md); transition: transform .15s ease;
}
.yt:hover::after { transform: translate(-50%, -50%) scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Acordeón FAQ ---------- */
.faq { max-width: 50rem; }
.faq details {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  margin-bottom: .8rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; padding: 1.05rem 1.3rem;
  font-weight: 600; color: var(--navy); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong);
  font-weight: 600; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq .faq__a { padding: 1rem 1.3rem 1.2rem; color: var(--slate); }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- Testimonios ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.quote-card .stars { color: var(--gold); letter-spacing: .12em; margin-bottom: .6rem; font-size: .95rem; }
.quote-card blockquote { margin: 0 0 1rem; font-size: var(--fs-base); color: var(--ink); }
.quote-card figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--slate); font-weight: 500; }

/* ---------- Doctor ---------- */
.doctor { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56em) { .doctor { grid-template-columns: .85fr 1.15fr; } }
.doctor__media img {
  border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%;
}
.doctor__creds { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.doctor__creds li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; }
.doctor__creds svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--accent); margin-top: .2rem; }

/* ---------- Proceso / pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; counter-reset: step; }
@media (min-width: 56em) { .steps { grid-template-columns: repeat(var(--steps-cols, 4), 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow-sm); margin: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--ff-display); font-size: 1.6rem; font-weight: 600; color: var(--accent);
  display: block; margin-bottom: .5rem;
}
.steps h3 { font-size: 1.12rem; font-family: var(--ff-body); font-weight: 600; }
.steps p { font-size: 1rem; color: var(--slate); margin: 0; }

/* ---------- Banda CTA ---------- */
.cta-band {
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(31, 138, 102, .25), transparent 55%),
    linear-gradient(150deg, var(--navy-deep), #17395c);
  color: #e5edf4; border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow-lg);
  display: grid; gap: 1.6rem; align-items: center;
}
@media (min-width: 56em) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #b9c9d8; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-self: start; }
@media (min-width: 56em) { .cta-band__actions { justify-self: end; } }

/* ---------- Prosa (contenido largo) ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-block: 1.5rem; }
.prose blockquote {
  border-left: 3px solid var(--accent); margin: 1.5rem 0; padding: .3rem 0 .3rem 1.2rem;
  color: var(--slate); font-style: italic;
}
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; margin-block: 1.5rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--bg-alt); font-weight: 600; color: var(--navy); }

.layout-article { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64em) { .layout-article { grid-template-columns: minmax(0, 1fr) 20rem; } }
.sidebar { display: grid; gap: 1.4rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sidebar__card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.sidebar__card h3 { font-size: 1.08rem; font-family: var(--ff-body); font-weight: 600; margin-bottom: .8rem; }
.sidebar__card ul { list-style: none; padding: 0; margin: 0; }
.sidebar__card li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.sidebar__card li:last-child { border-bottom: 0; }
.sidebar__card a { display: block; padding: .55rem 0; text-decoration: none; color: var(--ink); font-size: 1rem; }
.sidebar__card a:hover { color: var(--accent-strong); }
.sidebar__card--cta { background: linear-gradient(150deg, var(--navy-deep), #17395c); border: 0; color: #dbe5ee; }
.sidebar__card--cta h3 { color: #fff; }
.sidebar__card--cta p { font-size: 1rem; color: #b9c9d8; }
.sidebar__card--cta .btn { width: 100%; margin-top: .4rem; }
/* Sobre cualquier fondo oscuro (tarjeta CTA lateral, banda CTA, secciones
   oscuras), el botón de WhatsApp heredaba texto navy: invisible, navy sobre navy.
   Se fuerza texto claro y borde tenue; el icono mantiene el verde de plataforma.
   En hover se invierte a fondo blanco con icono verde. */
.sidebar__card--cta .btn--wa,
.cta-band .btn--wa,
.section--dark .btn--wa { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.07); }
.sidebar__card--cta .btn--wa:hover,
.cta-band .btn--wa:hover,
.section--dark .btn--wa:hover { background: #fff; color: var(--navy); border-color: #fff; }
.sidebar__card--cta .btn--wa:hover svg,
.cta-band .btn--wa:hover svg,
.section--dark .btn--wa:hover svg { color: var(--wa); }

/* ---------- Meta de artículos ---------- */
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; color: var(--slate); font-size: var(--fs-sm); margin-bottom: 1.2rem; }
.post-meta .chip {
  background: var(--accent-soft); color: var(--accent-strong); border-radius: 2px;
  padding: .2rem .75rem; font-weight: 600; font-size: var(--fs-xs); text-decoration: none;
}
.post-card__date { font-size: var(--fs-xs); color: var(--slate); margin-bottom: .35rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60em) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; margin: 0; align-items: flex-start; }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: .2rem; }
.contact-list strong { display: block; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.map-embed iframe { width: 100%; height: 100%; }

.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; font-size: var(--fs-sm); color: var(--navy); display: block; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .75rem .95rem; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form .form__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--slate); }
.form .form__consent input { width: auto; margin-top: .2rem; }
.form__note { font-size: var(--fs-xs); color: var(--slate); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b6c5d3; font-size: 1rem; margin-top: var(--space-6); }
.footer a { color: #dfe8f0; text-decoration: none; }
.footer a:hover { color: #a9d4ee; }
.footer__grid { display: grid; gap: 2.2rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 48em) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.footer h3 { color: #fff; font-family: var(--ff-body); font-size: .95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 0 0 .55rem; }
.footer__brand img { width: 52px; height: 52px; margin-bottom: .9rem; }
.footer__brand p { font-size: 1rem; }
.footer__social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .15s;
}
.footer__social a:hover { background: rgba(127, 208, 176, .25); }
.footer__social svg { width: 18px; height: 18px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.3rem; font-size: var(--fs-xs); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__legal li { margin: 0; }

/* ---------- Barra móvil fija ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(24, 43, 64, .12);
  padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom));
  gap: .55rem;
}
.mobile-bar .btn { padding: .65rem .5rem; font-size: .95rem; }
.mobile-bar .btn--wa { border-color: var(--line); }
@media (min-width: 72em) { .mobile-bar { display: none; } }
body { padding-bottom: 4.6rem; }
@media (min-width: 72em) { body { padding-bottom: 0; } }

/* botón whatsapp flotante (solo escritorio) */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy);
  display: none; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform .15s ease;
}
.wa-float:hover { background: var(--accent-strong); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
@media (min-width: 72em) { .wa-float { display: grid; } }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-5); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.pill-list li { margin: 0; }
.pill-list a {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  border-radius: 2px; padding: .5rem 1.1rem; text-decoration: none;
  color: var(--navy); font-weight: 500; font-size: var(--fs-sm);
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.pill-list a:hover { border-color: var(--accent); color: var(--accent-strong); box-shadow: var(--shadow-sm); }

.notice {
  background: var(--accent-soft); border: 1px solid #cde5da; color: var(--accent-strong);
  border-radius: var(--radius-sm); padding: .9rem 1.2rem; font-size: var(--fs-sm); font-weight: 500;
}

/* ---------- Caja de autor médico (E-E-A-T) ---------- */
.author-box {
  display: flex; gap: 1rem; align-items: center;
  background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: .9rem 1.1rem; margin-bottom: 1.6rem;
}
.author-box__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
.author-box__name { margin: 0; font-weight: 600; color: var(--navy); }
.author-box__name a { color: inherit; text-decoration: none; }
.author-box__name a:hover { color: var(--accent-strong); text-decoration: underline; }
.author-box__role { margin: .1rem 0 0; font-size: var(--fs-sm); color: var(--slate); }

/* ---------- Datos sanitarios en el footer ---------- */
.footer__med { border-top: 1px solid rgba(255,255,255,.12); padding-block: .9rem; }
.footer__med p { margin: 0; font-size: var(--fs-xs); color: #93a6b6; }

/* ---------- Formación / congresos ---------- */
.congress { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 60em) { .congress { grid-template-columns: 1.05fr .95fr; } }
.congress__media { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.congress__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.congress__media img:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.congress__cards { display: grid; gap: 1.1rem; }
.congress__card {
  background: #fff; border: 1px solid var(--line-soft); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm);
}
.section--dark .congress__card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); border-left-color: #9cc9e8; }
.section--dark .congress__card p { color: #c3d2e0; }
.congress__card h3 { font-size: 1.25rem; margin-bottom: .35em; }
.congress__tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-strong); background: var(--accent-soft);
  padding: .25rem .7rem; border-radius: 2px; margin-bottom: .7rem;
}
.section--dark .congress__tag { color: #0e2e22; background: #9cc9e8; }

/* ---------- Bloque de valoración (rating visible, exigido por Google) ---------- */
.rating-block {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line-soft); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.rating-block__score { display: flex; flex-direction: column; line-height: 1.1; }
.rating-block__score .stars { color: var(--gold); letter-spacing: .1em; font-size: .95rem; }
.rating-block__score strong { font-family: var(--ff-display); font-size: 1.9rem; color: var(--navy); }
.rating-block__score strong span { font-size: 1rem; color: var(--slate); font-weight: 400; }
.rating-block__txt { font-size: var(--fs-sm); color: var(--slate); }
.rating-block__txt p { margin: 0 0 .2rem; }
.rating-block__txt a { font-weight: 600; text-decoration: none; }
.rating-block__txt a:hover { text-decoration: underline; }

/* ---------- Firma médica (E-E-A-T / YMYL) ---------- */
.authorbox {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin-top: 2.5rem;
}
.authorbox__media { flex: none; width: 68px; }
.authorbox__media img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.authorbox__role { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin: 0 0 .15rem; font-weight: 600; }
.authorbox__name { font-family: var(--ff-display); font-size: 1.15rem; margin: 0 0 .3rem; }
.authorbox__name a { color: var(--navy); text-decoration: none; }
.authorbox__name a:hover { text-decoration: underline; }
.authorbox__meta { font-size: var(--fs-sm); color: var(--slate); margin: 0; }

/* ---------- Aviso de cookies ---------- */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 120;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem;
  display: grid; gap: .9rem; max-width: 34rem; margin-inline: auto;
  font-size: var(--fs-sm); color: var(--slate);
}
/* Sin esto el banner NO se cierra nunca: el JS pone el atributo [hidden], pero
   `display: grid` de la regla de arriba gana al display:none que trae [hidden]
   por defecto, así que el aviso seguía visible tras pulsar Aceptar o Rechazar. */
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (min-width: 64em) { .cookie-bar { left: auto; bottom: 1.4rem; right: 6.5rem; } }

/* animación de aparición */
/* Solo se oculta si hay JS para volver a mostrarlo (clase .js en <html>).
   Sin JavaScript el contenido se ve siempre: nunca dependemos de JS para leer. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
/* El hero es lo primero que se ve (elemento LCP): nunca se oculta */
.js .hero__media.reveal { opacity: 1; transform: none; }

/* ============================================================
   Ritmo vertical y movimiento
   ============================================================ */

/* Dos secciones seguidas con el MISMO fondo sumaban su relleno y abrían
   un hueco enorme. Cuando no hay cambio de color, se colapsa el de arriba. */
.section:not(.section--alt):not(.section--dark) + .section:not(.section--alt):not(.section--dark) { padding-top: 0; }
.section--alt + .section--alt { padding-top: 0; }

/* ---------- Aparición escalonada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

  /* Entrada del hero al cargar: el texto sube por bloques */
  .hero__inner > div > * { animation: subir .7s cubic-bezier(.22,.61,.36,1) both; }
  .hero__inner > div > *:nth-child(1) { animation-delay: .05s; }
  .hero__inner > div > *:nth-child(2) { animation-delay: .14s; }
  .hero__inner > div > *:nth-child(3) { animation-delay: .23s; }
  .hero__inner > div > *:nth-child(4) { animation-delay: .32s; }
  .hero__inner > div > *:nth-child(5) { animation-delay: .41s; }
  .hero__media { animation: aparecer 1s cubic-bezier(.22,.61,.36,1) .2s both; }
}
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }

/* ---------- Subrayado que se dibuja ---------- */
.prose a:not(.btn), .card__link, .sidebar__card a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s cubic-bezier(.22,.61,.36,1);
}
.prose a:not(.btn):hover, .card:hover .card__link, .sidebar__card a:hover { background-size: 100% 1px; }

/* ---------- Imágenes: acercamiento sutil ---------- */
.card__media, .gallery-grid figure { overflow: hidden; }
.card__media img, .gallery-grid figure img {
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.card:hover .card__media img, .gallery-grid figure:hover img { transform: scale(1.04); }

/* ---------- Cifras de confianza ---------- */
.truststrip strong { font-variant-numeric: tabular-nums; }

/* ---------- Filete dorado que crece bajo los rótulos ---------- */
.eyebrow { position: relative; padding-bottom: .5rem; }
.eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 2.2rem;
  background: currentColor; opacity: .5;
}
.section-head--center .eyebrow::after { left: 50%; transform: translateX(-50%); }

/* ---------- Botones: brillo contenido ---------- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s ease;
}
.btn--primary:hover::after { transform: translateX(100%); }

/* Enlace al pilar dentro del artículo: discreto pero visible */
.pilar-link {
  border-left: 3px solid var(--gold); background: var(--gold-soft);
  padding: .8rem 1.1rem; font-size: var(--fs-sm); color: var(--slate);
  border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.8rem;
}
.pilar-link a { font-weight: 600; }

/* Mapa del sitio: los rótulos de columna son h2 por jerarquía, pero se muestran
   como encabezado de columna (no como titular de página) para no desbordar. */
.sitemap h2 { font-size: 1.05rem; font-family: var(--ff-body); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-bottom: .7rem; }

/* ---------- Tablas de datos ----------
   Información densa (técnicas, ficha quirúrgica, postoperatorio) en formato
   comparable. En móvil, .tbl--stack convierte cada fila en una tarjeta para
   no obligar a hacer scroll horizontal. */
.tbl-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tbl th, .tbl td { padding: .9rem 1.15rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.tbl thead th {
  background: var(--navy); color: #fff; border-bottom: 0;
  font-family: var(--ff-body); font-weight: 600; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
}
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody tr:nth-child(even) { background: var(--bg); }
.tbl th[scope="row"] { font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.tbl td { color: var(--slate); }
.tbl__go { font-weight: 600; white-space: nowrap; }
.tbl--spec th[scope="row"] { width: 34%; }
@media (min-width: 48em) { .tbl--wide { min-width: 46rem; } }

@media (max-width: 47.99em) {
  .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl--stack tbody tr { display: block; padding: .6rem 0 1rem; border-bottom: 1px solid var(--line); }
  .tbl--stack tbody tr:last-child { border-bottom: 0; }
  .tbl--stack tbody tr:nth-child(even) { background: transparent; }
  .tbl--stack th, .tbl--stack td { display: block; border: 0; padding: .3rem 1.15rem; }
  .tbl--stack th[scope="row"] { font-size: 1.1rem; padding-top: .8rem; }
  .tbl--stack td::before {
    content: attr(data-th); display: block; margin-bottom: .1rem;
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: .07em;
    text-transform: uppercase; color: var(--navy); opacity: .55;
  }
  .tbl--spec th[scope="row"] { width: auto; }
}

/* ---------- Bloques de galería por técnica ---------- */
.gal { scroll-margin-top: calc(var(--header-h) + 1.2rem); }
.gal + .gal { margin-top: clamp(2.8rem, 6vw, 4.5rem); }
.gal__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  padding-bottom: .9rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.gal__head h2 { font-size: var(--fs-lg); margin: 0; }
.gal__count {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft); padding: .25rem .7rem; border-radius: 999px;
}
.gal__head > a { margin-left: auto; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.gal__head p { flex-basis: 100%; margin: 0; color: var(--slate); font-size: 1rem; }

/* ---------- Vídeo con rótulo ---------- */
.video-card { margin: 0; }
.video-card figcaption { margin-top: .65rem; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
