@charset "UTF-8";
/* ==========================================================================
   Fisioterapia Reus - Fisiorecupera't
   Hoja de estilos única. Mobile-first. Sin framework.
   Paleta extraída del logo corporativo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --marca:          #EF5C30;   /* naranja del logo — decorativo y texto grande */
  --marca-accion:   #C0400F;   /* botones y enlaces — AA 5,27:1 sobre blanco */
  --marca-hover:    #A8350B;   /* estados hover — 6,61:1 */
  --marca-suave:    #FEF1EC;   /* fondos de sección */
  --marca-borde:    #F8D9CB;

  /* Secundario */
  --petroleo:       #1F3A44;   /* 12,02:1 sobre blanco */
  --petroleo-suave: #EEF3F5;

  /* Neutros */
  --texto:          #2B2B28;
  --texto-suave:    #5F5C57;
  --texto-tenue:    #726E69;   /* AA 5,06:1 s/ blanco · ≥4,5:1 en fondos tintados */
  --linea:          #E6E2DC;
  --fondo:          #FFFFFF;
  --fondo-alt:      #FAF8F6;

  /* Semánticos */
  --ok:             #1B7A4B;
  --error:          #B3261E;

  /* Tipografía */
  --f-display: 'Outfit', 'fallback-outfit', system-ui, -apple-system, sans-serif;
  --f-texto:   'Inter', 'fallback-inter', system-ui, -apple-system, sans-serif;

  /* Escala fluida */
  --t-xs:   0.8125rem;
  --t-sm:   0.9062rem;
  --t-base: 1rem;
  --t-md:   clamp(1.06rem, 0.4vw + 0.97rem, 1.19rem);
  --t-lg:   clamp(1.25rem, 0.8vw + 1.06rem, 1.5rem);
  --t-xl:   clamp(1.5rem, 1.4vw + 1.19rem, 2rem);
  --t-2xl:  clamp(1.87rem, 2.2vw + 1.37rem, 2.62rem);
  --t-3xl:  clamp(2.25rem, 3.4vw + 1.5rem, 3.5rem);

  /* Ritmo */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --seccion: clamp(3.5rem, 7vw, 6rem);

  /* Formas */
  --r-sm: 6px;  --r:  10px;  --r-lg: 16px;  --r-xl: 24px;  --r-full: 999px;
  --sombra:    0 1px 2px rgba(31,58,68,.06), 0 4px 16px rgba(31,58,68,.07);
  --sombra-lg: 0 2px 6px rgba(31,58,68,.07), 0 16px 40px rgba(31,58,68,.11);

  --ancho: 1180px;
  --header-h: 68px;
}

/* Fuentes autoalojadas (Outfit + Inter, subconjunto latin). Sin Google Fonts. */
@font-face { font-family:'Outfit'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/outfit-400.woff2') format('woff2'); }
@font-face { font-family:'Outfit'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/outfit-600.woff2') format('woff2'); }
@font-face { font-family:'Outfit'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/outfit-700.woff2') format('woff2'); }
@font-face { font-family:'Inter';  font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter';  font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter';  font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/inter-600.woff2') format('woff2'); }

/* Métricas de reserva: evitan el salto al cargar las webfonts */
@font-face {
  font-family: 'fallback-outfit';
  src: local('Arial'); size-adjust: 96%;
  ascent-override: 100%; descent-override: 25%; line-gap-override: 0%;
}
@font-face {
  font-family: 'fallback-inter';
  src: local('Arial'); size-adjust: 107%;
  ascent-override: 90%; descent-override: 22%; line-gap-override: 0%;
}

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

html { -webkit-text-size-adjust: 100%; 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 {
  font-family: var(--f-texto);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
p  { text-wrap: pretty; }

a { color: var(--marca-accion); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--marca-hover); }

:focus-visible {
  outline: 3px solid var(--marca-accion);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

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

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4); z-index: 200;
  background: var(--petroleo); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r) var(--r); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 4rem, var(--ancho)); } }

.seccion       { padding-block: var(--seccion); }
.seccion-alt   { background: var(--fondo-alt); }
.seccion-suave { background: var(--marca-suave); }
.seccion-oscura{ background: var(--petroleo); color: #fff; }
.seccion-oscura h1, .seccion-oscura h2, .seccion-oscura h3 { color: #fff; }
.seccion-oscura p { color: #DCE5E9; }

.seccion-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.seccion-head.centrada { margin-inline: auto; text-align: center; }

.etiqueta {
  display: inline-block; font-family: var(--f-display);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--marca-accion);
  margin-bottom: var(--sp-3);
}
.seccion-oscura .etiqueta { color: #fff; }

.entradilla { font-size: var(--t-md); color: var(--texto-suave); margin-top: var(--sp-4); }
.muted { color: var(--texto-tenue); }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 620px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); }
                             .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   4. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: .8rem 1.5rem; border-radius: var(--r-full);
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm);
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }

