/* ============================================================
   FRATERSALUD — Fisioterapia y Podología (Aluche, Madrid)
   Demo ViralBee · v2 «clean clínico»
   Sistema: blancos fríos + teal médico + Hanken Grotesk
   Escala de radios: control 10 / panel 18 / media 24
   ============================================================ */

/* Fuentes locales (antes en fonts.css vía @import: dos peticiones en serie) */
@font-face {font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/HankenGrotesk-italic-300_800.woff2') format('woff2');
}
@font-face {font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/HankenGrotesk-normal-300_800.woff2') format('woff2');
}

:root {
  --fondo: #FBFCFD;
  --superficie: #F1F5F6;
  --blanco: #FFFFFF;
  --tinta: #121619;
  --tinta-2: #46535C;      /* 7,4:1 sobre fondo */
  --acento: #0F766E;       /* teal médico · 5,3:1 con blanco */
  --acento-osc: #0B5A54;
  --acento-tinte: #E4F1EF;
  --oscuro: #0E1517;
  --oscuro-texto: #EDF2F3;
  --oscuro-texto-2: #9FB3B8;
  --borde: #E3E9EC;
  --estrella: #FBBC04;     /* amarillo de Google, solo decorativo */
  --error: #B3261E;

  --sans: "Hanken Grotesk", "Segoe UI", system-ui, Arial, sans-serif;

  --r-control: 10px;
  --r-panel: 18px;
  --r-media: 24px;

  --sombra-1: 0 1px 2px rgba(18, 22, 25, .05), 0 4px 16px rgba(18, 22, 25, .05);
  --sombra-2: 0 8px 40px rgba(18, 22, 25, .12);
  --ancho: 1320px;
}

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

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--fondo);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
main { display: block; }
[id] { scroll-margin-top: 84px; }
p { text-wrap: pretty; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); min-width: 0; }

/* Accesibilidad */
:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--tinta); color: var(--fondo);
  padding: .7rem 1.2rem; border-radius: 0 0 var(--r-control) var(--r-control);
  font-weight: 600; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 0; }
button, .btn, .nav a { touch-action: manipulation; }

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--tinta);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); font-weight: 750; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.2; }

.eyebrow {
  display: block;
  font-weight: 650; font-size: 1.02rem;
  color: var(--acento);
  margin-bottom: .9rem;
  letter-spacing: 0;
}
.prosa { max-width: 62ch; color: var(--tinta-2); }
h1 + .prosa, h2 + .prosa { margin-top: 1rem; }
.prosa strong { color: var(--tinta); font-weight: 650; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  padding: .9rem 1.7rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--acento); color: #fff; }
.btn-primario:hover { background: var(--acento-osc); }
.btn-secundario { border-color: var(--borde); color: var(--tinta); background: var(--blanco); }
.btn-secundario:hover { border-color: var(--tinta-2); }
.btn-texto {
  color: var(--acento); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-texto:hover { color: var(--acento-osc); }
.btn-claro { background: var(--oscuro-texto); color: var(--tinta); border: none; }
.btn-claro:hover { background: #fff; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 253, .78);
  border-bottom: 1px solid var(--borde);
}
/* Blur en pseudo-elemento: sobre .cabecera crearía containing block
   del .nav fixed móvil (bug cazado en la v1) */
.cabecera::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.cabecera-in {
  max-width: var(--ancho); margin: 0 auto;
  padding: .7rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 2rem;
}
.marca { text-decoration: none; line-height: 1.1; display: flex; align-items: center; gap: .7rem; }
.marca img { height: 42px; width: auto; }
.marca-texto { display: block; }
.marca strong {
  font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em;
  color: var(--tinta); display: block;
}
.marca-texto > span { font-size: .78rem; font-weight: 500; color: var(--tinta-2); }
@media (max-width: 420px) { .marca-texto > span { display: none; } }

.pie-logo { width: 220px; height: auto; border-radius: 18px; }
/* Sello del 20 aniversario junto a la marca (oro: se lee sobre claro y sobre oscuro) */
.marca .marca-sello { height: 40px; width: auto; margin-left: .2rem; }
@media (max-width: 420px) { .marca .marca-sello { height: 34px; } }

.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .98rem;
  color: var(--tinta-2); padding: .35rem 0;
  transition: color .2s ease;
}
.nav a:not(.btn):hover { color: var(--tinta); }
.nav a:not(.btn)[aria-current="page"] { color: var(--tinta); font-weight: 650; }
.nav .btn { padding: .55rem 1.25rem; font-size: .92rem; color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: var(--r-control);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--tinta); border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; top: 61px;
    background: var(--fondo);
    flex-direction: column; justify-content: center; gap: 1.7rem;
    font-size: 1.25rem;
    transform: translateY(-110%); transition: transform .3s ease;
    z-index: 40; margin-left: 0;
  }
  .nav { visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .nav.abierta { transform: translateY(0); visibility: visible; transition: transform .3s ease; }
  .nav-toggle { width: 48px; height: 48px; }
  .nav-toggle span { transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-bloqueada { overflow: hidden; }
}

/* ---------- Vídeo (componente base) ---------- */
.media {
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--superficie);
  box-shadow: var(--sombra-1);
}
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero (home, estilo Apple) ---------- */
.hero { padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; }
.hero .eyebrow { margin-bottom: 1.1rem; }
.hero h1 { max-width: 17ch; margin: 0 auto; }
.hero .prosa {
  margin: 1.4rem auto 2rem; font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 46ch; line-height: 1.55;
}
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }

