/* Sonrisa Norte · Clínica dental (marca ficticia, proyecto de muestra)
   Dirección: «el lugar lo dice todo». Tres tonos de piedra, verde salvia del sillón.
   Una sola familia: Newsreader (licencia SIL OFL 1.1, ver letras/OFL.txt). */

@font-face {
  font-family: "Newsreader";
  src: url("letras/newsreader-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --bg: #eeecea;
  --surface: #e4e1dd;
  --papel: #f6f5f3;
  --ink: #333231;
  --muted: #625e5a;
  --accent: #56654e;
  --accent-ink: #ffffff;
  --field-1: #cdc3b6;

  /* Letra: cinco tamaños */
  --step-small: 0.9375rem;                                   /* 15 px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);   /* 17–19 */
  --step-lead: clamp(1.25rem, 1.15rem + 0.35vw, 1.4375rem);  /* 20–23 */
  --step-head: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);          /* 32–56 */
  --step-display: clamp(2.75rem, 1rem + 5vw, 5.5rem);        /* 44–88 */

  /* Espacio */
  --m: clamp(16px, 3vw, 40px);
  --seccion: clamp(88px, 11vw, 176px);
  --r: 16px;
  --franja: 40px;

  --suave: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: var(--step-body);
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
}
.saltar:focus { top: 8px; }

/* Títulos */
h1, h2 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.25; letter-spacing: -0.005em; }

/* Botones: siempre redondos del todo */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-body); font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .16s var(--suave);
}
.boton:hover { background: #4a5843; }
.boton:active { transform: scale(0.97); }
.boton:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; transform: none; }
.boton--chico { min-height: 44px; padding: 0 22px; font-size: var(--step-small); }
.boton--ancho { width: 100%; }

.enlace {
  background: none; border: 0; padding: 10px 4px; min-height: 44px; cursor: pointer;
  font-size: var(--step-body); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px; color: var(--ink);
  transition: color .2s ease;
}
.enlace:hover { color: var(--accent); }

/* Franja de muestra */
.franja {
  height: var(--franja); display: flex; align-items: center; justify-content: center;
  padding: 0 16px; background: var(--ink); color: #d9d5cf;
  font-size: var(--step-small); text-align: center; line-height: 1.4;
}
.franja a { color: var(--bg); text-underline-offset: 3px; }
.franja a:hover { color: #fff; }

/* Barra fija de PC */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 68px;
  display: flex; align-items: center; gap: 32px; padding: 0 var(--m);
  background: var(--bg);
  transform: translateY(-101%); transition: transform .45s var(--suave);
}
.barra.es-visible { transform: none; }
.barra__marca { font-size: var(--step-lead); text-decoration: none; letter-spacing: -0.01em; }
.barra__enlaces { display: flex; gap: 28px; margin-left: auto; }
.barra__enlaces a, .portada__lado a {
  font-size: var(--step-small); text-decoration: none; padding: 10px 0; position: relative;
}
.barra__enlaces a::after, .portada__lado a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--suave);
}
.barra__enlaces a:hover::after, .portada__lado a:hover::after { transform: scaleX(1); }

/* ---------- Portada ---------- */
.portada {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px;
  background: var(--surface);
}
.portada__hoja {
  background: var(--bg); border-radius: var(--r);
  min-height: calc(100svh - var(--franja) - 24px);
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  padding: 24px clamp(20px, 3vw, 48px) 0;
}
.portada__nav {
  width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px;
}
.portada__lado { display: flex; gap: 24px; padding-top: 12px; }
.portada__lado--der { justify-content: flex-end; }

.marca { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); }
.marca__signo { width: 40px; height: 40px; color: var(--accent); margin-bottom: 10px; }
.marca__nombre { font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.1; }
.marca__oficio { font-size: var(--step-small); color: var(--muted); }

.portada__texto {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: clamp(48px, 15vh, 160px) 0 clamp(48px, 18vh, 200px);
}
.portada h1 {
  font-size: var(--step-display); color: var(--accent);
  max-width: 9.5em; line-height: 0.98; letter-spacing: -0.03em;
}
.portada__frase { max-width: 38ch; margin: 28px 0 36px; }

