/* ==========================================================================
   DENTAL 32 — sistema de diseño "Sonrisas de cerca"
   Paleta: turquesa real de marca (paredes reales de la clínica + logo) +
   melocotón cálido como acento, sobre base crema/blanca — clínico, luminoso,
   cercano para toda la familia, sin caer en lo infantil.
   Tipos: Nunito (titulares, terminaciones redondeadas y cálidas) + Inter
   (texto).
   ========================================================================== */

:root {
  --teal: #00AEB6;
  --teal-deep: #00868C;
  --teal-darker: #046168;
  --teal-pale: #E7F7F6;
  --teal-pale-2: #D5F0EE;
  --coral: #FF8562;
  --coral-deep: #E0623E;
  --danger: #C0392B;
  --ink: #1D3033;
  --ink-soft: #24393C;
  --paper: #FDFBF7;
  --paper-dim: #F3F0E8;
  --text-on-dark: #F6F5EF;
  --text-on-dark-soft: rgba(246, 245, 239, .72);
  --text-on-paper: #223335;
  --text-on-paper-soft: #5C6E70;
  --line: rgba(29, 48, 51, .12);
  --line-soft: #E3E0D5;

  --display: 'Nunito', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Inter', sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--text-on-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.visually-hidden:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  z-index: 999; background: var(--teal-deep); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; clip: auto;
}

/* ── Scroll progress ──────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  z-index: 1100; transition: width .1s linear;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding: 20px 0; background: rgba(253, 251, 247, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background-color .35s;
}
.site-nav.is-scrolled {
  padding: 13px 0; background: rgba(253, 251, 247, .96);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px rgba(29, 48, 51, .08);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand .brand-logo { height: 46px; width: auto; transition: height .35s var(--ease); }
.site-nav.is-scrolled .brand .brand-logo { height: 38px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-on-paper-soft); font-weight: 700; font-size: .94rem;
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px; border-radius: 2px;
  background: var(--teal-deep);
  transition: right .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--teal-deep); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn-primary span.short { display: none; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line-soft); color: var(--ink);
  width: 42px; height: 42px; border-radius: var(--radius-sm); align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  padding: 15px 28px; border-radius: var(--radius-pill); border: 1.5px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(224, 98, 62, .55); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -10px rgba(224, 98, 62, .6); background: var(--coral-deep); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-ghost-dark { background: transparent; color: var(--text-on-dark); border-color: rgba(255,255,255,.4); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-ghost-light { background: #fff; color: var(--teal-deep); border-color: var(--line-soft); }
.btn-ghost-light:hover { border-color: var(--teal); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ── Eyebrow / badges ─────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 18px;
}
.eyebrow::before { content: "●"; font-size: .6rem; color: var(--teal); }
.eyebrow.on-dark { color: var(--teal-pale); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: .76rem;
  padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-soft);
  color: var(--text-on-paper-soft); background: #fff;
}

/* ── Reveal ───────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-1.is-visible { transition-delay: .07s; }
.reveal-2.is-visible { transition-delay: .14s; }
.reveal-3.is-visible { transition-delay: .21s; }
.reveal-4.is-visible { transition-delay: .28s; }
.reveal-5.is-visible { transition-delay: .35s; }
.reveal-6.is-visible { transition-delay: .42s; }
.reveal-7.is-visible { transition-delay: .49s; }

/* ── Blob decorations ─────────────────────────────────────────────────── */
.blob-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: blob-float 16s ease-in-out infinite;
}
.blob.b1 { width: 420px; height: 420px; background: var(--teal-pale); top: -10%; right: -8%; animation-duration: 18s; }
.blob.b2 { width: 220px; height: 220px; background: rgba(0,174,182,.14); bottom: -6%; left: -4%; animation-duration: 14s; animation-delay: -4s; }
@keyframes blob-float {
  0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); }
  50% { transform: translate(-18px, 22px) rotate(8deg) scale(1.04); }
}

