/* Del Castillo Dental — hoja de estilos (sin dependencias) */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Paleta: negro predominante, blanco, grises y un único acento burdeos */
  --ink: #0b0b0c;
  --ink-raised: #141416;
  --line: #2b2b2f;
  --line-strong: #46464b;
  --grey-500: #8f8f95;   /* 6.3:1 sobre --ink */
  --grey-300: #b9b9be;   /* 10:1 sobre --ink */
  --white: #ffffff;
  --paper: #f4f4f2;
  --paper-line: #d6d6d3;
  --paper-grey: #55555a; /* 7:1 sobre --paper */
  --burdeos: #910f4e;    /* fijo: no aclarar ni oscurecer */

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.15rem + 2vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem);
  --step-4: clamp(3.5rem, 1rem + 11vw, 8rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --section: clamp(5rem, 3rem + 9vw, 10rem);
  --max: 76rem;
  --radius: 2px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --focus: var(--white);
  --bar-h: 3.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + 2rem);
}

::selection { background: var(--burdeos); color: var(--white); }

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

h1, h2, h3, p, figure { margin: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: currentColor; }
}

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

.visually-hidden {
  position: absolute !important;
  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;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); outline-color: var(--burdeos); }

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

/* ——— Iconos ——— */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.icon--wa { fill: currentColor; stroke: none; }

/* ——— Botones ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0 1.6rem;
  background: var(--burdeos);
  color: #fff;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08) inset, 0 10px 30px -12px rgb(0 0 0 / 0.6);
  transition: transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon--arrow { transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon--arrow { transform: translateX(3px); }
}

.tel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  color: var(--white);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.tel .icon { color: var(--grey-300); }
@media (hover: hover) and (pointer: fine) {
  .tel:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
}

/* ——— Regla graduada (detalle de precisión: sonda milimetrada) ——— */
.rule {
  position: relative;
  height: 11px;
  background:
    linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 40px) bottom / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px) bottom / 100% 6px no-repeat;
}
.rule::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 41px;
  height: 3px;
  background: var(--burdeos);
}

/* ——— Cabecera ——— */
.site-header {
  padding-block: 1rem;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}
.brand-mark img { width: auto; height: 36px; }

/* ——— Portada ——— */
.hero {
  padding-top: clamp(2.5rem, 1rem + 6vw, 6rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.opening {
  display: grid;
  gap: 0.4rem;
}
.opening__pre {
  display: block;
  color: var(--grey-300);
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.opening__date {
  display: block;
  font-size: var(--step-4);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

/* Regla del mes de noviembre: 30 marcas, el 18 en burdeos */
.month {
  position: relative;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  align-items: end;
  height: 28px;
  border-bottom: 1px solid var(--line);
}
.month i {
  justify-self: start;
  width: 1px;
  height: 7px;
  background: var(--line-strong);
}
.month i:nth-child(5n + 1) { height: 13px; }
.month i.is-day {
  width: 3px;
  height: 28px;
  margin-left: -1px;
  background: var(--burdeos);
  transform-origin: bottom;
}

.hero__name img {
  width: min(100%, 44rem);
}

.hero__aside {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}
.hero__lede {
  color: var(--grey-300);
  font-size: var(--step-1);
  font-weight: 350;
  line-height: 1.4;
  max-width: 28ch;
  text-wrap: pretty;
}
.hero__promise {
  font-size: var(--step-2);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 18ch;
  text-wrap: balance;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 7rem);
  }
  .opening { grid-column: 1 / -1; }
  .hero__name { align-self: end; }
  .hero__aside { align-self: end; }
}

/* ——— Secciones ——— */
.section {
  padding-block: 0 var(--section);
}
.section__head {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.section__title {
  font-size: var(--step-3);
  font-weight: 380;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

/* Tu primera visita */
.visit {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
}
.visit__lead {
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 22ch;
  text-wrap: balance;
}
.visit__body {
  margin-top: 1.75rem;
  color: var(--grey-300);
  font-size: var(--step-1);
  font-weight: 330;
  line-height: 1.55;
  max-width: 38ch;
  text-wrap: pretty;
}
.visit__steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  max-width: 44ch;
}
.visit__steps li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--grey-300);
  font-size: var(--step-1);
  font-weight: 330;
  line-height: 1.45;
  text-wrap: pretty;
}
.visit__steps li:first-child { border-top: 0; padding-top: 0; }
.visit__step {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--burdeos);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.visit__steps strong { color: var(--white); font-weight: 500; }
.visit__close {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  color: var(--white);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.4;
  max-width: 30ch;
  text-wrap: balance;
}
.visit__note {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--grey-300);
  font-size: 1rem;
  max-width: 46ch;
}
.visit__note::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 3px;
  background: var(--burdeos);
  transform: translateY(-0.3em);
}