.portada__foto {
  position: sticky; top: 12px;
  height: calc(100svh - var(--franja) - 24px);
  min-height: 0; border-radius: var(--r); overflow: hidden; background: var(--field-1);
}
.luz { position: absolute; inset: 0; }
.luz__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  opacity: 0; transition: opacity 1.6s ease;
}
.luz__img.es-visible { opacity: 1; }
.portada__barra {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px; background: var(--bg); font-size: var(--step-small);
}
.portada__dir { color: var(--muted); }

.estado { display: inline-flex; align-items: center; gap: 10px; }
.estado__punto { width: 10px; height: 10px; border-radius: 50%; background: #9c9790; flex: none; }
.estado.es-abierto .estado__punto { background: #4f7a46; animation: latido 2.4s ease-in-out infinite; }
@keyframes latido { 50% { transform: scale(1.35); opacity: .6; } }

/* ---------- Secciones ---------- */
.seccion { padding: var(--seccion) var(--m); }
.nota { color: var(--muted); font-size: var(--step-small); max-width: 34ch; margin-top: 16px; }

/* Servicios como una carta */
.servicios { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.servicios__lado { grid-column: 1 / span 4; }
.carta { grid-column: 6 / -1; columns: 2; column-gap: 64px; }
.carta__grupo { break-inside: avoid; padding-bottom: 48px; }
.carta__grupo h3 { margin-bottom: 18px; }
.carta li { margin-bottom: 22px; }
.carta__fila { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.precio { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; font-weight: 500; }
.carta__desc { display: block; font-size: var(--step-small); color: var(--muted); max-width: 36ch; margin-top: 2px; }

.equipo__titulo { margin: 56px 0 20px; }
.equipo li { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; line-height: 1.3; }
.equipo strong { display: block; font-weight: 500; }
.equipo li span:last-child { font-size: var(--step-small); color: var(--muted); }
.equipo li strong { font-size: var(--step-body); color: var(--ink); }
.inicial {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-small); font-weight: 500; letter-spacing: 0.02em;
}
.inicial--b { background: var(--field-1); color: var(--ink); }
.inicial--c { background: var(--ink); color: var(--bg); }

/* ---------- Agenda ---------- */
.agenda { background: var(--field-1); padding: var(--seccion) var(--m); }
.agenda__cabeza { max-width: 640px; margin-bottom: 48px; }
.agenda__cabeza p { margin-top: 16px; max-width: 46ch; }
.agenda__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }

.pasos { background: var(--bg); border-radius: var(--r); padding: clamp(20px, 3vw, 40px); min-width: 0; }
.progreso { margin-bottom: 32px; }
.progreso__barra { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.progreso__barra span {
  display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 3px;
  transform: scaleX(0.3333); transform-origin: left; transition: transform .5s var(--suave);
}
.progreso__nombres { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.progreso__nombres li:nth-child(2) { text-align: center; }
.progreso__nombres li:nth-child(3) { text-align: right; }
.progreso__nombres .es-actual { color: var(--ink); font-weight: 500; }
.progreso__nombres .es-hecho { color: var(--accent); }

.paso { border: 0; padding: 0; margin: 0; min-width: 0; }
.paso[hidden] { display: none; }
.paso legend, .resumen h3 { font-size: var(--step-lead); font-weight: 500; padding: 0; margin-bottom: 20px; }
.paso.entra { animation: entra .45s var(--suave); }
@keyframes entra { from { opacity: 0; transform: translateX(18px); } }
.paso__ayuda { color: var(--muted); font-size: var(--step-small); margin: -12px 0 18px; }
.paso__acciones { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.paso__acciones .boton:only-child { margin-left: auto; }
.paso__acciones--col { flex-direction: column; align-items: stretch; }
.paso__fila { display: flex; justify-content: space-between; gap: 16px; }

.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 72px; padding: 12px 18px; border-radius: var(--r); background: var(--surface);
  cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .16s var(--suave);
}
.opcion input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.opcion:hover { background: #d9d5cf; }
.opcion:active, .chip:active { transform: scale(0.98); }
.opcion__nombre { font-weight: 500; line-height: 1.25; }
.opcion__dato { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.opcion:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.opcion:has(input:checked) .opcion__dato { color: #e2e7dd; }
.opcion:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }

.dias {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(clamp(20px, 3vw, 40px) * -1); padding: 2px clamp(20px, 3vw, 40px) 8px;
  scrollbar-width: none;
}
.dias::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; scroll-snap-align: start; cursor: pointer;
  border-radius: var(--r); background: var(--surface); text-align: center;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--suave);
}
.chip:hover { background: #d9d5cf; }
.chip--dia { width: 84px; padding: 10px 8px; display: flex; flex-direction: column; line-height: 1.3; }
.chip--dia .chip__sem, .chip--dia .chip__mes { font-size: var(--step-small); color: var(--muted); }
.chip--dia .chip__num { font-size: var(--step-lead); font-weight: 500; }
.chip:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.chip:has(input:checked) span { color: inherit; }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 18px; }
.chip--hora { min-height: 48px; display: grid; place-items: center; font-variant-numeric: tabular-nums; padding: 0 8px; }
.chip--hora:has(input:disabled) { background: transparent; color: #8a857f; cursor: not-allowed; text-decoration: line-through; }
.horas__vacio { color: var(--muted); font-size: var(--step-small); grid-column: 1 / -1; }

.campo { display: block; margin-bottom: 22px; }
.campo > span { display: block; margin-bottom: 8px; font-weight: 500; }
.campo em { font-style: normal; font-weight: 400; color: var(--muted); }
.campo input, .campo textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid transparent; border-radius: var(--r);
  background: var(--surface); color: var(--ink); font: inherit; font-size: max(16px, var(--step-body));
  transition: border-color .2s ease, background-color .2s ease;
}
.campo textarea { resize: vertical; min-height: 84px; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--accent); background: var(--papel); }
.campo ::placeholder { color: #8a857f; }
.sino { display: flex; gap: 10px; flex-wrap: wrap; }
.sino button {
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); transition: background-color .2s ease, transform .16s var(--suave);
}
.sino button:active { transform: scale(0.97); }
.sino button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }

.mensaje { background: #dfe3d9; border-radius: var(--r); border-top-left-radius: 4px; padding: 20px 22px; }
.mensaje p { white-space: pre-line; }
.resumen:focus { outline: none; }

/* La tarjeta de cita */
.tarjeta { position: sticky; top: 96px; }
.tarjeta__borde {
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 14a14 14 0 0 1 28 0z' fill='%23f6f5f3'/%3E%3C/svg%3E") round no-repeat 0 0 / 28px 14px;
}
.tarjeta__cuerpo { background: var(--papel); border-radius: 0 0 var(--r) var(--r); padding: 22px 28px 28px; }
.tarjeta__casa { font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.tarjeta__titulo { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 22px; color: var(--accent); }
.tarjeta__datos div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; }
.tarjeta__datos dt { font-size: var(--step-small); color: var(--muted); }
.tarjeta__datos dd { font-weight: 500; min-height: 1.55em; }
.tarjeta__datos dd.lleno { animation: tinta .5s var(--suave); }
@keyframes tinta { from { opacity: 0; transform: translateY(6px); } }
.vacio { display: block; height: 12px; margin-top: 8px; border-radius: 6px; background: var(--surface); width: 80%; }
.tarjeta__pie { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }

/* ---------- Primera vez ---------- */
.primera { padding-left: 0; padding-right: 0; }
.primera__cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--m); }
.primera__cabeza p { margin-top: 14px; max-width: 44ch; }
.primera__botones { display: flex; gap: 10px; }
.flecha {
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); cursor: pointer;
  transition: transform .16s var(--suave), background-color .2s ease, opacity .2s ease;
}
.flecha svg { width: 22px; height: 22px; }
.flecha:hover { background: var(--accent); }
.flecha:active { transform: scale(0.94); }
.flecha:disabled { opacity: .35; cursor: default; }
.avance { height: 6px; margin: 28px var(--m) 40px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.avance span { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 3px; transform-origin: left; transform: scaleX(0.2); }

.fila {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--m) 8px; scroll-padding: 0 var(--m); scrollbar-width: none;
}
.fila::-webkit-scrollbar { display: none; }
.fila:focus-visible { outline-offset: -3px; }
.momento { flex: none; width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.momento h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; }
.momento p { margin-top: 8px; }
.momento__dibujo { margin-top: var(--hueco); width: 100%; height: auto; }

