/* =========================================================
   Díaz Extranjería — Sistema de diseño
   Minimalista / editorial / premium
   ========================================================= */

/* ---- Fuentes (alojadas en la propia web, sin Google Fonts: no se envía la IP del visitante a Google) ----
   Archivos variables, subconjunto latino (cubre el español). Descargados de Google Fonts el 2026-09-25. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('fonts/fraunces-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

/* ---- Reset básico ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
/* scroll-padding-top: los anclajes (#contacto, índice lateral…) no quedan tapados por la cabecera fija */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* ---- Tokens ---- */
:root {
  --bg: #F6F2EA;
  --bg-alt: #EEE7D9;
  --ink: #16150F;
  --ink-soft: #55523F;
  --ink-faint: #8C8770;
  --line: rgba(22, 21, 15, 0.14);
  --line-soft: rgba(22, 21, 15, 0.08);
  --accent: #B0502B;
  --accent-ink: #F6F2EA;
  --accent-tint: #E7CBB5;
  --paper: #FCFAF5;
  --ink-inverse: #16150F;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-pad: clamp(64px, 10vw, 160px);

  --fs-hero: clamp(2.6rem, 7.2vw, 6.8rem);
  --fs-h1: clamp(2.1rem, 4.6vw, 3.6rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.35rem);
  --fs-body: 1rem;
  --fs-small: 0.85rem;
  --fs-eyebrow: 0.78rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.section {
  padding-block: var(--section-pad);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.eyebrow a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 42ch;
}

p { color: var(--ink-soft); }

.muted { color: var(--ink-faint); }

/* ---- Enlaces con flecha ---- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.link-arrow:hover { gap: 16px; color: var(--accent); border-color: var(--accent); }
.link-arrow svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---- Botón principal (usado con moderación) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--dark, .btn--accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn--dark:hover, .btn--accent:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(22, 21, 15, 0.18); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(22, 21, 15, 0.12); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding 0.4s var(--ease);
}
/* El fondo/blur va en un ::before (no en .site-header) para no crear un
   "containing block" de position:fixed para el menú móvil (.main-nav),
   que es hijo del header — si backdrop-filter va en .site-header, el menú
   a pantalla completa se abre encogido a la altura de la cabecera en vez
   de cubrir toda la pantalla al abrirlo con la página ya desplazada. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 242, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled { padding-block: 16px; }
.site-header.is-scrolled::before { opacity: 1; }

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.logo span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.main-nav__links { display: flex; gap: clamp(20px, 3vw, 40px); }
.main-nav a:not(.btn) {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
}
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.35s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--ink); }
.main-nav a:not(.btn):hover::after { right: 0; }

/* Área de toque de 44 × 44 px con el mismo aspecto: el relleno extra se compensa con margen negativo */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 18px 11px;
  margin: -12px -5px;
  position: relative;
  z-index: 5;
}
.nav-toggle span { width: 22px; height: 1px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.is-active span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle.is-active span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 160px;
  padding-bottom: clamp(56px, 8vw, 96px);
  position: relative;
}

.hero__eyebrow {
  margin-bottom: clamp(14px, 2.4vw, 22px);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero__steps {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 16px);
  max-width: 46ch;
  margin-top: clamp(24px, 4vw, 40px);
}
.hero__step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--ink-soft);
}
.hero--centered .hero__step { justify-content: center; }
.hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 1.55em;
  color: var(--accent);
  animation: hero-arrow-breathe 2.4s var(--ease) infinite;
}
.hero__arrow svg { width: 22px; height: 22px; }
.hero__step:nth-child(1) .hero__arrow { animation-delay: 0s; }
.hero__step:nth-child(2) .hero__arrow { animation-delay: 0.25s; }
.hero__step:nth-child(3) .hero__arrow { animation-delay: 0.5s; }

@keyframes hero-arrow-breathe {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 3vw, 36px);
}