.btn-primary { background: var(--marca-accion); color: #fff; }
.btn-primary:hover { background: var(--marca-hover); color: #fff; }

.btn-ghost { border-color: currentColor; color: var(--petroleo); }
.btn-ghost:hover { background: var(--petroleo); color: #fff; }

.seccion-oscura .btn-ghost { color: #fff; }
.seccion-oscura .btn-ghost:hover { background: #fff; color: var(--petroleo); }

.btn-sm { padding: .55rem 1.1rem; font-size: var(--t-xs); }
.btn-lg { padding: 1rem 2rem; font-size: var(--t-base); }
.btn-bloque { width: 100%; }

/* --------------------------------------------------------------------------
   5. CABECERA
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--petroleo); color: #DCE5E9;
  font-size: var(--t-xs); line-height: 1.4;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-5); flex-wrap: wrap; padding-block: .5rem;
}
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .ico { width: 14px; height: 14px; opacity: .8; }
.topbar-nap, .topbar-horario { display: none; }
@media (min-width: 620px) { .topbar-horario { display: inline-flex; } }
@media (min-width: 900px) { .topbar-nap { display: inline-flex; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--linea);
}
.header-inner {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: var(--header-h);
}

.logo { display: block; flex: 0 0 auto; color: var(--marca); text-decoration: none; }
.logo-full { width: 150px; height: auto; fill: currentColor; }
@media (min-width: 480px) { .logo-full { width: 178px; } }

.nav-desktop { display: none; margin-left: auto; align-items: center; gap: var(--sp-1); }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop > a, .nav-drop-btn {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .55rem .75rem; border-radius: var(--r-sm);
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm);
  color: var(--petroleo); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav-desktop > a:hover, .nav-drop-btn:hover { background: var(--marca-suave); color: var(--marca-accion); }
.nav-desktop a[aria-current="page"] { color: var(--marca-accion); background: var(--marca-suave); }
.chev { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-drop-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 10;
  min-width: 244px; padding: var(--sp-2);
  background: #fff; border: 1px solid var(--linea);
  border-radius: var(--r); box-shadow: var(--sombra-lg);
  display: grid; gap: 2px;
}
.nav-drop-menu[hidden] { display: none; }
.nav-drop-menu a {
  padding: .6rem .75rem; border-radius: var(--r-sm);
  font-size: var(--t-sm); font-weight: 500;
  color: var(--texto); text-decoration: none;
}
.nav-drop-menu a:hover { background: var(--marca-suave); color: var(--marca-accion); }

.header-cta { display: none; margin-left: var(--sp-2); }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

.burger {
  display: grid; gap: 5px; margin-left: auto; padding: .6rem;
  border-radius: var(--r-sm);
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--petroleo); transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navegación móvil */
.nav-mobile {
  display: grid; gap: var(--sp-1);
  padding: var(--sp-4) 1.25rem var(--sp-6);
  border-top: 1px solid var(--linea);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.nav-mobile[hidden] { display: none; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }
.nav-mobile > a, .mnav-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem .5rem; border-radius: var(--r-sm);
  font-family: var(--f-display); font-weight: 600;
  color: var(--petroleo); text-decoration: none;
}
.nav-mobile > a[aria-current="page"] { color: var(--marca-accion); }
.mnav-btn { width: 100%; }
.mnav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mnav-menu { display: grid; gap: 2px; padding: var(--sp-1) 0 var(--sp-2) var(--sp-4); }
.mnav-menu[hidden] { display: none; }
.mnav-menu a {
  padding: .6rem .5rem; font-size: var(--t-sm);
  color: var(--texto-suave); text-decoration: none;
}
.mnav-menu a[aria-current="page"] { color: var(--marca-accion); font-weight: 600; }
.mnav-cta, .mnav-wa { margin-top: var(--sp-3); justify-content: center; }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: var(--sp-8) var(--sp-7); background: var(--marca-suave); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset-inline-end: -18%; inset-block-start: -30%;
  width: 60vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,92,48,.13), transparent 68%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: var(--sp-6); }
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--sp-7); }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: var(--r-full);
  background: #fff; border: 1px solid var(--marca-borde);
  font-family: var(--f-display); font-size: var(--t-xs); font-weight: 600;
  color: var(--marca-accion); margin-bottom: var(--sp-4);
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero-sub { font-size: var(--t-md); color: var(--texto-suave); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-micro {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-5); font-size: var(--t-sm); color: var(--texto-suave);
}
.hero-micro li { display: flex; align-items: center; gap: .4rem; }
.hero-micro .ico { width: 16px; height: 16px; color: var(--ok); flex: 0 0 auto; }
.hero-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sombra-lg); }