/* ---------- Visita ---------- */
.visita { position: relative; }
.visita__foto { width: 100%; height: 100svh; min-height: 640px; object-fit: cover; object-position: 30% 50%; }
.visita__tarjeta {
  position: absolute; top: 60px; right: 60px; width: 400px;
  background: var(--bg); border-radius: var(--r); padding: 32px;
}
.visita__tarjeta h2 { font-size: var(--step-head); }
.estado--tarjeta { margin: 14px 0 18px; font-weight: 500; }
.visita address { font-style: normal; }
.visita__llegar { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.horario { margin: 22px 0 26px; }
.horario div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; }
.horario dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.horario .es-hoy { background: var(--surface); font-weight: 500; }

/* ---------- Preguntas ---------- */
.preguntas {
  background: var(--surface); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: var(--seccion) var(--m) 0;
}
.preguntas__texto { grid-column: 1 / span 5; padding-bottom: var(--seccion); }
.datos { margin: 24px 0 36px; }
.datos li { padding: 4px 0; }
.datos li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 12px; vertical-align: middle; }
.acordeon details { margin-bottom: 8px; }
.acordeon summary {
  list-style: none; cursor: pointer; position: relative;
  font-size: var(--step-lead); line-height: 1.3; padding: 12px 40px 12px 0; min-height: 48px;
  transition: color .2s ease;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary:hover { color: var(--accent); }
.acordeon summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--suave);
}
.acordeon details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acordeon details p { padding: 0 24px 18px 0; max-width: 52ch; }
.acordeon details[open] p { animation: tinta .4s var(--suave); }
.preguntas__acciones { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }

