/* ============================================================
   base.css — componentes compartidos de la plantilla IA & Negocios
   Depende solo de tokens.css. Sin frameworks ni dependencias.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--demo-h);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

legend { padding: 0; }

::selection { background: var(--brand); color: var(--on-brand); }

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

/* Utilidades ------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 300;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.mobile-only { display: none; }

/* Franja de muestra ----------------------------------------- */

.demo-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--demo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-inline: 1rem;
  background: var(--demo-bg);
  color: var(--demo-text);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.045em;
  text-align: center;
}

.demo-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--demo-text) 45%, transparent);
  padding-block: 0.22rem;
}

.demo-bar a:hover { border-bottom-color: currentColor; }

.demo-bar .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.demo-bar .arrow { font-size: 0.8em; opacity: 0.85; }

/* Cabecera --------------------------------------------------- */

.site-header {
  position: sticky;
  top: var(--demo-h);
  z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  margin-top: 0.22rem;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.7rem);
}

.nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a:focus-visible { color: var(--text); }

.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.header-cta { flex: 0 0 auto; }

/* Botones ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn svg { flex: 0 0 auto; }

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover { background: var(--brand-strong); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--light {
  background: var(--surface);
  color: var(--brand-strong);
}

.btn--light:hover { background: var(--surface-2); }

.btn--sm {
  min-height: 42px;
  padding: 0.58rem 1rem;
  font-size: 0.82rem;
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Portada ---------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.4rem, 5.5vw, 4.8rem) clamp(3rem, 7vw, 6.2rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58rem 34rem at 82% 8%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%),
    radial-gradient(40rem 28rem at 4% 92%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.2rem, 5vw, 5rem);
  align-items: center;
}

.hero--media-left .hero-visual { order: -1; }

.hero-copy { max-width: 39rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.1rem;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.hero h1 {
  margin: 0.9rem 0 1.25rem;
  font-size: var(--step-5);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand);
}

.hero h1 .accent { color: var(--brand); }

.hero .lead {
  max-width: 33rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.3vw, 1.22rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-notes span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual { position: relative; z-index: 0; }

.hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-media);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-media);
  z-index: -1;
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.9rem;
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-tag .tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-float {
  position: absolute;
  right: -0.7rem;
  top: 1.5rem;
  max-width: 12.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

/* Banda de confianza ---------------------------------------- */

.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.trust-item strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Secciones -------------------------------------------------- */

.section {
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--demo-h) + 90px);
}

.section--tint { background: var(--surface); }

.section--deep {
  background: var(--brand-strong);
  color: var(--on-brand);
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4.5vw, 3.4rem);
}

.section-head h2 {
  margin-top: 0.65rem;
  font-size: var(--step-3);
}

.section-head .section-intro {
  color: var(--muted);
  max-width: 38rem;
  font-size: 1rem;
}

.section--deep .section-head .section-intro,
.section--deep .eyebrow { color: color-mix(in srgb, var(--on-brand) 76%, transparent); }

.section--deep :focus-visible { outline-color: var(--on-brand); }

.section--deep .eyebrow { color: color-mix(in srgb, var(--accent) 80%, var(--on-brand)); }

/* Servicios -------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 4.5rem);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.service p {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.service .price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Quiénes somos --------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.2rem, 6vw, 5rem);
  align-items: center;
}

.about-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-media);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-md);
}

.about-copy h2 {
  margin: 0.65rem 0 1.2rem;
  font-size: var(--step-3);
}

.about-copy > p {
  color: var(--muted);
  max-width: 36rem;
}

.about-copy > p + p { margin-top: 0.9rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fact span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Proceso / línea de tiempo --------------------------------- */

.process { margin-top: clamp(3rem, 6vw, 4.5rem); }

.process-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.process-head h3 {
  font-size: var(--step-2);
  font-weight: 500;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.2rem);
  padding-top: 0.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
}

.js .timeline::before {
  transform: scaleX(0);
  transition: transform 1.25s var(--ease);
}

.js .timeline.is-visible::before { transform: scaleX(1); }

.step {
  position: relative;
  padding-top: 2.9rem;
}

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.section--tint .step-num { background: var(--surface); }