/* Contadores */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-7); }
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--f-display); font-size: var(--t-xl);
  font-weight: 700; color: var(--marca-accion); line-height: 1.1;
}
.stat-lab { font-size: var(--t-xs); color: var(--texto-suave); }

/* --------------------------------------------------------------------------
   7. TARJETAS
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5); background: #fff;
  border: 1px solid var(--linea); border-radius: var(--r-lg);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--marca-borde); box-shadow: var(--sombra); transform: translateY(-2px); }
.card h3 { font-size: var(--t-lg); }
.card p { font-size: var(--t-sm); color: var(--texto-suave); }
.card-link { margin-top: auto; font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
.card-link::after { content: " →"; }

.card-ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r);
  background: var(--marca-suave); color: var(--marca-accion);
}
.card-ico .ico { width: 22px; height: 22px; }

.card-media img { border-radius: var(--r) var(--r) 0 0; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card-media { padding: 0; overflow: hidden; }
.card-media .card-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }

/* Lista de ventajas */
.ventajas { display: grid; gap: var(--sp-5); }
@media (min-width: 700px) { .ventajas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ventajas { grid-template-columns: repeat(3, 1fr); } }
.ventaja { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.ventaja h3 { font-size: var(--t-md); margin-bottom: var(--sp-2); }
.ventaja p { font-size: var(--t-sm); color: var(--texto-suave); }

/* Pasos numerados */
.pasos { counter-reset: paso; display: grid; gap: var(--sp-5); }
@media (min-width: 700px)  { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.paso { counter-increment: paso; position: relative; padding-top: var(--sp-5); }
.paso::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--f-display); font-size: var(--t-xl); font-weight: 700;
  color: var(--marca); opacity: .35; line-height: 1;
  position: absolute; top: 0; left: 0;
}
.paso h3 { font-size: var(--t-md); margin-bottom: var(--sp-2); }
.paso p { font-size: var(--t-sm); color: var(--texto-suave); }

/* --------------------------------------------------------------------------
   8. TABLAS
   -------------------------------------------------------------------------- */
.tabla-wrap { overflow-x: auto; border: 1px solid var(--linea); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
caption { text-align: left; padding: var(--sp-4); color: var(--texto-suave); font-size: var(--t-sm); }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--linea); }
thead th { background: var(--petroleo-suave); font-family: var(--f-display); font-weight: 600; color: var(--petroleo); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--fondo-alt); }

/* --------------------------------------------------------------------------
   9. MUTUAS
   -------------------------------------------------------------------------- */