.hero-video { position: relative; }
.hero-video .media { aspect-ratio: 21 / 10; }
@media (max-width: 700px) { .hero-video .media { aspect-ratio: 4 / 3; } }

.pill-google {
  position: absolute; left: 50%; bottom: -1.4rem; transform: translateX(-50%);
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 999px;
  box-shadow: var(--sombra-2);
  padding: .7rem 1.4rem;
  display: flex; align-items: center; gap: .7rem;
  white-space: nowrap;
  font-size: .98rem;
}
.pill-google b { font-weight: 750; font-size: 1.1rem; }
.estrellas { color: var(--estrella); letter-spacing: .06em; font-size: .95rem; }
.g-logo {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blanco); border: 1px solid var(--borde);
  display: grid; place-content: center;
  font-weight: 700; font-size: .95rem; color: #4285F4;
}

/* ---------- Secciones ---------- */
.seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.seccion-compacta { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.seccion-suave { background: var(--superficie); }
.seccion-oscura { background: var(--oscuro); color: var(--oscuro-texto); }
.seccion-oscura h2, .seccion-oscura h3 { color: var(--oscuro-texto); }
.seccion-oscura .prosa { color: var(--oscuro-texto-2); }
.seccion-oscura .eyebrow { color: #5EBBB2; }

.cabeza-seccion { max-width: 700px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cabeza-seccion .prosa { margin-top: 1rem; }

/* ---------- Tarjetas de área (home) ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); }
.areas > * { min-width: 0; }
.area {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--r-panel); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.area:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); }
.area figure { aspect-ratio: 16 / 9; overflow: hidden; margin: 0; }
.area figure img { width: 100%; height: 100%; object-fit: cover; }
.area-cuerpo { padding: 1.6rem 1.7rem 1.8rem; }
.area-cuerpo h3 { margin-bottom: .5rem; }
.area-cuerpo p { color: var(--tinta-2); font-size: .98rem; }
.area-lista { margin: 1.1rem 0 1.2rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.area-lista li {
  font-size: .84rem; font-weight: 550; color: var(--acento-osc);
  background: var(--acento-tinte); border-radius: 999px; padding: .3rem .85rem;
}
@media (max-width: 800px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Bandas media + texto ---------- */
.banda-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.banda-grid > * { min-width: 0; }
.banda-grid .media { aspect-ratio: 4 / 3; }
.banda-grid.invertida { grid-template-columns: .95fr 1.05fr; }
.banda-grid.invertida .media { order: 2; }
@media (max-width: 800px) {
  .banda-grid, .banda-grid.invertida { grid-template-columns: 1fr; }
  .banda-grid.invertida .media { order: 0; }
}

/* ---------- Marquee de reseñas Google ---------- */
.resenas-cabeza {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.resenas-nota { display: flex; align-items: center; gap: 1rem; }
.resenas-nota .g-logo { width: 44px; height: 44px; font-size: 1.4rem; }
.resenas-nota b { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1; }
.resenas-nota small { color: var(--tinta-2); font-size: .92rem; }

.marquee {
  overflow: hidden;
  position: relative;
  --marquee-duracion: 45s;
  /* Ya es full-width: cuelga de la sección, no del contenedor.
     Nada de calc(50% - 50vw): 100vw incluye la barra de scroll y desborda. */
  padding: .5rem 0 1rem;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(2rem, 8vw, 9rem); z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--fondo), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--fondo), transparent); }

.marquee-pista {
  display: flex; gap: 1.25rem; width: max-content;
  animation: marquee-derecha var(--marquee-duracion) linear infinite;; align-items: flex-start; }
/* De izquierda a derecha: la pista arranca desplazada media longitud
   (la mitad clonada) y avanza hacia 0 */
@keyframes marquee-derecha {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.marquee:hover .marquee-pista, .marquee:focus-within .marquee-pista { animation-play-state: paused; }
/* Sin JS la pista no está duplicada: no se anima (evita el salto) */
html:not(.js-marquee) .marquee-pista { animation: none; }
html:not(.js-marquee) .marquee { overflow-x: auto; }
/* Pantallas táctiles: sin movimiento automático, se desliza con el dedo */
@media (hover: none) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .marquee-pista { animation: none !important; padding-inline: 16px; }
  .marquee-pista > * { scroll-snap-align: center; }
  .marquee::before, .marquee::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-pista { animation: none; }
  .marquee::before, .marquee::after { display: none; }
}

.resena {
  flex: 0 0 auto;
  width: min(360px, 82vw);
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--r-panel);
  padding: 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: .8rem;
  box-shadow: var(--sombra-1);
}
.resena blockquote { font-size: .99rem; color: var(--tinta); line-height: 1.55; flex: 1; }
.resena footer { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--tinta-2); }
.resena footer .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--acento-tinte); color: var(--acento-osc);
  display: grid; place-content: center;
  font-weight: 700; font-size: 1rem;
}
.resena footer b { color: var(--tinta); display: block; font-weight: 650; }