@media (min-width: 60rem) {
  .visit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
  }
  .visit__figure { position: sticky; top: 2rem; }
}

/* Hueco de imagen provisional */
.slot {
  display: grid;
  gap: 0.75rem;
}
.slot__frame {
  position: relative;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  aspect-ratio: 4 / 3;
  padding: 2rem;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat,
    var(--ink-raised);
  border-radius: var(--radius);
  text-align: center;
  color: var(--grey-500);
  font-size: 0.9375rem;
}
@media (min-width: 60rem) {
  .slot__frame { aspect-ratio: 4 / 3; }
}
.slot__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.slot figcaption {
  font-size: 0.875rem;
  color: var(--grey-500);
}

/* Qué atendemos (sección clara) */
/* Sección clara: reasigna los tokens de texto y líneas para que todo el contenido se adapte */
.section--paper {
  --white: #0b0b0c;      /* texto principal (negro) */
  --grey-300: #3f3f44;   /* texto secundario */
  --grey-500: #55555a;   /* 7:1 sobre --paper */
  --line: #d6d6d3;
  --line-strong: #a9a9a6;
  --ink-raised: #e9e9e6;
  --focus: var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding-top: var(--section);
}
.section--paper .section__head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.treat {
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.treat > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(0.9rem, 0.6rem + 1.2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}
.treat > span::after {
  content: "";
  flex: none;
  align-self: center;
  width: clamp(2rem, 1rem + 4vw, 5rem);
  height: 9px;
  background:
    linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 8px) bottom / 100% 9px no-repeat;
}
.treat .and { color: var(--grey-500); }
.adults {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-size: var(--step-1);
  font-weight: 450;
  letter-spacing: -0.01em;
}
.adults::before {
  content: "";
  flex: none;
  width: 3px;
  height: 1.6em;
  background: var(--burdeos);
}
.section--paper + .section { padding-top: var(--section); }
.treat-layout { display: grid; gap: 2.5rem; }
.treat__figure { margin: 0; max-width: 26rem; }
.treat__figure img, .band img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
@media (min-width: 60rem) {
  .treat-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .treat__figure { position: sticky; top: 2rem; justify-self: end; width: 100%; }
}
.band { margin: 0 0 clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.band img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 48rem) { .band img { aspect-ratio: 16 / 9; object-position: 50% 45%; } }
.photo-band { margin-top: 0; padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.photo-band img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }
@media (min-width: 48rem) { .photo-band img { aspect-ratio: 21 / 9; object-position: 50% 14%; } }

/* Nuestra clínica */
.gallery { display: grid; gap: 1rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--ink-raised); }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; }
  .gallery__main { grid-row: 1 / 3; }
  .gallery__main img { aspect-ratio: auto; }
}