.mutuas { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.mutua {
  padding: .55rem 1.1rem; border-radius: var(--r-full);
  background: #fff; border: 1px solid var(--linea);
  font-size: var(--t-sm); font-weight: 500; color: var(--texto-suave);
}

/* --------------------------------------------------------------------------
   10. RESEÑAS
   -------------------------------------------------------------------------- */
.rating-resumen {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-4); flex-wrap: wrap;
  margin-bottom: var(--sp-6); text-align: center;
}
.rating-nota { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 700; line-height: 1; }
.rating-estrellas { display: inline-flex; gap: 2px; color: var(--marca); }
.rating-estrellas .ico { width: 20px; height: 20px; }
.rating-meta { font-size: var(--t-sm); color: var(--texto-suave); }

.resena { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5);
          background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg); }
.resena-head { display: flex; align-items: center; gap: var(--sp-3); }
.resena-avatar {
  display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 50%; background: var(--marca-suave); color: var(--marca-accion);
  font-family: var(--f-display); font-weight: 700;
}
.resena-autor { font-weight: 600; font-size: var(--t-sm); }
.resena-fecha { font-size: var(--t-xs); color: var(--texto-tenue); }
.resena-texto { font-size: var(--t-sm); color: var(--texto-suave); }

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--linea); border-radius: var(--r); background: #fff; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  width: 100%; padding: var(--sp-4) var(--sp-5); text-align: left;
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-md); color: var(--petroleo);
}
.faq-q:hover { background: var(--fondo-alt); }
.faq-q .chev { flex: 0 0 auto; color: var(--marca-accion); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 var(--sp-5) var(--sp-5); color: var(--texto-suave); font-size: var(--t-sm); }
.faq-a[hidden] { display: none; }

/* --------------------------------------------------------------------------
   12. CONTACTO
   -------------------------------------------------------------------------- */
.contacto-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .contacto-grid { grid-template-columns: 1.1fr .9fr; gap: var(--sp-7); } }

.form { display: grid; gap: var(--sp-4); }
.campo { display: grid; gap: .4rem; }
.campo label { font-size: var(--t-sm); font-weight: 600; }
.campo .req { color: var(--marca-accion); }
.campo input, .campo select, .campo textarea {
  padding: .75rem .9rem; border: 1px solid var(--linea); border-radius: var(--r-sm);
  background: #fff; font-size: var(--t-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--marca-accion);
  box-shadow: 0 0 0 3px rgba(192,64,15,.14);
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo-error { color: var(--error); font-size: var(--t-xs); }
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-color: var(--error); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--marca-accion); }
.consent label { font-size: var(--t-xs); color: var(--texto-suave); font-weight: 400; line-height: 1.5; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { padding: var(--sp-4); border-radius: var(--r-sm); font-size: var(--t-sm); }
.form-msg[hidden] { display: none; }
.form-msg.ok    { background: #E8F5EE; color: var(--ok);    border: 1px solid #B9E0CB; }
.form-msg.error { background: #FDECEA; color: var(--error); border: 1px solid #F3C3BE; }

.datos-contacto { display: grid; gap: var(--sp-5); align-content: start; }
.dato { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.dato h3 { font-size: var(--t-sm); margin-bottom: .15rem; }
.dato p, .dato address { font-size: var(--t-sm); color: var(--texto-suave); font-style: normal; }
.mapa { border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg); }

/* --------------------------------------------------------------------------
   13. PIE
   -------------------------------------------------------------------------- */
.site-footer { background: var(--petroleo); color: #C7D4D9; font-size: var(--t-sm); margin-top: var(--seccion); }
.footer-grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-8) var(--sp-6); }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-7); } }