.preguntas__fotos { grid-column: 7 / -1; position: relative; margin-top: calc(var(--seccion) * -1); padding-bottom: 80px; }
.preguntas__alta { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0 0 var(--r) var(--r); }
.preguntas__cuadrada {
  position: absolute; left: -40px; bottom: 40px; width: 36%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r); border: 8px solid var(--surface);
}

/* ---------- Pie: el reverso de la tarjeta ---------- */
.pie { background: var(--accent); padding: clamp(80px, 9vw, 140px) var(--m) clamp(48px, 6vw, 80px); }
.pie__tarjeta {
  position: relative; max-width: 1120px; margin: 0 auto; background: var(--bg);
  border-radius: 0 0 var(--r) var(--r);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 64px) 28px;
}
.pie__tarjeta::before {
  content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0z' fill='%23eeecea'/%3E%3C/svg%3E") round no-repeat 0 0 / 48px 24px;
}
.pie__despedida { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 18px; color: var(--accent); }
.pie__mensaje p:last-child { max-width: 40ch; }
.pie__datos { position: relative; padding-top: 8px; }
.pie__sello {
  position: absolute; right: 0; top: -8px; width: 88px; aspect-ratio: 3 / 4; object-fit: cover;
  padding: 6px; background: var(--papel); transform: rotate(3deg);
}
.pie__datos ul { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; padding-right: 110px; }
.pie__datos a, .pie__datos .enlace { font-size: var(--step-body); text-decoration: none; padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center; }
.pie__datos a:hover, .pie__datos .enlace:hover { color: var(--accent); text-decoration: underline; }
.pie__imprenta { grid-column: 1 / -1; text-align: center; font-size: var(--step-small); color: var(--muted); padding-top: 24px; }
.pie__imprenta a { text-underline-offset: 3px; }

/* ---------- Menú del teléfono ---------- */
.menu-tel { display: none; }