/* Dónde estamos */
.where {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.where address {
  font-style: normal;
  display: grid;
  gap: 1.75rem;
  align-content: start;
}
.where__street {
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 18ch;
  text-wrap: balance;
}
.where__meta {
  display: grid;
  gap: 0.25rem;
  color: var(--grey-300);
  font-size: var(--step-1);
  font-weight: 330;
}
.where__meta a { color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }

.map {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-raised);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 48rem) {
  .map { aspect-ratio: 16 / 10; }
}
@media (min-width: 60rem) {
  .where { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .map { aspect-ratio: 5 / 4; }
}

/* ——— Pie legal ——— */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  color: var(--grey-500);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.site-footer .wrap {
  display: grid;
  gap: 2.5rem;
}
.footer__logo img { width: 200px; }
.legal { max-width: 70ch; display: grid; gap: 0.75rem; }
.nw { white-space: nowrap; }
.legal strong { color: var(--grey-300); font-weight: 500; }
.pending {
  color: var(--white);
  outline: 1px dashed var(--line-strong);
  outline-offset: 1px;
  padding: 0.05em 0.35em;
  border-radius: var(--radius);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--grey-300);
}

@media (min-width: 60rem) {
  .site-footer .wrap { grid-template-columns: auto 1fr; column-gap: 6rem; }
  .footer__links { grid-column: 2; }
}

/* ——— WhatsApp siempre visible ——— */
.wa-fixed {
  position: fixed;
  z-index: 50;
  left: var(--gutter);
  right: var(--gutter);
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  min-height: var(--bar-h);
  /* Sin sombra difusa: sobre fondos claros se veía como una mancha debajo del botón */
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1) inset;
  transform: translateY(0);
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1), opacity 0s, visibility 0s;
}
/* Oculto: baja hasta salir de la pantalla y solo entonces se vuelve invisible */
.wa-fixed.is-hidden {
  transform: translateY(calc(100% + 3rem + env(safe-area-inset-bottom)));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 750ms cubic-bezier(0.65, 0, 0.35, 1), opacity 0s linear 750ms, visibility 0s linear 750ms;
}
@media (min-width: 48rem) {
  body { padding-bottom: 0; }
  .wa-fixed {
    left: auto;
    right: calc(var(--gutter) + 1.75rem);
    bottom: 1.5rem;
  }
}

/* ——— Malla de la marca (recurso gráfico, muy tenue, solo en zonas oscuras) ———
   Se coloca solo en huecos libres, lejos de la regla milimetrada, de las líneas separadoras y de las fotos,
   y se desvanece por todos los lados para que no se vea cortada. */
.hero,
#que-atendemos,
#clinica,
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.hero::before,
#que-atendemos::before,
#clinica::before,
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--malla-top, 0);
  bottom: 0;
  width: clamp(26rem, 64vw, 62rem);
  background: url("../img/malla.svg") right bottom / contain no-repeat;
  opacity: var(--malla-op, 0.24);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--malla-fade, 28%), #000 72%, transparent), var(--malla-lado);
  mask-image: linear-gradient(to bottom, transparent, #000 var(--malla-fade, 28%), #000 72%, transparent), var(--malla-lado);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* Derecha */
.hero::before,
#que-atendemos::before,
.site-footer::before {
  --malla-lado: linear-gradient(to left, #000 25%, transparent);
  right: -8%;
}
/* Izquierda */
#clinica::before {
  --malla-lado: linear-gradient(to right, #000 25%, transparent);
  left: -8%;
  background-position: left bottom;
}
/* Portada: más grande; empieza por debajo de la regla (se desvanece antes de tocarla) y llega hasta el logo */
.hero { --malla-top: 38%; --malla-op: 0.34; --malla-fade: 62%; }
.hero::before {
  width: clamp(34rem, 86vw, 84rem);
  --malla-lado: linear-gradient(to left, #000 25%, transparent);
}
#que-atendemos { --malla-top: 50%; --malla-op: 0.24; }  /* a la derecha, bajo la foto */
#clinica { --malla-top: 58%; --malla-op: 0.24; }        /* en el espacio bajo la galería */
.site-footer { --malla-op: 0.2; }

/* ——— Escala de la sonda (signo de la página) ——— */
/* Móvil: regla horizontal fija en el borde superior; escritorio: vertical en el margen derecho */
.probe {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) left top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--grey-300) 0 1px, transparent 1px 40px) left top / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--grey-500) 0 1px, transparent 1px 8px) left top / 100% 4px no-repeat,
    rgb(11 11 12 / 0.92);
}
.probe::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--burdeos);
  transform-origin: left;
  transform: scaleX(0.06);
}
@media (min-width: 60rem) {
  .probe {
    top: 50%;
    left: auto;
    right: 1.25rem;
    width: 14px;
    height: min(64vh, 34rem);
    transform: translateY(-50%);
    background:
      linear-gradient(var(--grey-500), var(--grey-500)) left / 1px 100% no-repeat,
      repeating-linear-gradient(180deg, var(--grey-300) 0 1px, transparent 1px 40px) left top / 14px 100% no-repeat,
      repeating-linear-gradient(180deg, var(--grey-500) 0 1px, transparent 1px 8px) left top / 7px 100% no-repeat;
  }
  .probe::after {
    left: -1px;
    width: 3px;
    height: 100%;
    transform-origin: top;
    transform: scaleY(0.06);
  }
}