/* ── Smile arc divider ────────────────────────────────────────────────── */
.smile-arc { display: block; margin: 18px 0 0; }
.smile-arc svg { width: 84px; height: 20px; color: var(--teal); }

/* ── Marquee ──────────────────────────────────────────────────────────── */
.marquee { background: var(--teal); overflow: hidden; padding: 15px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 800; font-size: .92rem; letter-spacing: .01em;
  color: #fff; padding-inline: 26px; white-space: nowrap;
}
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .7; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--paper); padding-top: clamp(130px, 18vw, 180px); padding-bottom: clamp(70px, 9vw, 110px); overflow: hidden; }
.hero-grid-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: var(--ink); }
.hero h1 .accent-teal { color: var(--teal-deep); }
.hero-sub { margin-top: 24px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text-on-paper-soft); max-width: 500px; line-height: 1.7; }
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chip { display: flex; align-items: center; gap: 10px; border-radius: var(--radius-sm); padding: 12px 18px; background: #fff; border: 1px solid var(--line-soft); }
.hero-chip strong { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--teal-deep); display: block; }
.hero-chip span { font-size: .76rem; color: var(--text-on-paper-soft); }

.hero-media { position: relative; z-index: 1; border-radius: 46% 54% 61% 39% / 44% 40% 60% 56%; overflow: hidden; aspect-ratio: 1/1; box-shadow: 0 40px 80px -30px rgba(29,48,51,.28); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-ring { position: absolute; inset: -18px; z-index: 0; border: 2px dashed var(--teal); border-radius: 46% 54% 61% 39% / 44% 40% 60% 56%; opacity: .35; }

.scroll-cue {
  position: absolute; bottom: 30px; left: var(--gutter); z-index: 2;
  display: flex; align-items: center; gap: 10px; color: var(--text-on-paper-soft);
  font-weight: 700; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase;
}
.scroll-cue svg { width: 15px; height: 15px; animation: bob 1.8s ease-in-out infinite; color: var(--teal-deep); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── Loader general de página (todas las páginas) ─────────────────────── */
.page-loader {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  transition: opacity .4s var(--ease);
}
.page-loader.is-done { opacity: 0; pointer-events: none; }
.page-loader span {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--line-soft); border-top-color: var(--teal);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero a foto completa ─────────────────────────────────────────────── */
.hero-full { padding: 0; min-height: min(94vh, 860px); display: flex; align-items: flex-end; }
.hero-full-media { position: absolute; inset: 0; z-index: 0; }
.hero-full-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
/* Vídeo de fondo: se activa por JS en cualquier tamaño de pantalla salvo ahorro
   de datos o movimiento reducido (ver main.js). Empieza oculto a propósito y
   aparece con un fundido cuando ya puede reproducirse (ver .hero-video-loader). */
.hero-full-video {
  display: none; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
  opacity: 0; transition: opacity .5s var(--ease);
}
.hero-full-video.is-visible { opacity: 1; }
/* En cuanto sabemos que esta sesión va a reproducir vídeo (clase puesta en <html>
   antes de pintar, ver <head>), ocultamos ya la foto: así nunca se ve "la imagen
   de antes" ni el salto brusco foto→vídeo, solo el spinner de abajo. */
.will-play-hero-video .hero-full-media picture { opacity: 0; }
.hero-video-loader {
  display: none; position: absolute; inset: 0; z-index: 1;
  align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--teal-darker), var(--ink));
}
.will-play-hero-video .hero-video-loader { display: flex; }
.hero-video-loader.is-done { opacity: 0; transition: opacity .35s; pointer-events: none; }
.hero-video-loader span {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.hero-full-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,26,29,.46) 0%, rgba(4,26,29,.32) 42%, rgba(4,26,29,.92) 100%);
}
.hero-full .wrap { position: relative; z-index: 2; padding-top: clamp(150px, 20vw, 210px); padding-bottom: clamp(64px, 8vw, 104px); }
.hero-full .hero-text { max-width: 640px; }
.hero-full .eyebrow { color: var(--teal-pale); }
.hero-full .eyebrow::before { color: #8CEAE4; }
.hero-full h1 { color: #fff; }
.hero-full h1 .accent-teal { color: #8CEAE4; }
.hero-full .hero-sub { color: rgba(246,245,239,.92); max-width: 560px; }
/* Sin backdrop-filter: aquí puede haber un vídeo detrás, y desenfocarlo en cada
   fotograma es carísimo en rendimiento (esa era la causa de los "trompicones").
   Se compensa con más opacidad de fondo en vez de blur. */
.hero-full .hero-chip { background: rgba(4,26,29,.45); border-color: rgba(255,255,255,.28); }
.hero-full .hero-chip strong { color: #fff; }
.hero-full .hero-chip span { color: rgba(246,245,239,.8); }
.hero-full .scroll-cue { color: rgba(246,245,239,.88); }

/* ── Hero a dos columnas con slider de fotos ──────────────────────────────
   Las fotos de la sesión son CUADRADAS (5000x5000, "editadas móvil"), así que
   el marco del slider es 1:1: un hero a sangre 16:9 les cortaría medio encuadre.
   El texto no se re-anima en cada pase — solo cambia la foto — para que el
   titular se pueda leer con calma mientras el carrusel avanza.  */
.hero-split { padding-bottom: clamp(56px, 7vw, 92px); }
.hero-split-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
.hero-split .hero-text { max-width: 620px; }
.hero-split .hero-sub { max-width: 540px; }

.hero-slider { position: relative; z-index: 1; }
/* El anillo tiene que ceñirse al MARCO de la foto, no al slider entero: si se
   posiciona sobre .hero-slider se lleva también los puntos y queda un hueco. */
.hs-stage { position: relative; }
.hs-frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 1/1;
  background: var(--teal-pale);
  box-shadow: 0 40px 80px -32px rgba(29,48,51,.4);
}
.hs-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.hs-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
.hs-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Zoom lentísimo mientras la diapositiva está a la vista: da vida sin marear.
   Se desactiva entero con prefers-reduced-motion (ver más abajo). */
.hs-slide.is-active img { animation: hs-kenburns 9s var(--ease) forwards; }
@keyframes hs-kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }

.hs-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 44px 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(4,26,29,.88));
  color: #fff; font-family: var(--display); font-weight: 800;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
}