/* ---------- Servicios (páginas interiores) ---------- */
.hero-interior { padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-interior h1 { max-width: 16ch; }
.hero-interior .prosa { margin-top: 1.3rem; font-size: 1.15rem; }
.miga { font-size: .86rem; color: var(--tinta-2); margin-bottom: 1.6rem; }
.miga a { color: var(--acento); text-decoration: none; font-weight: 600; }

.servicios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.servicios-grid > * { min-width: 0; }
.servicio {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--r-panel);
  padding: 1.5rem 1.6rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.servicio:hover { border-color: #C9D6D4; box-shadow: var(--sombra-1); }
.servicio .icono {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: var(--r-control);
  background: var(--acento-tinte); color: var(--acento-osc);
  display: grid; place-content: center;
}
.icono svg { width: 22px; height: 22px; display: block; }
.servicio h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.servicio p { font-size: .95rem; color: var(--tinta-2); }
@media (max-width: 760px) { .servicios-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 18ch; margin: 0 auto 1.1rem; }
.cta-final .prosa { margin: 0 auto 2rem; }
.cta-final .hero-ctas { margin-bottom: 0; }

/* ---------- Contacto: mapa + horario ---------- */
.contacto-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
.contacto-grid > * { min-width: 0; }
.mapa {
  border-radius: var(--r-media); overflow: hidden;
  border: 1px solid var(--borde);
  min-height: 380px; height: 100%;
  background: var(--superficie);
}
.mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.panel-contacto {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--r-panel);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.dato { display: flex; gap: 1rem; align-items: flex-start; }
.dato .icono {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--r-control);
  background: var(--acento-tinte); color: var(--acento-osc);
  display: grid; place-content: center;
}
.dato b { display: block; font-weight: 650; }
.dato p, .dato a { color: var(--tinta-2); font-size: .95rem; text-decoration: none; }
.dato a:hover { color: var(--acento); }

.horario-tabla { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.horario-tabla td { padding: .45rem 0; border-bottom: 1px solid var(--borde); }
.horario-tabla td:last-child { text-align: right; font-weight: 650; }
.horario-tabla tr.cerrado td:last-child { color: var(--tinta-2); font-weight: 400; }
.horario-tabla tr.hoy td { color: var(--acento); font-weight: 750; }
@media (max-width: 860px) { .contacto-grid { grid-template-columns: 1fr; } }

/* ---------- Página clínica: hitos ---------- */
.hitos { display: grid; gap: 1.8rem; padding-left: 1.9rem; position: relative; }
.hitos::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--borde);
}
.hito { position: relative; }
.hito::before {
  content: ""; position: absolute; left: -1.9rem; top: .42rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--acento); border: 3px solid var(--fondo);
}
.hito b { font-weight: 700; font-size: 1.1rem; display: block; letter-spacing: -0.01em; }
.hito p { color: var(--tinta-2); font-size: .96rem; max-width: 52ch; }

.valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.valores > * { min-width: 0; }
.valor {
  background: rgba(237, 242, 243, .06);
  border: 1px solid rgba(237, 242, 243, .14);
  border-radius: var(--r-panel); padding: 1.7rem 1.6rem;
}
.valor .icono {
  width: 44px; height: 44px; border-radius: var(--r-control);
  background: rgba(94, 187, 178, .15); color: #5EBBB2;
  display: grid; place-content: center; margin-bottom: 1rem;
}
.valor .icono svg { width: 24px; height: 24px; }
.valor h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.valor p { color: var(--oscuro-texto-2); font-size: .95rem; }
@media (max-width: 800px) { .valores { grid-template-columns: 1fr; } }

/* ---------- Reservas ---------- */
.reserva-caja {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--r-media);
  box-shadow: var(--sombra-1);
  max-width: 860px; margin: 0 auto;
  overflow: hidden;
}
.reserva-pasos {
  display: flex; background: var(--superficie);
  color: var(--tinta-2); font-size: .85rem; font-weight: 600;
  border-bottom: 1px solid var(--borde);
}
.reserva-pasos span {
  flex: 1; text-align: center; padding: .95rem .4rem;
  border-bottom: 3px solid transparent;
}
.reserva-pasos span.activo { color: var(--acento-osc); border-bottom-color: var(--acento); }
.reserva-cuerpo { padding: clamp(1.6rem, 4vw, 2.5rem); }
.reserva-cuerpo h3 { margin-bottom: 1.4rem; }