/* ---------- Aviso suave ---------- */
.aviso {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; width: min(460px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 20px;
  background: var(--ink); color: var(--bg); border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(30, 28, 26, 0.22); /* taste-skill-ignore: aviso flotante */
  transform: translateX(-50%); animation: aviso .4s var(--suave);
}
.aviso[hidden] { display: none; }
.aviso p { flex: 1; font-size: var(--step-small); line-height: 1.4; }
.aviso__cerrar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--bg); border-radius: 50%; }
.aviso__cerrar svg { width: 18px; height: 18px; }
.aviso__cerrar:hover { background: #4a4846; }
@keyframes aviso { from { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Entradas al bajar ---------- */
.js .aparece { opacity: 0; transform: translateY(24px); }
.js .aparece.es-visto {
  opacity: 1; transform: none;
  transition: opacity .7s var(--suave) var(--retraso, 0ms), transform .8s var(--suave) var(--retraso, 0ms);
}

/* ---------- Tableta y teléfono ---------- */
@media (max-width: 1080px) {
  .servicios__lado { grid-column: 1 / -1; }
  .carta { grid-column: 1 / -1; }
  .equipo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .agenda__cuerpo { grid-template-columns: minmax(0, 1fr) 340px; }
  .preguntas__texto { grid-column: 1 / span 6; }
  .preguntas__fotos { grid-column: 8 / -1; }
}

@media (max-width: 860px) {
  :root { --franja: auto; }
  html { scroll-padding-top: 12px; scroll-padding-bottom: 84px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .franja { padding: 9px 16px; }
  .barra { display: none; }

  .portada { display: flex; flex-direction: column; padding: 12px; }
  .portada__foto { order: -1; position: sticky; top: 12px; height: 44svh; min-height: 300px; z-index: 0; }
  .portada__hoja { position: relative; z-index: 1; min-height: 0; margin-top: 12px; padding: 24px 20px 36px; }
  .marca__signo { width: 32px; height: 32px; margin-bottom: 6px; }
  .portada__lado { display: none; }
  .portada__nav { grid-template-columns: 1fr; justify-items: center; }
  .marca { width: 46%; min-width: 160px; }
  .portada__texto { padding: 22px 0 4px; }
  .portada__frase { margin: 20px 0 28px; }
  .portada__texto .boton { width: 100%; }
  .portada__barra { height: auto; min-height: 52px; padding: 10px 16px; }
  .portada__dir { display: none; }

  .seccion, .agenda { padding-top: 88px; padding-bottom: 88px; }
  .servicios { display: block; }
  .carta { columns: 1; margin-top: 48px; }
  .carta__grupo { padding-bottom: 40px; }
  .carta__grupo h3 { font-size: var(--step-lead); }
  .equipo { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--m) * -1); padding: 0 var(--m) 4px; scrollbar-width: none; }
  .equipo::-webkit-scrollbar { display: none; }
  .equipo li { flex: none; width: 74vw; max-width: 300px; scroll-snap-align: start; background: var(--surface); padding: 14px; border-radius: var(--r); margin: 0; }
  .equipo__titulo { margin-top: 40px; }

  .agenda__cuerpo { grid-template-columns: 1fr; }
  .agenda__cabeza { margin-bottom: 32px; }
  .tarjeta { position: static; }
  .opciones { grid-template-columns: 1fr; }
  .opcion { min-height: 64px; }
  .paso__acciones .boton { flex: 1; }

  .primera__botones { display: none; }
  .avance { margin: 22px var(--m) 28px; }
  .fila { gap: 16px; }
  .momento { width: 72vw; max-width: 320px; }
  .momento__dibujo { margin-top: calc(var(--hueco) * 0.45); }

  .visita { padding-bottom: 72px; background: var(--bg); }
  .visita__foto { height: 70svh; min-height: 380px; }
  .visita__tarjeta { position: relative; top: auto; right: auto; width: auto; margin: -80px 16px 0; padding: 26px 22px; }

  .preguntas { display: flex; flex-direction: column-reverse; padding: 0 var(--m); gap: 0; }
  .preguntas__fotos { margin: 0 calc(var(--m) * -1); padding: 0 0 56px; }
  .preguntas__alta { aspect-ratio: 4 / 5; border-radius: 0; }
  .preguntas__cuadrada { left: auto; right: 16px; bottom: 16px; width: 38%; }
  .preguntas__texto { padding: 8px 0 88px; }
  .preguntas__acciones .boton { width: 100%; }

  .pie { padding: 64px 12px 32px; }
  .pie__tarjeta { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 22px 24px; }
  .pie__tarjeta::before { top: -16px; height: 16px; background-size: 32px 16px; }
  .pie__sello { width: 64px; top: -4px; }
  .pie__datos ul { padding-right: 76px; }

  .menu-tel {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--ink); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .menu-tel a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 56px; border-radius: 12px; color: #e4e1dd; text-decoration: none;
    font-size: 0.875rem; line-height: 1.1; transition: background-color .2s ease, transform .16s var(--suave);
  }
  .menu-tel a:active { transform: scale(0.95); }
  .menu-tel svg { width: 22px; height: 22px; fill: currentColor; }
  .menu-tel .menu-tel__agendar { background: var(--accent); color: #fff; }
  .menu-tel a.es-aqui:not(.menu-tel__agendar) { background: #4a4846; color: #fff; }

  .aviso { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---------- 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 .aparece { opacity: 1; transform: none; }
  .barra { transition: none; }
}