.hs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.92);
  color: var(--teal-darker); font-size: 1.6rem; line-height: 1; padding: 0 0 4px;
  box-shadow: 0 8px 22px -8px rgba(29,48,51,.45);
  transition: background .25s, transform .25s;
}
.hs-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hs-prev { left: 12px; }
.hs-next { right: 12px; }

.hs-dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.hs-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--line-soft); transition: background .25s, width .25s;
}
.hs-dot.is-active { width: 26px; border-radius: var(--radius-pill); background: var(--teal); }

/* Anillo punteado de marca, el mismo recurso que ya usa .hero-media */
.hs-ring {
  position: absolute; inset: -14px; z-index: 0; pointer-events: none;
  border: 2px dashed var(--teal); border-radius: calc(var(--radius) + 14px); opacity: .32;
}

@media (min-width: 900px) {
  .hero-split-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    grid-template-areas: "foto texto";
    gap: clamp(40px, 5vw, 72px);
  }
  .hero-split .hero-slider { grid-area: foto; }
  .hero-split .hero-text { grid-area: texto; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-slide.is-active img { animation: none; }
  .hs-slide { transition: none; }
}

/* ── Aviso de financiación (badge dentro del hero) ────────────────────── */
.finance-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; max-width: 480px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: rgba(4,26,29,.45); border: 1px solid rgba(255,255,255,.28);
}
.finance-badge svg { width: 22px; height: 22px; flex: none; color: #8CEAE4; }
.finance-badge span { font-size: .88rem; line-height: 1.45; color: rgba(246,245,239,.95); }
.finance-badge strong { color: #fff; }
/* Variante clara, para usarla sobre fondos claros (p.ej. la cabecera de tratamientos) */
.finance-badge.on-light { background: #fff; border-color: var(--line-soft); }
.finance-badge.on-light svg { color: var(--teal-deep); }
.finance-badge.on-light span { color: var(--text-on-paper-soft); }
.finance-badge.on-light strong { color: var(--ink); }

/* ── Ventaja para pacientes (cupón de un acuerdo con otra empresa) ─────
   A propósito NO grita: es una ventaja añadida, no la llamada a la acción de
   la web. Tarjeta clara, acento en el código y un botón secundario, para que
   no compita con "Pedir cita". */
.perk-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 34px);
  align-items: start; max-width: 880px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
}
.perk-icon {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-pale); color: var(--teal-darker);
}
.perk-icon svg { width: 27px; height: 27px; }
.perk-card h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--ink); margin-top: 8px; }
.perk-card > .perk-body > p { margin-top: 16px; color: var(--text-on-paper-soft); line-height: 1.7; }
.perk-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.perk-code {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  background: var(--teal-pale); color: var(--teal-darker);
  font-size: .9rem; border: 1px dashed var(--teal);
}
.perk-code strong { font-family: var(--display); font-weight: 900; letter-spacing: .04em; }
@media (max-width: 620px) {
  .perk-card { grid-template-columns: 1fr; }
}