.opciones-servicio { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.opciones-servicio > * { min-width: 0; }
.opcion {
  border: 1.5px solid var(--borde); border-radius: var(--r-panel);
  padding: 1.1rem 1.25rem; cursor: pointer; background: var(--fondo);
  transition: border-color .2s ease, box-shadow .2s ease;
  text-align: left; font-family: var(--sans); font-size: 1rem; width: 100%;
}
.opcion:hover { border-color: var(--acento); }
.opcion.elegida { border-color: var(--acento); background: var(--blanco); box-shadow: 0 0 0 3px var(--acento-tinte); }
.opcion b { display: block; font-weight: 650; }
.opcion small { color: var(--tinta-2); }
@media (max-width: 640px) { .opciones-servicio { grid-template-columns: 1fr; } }

.cal-cabecera { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-cabecera b { font-size: 1.15rem; font-weight: 700; text-transform: capitalize; }
.cal-nav {
  background: var(--superficie); border: 1px solid var(--borde);
  width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; font-size: 1.05rem; color: var(--tinta);
  transition: background-color .2s ease;
}
.cal-nav:hover:not(:disabled) { background: var(--acento-tinte); }
.cal-nav:disabled { opacity: .35; cursor: default; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.cal-grid .dia-nombre {
  text-align: center; font-size: .78rem; font-weight: 650;
  color: var(--tinta-2); padding-bottom: .4rem;
}
.cal-dia {
  aspect-ratio: 1; min-height: 42px; border-radius: var(--r-control); border: none;
  background: transparent; font-family: var(--sans); font-size: .95rem;
  font-variant-numeric: tabular-nums;
  color: var(--tinta); cursor: pointer; transition: background-color .15s ease;
  min-width: 0; touch-action: manipulation;
}
.cal-dia:hover:not(:disabled) { background: var(--superficie); }
.cal-dia:disabled { color: #B7C2C7; cursor: default; }
.cal-dia.abierto { font-weight: 700; color: var(--acento-osc); background: var(--acento-tinte); }
.cal-dia.abierto:hover { background: #D2E8E4; }
.cal-dia.elegido { background: var(--acento) !important; color: #fff !important; }
.cal-leyenda { display: flex; gap: 1.3rem; margin-top: 1rem; font-size: .85rem; color: var(--tinta-2); flex-wrap: wrap; }
.cal-leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .4rem; vertical-align: -1px; }

.horas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .7rem; }
.hora {
  border: 1.5px solid var(--borde); background: var(--fondo); border-radius: var(--r-control);
  padding: .7rem .4rem; text-align: center; font-weight: 650; font-size: .95rem;
  font-variant-numeric: tabular-nums; min-height: 44px;
  color: var(--tinta); cursor: pointer; font-family: var(--sans);
  transition: border-color .15s ease; touch-action: manipulation;
}
.hora:hover { border-color: var(--acento); }
.hora.elegida { border-color: var(--acento); background: var(--blanco); box-shadow: 0 0 0 3px var(--acento-tinte); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid > * { min-width: 0; }
.form-grid .ancho { grid-column: 1 / -1; }
.campo label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: .35rem; }
.campo input, .campo textarea {
  width: 100%; border: 1.5px solid var(--borde); border-radius: var(--r-control);
  padding: .8rem 1rem; font-family: var(--sans); font-size: 1rem;
  background: var(--fondo); color: var(--tinta);
  transition: border-color .15s ease;
}
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acento); background: var(--blanco); }
.campo.invalido input { border-color: var(--error); }
.campo-error { display: block; margin-top: .35rem; color: var(--error); font-size: .85rem; font-weight: 550; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.reserva-acciones { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.resumen-reserva {
  background: var(--superficie); border-radius: var(--r-panel); padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem; display: grid; gap: .25rem; font-size: .97rem;
}
.resumen-reserva b { font-weight: 700; }

.confirmacion { text-align: center; padding: 1.5rem 0 .5rem; }
.confirmacion .tick {
  width: 80px; height: 80px; margin: 0 auto 1.4rem; border-radius: 50%;
  background: var(--acento-tinte); color: var(--acento-osc);
  display: grid; place-content: center;
}
.confirmacion .tick svg { width: 36px; height: 36px; }
.confirmacion h3 { font-size: 1.6rem; margin-bottom: .7rem; }
.confirmacion p { color: var(--tinta-2); max-width: 46ch; margin: 0 auto .6rem; }
.aviso-demo {
  margin-top: 1.6rem; font-size: .85rem; color: var(--tinta-2);
  background: var(--superficie); border-radius: var(--r-control); padding: .8rem 1.2rem; display: inline-block;
}

/* ---------- Pie ---------- */
.pie { background: var(--oscuro); color: var(--oscuro-texto-2); padding: clamp(2.8rem, 6vw, 4.2rem) 0 2rem; }
.pie-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(1.8rem, 4vw, 3rem); }
.pie-grid > * { min-width: 0; }
.pie .marca strong { color: var(--oscuro-texto); }
.pie .marca span { color: var(--oscuro-texto-2); }
.pie h4 { color: var(--oscuro-texto); font-weight: 700; font-size: 1rem; margin-bottom: .9rem; }
.pie ul { list-style: none; display: grid; gap: .5rem; font-size: .95rem; }
.pie a { color: var(--oscuro-texto-2); text-decoration: none; transition: color .2s ease; }
.pie a:hover { color: var(--oscuro-texto); }
.pie-bajo {
  margin-top: 2.6rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(237, 242, 243, .1);
  font-size: .83rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.pie-bajo .viralbee { color: #5EBBB2; font-weight: 650; }
@media (max-width: 800px) { .pie-grid { grid-template-columns: 1fr; } }

/* ---------- Reveals sobrios y a prueba de fallos ----------
   Solo en piezas señaladas; sin JS todo es visible. */
html.js-motion .reveal { opacity: 0; transform: translateY(18px); }
html.js-motion .reveal.visto { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  html.js-motion .reveal { opacity: 1 !important; transform: none !important; }
}

::selection { background: var(--acento); color: #fff; }

/* ---------- Hero cinematográfico (home) ---------- */
.hero-cine {
  position: relative;
  min-height: min(86svh, 800px);
  display: flex;
  align-items: flex-end;
  padding: clamp(6rem, 14vh, 9rem) 0 clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
  background: var(--oscuro);
  color: #fff;
}
.hero-cine-fondo { position: absolute; inset: 0; }
.hero-cine-fondo video { width: 100%; height: 100%; object-fit: cover; }
.hero-cine-fondo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,12,14,.80) 0%, rgba(8,12,14,.56) 40%, rgba(8,12,14,.18) 70%, rgba(8,12,14,.42) 100%),
    linear-gradient(to top, rgba(8,12,14,.58) 0%, rgba(8,12,14,0) 52%);
}
.hero-cine-in {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-cine h1 { max-width: 15ch; }
.hero-cine h1 { color: #fff; text-wrap: balance; }
.hero-cine .eyebrow { color: #7FD3C9; margin-bottom: 1rem; }
.hero-cine .prosa {
  color: rgba(255,255,255,.86);
  max-width: 46ch; margin: 1.3rem 0 2rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}
.hero-cine .hero-ctas { justify-content: flex-start; margin-bottom: 0; }
.btn-cristal {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
}
.btn-cristal:hover { background: rgba(255,255,255,.20); border-color: #fff; }

/* Ficha lateral del hero */
.hero-ficha {
  background: rgba(255,255,255,.96);
  color: var(--tinta);
  border-radius: var(--r-panel);
  box-shadow: var(--sombra-2);
  padding: 1.4rem 1.5rem 1.5rem;
}
.hero-ficha-google { display: flex; align-items: center; gap: .8rem; }
.hero-ficha-google b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.hero-ficha-google small { display: block; color: var(--tinta-2); font-size: .86rem; }
.hero-estado {
  margin-top: 1.1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .92rem; font-weight: 650;
  padding: .35rem .8rem .35rem .6rem;
  border-radius: 999px;
  background: var(--acento-tinte); color: var(--acento-osc);
}
.hero-estado::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--acento);
}
.hero-estado[hidden] { display: none; }
.hero-estado.cerrado { background: #F4E7E6; color: #8E2A22; }
.hero-estado.cerrado::before { background: #B3261E; }
.hero-horas {
  min-height: 5.1rem; /* reserva de altura: evita el micro-CLS al pintar el horario */
  margin: 1rem 0 .9rem; padding-top: .9rem;
  border-top: 1px solid var(--borde);
  font-size: .94rem;
}
.hero-horas > div { display: flex; justify-content: space-between; gap: 1rem; padding: .18rem 0; }
.hero-horas dt { color: var(--tinta-2); }
.hero-horas dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-dir { font-size: .92rem; line-height: 1.45; }
.hero-dir span { display: block; color: var(--tinta-2); }

@media (max-width: 1000px) {
  .hero-cine-in { grid-template-columns: 1fr; align-items: start; }
  .hero-ficha { max-width: 420px; }
}
@media (max-width: 700px) {
  .hero-cine {
    min-height: auto;
    padding-top: clamp(6rem, 20vh, 9rem);
    padding-bottom: clamp(2.5rem, 6vh, 3.5rem);
  }
  .hero-cine-fondo::after {
    background:
      linear-gradient(to top, rgba(8,12,14,.86) 22%, rgba(8,12,14,.48) 60%, rgba(8,12,14,.38) 100%);
  }
  .hero-cine-in { gap: 1.6rem; }
  .hero-cine .prosa { margin: 1rem 0 1.6rem; }
  .hero-cine .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-cine .btn { justify-content: center; }
  .hero-ficha { padding: 1.2rem 1.25rem 1.3rem; }
}

/* Cabecera transparente sobre el hero cine */
.con-hero-cine .cabecera {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.con-hero-cine .cabecera::before { opacity: 0; transition: opacity .25s ease; }
.con-hero-cine .cabecera .nav > a:not(.btn) { color: rgba(255,255,255,.82); }
.con-hero-cine .cabecera .nav > a:not(.btn):hover,
.con-hero-cine .cabecera .nav > a:not(.btn)[aria-current="page"] { color: #fff; }
.con-hero-cine .cabecera .marca strong,
.con-hero-cine .cabecera .marca-texto > span { color: #fff; }
.con-hero-cine .cabecera .nav-toggle span { background: #fff; }
.con-hero-cine .marca-img-tinta { display: none; }
.con-hero-cine .marca-img-blanco { display: block; }

.con-hero-cine .cabecera.solida {
  background: rgba(251, 252, 253, .82);
  border-bottom-color: var(--borde);
  color: var(--tinta);
}
.con-hero-cine .cabecera.solida::before { opacity: 1; }
.con-hero-cine .cabecera.solida .nav > a:not(.btn) { color: var(--tinta-2); }
.con-hero-cine .cabecera.solida .nav > a:not(.btn):hover,
.con-hero-cine .cabecera.solida .nav > a:not(.btn)[aria-current="page"] { color: var(--tinta); }
.con-hero-cine .cabecera.solida .marca strong { color: var(--tinta); }
.con-hero-cine .cabecera.solida .marca-texto > span { color: var(--tinta-2); }
.con-hero-cine .cabecera.solida .nav-toggle span { background: var(--tinta); }
.con-hero-cine .cabecera.solida .marca-img-tinta { display: block; }
.con-hero-cine .cabecera.solida .marca-img-blanco { display: none; }
.marca-img-blanco { display: none; }

/* ---------- Cabeza de sección ancha (título + entradilla) ---------- */
.cabeza-ancha {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.cabeza-ancha .prosa { padding-bottom: .35rem; }
@media (max-width: 800px) {
  .cabeza-ancha { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
}

/* ---------- Rejilla «qué te duele» ---------- */
.dolores {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.8rem, 1.5vw, 1.2rem);
}
.dolor {
  display: flex; flex-direction: column; gap: .5rem;
  height: 100%;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--r-panel);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dolor:hover { transform: translateY(-3px); box-shadow: var(--sombra-1); border-color: #C9D6D4; }
.dolor .icono {
  width: 42px; height: 42px; margin-bottom: .35rem;
  border-radius: 12px;
  display: grid; place-content: center;
  background: var(--acento-tinte); color: var(--acento-osc);
}
.dolor .icono svg { width: 22px; height: 22px; }
.dolor b { font-weight: 650; font-size: 1.02rem; line-height: 1.3; text-wrap: balance; }
.dolor small { color: var(--tinta-2); font-size: .9rem; line-height: 1.45; }
@media (max-width: 1000px) { .dolores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dolores { grid-template-columns: 1fr; } }

/* ---------- Hero de páginas interiores a dos columnas ---------- */
.hero-interior-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.hero-interior-texto { min-width: 0; }
.hero-ficha-mini { padding: 1.25rem 1.35rem 1.4rem; }
.hero-ficha-mini .hero-estado { margin-top: 0; }
.hero-ficha-mini .hero-horas { margin-top: .9rem; }
.hero-ficha-mini .hero-dir { margin-bottom: 1rem; }
.hero-ficha-mini .hero-dir b { font-size: 1.15rem; }
.hero-ficha-mini .hero-dir a { text-decoration: none; }
.hero-ficha-mini .hero-dir a:hover { color: var(--acento); }
.btn-bloque { display: flex; width: 100%; justify-content: center; }
@media (max-width: 1000px) {
  .hero-interior-in { grid-template-columns: 1fr; }
  .hero-ficha-mini { max-width: 420px; }
}

/* ============================================================
   v7 · web de producción (sep-2026): precios, aseguradoras,
   sellos, FAQ, mapa bajo botón, legales, consentimiento
   ============================================================ */

/* Pie ampliado */
.pie-texto { margin-top: 1rem; font-size: .94rem; max-width: 36ch; }
.pie-registro { margin-top: .9rem; font-size: .8rem; color: var(--oscuro-texto-2); max-width: 36ch; opacity: .8; }
.pie-discreto { font-size: .85rem; opacity: .7; }
.pie-h4-sep { margin-top: 1.6rem; }
.pie-horario li { font-variant-numeric: tabular-nums; }
.pie-horario li::first-letter { text-transform: uppercase; }
.pie-legal { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.pie-bajo a.viralbee { color: #5EBBB2; font-weight: 650; text-decoration: none; }

/* Sellos de confianza */
.sellos { background: var(--superficie); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); padding: clamp(1.4rem, 3vw, 2rem) 0; }
.sellos-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.sello b { display: block; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.sello span { display: block; color: var(--tinta-2); font-size: .85rem; line-height: 1.4; margin-top: .2rem; }
@media (max-width: 900px) { .sellos-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sellos-in { grid-template-columns: 1fr; } }

/* Precios */
.precios { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.precios-tabla { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--r-panel); overflow: hidden; }
.precios-tabla td { padding: .95rem 1.25rem; border-bottom: 1px solid var(--borde); vertical-align: top; }
.precios-tabla tr:last-child td { border-bottom: 0; }
.precios-tabla td:last-child { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.15rem; color: var(--acento-osc); }
.precios-tabla small { display: block; color: var(--tinta-2); font-size: .86rem; font-weight: 400; margin-top: .15rem; }
.precios-nota { color: var(--tinta-2); font-size: .92rem; margin-top: 1rem; }
@media (max-width: 860px) { .precios { grid-template-columns: 1fr; } }

/* Chips (aseguradoras, listas cortas) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.chips li { background: var(--blanco); border: 1px solid var(--borde); border-radius: 999px; padding: .42rem .95rem; font-size: .93rem; font-weight: 600; }
.seccion-oscura .chips li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--oscuro-texto); }
.aviso-solo { display: inline-flex; align-items: center; gap: .5rem; background: #FFF4CC; color: #6B4B00; border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; font-weight: 650; margin-top: 1rem; }

/* FAQ */
.faq { display: grid; gap: .7rem; max-width: 820px; }
.faq details { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--r-panel); padding: 0 1.4rem; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; padding: 1.1rem 2rem 1.1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 1rem; font-size: 1.4rem; color: var(--acento); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--tinta-2); padding-bottom: 1.2rem; max-width: 70ch; }
.faq summary:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; border-radius: 6px; }

/* Lista de indicaciones / beneficios */
.lista-check { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.lista-check li { position: relative; padding-left: 1.8rem; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--acento-tinte); }
.lista-check li::after { content: ""; position: absolute; left: .3rem; top: calc(.45em + .22rem); width: .4rem; height: .25rem; border-left: 2px solid var(--acento-osc); border-bottom: 2px solid var(--acento-osc); transform: rotate(-45deg); }
.seccion-oscura .lista-check li { color: var(--oscuro-texto-2); }

/* Mapa bajo botón (sin cookies hasta que el visitante lo pide) */
.mapa[data-mapa] { display: grid; place-content: center; text-align: center; background: var(--superficie); padding: 2rem; }
.mapa[data-mapa] p { color: var(--tinta-2); font-size: .95rem; max-width: 34ch; margin: 0 auto 1rem; }
.mapa[data-mapa] .btn + a { display: block; margin-top: .8rem; font-size: .9rem; }
.mapa[data-mapa].cargado { display: block; padding: 0; }

/* Formulario: consentimiento y honeypot */
.campo-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--tinta-2); }
.campo-check input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--acento); }
.campo-check a { color: var(--acento); }
.campo.invalido .campo-check { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Páginas de texto (legales, gracias, 404) */
.texto { max-width: 72ch; }
.texto h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.texto h2:first-child { margin-top: 0; }
.texto p, .texto li { color: var(--tinta-2); }
.texto ul, .texto ol { padding-left: 1.4rem; display: grid; gap: .4rem; margin: .6rem 0; }
.texto b { color: var(--tinta); }
.texto a { color: var(--acento); }
.texto .resumen { background: var(--acento-tinte); border-radius: var(--r-panel); padding: 1.2rem 1.5rem; color: var(--tinta); margin-bottom: 1.5rem; }
.texto .fecha { font-size: .86rem; margin-top: 2.5rem; }
.pagina-centrada { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.pagina-centrada h1 { max-width: 20ch; margin: 0 auto 1rem; }
.pagina-centrada .prosa { margin: 0 auto 2rem; }

/* Precio dentro de tarjeta de servicio */
.servicio .precio { display: block; margin-top: .35rem; font-weight: 750; color: var(--acento-osc); font-variant-numeric: tabular-nums; }

/* Tres horarios en la ficha del hero: un poco más compacta */
.hero-horas > div { padding: .12rem 0; }

/* Ficha de contacto en página Contacto */
.contacto-lista { display: grid; gap: 1.2rem; }
.contacto-lista .dato b a { color: inherit; text-decoration: none; }
.contacto-lista .dato b a:hover { color: var(--acento); }

/* Logos de aseguradoras y sellos con logo (sep-2026) */
.logos { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.logos li { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--r-control); height: 62px; display: grid; place-content: center; padding: .6rem .8rem; }
.logos li img { max-width: 96px; max-height: 38px; width: auto; height: auto; object-fit: contain; }
.logos li.texto { font-size: .9rem; font-weight: 650; color: var(--tinta-2); text-align: center; }
.sello.con-logo { display: grid; grid-template-columns: 84px 1fr; gap: .8rem; align-items: center; }
.sello.con-logo img { width: 84px; height: 46px; object-fit: contain; object-position: left center; }
.sello.con-logo img.ancho { width: 84px; height: 60px; }
@media (max-width: 480px) { .sello.con-logo { grid-template-columns: 64px 1fr; } .sello.con-logo img { width: 64px; } }

/* Hero de portada sin ficha (18-sep): una columna y píldoras discretas bajo los botones */
.hero-cine-in { grid-template-columns: minmax(0, 1fr); }
.hero-cine-texto { max-width: 720px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.hero-pills .pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem .45rem .55rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); color: #fff; font-size: .92rem; }
.hero-pills .pill b { font-size: 1.05rem; font-weight: 800; }
.hero-pills .pill .g-logo { width: 26px; height: 26px; font-size: .95rem; }
.hero-pills .pill-txt { color: rgba(255,255,255,.8); }
.hero-pills .pill-estado { padding-left: .9rem; }
.hero-pills .pill-estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5EE2B0; margin-right: .1rem; }
.hero-pills .pill-estado.cerrado::before { background: #F2A091; }
.hero-pills .pill-estado[hidden] { display: none; }
@media (max-width: 700px) { .hero-pills { margin-top: 1.1rem; } .hero-pills .pill { font-size: .86rem; } }

/* Banda de foto a todo el contenedor (fachada) */
.banner-foto { padding: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.banner-foto img { width: 100%; height: auto; border-radius: var(--r-media); box-shadow: var(--sombra-1); display: block; }

/* Fotos reales completas: el hueco se adapta a la proporción de la foto, sin recorte (17-sep) */
.media.media-foto, .banda-grid .media.media-foto { aspect-ratio: auto; }
.media.media-foto img { height: auto; object-fit: contain; }
.area figure.foto { aspect-ratio: auto; }
.area figure.foto img { height: auto; object-fit: contain; }

/* Tarjetas de área con fotos de distinta proporción: alineadas arriba, sin estirar */
.areas { align-items: start; }

/* Hueco del mapa: ficha de cómo llegar en vez de caja vacía */
.mapa[data-mapa] { min-height: 320px; max-height: 460px; gap: .9rem; background: var(--superficie) repeating-linear-gradient(0deg, transparent 0 39px, rgba(18,22,25,.04) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(18,22,25,.04) 39px 40px); }
.mapa[data-mapa] .mapa-ficha { display: grid; gap: .25rem; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--r-panel); padding: 1rem 1.3rem; max-width: 34ch; margin: 0 auto; text-align: left; box-shadow: var(--sombra-1); }
.mapa[data-mapa] .mapa-ficha b { font-size: 1.02rem; }
.mapa[data-mapa] .mapa-ficha span { color: var(--tinta-2); font-size: .92rem; }
.mapa[data-mapa] .mapa-ficha .eyebrow { margin-bottom: .2rem; }
.mapa[data-mapa] p { font-size: .82rem; margin: 0 auto; }
.mapa[data-mapa] .btn + a { margin-top: 0; }

/* v8 · pasaje citable bajo la cabecera de reseñas */
.resenas-resumen { max-width: 62ch; margin: .6rem 0 0; }

/* Artículos / guías (fuerza-a-partir-de-los-50) */
.articulo { max-width: 72ch; }
.articulo h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 2.6rem; }
.articulo h2:first-of-type { margin-top: 0; }
.articulo p { margin-top: .95rem; color: var(--tinta-2); font-size: 1.05rem; }
.articulo p strong { color: var(--tinta); font-weight: 650; }
.articulo .lista-check { margin-top: 1rem; }
.articulo .lista-check li { color: var(--tinta-2); }
.articulo-figura { margin: 0 0 2.2rem; }
.articulo-figura img { width: 100%; height: auto; border-radius: var(--r-panel); display: block; }
.articulo-figura figcaption { font-size: .86rem; color: var(--tinta-2); margin-top: .6rem; }
.articulo-firma { font-size: .9rem; color: var(--tinta-2); margin-top: 1.3rem; max-width: 62ch; }
.articulo-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.articulo .faq { margin-top: 1rem; }
.resenas-fuente { margin-top: 1rem; }
.articulo-aviso { font-size: .9rem; opacity: .85; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--borde); }

/* Que no se partan números de colegiado ni rangos de horas */
.nw { white-space: nowrap; }

/* ---------- Cabecera con el logo del 20 aniversario (28-sep) ----------
   El logo lleva el nombre en BLANCO: la cabecera es oscura en todas las páginas y estados. */
.marca .marca-logo { height: 180px; width: auto; display: block; }
.cabecera-in { padding-top: .45rem; padding-bottom: .45rem; }
.cabecera,
.con-hero-cine .cabecera.solida {
  background: rgba(14, 21, 23, .92);
  border-bottom-color: rgba(255, 255, 255, .08);
  color: #fff;
}
.cabecera .nav-toggle span,
.con-hero-cine .cabecera.solida .nav-toggle span { background: #fff; }
@media (min-width: 901px) {
  .cabecera .nav > a:not(.btn),
  .con-hero-cine .cabecera.solida .nav > a:not(.btn) { color: rgba(255, 255, 255, .82); }
  .cabecera .nav > a:not(.btn):hover,
  .cabecera .nav > a:not(.btn)[aria-current="page"],
  .con-hero-cine .cabecera.solida .nav > a:not(.btn):hover,
  .con-hero-cine .cabecera.solida .nav > a:not(.btn)[aria-current="page"] { color: #fff; }
}
@media (max-width: 900px) {
  .marca .marca-logo { height: 128px; }
  .nav { top: var(--nav-top, 79px); }
}
/* La cabecera con logo grande flota sobre el hero: el contenido arranca por debajo */
.hero-cine { padding-top: calc(196px + clamp(1rem, 4vh, 2.5rem)); min-height: min(96svh, 920px); }
@media (max-width: 900px) { .hero-cine { padding-top: calc(144px + 1.25rem); } }

/* ---------- Cabecera en dos estados (28-sep, petición de Michael) ----------
   Arriba del todo: logo completo del 20 aniversario, grande.
   Al bajar (.compacta, lo pone main.js): la versión compacta de siempre (símbolo + nombre + sello),
   que es la que se lee bien a tamaño pequeño. Igual en todas las páginas. */
.cabecera { position: fixed; left: 0; right: 0; top: 0; }
body:not(.con-hero-cine) { padding-top: 196px; }
@media (max-width: 900px) { body:not(.con-hero-cine) { padding-top: 144px; } }
html { scroll-padding-top: 90px; }
.marca-compacta { display: none; align-items: center; gap: .7rem; }
.marca-compacta > img:first-child { height: 42px; width: auto; }
.marca-compacta .marca-texto strong { color: #fff; }
.marca-compacta .marca-texto > span { color: rgba(255, 255, 255, .75); }
.cabecera.compacta .marca-logo { display: none; }
.cabecera.compacta .marca-compacta { display: flex; animation: marca-entra .25s ease; }
@keyframes marca-entra { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cabecera .marca-logo { animation: marca-entra .25s ease; }
@media (max-width: 420px) {
  .marca-compacta > img:first-child { height: 36px; }
  .marca-compacta .marca-sello { height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .cabecera .marca-logo, .cabecera.compacta .marca-compacta { animation: none; } }
/* La versión compacta siempre en blanco (ganaba la regla antigua de .solida, que la pintaba oscura)
   y cabecera opaca para que no se transparente el contenido al pasar por debajo */
.cabecera .marca-compacta .marca-texto strong,
.con-hero-cine .cabecera.solida .marca-compacta .marca-texto strong { color: #fff; }
.cabecera .marca-compacta .marca-texto > span,
.con-hero-cine .cabecera.solida .marca-compacta .marca-texto > span { color: rgba(255, 255, 255, .75); }
.cabecera.compacta, .con-hero-cine .cabecera.solida { background: #0e1517; }

/* ---------- Blog ---------- */
.blog-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.blog-tarjeta { display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--r-panel); text-decoration: none; color: inherit; box-shadow: var(--sombra-1); transition: transform .2s ease, box-shadow .2s ease; }
.blog-tarjeta:hover, .blog-tarjeta:focus-visible { transform: translateY(-3px); box-shadow: var(--sombra-2, var(--sombra-1)); }
.blog-tarjeta img { width: calc(100% + 2.8rem); max-width: none; margin: -1.4rem -1.4rem .6rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-panel) var(--r-panel) 0 0; }
.blog-tarjeta h2 { font-size: 1.25rem; line-height: 1.25; margin: 0; color: var(--tinta); text-wrap: balance; }
.blog-tarjeta p { color: var(--tinta-2); font-size: .98rem; margin: 0; }
.blog-tarjeta .btn-texto { margin-top: auto; padding-top: .4rem; font-weight: 650; }
@media (prefers-reduced-motion: reduce) { .blog-tarjeta { transition: none; } }

/* 901-1120 px: el sello de la cabecera compacta pisaba «Inicio»/«Fisioterapia» (5-oct). Se oculta solo ahí;
   el logo grande de arriba ya lleva el 20 aniversario. */
@media (min-width: 901px) and (max-width: 1120px) { .marca-compacta .marca-sello { display: none; } }