.step h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Reseñas ---------------------------------------------------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatar {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.review-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.review-meta {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--star);
}

.review > p {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.review-tag {
  align-self: flex-start;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews-note {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Galería ---------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-media);
  background: var(--surface-2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 15, 12, 0.28), transparent 52%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.045); }

.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }

.gallery-item .zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery-item:hover .zoom,
.gallery-item:focus-visible .zoom { opacity: 1; transform: translateY(0); }

/* Ubicación -------------------------------------------------- */

.location {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.location h2 {
  margin: 0.65rem 0 1rem;
  font-size: var(--step-3);
}

.location-intro {
  color: var(--muted);
  max-width: 30rem;
}

.info-block { margin-top: 1.6rem; }

.info-block h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.info-block address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.55;
}

.info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 0.75rem;
}

.text-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover { color: var(--brand-strong); }

.hours {
  width: 100%;
  max-width: 26rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.hours th,
.hours td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
}

.hours th { color: var(--muted); }

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours tr.is-today th,
.hours tr.is-today td { color: var(--brand); font-weight: 700; }

.info-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(12, 26, 26, 0.35), transparent 55%);
}

.map-facade .map-caption {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Preguntas frecuentes -------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}

.faq-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Contacto --------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  border-radius: var(--radius-card);
  background: var(--brand);
  color: var(--on-brand);
}