.hero--centered {
  align-items: center;
  text-align: center;
}
.hero--centered .hero__title {
  margin-inline: auto;
}
.hero--centered .hero__title { max-width: 30ch; }
.hero--centered .hero__actions {
  justify-content: center;
}

/* =========================================================
   BANDA DE FONDO ALTERNA (rompe la monotonía de color)
   ========================================================= */
.band-alt { background: var(--bg-alt); }

/* =========================================================
   SERVICIOS (acordeón de categorías)
   ========================================================= */
.service-list__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
}

.service-accordion {
  border-top: 1px solid var(--line);
}
.service-group {
  border-bottom: 1px solid var(--line);
}
.service-group__head {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  padding-block: clamp(22px, 3.2vw, 32px);
  text-align: left;
  cursor: pointer;
}
.service-group__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
}
.service-group__title-wrap { min-width: 0; }
.service-group__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.service-group__desc {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  max-width: 56ch;
}
.service-group__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
}
.service-group__chevron, .service-group__arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-faint);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}
.service-group__head:hover .service-group__title { color: var(--accent); }
.service-group__head:hover .service-group__chevron,
.service-group__head:hover .service-group__arrow { color: var(--accent); }
.service-group__head:hover .service-group__arrow { transform: translateX(4px); }
.service-group.is-open .service-group__chevron { transform: rotate(180deg); }

.service-group__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}
.service-group.is-open .service-group__body { max-height: 600px; }
.service-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-bottom: clamp(24px, 3.4vw, 36px);
  padding-left: clamp(0px, 8vw, 64px);
}
.service-group__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.service-group__list a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.service-group__list svg { width: 12px; height: 12px; }

.service-more { text-align: center; margin-top: clamp(28px, 4vw, 40px); }

@media (max-width: 640px) {
  .service-group__head { grid-template-columns: 28px 1fr auto; }
  .service-group__num { font-size: 0.9rem; }
  .service-group__count { display: none; }
  .service-group__list { padding-left: 0; }
}

/* =========================================================
   RESEÑAS — carrusel de tarjetas en movimiento continuo
   ========================================================= */
.reviews-section { background: var(--paper); }

.reviews-head {
  text-align: center;
  max-width: 40ch;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.reviews-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.reviews-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: reviews-scroll 60s linear infinite;
}
@media (hover: hover) {
  .reviews-marquee:hover .reviews-track { animation-play-state: paused; }
}
.reviews-marquee.is-touching .reviews-track,
.reviews-marquee:focus-within .reviews-track { animation-play-state: paused; }

.review-card {
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 2.6vw, 28px);
}
.review-card__stars { color: var(--accent); letter-spacing: 2px; font-size: 0.85rem; }
.review-card__text {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}
.review-card__author {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.review-card__name { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.review-card__source { font-size: 0.78rem; color: var(--ink-faint); }
.review-card__source a { color: var(--accent); font-weight: 600; }

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-final__title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 18ch;
}

/* =========================================================
   FORMULARIO
   ========================================================= */
.field {
  position: relative;
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8770' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 44px 15px 16px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field select:focus {
  outline: none;
  background-color: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field.has-error select { border-color: #B23A2E; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field.has-error input, .field.has-error textarea { border-color: #B23A2E; background: var(--paper); }
.field__error {
  display: none;
  margin-top: 7px;
  font-size: 0.78rem;
  color: #B23A2E;
}
.field.has-error .field__error { display: block; }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}
.field-check input {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.field-check label { font-size: var(--fs-small); color: var(--ink-soft); }
.field-check a { text-decoration: underline; color: var(--ink); }
.field-check.has-error label { color: #B23A2E; }

.form-status {
  margin-top: 16px;
  font-size: var(--fs-small);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { color: #3E6B4A; }
.form-status.is-error { color: #B23A2E; }

.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--accent); border-color: var(--accent); transform: none; box-shadow: none; }

/* =========================================================
   CONTACTO: DOS CAMINOS (reservar cita / te llamamos gratis)
   ========================================================= */
.contact-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 7vw, 88px);
  align-items: stretch;
}
.path-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: clamp(28px, 3.6vw, 48px);
  min-width: 0;
}
.path-card__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.path-card__title {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  max-width: 14ch;
}
.path-card__text { margin-top: 14px; max-width: 44ch; }
.path-card__cta { width: 100%; justify-content: center; }

/* Tarjeta de reserva: el camino principal, en tinta */
.path-card--book { background: var(--ink); color: var(--bg); }
.path-card--book .path-card__eyebrow { color: var(--accent-tint); }
.path-card--book .path-card__title { color: var(--bg); }
.path-card--book .path-card__text { color: rgba(246, 242, 234, 0.72); }
.path-card__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid rgba(246, 242, 234, 0.14);
}
.path-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--bg);
}
.path-card__price-label { font-size: var(--fs-small); color: rgba(246, 242, 234, 0.62); }
.path-card__discount { margin-top: 10px; font-size: var(--fs-small); color: var(--accent-tint); }
.path-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: clamp(28px, 3.4vw, 40px);
}
.path-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  color: rgba(246, 242, 234, 0.86);
}
.path-steps span {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 242, 234, 0.28);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
}
.path-card--book .path-card__cta { margin-top: auto; }
.path-card--book .path-card__cta svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.path-card--book .path-card__cta:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.path-card--book .path-card__cta:hover svg { transform: translateX(3px); }