/* ── Banda de foto a ancho completo entre secciones ───────────────────── */
.photo-band { position: relative; height: clamp(360px, 46vw, 580px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band .band-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, transparent, rgba(4,26,29,.78));
  color: #fff;
}
.photo-band .band-caption p { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); max-width: 640px; }

/* ── Comunidad: fotos a ancho completo ─────────────────────────────────── */
.community-band { display: grid; grid-template-columns: 1fr 1fr; }
.community-band .cb-photo { position: relative; height: clamp(300px, 30vw, 440px); overflow: hidden; }
.community-band .cb-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .community-band { grid-template-columns: 1fr; } }

/* ── Teléfono persistente en el nav ────────────────────────────────────── */
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; color: var(--text-on-paper); }
.nav-phone svg { width: 17px; height: 17px; color: var(--teal-deep); flex: none; }
.nav-phone:hover { color: var(--teal-deep); }
@media (max-width: 900px) { .nav-phone span { display: none; } }

/* ── Page hero ────────────────────────────────────────────────────────── */
.page-hero { position: relative; background: var(--teal-pale); padding-top: clamp(120px, 16vw, 160px); padding-bottom: clamp(56px, 7vw, 80px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); color: var(--ink); }
.page-hero .lede { margin-top: 20px; max-width: 620px; color: var(--text-on-paper-soft); font-size: 1.08rem; line-height: 1.7; }
.page-hero .breadcrumb { font-weight: 700; font-size: .78rem; color: var(--teal-deep); margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.page-hero .breadcrumb a:hover { color: var(--teal-darker); }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 8vw, 108px); }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); color: var(--ink); }
.section-head p { margin-top: 18px; font-size: 1.06rem; color: var(--text-on-paper-soft); line-height: 1.7; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: var(--text-on-dark-soft); }
.section-foot { margin-top: 44px; display: flex; justify-content: center; }
.swipe-hint, .swipe-hint-treat { display: none; margin: -10px 0 28px; font-size: .8rem; font-weight: 700; color: var(--text-on-paper-soft); }