.contact-card::after {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -7rem;
  bottom: -8rem;
  border: 1px solid color-mix(in srgb, var(--on-brand) 28%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.contact-card h2 {
  margin: 0.65rem 0 0.9rem;
  font-size: var(--step-3);
}

.contact-card .eyebrow { color: color-mix(in srgb, var(--on-brand) 82%, transparent); }

.contact-card > p {
  max-width: 26rem;
  color: color-mix(in srgb, var(--on-brand) 82%, transparent);
  font-size: 0.95rem;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 2rem;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-list small {
  display: block;
  color: color-mix(in srgb, var(--on-brand) 68%, transparent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form-wrap {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.contact-form-wrap h3 {
  font-size: var(--step-2);
  margin-bottom: 0.4rem;
}

.contact-form-wrap > p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.3rem;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
  outline: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form .btn { justify-self: start; margin-top: 0.2rem; }

.form-status {
  min-height: 1.2rem;
  color: var(--brand);
  font-size: 0.8rem;
  line-height: 1.4;
}

.form-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* Reserva (fisioterapia) ------------------------------------ */

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: start;
}

.booking-form {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.booking-step { display: grid; gap: 0.6rem; }

.booking-step legend,
.booking-label {
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-step legend { margin-bottom: 0.55rem; }

.booking-step legend span {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.62rem;
  letter-spacing: 0;
}

.booking select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.95rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

[data-booking-days],
[data-booking-slots] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

[data-booking-days] .choice span,
[data-booking-slots] .choice span {
  width: 100%;
  min-width: 0;
}

.choice {
  position: relative;
  display: block;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  min-height: 2.9rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.choice span small {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.choice input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.choice input:disabled + span {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-summary {
  position: sticky;
  top: calc(var(--demo-h) + 92px);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--on-brand) 22%, transparent);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 8%, transparent);
}

.booking-summary .booking-label {
  color: color-mix(in srgb, var(--on-brand) 64%, transparent);
}

.booking-summary-text {
  min-height: 4.6rem;
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.booking-summary-text strong { font-weight: 600; }

.booking-summary .btn { width: 100%; }

.booking-note {
  color: color-mix(in srgb, var(--on-brand) 66%, transparent);
  font-size: 0.72rem;
  line-height: 1.5;
}

.booking-fallback {
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section--deep .booking-fallback { color: color-mix(in srgb, var(--on-brand) 78%, transparent); }

/* Footer ----------------------------------------------------- */

.site-footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand p {
  margin-top: 0.8rem;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.footer-col ul { display: grid; gap: 0.4rem; }

.footer-col a,
.footer-col span {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Acciones fijas --------------------------------------------- */

.contact-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  gap: 0.55rem;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.dock-btn:hover { transform: translateY(-2px); }

.dock-btn--wa {
  background: #0f7a41;
  border-color: #0f7a41;
  color: #fff;
}

.dock-btn--wa:hover { background: #0b6b38; }

/* Lightbox --------------------------------------------------- */

.lightbox {
  width: min(92vw, 74rem);
  max-width: 92vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(10, 12, 12, 0.86);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.lightbox figure { margin: 0; }

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 84vh;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.lightbox figcaption {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1rem;
}

/* Reserva sin JS -------------------------------------------- */

html:not(.js) .booking { display: none; }

.booking-fallback-card {
  max-width: 40rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid color-mix(in srgb, var(--on-brand) 24%, transparent);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 9%, transparent);
}

.booking-fallback-card h3 {
  font-size: var(--step-2);
  margin-bottom: 0.6rem;
}

.booking-fallback-card p {
  color: color-mix(in srgb, var(--on-brand) 78%, transparent);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* Páginas legales ------------------------------------------- */

.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 6rem); }

.legal-inner {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover { color: var(--brand); }

.legal h1 {
  margin: 0.65rem 0 1.1rem;
  font-size: var(--step-4);
}

.legal-intro {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.prose { color: var(--text); }

.prose h2 {
  font-size: var(--step-2);
  margin: 2.2rem 0 0.7rem;
}

.prose h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 1.4rem 0 0.35rem;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.prose p + p { margin-top: 0.7rem; }

.prose ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.6rem 0 0.2rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin: 1.6rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.legal-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.legal-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.legal-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Animación de entrada -------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive ------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner { gap: 2.5rem; }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .nav {
    order: 3;
    width: 100%;
    gap: 1.3rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.15rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }

  .hero-inner,
  .about,
  .location,
  .contact,
  .booking { grid-template-columns: minmax(0, 1fr); }

  .hero--media-left .hero-visual { order: 0; }
  .hero-visual { max-width: 38rem; }
  .hero-visual::after { inset: 0.9rem -0.9rem -0.9rem 0.9rem; }

  .about-media { max-width: 34rem; aspect-ratio: 4 / 4.4; }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .booking-summary { position: static; }

  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 720px) {
  .mobile-only { display: inline-flex; }
  .desktop-only { display: none; }

  body { padding-bottom: 4.9rem; }

  .header-inner { padding-block: 0.6rem; }

  .hero { padding-block: 2rem 3.4rem; }

  .hero-visual { margin-top: 0.4rem; }

  .hero-float {
    right: 0.6rem;
    top: 0.6rem;
    max-width: 10.5rem;
    padding: 0.8rem 0.9rem;
  }

  .hero-tag { left: 0.7rem; bottom: 0.7rem; }

  .services { grid-template-columns: minmax(0, 1fr); }

  .facts { gap: 0.7rem; }

  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }

  .timeline::before {
    top: 0;
    bottom: 0.2rem;
    left: 1.12rem;
    right: auto;
    width: 1px;
    height: auto;
    transform-origin: top;
  }

  .js .timeline::before { transform: scaleY(0); }
  .js .timeline.is-visible::before { transform: scaleY(1); }

  .step {
    min-height: 2.4rem;
    padding-top: 0;
    padding-left: 3.5rem;
  }

  .step-num { top: 0; }

  .reviews,
  .faq { grid-template-columns: minmax(0, 1fr); }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }

  .map-card { min-height: 18rem; }

  .contact-list { padding-top: 1.5rem; }

  .form-row { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .footer-brand { grid-column: 1 / -1; }

  .contact-dock {
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.55rem var(--gutter) calc(0.55rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, 0.35);
  }

  .dock-btn {
    min-height: 46px;
    border-radius: var(--radius-sm);
    box-shadow: none;
  }

  .booking-summary-text { min-height: 0; }

  .legal h1 { font-size: var(--step-3); }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .header-cta .btn { padding-inline: 0.9rem; font-size: 0.8rem; }
  .hero-float { display: none; }
}

@media (min-width: 721px) {
  .dock-btn {
    width: 3.4rem;
    height: 3.4rem;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
  }

  .dock-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Movimiento reducido --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .js .timeline::before { transform: none; }
  .gallery-item img { transition: none; }
}