/* Tarjeta de llamada gratuita: formulario siempre visible */
.path-card--call { background: var(--paper); border: 1px solid var(--line); }
.path-card__form { margin-top: clamp(24px, 3vw, 32px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.path-card__form .field-check { margin-bottom: 24px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 80px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand__name { font-family: var(--font-display); font-size: 1.3rem; }
.footer-brand__desc { margin-top: 16px; max-width: 30ch; font-size: var(--fs-small); }
.footer-col h4 { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); font-weight: 600; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a { font-size: var(--fs-small); color: var(--ink-soft); }
/* Relleno vertical en el enlace (en línea): agranda la zona de toque sin mover nada */
.footer-col a { padding-block: 6px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.whatsapp-fab {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  transition: transform 0.35s var(--ease), background .35s var(--ease);
  box-shadow: 0 8px 24px rgba(22,21,15,0.18);
}
.whatsapp-fab:hover { transform: scale(1.08); background: var(--accent); }
.whatsapp-fab svg { width: 22px; height: 22px; }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 20px 48px rgba(22,21,15,0.14);
  z-index: 200;
  transform: translateY(140%);
  opacity: 0;
  /* visibility: oculto de verdad (sin foco con el tabulador ni lector de pantalla) tras la animación */
  visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), visibility 0s;
}
.cookie-banner p { font-size: var(--fs-small); color: var(--ink-soft); }
.cookie-banner a { text-decoration: underline; color: var(--ink); }
.cookie-banner__actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__actions button { font-size: 0.78rem; }
.cookie-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color .3s var(--ease);
}
.cookie-btn--accept { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.cookie-btn--accept:hover { background: var(--ink); border-color: var(--ink); }
.cookie-btn--reject { background: transparent; }
.cookie-btn--reject:hover { background: var(--bg-alt); }
.cookie-banner__prefs { margin-top: 10px; }
.cookie-banner__prefs a { font-size: 0.78rem; }

/* =========================================================
   IDIOMA (2026-10-10): «EN» / «ES» en la cabecera y aviso discreto
   para quien tiene el navegador en el otro idioma (lo crea main.js)
   ========================================================= */
.main-nav a.lang-switch {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.main-nav a.lang-switch::after { display: none; }
.main-nav a.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

.lang-hint {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 90;
  max-width: 340px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 18px;
  box-shadow: 0 16px 40px rgba(22,21,15,0.12);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.lang-hint p { margin: 0; }
.lang-hint a { display: inline-block; margin-top: 4px; color: var(--accent); font-weight: 600; text-decoration: underline; }
.lang-hint__close {
  flex: none;
  width: 32px; height: 32px;
  margin: -6px -4px 0 0;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
}
.lang-hint__close:hover { background: var(--bg-alt); color: var(--ink); }
.lang-hint__close svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .lang-hint { top: 72px; left: 12px; right: 12px; max-width: none; }
}

/* =========================================================
   EXIT-INTENT POPUP — captación de newsletter
   ========================================================= */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.exit-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease), visibility 0s;
}
.exit-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 21, 15, 0.55);
  backdrop-filter: blur(2px);
}
.exit-popup__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 32px 80px rgba(22, 21, 15, 0.32);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.exit-popup.is-visible .exit-popup__card { transform: translateY(0) scale(1); opacity: 1; }
.exit-popup__card::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(20px);
  pointer-events: none;
}
.exit-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-faint);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.exit-popup__close:hover { background: var(--bg-alt); color: var(--ink); }
.exit-popup__close svg { width: 16px; height: 16px; }
.exit-popup__eyebrow { position: relative; color: var(--accent); margin-bottom: 14px; }
.exit-popup__title { position: relative; font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 17ch; }
.exit-popup__text {
  position: relative;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  max-width: 40ch;
}
.exit-popup__text strong { color: var(--accent); font-weight: 700; }
.exit-popup__form { position: relative; margin-top: 28px; }
.exit-popup__form .field { margin-bottom: 16px; }
.exit-popup__submit { width: 100%; justify-content: center; margin-top: 2px; }