/* ── Services / treatments grid ──────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  position: relative; padding: 0; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-soft);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(29,48,51,.18); border-color: transparent; }
.service-card .s-media { aspect-ratio: 4/3; overflow: hidden; }
.service-card .s-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .s-media img { transform: scale(1.06); }
.service-card .s-body { padding: 22px 22px 24px; }
.service-card h3 { font-size: 1.06rem; color: var(--ink); margin-bottom: 10px; }
.service-card p { font-size: .92rem; color: var(--text-on-paper-soft); line-height: 1.55; }
.service-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .82rem; font-weight: 700; color: var(--teal-deep); opacity: 0; transform: translateX(-6px); transition: .3s; }
.service-card:hover .go { opacity: 1; transform: none; }

@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
/* En móvil, una columna vertical de 8 tarjetas idénticas se siente como un scroll
   infinito monótono. En su lugar, carrusel horizontal con snap (mismo patrón que
   .reviews-carousel) y la siguiente tarjeta asomando para que se note que desliza. */
@media (max-width: 560px) {
  .services-grid {
    display: flex; grid-template-columns: none; overflow-x: auto; gap: 16px;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 4px 4px 10px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .services-grid .service-card { flex: 0 0 78%; scroll-snap-align: start; }
  .swipe-hint { display: block; }
}

/* Treatment cards with photo (tratamientos page) */
.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.treatment-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.treatment-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(29,48,51,.2); }
.treatment-card .t-media { aspect-ratio: 4/3; overflow: hidden; }
.treatment-card .t-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.treatment-card:hover .t-media img { transform: scale(1.06); }
.treatment-card .t-body { padding: 24px 22px 26px; }
.treatment-card .t-index { font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; }
.treatment-card h3 { font-size: 1.12rem; color: var(--ink); margin-bottom: 10px; }
.treatment-card p { font-size: .9rem; color: var(--text-on-paper-soft); line-height: 1.6; }
@media (max-width: 1080px) { .treatments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .treatments-grid {
    display: flex; grid-template-columns: none; overflow-x: auto; gap: 16px;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 4px 4px 10px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .treatments-grid::-webkit-scrollbar { display: none; }
  .treatments-grid .treatment-card { flex: 0 0 78%; scroll-snap-align: start; }
  .swipe-hint-treat { display: block; }
}

/* Última fila incompleta: con 13 tarjetas la última queda sola. La centramos
   para que no parezca un hueco. 3 col (desktop) y 2 col (tablet). */
.treatments-grid .treatment-card:last-child:nth-child(3n+1) { grid-column: 2; }
@media (max-width: 1080px) {
  .treatments-grid .treatment-card:last-child:nth-child(3n+1) { grid-column: auto; }
  .treatments-grid .treatment-card:last-child:nth-child(2n+1) { grid-column: 1 / -1; max-width: calc(50% - 12px); margin-inline: auto; }
}
@media (max-width: 640px) {
  .treatments-grid .treatment-card:last-child:nth-child(2n+1) { grid-column: auto; max-width: none; margin-inline: 0; }
}

/* ── Why / values ─────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.values-list { display: grid; gap: 20px; margin-top: 30px; }
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .dot {
  width: 40px; height: 40px; border-radius: var(--radius-sm); flex: none; display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--teal-deep);
}
.value-item .dot svg { width: 19px; height: 19px; }
.value-item h4 { font-size: 1.02rem; margin-bottom: 5px; color: var(--ink); }
.value-item p { font-size: .92rem; color: var(--text-on-paper-soft); line-height: 1.55; }

.frame-photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.frame-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.frame-photo:hover img { transform: scale(1.04); }

/* ── Instalaciones grid ───────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(4,26,29,.82) 100%); opacity: .85; transition: opacity .4s; }
.gallery-card:hover .scrim { opacity: .95; }
.gallery-card .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.gallery-card .cap strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.02rem; }
@media (max-width: 1080px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(4,26,29,.94); display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .lb-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-cap { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-weight: 600; font-size: .85rem; }

/* ── Team / equipo ────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(29,48,51,.18); }
/* Cuadrado: los retratos de la sesión vienen en 1:1 y con figura entera, así
   que cualquier otra proporción los corta. */
.team-card .tm-media { aspect-ratio: 1/1; overflow: hidden; }
.team-card .tm-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Placeholder para altas de equipo cuya foto real aún no nos ha llegado. */
.team-card .tm-media-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-pale-2);
}
.team-card .tm-media-placeholder span {
  font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--teal-deep);
}
.team-card .tm-body { padding: 24px 22px 28px; }
.team-card h3 { font-size: 1.12rem; color: var(--ink); margin-bottom: 6px; }
.team-card .tm-role { font-weight: 700; font-size: .82rem; color: var(--teal-deep); margin-bottom: 12px; display: block; }
.team-card p { font-size: .9rem; color: var(--text-on-paper-soft); line-height: 1.6; }
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