/* ——— Movimiento ——— */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 600ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 50ms + 60ms);
  }
  .month i.is-day {
    animation: grow 700ms var(--ease-out) 520ms both;
  }
  @keyframes rise {
    from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); opacity: 0; }
    to { clip-path: inset(0 0 -10% 0); transform: none; opacity: 1; }
  }
  @keyframes grow {
    from { transform: scaleY(0); }
  }

  /* Las fotos aparecen con un desvanecido breve al entrar en pantalla (solo navegadores con animación por scroll) */
  @supports (animation-timeline: view()) {
    .photo-band img, .band img, .treat__duo figure, .gallery figure {
      animation: foto-in cubic-bezier(0.65, 0, 0.35, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    @keyframes foto-in { from { opacity: 0; transform: translateY(56px); } }
  }

  @supports (animation-timeline: scroll()) {
    .probe::after {
      animation: probe-x linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes probe-x {
      from { transform: scaleX(0.06); }
      to { transform: scaleX(1); }
    }
    @media (min-width: 60rem) {
      .probe::after { animation-name: probe-y; }
    }
    @keyframes probe-y {
      from { transform: scaleY(0.06); }
      to { transform: scaleY(1); }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  /* El botón de WhatsApp conserva un desvanecimiento suave (sin desplazamiento) */
  .wa-fixed, .wa-fixed.is-hidden { transform: none; transition: opacity 300ms ease, visibility 0s linear 0s !important; }
  .wa-fixed.is-hidden { transition: opacity 300ms ease, visibility 0s linear 300ms !important; }
}

/* ——— Páginas legales ——— */
.doc {
  padding-block: clamp(2.5rem, 1rem + 6vw, 6rem) var(--section);
}
.doc h1 {
  font-size: var(--step-3);
  font-weight: 380;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.doc h2 {
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 3rem 0 0.75rem;
}
.doc p, .doc li { color: var(--grey-300); max-width: 52ch; }
.doc p + p { margin-top: 0.9rem; }
.doc ul { padding-left: 1.2rem; margin: 0.75rem 0 0; }
.doc li + li { margin-top: 0.4rem; }
.doc a { color: var(--white); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  color: var(--grey-300);
  text-decoration: none;
}
.back:hover { color: var(--white); }

@media print {
  .wa-fixed, .probe, .map { display: none; }
  body { background: #fff; color: #000; padding: 0; }
}

/* Fotos de sonrisas: pareja doble en Especialidades y banda al final de Valoración */
.treat__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: start; }
.treat__duo figure { margin: 0; }
.treat__duo img { aspect-ratio: 3 / 4; object-fit: cover; }
.band--end { margin: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 0; }
.band--end img { object-position: 50% 30%; }
#donde-estamos .band img { object-position: 50% 40%; }
.photo-band img { object-position: 50% 28%; }
@media (min-width: 48rem) { .photo-band img { object-position: 50% 28%; } }

.visit__cta { margin-top: 1.5rem; }