@media (max-width: 640px) {
  .exit-popup__card { border-radius: 20px; }
}

/* =========================================================
   VENTANA DE RESERVA DE CITA
   ========================================================= */
html.has-modal, html.has-menu { overflow: hidden; }

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.booking-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s var(--ease);
}
.booking-modal__backdrop { position: absolute; inset: 0; background: rgba(22, 21, 15, 0.55); }
.booking-modal__card {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(22, 21, 15, 0.32);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.45s var(--ease);
}
.booking-modal.is-visible .booking-modal__card { transform: translateY(0) scale(1); }

.booking-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 0;
}
.booking-modal__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.booking-modal__title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.booking-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-faint);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.booking-modal__close:hover { background: var(--bg-alt); color: var(--ink); }
.booking-modal__close svg { width: 16px; height: 16px; }

.booking-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line-soft);
}
.booking-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
}
.booking-steps li:last-child { flex: 0 0 auto; }
.booking-steps li:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 1px;
  min-width: 12px;
  background: var(--line);
}
.booking-steps span {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 600;
}
.booking-steps li.is-active { color: var(--ink); }
.booking-steps li.is-active span { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.booking-steps li.is-done { color: var(--ink-soft); }
.booking-steps li.is-done span { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.booking-modal [hidden] { display: none !important; }
.booking-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.booking-modal__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px; }
.booking-step .field-check { margin-bottom: 4px; }
.booking-subject { margin-top: 24px; margin-bottom: 0; }

.booking-review {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  font-size: 0.95rem;
}
.booking-review dt { color: var(--ink-faint); }
.booking-review dd { margin: 0; color: var(--ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.booking-review__hint { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 400; color: var(--ink-faint); }
/* Paso 3: la casilla de las Condiciones va justo debajo del resumen */
.booking-review + .field-check { margin-top: 18px; }
.booking-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.booking-days + .booking-label,
.booking-modes + .booking-label { margin-top: 24px; }

/* Modalidad de la consulta: tres opciones (radio) con el mismo lenguaje que los días */
.booking-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.booking-mode {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.booking-mode input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.booking-mode:hover { border-color: var(--ink-faint); }
.booking-mode__title { font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.booking-mode__desc { font-size: 0.75rem; color: var(--ink-soft); }
.booking-mode:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.booking-mode:has(input:checked) .booking-mode__desc { color: rgba(252, 250, 245, 0.7); }
.booking-mode:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.booking-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.booking-day {
  flex: 0 0 auto;
  width: 72px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-snap-align: start;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.booking-day:hover { border-color: var(--ink-faint); }
.booking-day__dow { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.booking-day__num { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.booking-day__mon { font-size: 0.72rem; color: var(--ink-soft); }
.booking-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.booking-day[aria-pressed="true"] .booking-day__dow,
.booking-day[aria-pressed="true"] .booking-day__mon { color: rgba(252, 250, 245, 0.7); }
/* Días sin ninguna hora libre (reserva completa, horas del panel) */
.booking-day:disabled { background: transparent; border-style: dashed; opacity: 0.55; cursor: not-allowed; }
.booking-day:disabled:hover { border-color: var(--line); }
/* Mientras llegan las horas libres, o si no se han podido cargar */
.booking-loading { margin: 6px 0; font-size: var(--fs-small); color: var(--ink-soft); }
.booking-retry {
  flex: 0 0 auto; align-self: center; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: var(--fs-small);
}
.booking-retry:hover { border-color: var(--ink-faint); }

.booking-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.booking-time {
  padding: 12px 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.booking-time:hover:not(:disabled) { border-color: var(--ink-faint); }
.booking-time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.booking-time:disabled {
  background: transparent;
  border-style: dashed;
  color: var(--ink-faint);
  text-decoration: line-through;
  cursor: not-allowed;
}
.booking-note { margin-top: 20px; font-size: 0.8rem; color: var(--ink-faint); }

/* Web publicada sin pago configurado: reserva en «solo paso 1» (main.js, data-envio sin data-reserva).
   Sin la barra de pasos; tras enviar los datos, el mensaje de «recibido» (paso 4). Con pago, los 3 pasos. */
.booking-modal.is-solo-datos .booking-steps { display: none; }
.booking-done { padding: 8px 0; }
.booking-done__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}
.booking-done__title:focus { outline: none; }
.booking-done p:not(.booking-done__title) { color: var(--ink-soft); max-width: 46ch; }

.booking-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.booking-summary { font-size: var(--fs-small); color: var(--ink-soft); min-width: 0; }
.booking-summary strong { color: var(--ink); font-weight: 600; }
.booking-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.booking-back {
  padding: 12px 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.booking-back:hover { color: var(--ink); }
.booking-back::before { content: '← '; }

@media (max-width: 640px) {
  .booking-modal { padding: 0; align-items: flex-end; }
  .booking-modal__card { max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .booking-modal__head { padding: 22px 20px 0; }
  .booking-steps { padding: 16px 20px; gap: 6px; }
  .booking-steps li { font-size: 0.78rem; gap: 6px; }
  .booking-modal__body { padding: 20px; }
  .booking-modal__foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; gap: 10px; }
  .booking-actions { margin-left: 0; }
  .booking-actions .btn { flex: 1; justify-content: center; }
  .booking-modes { grid-template-columns: 1fr; }
  .booking-mode { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .booking-review { grid-template-columns: 1fr; gap: 2px; }
  .booking-review dd { margin-bottom: 10px; }
  .booking-review dd:last-child { margin-bottom: 0; }
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
/* Solo se oculta si el navegador ejecuta JavaScript: si main.js no llegara a cargar,
   el contenido se ve igual (antes, sin JS, casi todas las páginas salían en blanco). */
@media (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__arrow { animation: none; }
  .reviews-track { animation: none; }
  .reviews-marquee { overflow-x: auto; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   BLOG — buscador, categorías y grid de artículos
   ========================================================= */
.blog-toolbar {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.blog-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.blog-search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ink-faint); pointer-events: none;
}
.blog-search input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px 12px 44px;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.blog-search input::placeholder { color: var(--ink-faint); }
.blog-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.blog-categories { display: flex; flex-wrap: wrap; gap: 8px; flex: 2 1 320px; }
.blog-cat {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.blog-cat:hover { border-color: var(--ink-faint); color: var(--ink); }
.blog-cat.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.blog-count { font-size: var(--fs-small); color: var(--ink-faint); white-space: nowrap; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 32px);
  min-height: 260px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-faint);
  box-shadow: 0 24px 48px rgba(22, 21, 15, 0.08);
}
.blog-card__hit { position: absolute; inset: 0; border-radius: inherit; }
.blog-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-tint);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: clamp(18px, 2.6vw, 26px);
}
.blog-card h3 { margin-bottom: 10px; line-height: 1.2; }
.blog-card p { font-size: var(--fs-small); flex: 1; }
.blog-card__meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.blog-card__meta span:not(:last-child)::after { content: '·'; margin-left: 10px; color: var(--line); }

.blog-card--featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  min-height: 240px;
}
.blog-card--featured .blog-card__body { display: flex; flex-direction: column; height: 100%; }
.blog-card--featured h3 { font-size: var(--fs-h2); max-width: 20ch; }

.blog-empty {
  display: none;
  text-align: center;
  padding-block: clamp(48px, 8vw, 96px);
  color: var(--ink-faint);
}
.blog-empty.is-visible { display: block; }
.blog-empty p.lead { margin-inline: auto; }

@media (max-width: 980px) {
  .blog-toolbar { flex-direction: column; align-items: stretch; position: static; gap: 6px; padding-block: 8px; margin-bottom: 18px; }
  .blog-search { max-width: none; flex: 0 0 auto; }
  .blog-search input { padding-block: 10px; }
  .blog-count { text-align: center; }
  /* flex: 0 0 auto — en columna, la base de 320 px de escritorio se convertía en altura
     y los botones de categoría salían estirados (unos 157 px de alto) en el móvil. */
  .blog-categories {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
  }
  /* 6 px de relleno vertical: unos 25 px de alto, el mínimo cómodo para tocar con el dedo (antes, ~15 px) */
  .blog-cat {
    padding: 6px 10px;
    font-size: 0.66rem;
    line-height: 1;
  }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: span 1; flex-direction: column; }
}

/* =========================================================
   PÁGINAS LEGALES / SERVICIO — layout de artículo
   ========================================================= */
.article-header { padding-top: clamp(140px, 18vw, 200px); padding-bottom: clamp(32px, 5vw, 56px); }
.article-header__title { max-width: 22ch; }
.article-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.article-toc { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 10px; }
.article-toc a { font-size: var(--fs-small); color: var(--ink-faint); }
.article-toc a:hover, .article-toc a.is-active { color: var(--ink); }
/* Una URL o un email largos (p. ej. publicados desde el panel) no desbordan la pantalla del móvil */
.article-content { overflow-wrap: break-word; }
.article-content h2 { margin-top: 48px; margin-bottom: 16px; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.article-content h2:first-child { margin-top: 0; }
.article-content p { margin-bottom: 16px; max-width: 68ch; }
.article-content ul { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.article-content li { position: relative; padding-left: 20px; max-width: 64ch; color: var(--ink-soft); }
.article-content li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--ink-faint); }
.article-content strong { color: var(--ink); font-weight: 600; }
/* Formato que puede venir del editor del blog del panel (ver panel.md §9.5) */
.article-content u { text-decoration: underline; text-underline-offset: 3px; }
.article-content .fs-12 { font-size: 12px; } .article-content .fs-13 { font-size: 13px; } .article-content .fs-14 { font-size: 14px; }
.article-content .fs-15 { font-size: 15px; } .article-content .fs-16 { font-size: 16px; } .article-content .fs-17 { font-size: 17px; }
.article-content .fs-18 { font-size: 18px; } .article-content .fs-19 { font-size: 19px; } .article-content .fs-20 { font-size: 20px; }
.article-content .fs-21 { font-size: 21px; } .article-content .fs-22 { font-size: 22px; } .article-content .fs-23 { font-size: 23px; }
.article-content .fs-24 { font-size: 24px; } .article-content .fs-25 { font-size: 25px; } .article-content .fs-26 { font-size: 26px; }
.article-content .fs-27 { font-size: 27px; } .article-content .fs-28 { font-size: 28px; } .article-content .fs-29 { font-size: 29px; }
.article-content .fs-30 { font-size: 30px; } .article-content .fs-31 { font-size: 31px; } .article-content .fs-32 { font-size: 32px; }
.article-content .fs-33 { font-size: 33px; } .article-content .fs-34 { font-size: 34px; } .article-content .fs-35 { font-size: 35px; }
.article-content .fs-36 { font-size: 36px; } .article-content .fs-37 { font-size: 37px; } .article-content .fs-38 { font-size: 38px; }
.article-content .fs-39 { font-size: 39px; } .article-content .fs-40 { font-size: 40px; }
.article-content::after { content: ''; display: block; clear: both; }
.article-content .art-img { display: block; max-width: 100%; margin: 28px auto; }
.article-content .art-img img { display: block; width: 100%; height: auto; border-radius: 10px; }
.article-content .art-img figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-faint); text-align: center; }
.article-content .art-img--w20 { width: 20%; } .article-content .art-img--w25 { width: 25%; } .article-content .art-img--w30 { width: 30%; }
.article-content .art-img--w35 { width: 35%; } .article-content .art-img--w40 { width: 40%; } .article-content .art-img--w45 { width: 45%; }
.article-content .art-img--w50 { width: 50%; } .article-content .art-img--w55 { width: 55%; } .article-content .art-img--w60 { width: 60%; }
.article-content .art-img--w65 { width: 65%; } .article-content .art-img--w70 { width: 70%; } .article-content .art-img--w75 { width: 75%; }
.article-content .art-img--w80 { width: 80%; } .article-content .art-img--w85 { width: 85%; } .article-content .art-img--w90 { width: 90%; }
.article-content .art-img--w95 { width: 95%; } .article-content .art-img--w100 { width: 100%; }
.article-content .art-img--r16x9 img { aspect-ratio: 16 / 9; object-fit: cover; }
.article-content .art-img--r4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.article-content .art-img--r1x1 img { aspect-ratio: 1 / 1; object-fit: cover; }
.article-content .art-img--r3x4 img { aspect-ratio: 3 / 4; object-fit: cover; }
.article-content .art-img--center { margin-left: auto; margin-right: auto; }
.article-content .art-img--left { float: left; margin: 6px 28px 16px 0; }
.article-content .art-img--right { float: right; margin: 6px 0 16px 28px; }
@media (max-width: 640px) {
  .article-content .art-img--left, .article-content .art-img--right { float: none; width: 100%; margin: 24px 0; }
}
/* ---- Preguntas frecuentes: acordeón ----
   Sin JavaScript todas las respuestas se ven. main.js añade .is-ready a [data-faq] y entonces
   quedan plegadas; se abren y cierran animando la altura (grid 0fr → 1fr), sin cálculos en JS. */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item__q { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.3; }
.faq-item__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 0;
  text-align: left; font: inherit; letter-spacing: inherit; color: inherit;
  transition: color 0.3s var(--ease);
}
.faq-item__btn:hover, .faq-item.is-open .faq-item__btn { color: var(--accent); }
.faq-item__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq-item__icon {
  position: relative; flex-shrink: 0; width: 30px; height: 30px;
  border: 1px solid var(--line); border-radius: 50%;
  transition: transform 0.45s var(--ease), border-color 0.3s var(--ease);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.5px; margin: -0.75px 0 0 -5.5px;
  border-radius: 1px; background: currentColor;
  transition: transform 0.45s var(--ease);
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item__btn:hover .faq-item__icon, .faq-item.is-open .faq-item__icon { border-color: currentColor; }
.faq-item.is-open .faq-item__icon { transform: rotate(180deg); }
.faq-item.is-open .faq-item__icon::after { transform: rotate(0deg); } /* el «+» pasa a «−» */
.faq-item__a { display: grid; grid-template-rows: 1fr; }
.faq-item__inner { min-height: 0; overflow: hidden; }
.faq-item__inner p {
  margin: 0; padding: 0 56px 24px 0; max-width: 68ch;
  font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft);
}
.faq.is-ready .faq-item__a { grid-template-rows: 0fr; }
.faq.is-ready .faq-item__inner { opacity: 0; transform: translateY(-6px); }
.faq.is-ready .faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq.is-ready .faq-item.is-open .faq-item__inner { opacity: 1; transform: none; }
/* .is-animated llega un fotograma después: al cargar se pliegan sin animación; al pulsar, sí se anima */
.faq.is-animated .faq-item__a { transition: grid-template-rows 0.45s var(--ease); }
.faq.is-animated .faq-item__inner { transition: opacity 0.25s var(--ease), transform 0.45s var(--ease); }
.faq.is-animated .faq-item.is-open .faq-item__inner { transition-delay: 0.08s; }
@media (max-width: 640px) {
  .faq-item__btn { padding: 18px 0; gap: 14px; }
  .faq-item__inner p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .faq.is-animated .faq-item__a, .faq.is-animated .faq-item__inner, .faq-item__icon, .faq-item__icon::before, .faq-item__icon::after { transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .logo { font-size: 1rem; }
  .main-nav__links, .main-nav .btn { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav.is-open .main-nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .main-nav.is-open .main-nav__links a {
    font-family: var(--font-display);
    font-size: 1.8rem;
  }
  .main-nav.is-open .btn { display: inline-flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .contact-paths { grid-template-columns: 1fr; }
  .article-body { grid-template-columns: 1fr; }
  .article-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .article-toc.article-toc--post { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 100px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cookie-banner { left: 12px; right: 12px; max-width: none; }

  /* Contacto en dos caminos: tarjetas más compactas */
  .path-card { padding: 24px 20px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .path-card__form .field { margin-bottom: 14px; }
  .path-card__form .field label { font-size: 0.68rem; margin-bottom: 6px; }
  .path-card__form .field input { padding: 12px 14px; font-size: 0.92rem; border-radius: 10px; }
  .path-card__form .field-check label { font-size: 0.78rem; }
  .booking-step .field { margin-bottom: 14px; }
  .booking-step .field label { font-size: 0.68rem; margin-bottom: 6px; }
  .booking-step .field input,
  .booking-step .field select { padding: 12px 14px; font-size: 0.92rem; border-radius: 10px; }
  .booking-step .field select { padding-right: 40px; }
  .booking-step .field-check label { font-size: 0.78rem; }
}

/* Pantallas táctiles: los campos a 16 px como mínimo. Con menos, el iPhone y el iPad
   amplían la página al tocar el campo y hay que volver a alejarla a mano. */
@media (pointer: coarse) {
  .path-card__form .field input,
  .booking-step .field input,
  .booking-step .field select,
  .blog-search input { font-size: 1rem; }
}

/* =========================================================
   UTILIDADES
   Sustituyen a los antiguos style="…" de las páginas: la política de seguridad
   de la web (CSP, ver .htaccess) no permite estilos en línea. Las de margen y
   tamaño llevan !important para comportarse igual que un estilo en línea.
   Regla fija: nada de style="…" ni <script> en línea en las páginas.
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important;
  white-space: nowrap !important; border: 0 !important;
}
/* Campo trampa de los formularios (antispam): fuera de la vista y del lector de pantalla (aria-hidden).
   Una persona no lo ve ni lo rellena; un bot que rellena todo, sí, y su envío no se guarda (app/Formularios.php). */
.hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 200; }
.skip-link:focus {
  left: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-small);
  font-weight: 600;
}
.u-small { font-size: var(--fs-small) !important; }
.u-mt-12 { margin-top: 12px !important; }
.u-mt-14 { margin-top: 14px !important; }
.u-mt-18 { margin-top: 18px !important; }
.u-mt-20 { margin-top: 20px !important; }
.u-mt-24 { margin-top: 24px !important; }
.u-mt-32 { margin-top: 32px !important; }
.u-mb-6 { margin-bottom: 6px !important; }
.u-mb-16 { margin-bottom: 16px !important; }
.u-maxw-16ch { max-width: 16ch !important; }
.u-maxw-34ch { max-width: 34ch !important; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