/* ── Community / sponsorship section ─────────────────────────────────── */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.community-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; }
.community-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .community-grid { grid-template-columns: 1fr; } }

/* ── CTA final ────────────────────────────────────────────────────────── */
.cta-final { position: relative; background: var(--teal-darker); color: #fff; text-align: center; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 44% 56% 60% 40% / 45% 41% 59% 55%;
  background: rgba(255,255,255,.06); top: -20%; left: -10%;
}
.cta-final::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 58% 42% 37% 63% / 52% 60% 40% 48%;
  background: rgba(0, 174, 182, .1); bottom: -18%; right: -6%;
}
.cta-final .blob-field .blob.b3 {
  width: 220px; height: 220px; border-radius: 50% 50% 42% 58% / 58% 42% 58% 42%;
  background: rgba(255,255,255,.05); top: 10%; right: 14%;
}
.cta-final .blob-field .blob.b4 {
  width: 150px; height: 150px; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: rgba(0, 174, 182, .12); bottom: 8%; left: 12%;
}
.cta-final h2 { position: relative; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 720px; margin: 0 auto; }
.cta-final p { position: relative; margin-top: 18px; font-size: 1.06rem; color: rgba(246,245,239,.85); }
.cta-final .hero-ctas { position: relative; justify-content: center; margin-top: 36px; }

/* ── Tratamientos page: treatment nav pills ──────────────────────────── */
.treat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.treat-pill { font-weight: 700; font-size: .84rem; padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line-soft); background: #fff; color: var(--text-on-paper-soft); transition: .3s; }
.treat-pill:hover { border-color: var(--teal); color: var(--teal-deep); }