.logo-footer { width: 168px; color: #fff; }
.footer-claim { font-family: var(--f-display); font-weight: 600; color: var(--marca); margin-top: var(--sp-3); }
.footer-desc { margin-top: var(--sp-3); color: #A8B9C0; }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255,255,255,.09); color: #fff;
}
.footer-social a:hover { background: var(--marca-accion); }
.footer-social .ico { width: 18px; height: 18px; }

.footer-h { font-size: var(--t-sm); color: #fff; margin-bottom: var(--sp-4); letter-spacing: .02em; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: #C7D4D9; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-nap address { font-style: normal; line-height: 1.7; }
.footer-nap a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-horario { margin-top: var(--sp-4); }
.footer-nap .muted { color: #8FA3AB; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.11); }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  padding-block: var(--sp-4); font-size: var(--t-xs); color: #9CB0B7;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-legal a { color: #9CB0B7; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   14. WHATSAPP FLOTANTE
   -------------------------------------------------------------------------- */
.fab-wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; background: #25D366; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .2s ease;
}
.fab-wa:hover { transform: scale(1.06); color: #fff; }
.fab-wa svg { width: 28px; height: 28px; }
@media (min-width: 1024px) { .fab-wa { right: 1.5rem; bottom: 1.5rem; } }

/* --------------------------------------------------------------------------
   15. COOKIES  (sin CLS: fixed + translateY)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
  background: #fff; border-top: 1px solid var(--linea);
  box-shadow: 0 -6px 28px rgba(31,58,68,.13);
  transform: translateY(100%); transition: transform .25s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto;
  padding-block: var(--sp-5);
  display: grid; gap: var(--sp-4);
}
@media (min-width: 900px) {
  .cookie-inner { grid-template-columns: 1fr auto; align-items: center; }
  .cookie-prefs { grid-column: 1 / -1; }
}
.cookie-h { font-size: var(--t-md); margin-bottom: .35rem; }
.cookie-text p { font-size: var(--t-sm); color: var(--texto-suave); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cookie-prefs {
  display: grid; gap: var(--sp-3); padding-top: var(--sp-4);
  border-top: 1px solid var(--linea);
}
.cookie-prefs[hidden] { display: none; }
.ck-row { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.ck-row input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--marca-accion); }
.ck-row small { display: block; color: var(--texto-suave); font-size: var(--t-xs); }
.cookie-prefs .btn { justify-self: start; }

/* --------------------------------------------------------------------------
   16. UTILIDADES
   -------------------------------------------------------------------------- */
.breadcrumb { padding-block: var(--sp-4); font-size: var(--t-xs); color: var(--texto-tenue); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: var(--linea); }
.breadcrumb a { color: var(--texto-suave); text-decoration: none; }
.breadcrumb a:hover { color: var(--marca-accion); }

.prosa > * + * { margin-top: var(--sp-4); }
.prosa h2 { margin-top: var(--sp-7); }
.prosa h3 { margin-top: var(--sp-6); }
.prosa ul, .prosa ol { padding-left: 1.35rem; display: grid; gap: .45rem; }
.prosa { max-width: 72ch; }

.zonas { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.zona {
  padding: .4rem .9rem; border-radius: var(--r-full);
  background: var(--petroleo-suave); font-size: var(--t-xs); color: var(--petroleo);
}

.cta-final { text-align: center; }
.cta-final .btn { margin-top: var(--sp-5); }
.cta-final .hero-cta { justify-content: center; }

@media print {
  .topbar, .site-header, .cookie-banner, .fab-wa, .site-footer { display: none !important; }
  body { color: #000; }
}

/* --------------------------------------------------------------------------
   17. MAPA CON CONSENTIMIENTO PREVIO
   El iframe de Google no se carga hasta que el usuario lo pide o acepta cookies.
   -------------------------------------------------------------------------- */
.mapa-wrap {
  position: relative; width: 100%; aspect-ratio: 4/3;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--petroleo-suave); border: 1px solid var(--linea);
}
.mapa-aviso {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: .5rem;
  padding: var(--sp-5); text-align: center;
}
.mapa-aviso p { font-size: var(--t-sm); }
.mapa-aviso .btn { justify-self: center; margin-top: .5rem; }
.mapa-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Tarjeta-enlace: toda la tarjeta es clicable (bloque "Otros tratamientos") */
.card-enlace { text-decoration: none; color: inherit; gap: var(--sp-4); }
.card-enlace h3 { color: var(--petroleo); }
.card-enlace:hover h3 { color: var(--marca-accion); }
.card-enlace .card-link { color: var(--marca-accion); }

/* Número de registro sanitario en el pie */
.footer-registro { margin-top: var(--sp-4); font-size: var(--t-xs); line-height: 1.6; }

/* El label del banner de cookies ya no envuelve al input: se asocia con for= */
.ck-row label { cursor: pointer; }