/* ── Contact page ─────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 8px; color: var(--text-on-paper); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-soft);
  background: var(--paper); color: var(--text-on-paper); font-family: var(--body); font-size: .96rem;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--text-on-paper-soft); }
.field-check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--teal); }
.field-check a { color: var(--teal-deep); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin-top: 16px; font-size: .88rem; opacity: 0; transition: opacity .3s; }
.form-status.is-visible { opacity: 1; }
.form-status.ok { color: var(--teal-deep); font-weight: 700; }
.form-status.err { color: var(--danger); font-weight: 700; }

.info-list { display: grid; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .dot { width: 46px; height: 46px; border-radius: var(--radius-sm); flex: none; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-soft); color: var(--teal-deep); }
.info-item .dot svg { width: 20px; height: 20px; }
.info-item h4 { font-size: .96rem; margin-bottom: 4px; color: var(--ink); }
.info-item p, .info-item a { font-size: .94rem; color: var(--text-on-paper-soft); }
.info-item a:hover { color: var(--teal-deep); }
.hours-table { display: grid; gap: 8px; margin-top: 4px; }
.hours-table div { display: flex; justify-content: space-between; font-size: .92rem; color: var(--text-on-paper-soft); }
.hours-table strong { color: var(--ink); font-weight: 700; }
.map-frame { margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 16/9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--text-on-dark); padding-top: 68px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-logo { height: 44px; width: auto; }
.footer-brand p { color: var(--text-on-dark-soft); font-size: .92rem; line-height: 1.6; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; transition: border-color .25s, color .25s, background .25s; }
.footer-social a:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,174,182,.14); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-on-dark-soft); margin-bottom: 18px; font-weight: 800; }
.footer-col a, .footer-col span { display: block; margin-bottom: 12px; color: var(--text-on-dark-soft); font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-qr { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-qr img { border-radius: 8px; background: #fff; padding: 5px; flex: none; }
.footer-qr a { margin-bottom: 0; font-size: .8rem; line-height: 1.35; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; flex-wrap: wrap; font-size: .82rem; color: var(--text-on-dark-soft); }
.footer-bottom a { color: var(--text-on-dark-soft); }
.footer-bottom a:hover { color: var(--teal); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ── Mobile nav ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav .wrap { gap: 12px; }
  .brand .brand-logo { height: 34px; }
  .site-nav.is-scrolled .brand .brand-logo { height: 30px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 11px 18px; font-size: .84rem; }
  .nav-toggle { width: 38px; height: 38px; flex: none; display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 110px 32px 40px; gap: 26px; transform: translateX(100%); transition: transform .4s var(--ease);
    border-left: 1px solid var(--line-soft); box-shadow: -20px 0 50px rgba(29,48,51,.15);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta .btn-primary span.long { display: none; }
  .nav-cta .btn-primary span.short { display: inline; }
  .hero-grid-layout { grid-template-columns: 1fr; }
  .hero-media { max-width: 340px; margin: 0 auto; order: -1; }
}
@media (max-width: 380px) {
  .nav-cta .btn-primary { padding: 10px 14px; font-size: .8rem; }
}

@media (max-width: 900px) {
  .why-grid, .contact-grid { grid-template-columns: 1fr !important; gap: 36px; }
}
@media (max-width: 720px) {
  .hero-chips { gap: 10px; }
}

/* ── Blog ─────────────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Misma cura que en .treatments-grid: si la última tarjeta se queda sola en
   su fila, se centra en vez de dejar un hueco a la derecha. */
.blog-grid .blog-card:last-child:nth-child(3n+1) { grid-column: 2; }
@media (max-width: 1080px) {
  .blog-grid .blog-card:last-child:nth-child(3n+1) { grid-column: auto; }
}

.blog-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(29,48,51,.18); }
.blog-card .bc-media { aspect-ratio: 3/2; overflow: hidden; }
.blog-card .bc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.blog-card:hover .bc-media img { transform: scale(1.06); }
.blog-card .bc-body { padding: 22px 24px 26px; }
.blog-card .bc-date { font-weight: 700; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; display: block; }
.blog-card h3 { font-size: 1.12rem; color: var(--ink); margin-bottom: 10px; }
.blog-card p { font-size: .92rem; color: var(--text-on-paper-soft); line-height: 1.6; }
@media (max-width: 1080px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.post-article { max-width: 720px; }
/* Las imágenes de los posts llevan width/height como atributo (bien, evita el
   salto de maquetación), pero al escalarlas con width:100% hay que devolver
   la altura a auto o el navegador conserva la del atributo y las ESTIRA. Los
   tres posts del blog llevaban meses con las fotos alargadas y no se veía a
   simple vista: 1200x800 se servía en 720x800. */
.post-article img { height: auto; }
.post-article p { margin-top: 18px; font-size: 1.05rem; color: var(--text-on-paper-soft); line-height: 1.8; }
.post-article p:first-child { margin-top: 0; }
.post-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
.post-figures figure { margin: 0; }
/* height:auto es obligatorio: si no, el height="…" del HTML gana la cascada
   sobre aspect-ratio (no queda "auto") y la foto sale recortada en vertical. */
.post-figures img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); display: block; }
.post-figures figcaption { margin-top: 10px; font-size: .84rem; color: var(--text-on-paper-soft); text-align: center; }
@media (max-width: 640px) { .post-figures { grid-template-columns: 1fr; } }

/* ── Reseñas ──────────────────────────────────────────────────────────── */
.reviews-rating { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text-on-paper-soft); }
.reviews-rating .stars { color: var(--teal-deep); letter-spacing: 2px; font-size: 1.1rem; }
.reviews-rating strong { color: var(--ink); font-weight: 800; }
.reviews-carousel-wrap { position: relative; margin-top: 44px; display: flex; align-items: center; gap: 12px; }
.reviews-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reviews-carousel::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 320px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 24px; }
.review-card .stars { color: var(--teal-deep); letter-spacing: 2px; margin-bottom: 14px; display: block; font-size: 1rem; }
.review-card p { font-size: .94rem; color: var(--text-on-paper-soft); line-height: 1.6; }
.review-card .review-author { margin-top: 16px; font-weight: 700; font-size: .88rem; color: var(--ink); }
.reviews-arrow { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-soft); background: #fff; color: var(--teal-deep); font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .25s; }
.reviews-arrow:hover { border-color: var(--teal); background: var(--teal-pale); }
@media (max-width: 720px) { .reviews-arrow { display: none; } }

/* Botón «Configurar cookies» del pie: revocación del consentimiento. */
.footer-bottom .foot-consent{background:none;border:0;padding:0;margin:0;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit;text-decoration:underline;}.footer-bottom .foot-consent:hover{color:var(--teal);}

/* Tabla de la política de cookies: en móvil se desborda, por eso el scroll
   horizontal propio y las celdas sin partir palabras. */
.cookie-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: .92rem; }
.cookie-table th, .cookie-table td { border: 1px solid var(--line-soft); padding: 10px 12px;
  text-align: left; vertical-align: top; line-height: 1.55; min-width: 150px; }
.cookie-table th { background: var(--teal-pale); color: var(--ink); font-weight: 800; }
.cookie-table td { color: var(--text-on-paper-soft); }
.cookie-table code { font-size: .88em; background: var(--paper-dim); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 640px) {
  /* En móvil la tabla se parte en tarjetas: con scroll horizontal las columnas
     de finalidad y conservación quedan fuera de pantalla, y un dato que no se
     ve es un dato que no se ha informado. */
  .cookie-table thead { display: none; }
  .cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; width: 100%; }
  .cookie-table tr { border: 1px solid var(--line-soft); border-radius: var(--radius-sm, 10px);
    margin-bottom: 14px; overflow: hidden; }
  .cookie-table td { border: 0; border-top: 1px solid var(--line-soft); min-width: 0; padding: 10px 14px; }
  .cookie-table tr td:first-child { border-top: 0; background: var(--teal-pale); }
  .cookie-table td::before { content: attr(data-l); display: block; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
}

/* Entradas publicadas desde el panel del CMS (24-sep-2026). sync.php las pinta
   dentro de <article class="post-body wrap"> sustituyendo el <main> de una
   entrada existente, así que no llevan page-hero: el hueco del menú fijo y la
   tipografía se dan aquí para que se vean como las cuatro hechas a mano. */
.post-body.wrap { max-width: 760px; padding-top: clamp(130px, 16vw, 170px); padding-bottom: clamp(56px, 7vw, 90px); }
.post-body h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); margin-bottom: 28px; }
.post-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); color: var(--ink); margin-top: 40px; }
.post-body h3 { font-size: 1.2rem; color: var(--ink); margin-top: 30px; }
.post-body p, .post-body li { margin-top: 18px; font-size: 1.05rem; color: var(--text-on-paper-soft); line-height: 1.8; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-top: 8px; }
.post-body a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; margin: 28px 0; }
.post-body blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal-deep); font-style: italic; }
.post-body .post-hero { margin: 0 0 32px; }
.post-body .post-hero img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin: 0; }
