/* ============================================================
   Clínica Dental Taoro — hoja de estilos única
   Cal, madera clara y verde profundo. Nada de azul de hospital.
   ============================================================ */

/* ---------- Fuentes autoalojadas ---------- */
@font-face {
  font-family: 'Newsreader';
  src: url('../fuentes/newsreader-latin.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fuentes/newsreader-latin-ext.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fuentes/publicsans-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fuentes/publicsans-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --fondo: #FBFAF6;
  --fondo-2: #F0EDE4;
  --tinta: #1A1F1E;
  --tinta-suave: #565E5B;
  --acento: #0E5C55;
  --acento-oscuro: #0A4741;
  --acento-2: #C8A87C;
  --senal: #B45309;
  --linea: color-mix(in srgb, var(--tinta) 12%, var(--fondo));

  --r: 6px;
  --r-chip: 999px;
  --sombra: 0 18px 40px -24px rgba(14, 92, 85, .38);
  --sombra-alta: 0 26px 60px -28px rgba(14, 92, 85, .48);
  --suave: cubic-bezier(.2, .7, .3, 1);

  --ancho: 1180px;
  --ancho-estrecho: 760px;
  --aire: clamp(3.5rem, 7vw, 6.5rem);
  --cabecera-alto: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cabecera-alto) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.28rem; line-height: 1.25; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--acento); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--acento-oscuro); }

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

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

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

.salto {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--acento); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r); text-decoration: none;
  transition: top .15s var(--suave);
}
.salto:focus { top: 12px; color: #fff; }

.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.contenedor--estrecho { width: min(100% - 2.5rem, var(--ancho-estrecho)); }

.seccion { padding-block: var(--aire); position: relative; }

.titulo-seccion { position: relative; padding-bottom: .55rem; margin-bottom: 1rem; }
.titulo-seccion::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 76px; height: 1px; background: var(--acento-2);
}
.titulo-seccion--claro::after { background: rgba(255, 255, 255, .55); }

.entradilla {
  max-width: 62ch; color: var(--tinta-suave);
  font-size: 1.08rem; margin-bottom: 2.6rem;
}
.entradilla--clara { color: rgba(255, 255, 255, .82); }

.sobretitulo {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tinta-suave); margin-bottom: 1.1rem;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .78rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r);
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--suave), color .18s var(--suave),
              border-color .18s var(--suave), transform .15s var(--suave);
}
.boton:active { transform: scale(.98); }
.boton--sm { min-height: 42px; padding: .5rem 1rem; font-size: .94rem; }

.boton--principal { background: var(--acento); color: #fff; }
.boton--principal:hover { background: var(--acento-oscuro); color: #fff; }

.boton--linea { background: transparent; color: var(--acento); border-color: color-mix(in srgb, var(--acento) 35%, transparent); }
.boton--linea:hover { background: color-mix(in srgb, var(--acento) 8%, transparent); color: var(--acento-oscuro); }

.boton--claro { background: #fff; color: var(--acento-oscuro); }
.boton--claro:hover { background: var(--fondo-2); color: var(--acento-oscuro); }

.boton--linea-claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.boton--linea-claro:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.enlace-boton {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--acento); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.enlace-boton:hover { color: var(--acento-oscuro); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--fondo) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.cabecera__interior {
  width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto;
  min-height: var(--cabecera-alto);
  display: flex; align-items: center; gap: 1.5rem;
}
.marca { text-decoration: none; color: var(--tinta); line-height: 1.15; }
.marca__nombre {
  display: block; font-family: 'Newsreader', Georgia, serif;
  font-size: 1.16rem; letter-spacing: -0.01em;
}
.marca__lugar {
  display: block; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tinta-suave);
}

.nav-escritorio { margin-inline: auto; }
/* Siete enlaces mas la marca mas el telefono van muy justos en 1180 px.
   Sin nowrap se partian por dentro —«Dónde / estamos»— y la barra pasaba a
   dos lineas en un portatil de 1366. */
.nav-escritorio ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-escritorio a {
  color: var(--tinta-suave); text-decoration: none; font-size: .93rem;
  padding: .35rem 0; border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-escritorio a:hover { color: var(--acento); border-bottom-color: var(--acento-2); }

.cabecera__acciones { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.tel-cabecera {
  font-variant-numeric: tabular-nums; font-weight: 600;
  text-decoration: none; font-size: .95rem;
  /* El numero no se parte nunca: salia «922 33 05 / 42». */
  white-space: nowrap;
}

.hamburguesa {
  display: none; width: 44px; height: 44px; border: 1px solid var(--linea);
  border-radius: var(--r); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.hamburguesa__lineas, .hamburguesa__lineas::before, .hamburguesa__lineas::after {
  display: block; width: 20px; height: 1.5px; background: var(--tinta); content: '';
}
.hamburguesa__lineas { position: relative; }
.hamburguesa__lineas::before { position: absolute; top: -6px; }
.hamburguesa__lineas::after { position: absolute; top: 6px; }

/* ---------- Menú móvil ---------- */
.menu-movil {
  position: fixed; inset: 0; z-index: 100;
  background: var(--fondo); padding: 1.25rem;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.menu-movil[hidden] { display: none; }
.menu-movil__cabecera { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.cerrar {
  width: 44px; height: 44px; border: 1px solid var(--linea); border-radius: var(--r);
  background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--tinta);
}
.menu-movil nav { margin-top: 1.5rem; }
.menu-movil ul { list-style: none; margin: 0; padding: 0; }
.menu-movil li + li { border-top: 1px solid var(--linea); }
.menu-movil nav a {
  display: block; padding: 1rem .25rem; min-height: 56px;
  font-family: 'Newsreader', Georgia, serif; font-size: 1.35rem;
  color: var(--tinta); text-decoration: none;
}
.menu-movil__pie {
  margin-top: auto; padding-top: 1.5rem;
  display: grid; gap: .6rem;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- Sistema de iconos ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }

/* ---------- 1. Portada ---------- */
.portada {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4.5rem, 7vw, 6rem);
}
/* Halo de luz detrás del molar: la única «atmósfera» de la página */
.portada::before {
  content: ''; position: absolute; z-index: 0;
  right: 0; top: -10vh; width: min(62vw, 860px); height: 78vh;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--acento) 14%, transparent),
    color-mix(in srgb, var(--acento-2) 8%, transparent) 55%,
    transparent 78%);
  pointer-events: none;
}
.portada__rejilla {
  position: relative; z-index: 1;
  width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.portada__texto { max-width: 620px; }
.portada h1 { margin-bottom: .45em; }
.portada__entrada { font-size: 1.14rem; color: var(--tinta-suave); max-width: 46ch; }
.portada__botones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- El molar extruido ---------- */
.escena { display: grid; justify-items: center; gap: 1.4rem; }
.diente3d {
  position: relative;
  width: min(100%, 380px); aspect-ratio: 100 / 124;
  perspective: 1000px; perspective-origin: 50% 45%;
}
.diente3d__pila {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--rx, -6deg)))
    rotateY(calc(var(--ry, 22deg)))
    scale(var(--s, 1));
  transition: transform .5s var(--suave);
  will-change: transform;
}
.diente3d.siguiendo .diente3d__pila { transition: transform .12s linear; }
.diente3d__pila svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Las capas de profundidad las clona el JS a partir de la silueta */
.capa--fondo path { fill: var(--capa-color); }
.capa--cara .esmalte { fill: #F7F3E9; stroke: color-mix(in srgb, var(--acento) 45%, transparent); stroke-width: 1.1; }
.capa--cara .dentina { fill: #E8DFCA; }
.capa--cara .pulpa { fill: var(--acento); }
.capa--cara .brillo { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: .75; }

.diente3d__suelo {
  position: absolute; left: 50%; bottom: -4%; translate: -50% 0;
  width: 62%; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(14, 92, 85, .28), transparent 72%);
  filter: blur(3px);
  transform: scale(var(--sombra-escala, 1));
  transition: transform .5s var(--suave);
}
.escena__pie {
  display: flex; align-items: center; gap: .6rem;
  margin: 0; max-width: 34ch; text-align: left;
  font-size: .88rem; color: var(--tinta-suave);
}
.escena__pie svg { flex: none; color: var(--acento); fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Banda inferior de la portada ---------- */
.portada__banda {
  position: relative; z-index: 1;
  width: min(100% - 2.5rem, calc(var(--ancho) + 120px));
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.portada__figura { margin: 0; }
.portada__figura img {
  width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 42%;
  border-radius: var(--r); box-shadow: var(--sombra);
}
/* Rotura de simetría 1: el bloque de datos cuelga fuera de la rejilla,
   montado sobre la esquina de la foto. */
.datos-duros {
  position: absolute; right: -1.5rem; bottom: -1.75rem;
  max-width: 360px; padding: 1.15rem 1.4rem;
  background: var(--fondo); border-left: 1px solid var(--acento-2);
  border-radius: 0 var(--r) var(--r) 0;
  box-shadow: var(--sombra-alta);
}
.datos-duros ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--tinta-suave); }
.datos-duros li + li { margin-top: .3rem; }
.datos-duros strong { color: var(--tinta); font-variant-numeric: tabular-nums; }

/* ---------- 2. Los dos miedos ---------- */
.miedos { background: var(--fondo-2); }
/* Rotura de simetría 2: 55/45 y la segunda columna baja 64 px */
.miedos__par { display: grid; grid-template-columns: 55fr 45fr; gap: clamp(2rem, 4vw, 3.5rem); }
.miedo h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.miedo p { color: var(--tinta-suave); }
.miedo--a { border-top: 2px solid var(--acento); padding-top: 1.4rem; }
.miedo--b { border-top: 2px solid var(--acento-2); padding-top: 1.4rem; margin-top: 64px; }

/* ---------- 3. Orientador ---------- */
.asistente {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r);
  box-shadow: var(--sombra); padding: clamp(1.25rem, 3vw, 2.2rem);
}
.asistente__barra {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: .9rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--linea);
}
.asistente__paso {
  margin: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tinta-suave); font-variant-numeric: tabular-nums;
}
.asistente__cuerpo { min-height: 220px; }
.asistente__pregunta { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.3rem; }
.opciones { display: grid; gap: .6rem; }
@media (min-width: 700px) { .opciones { grid-template-columns: 1fr 1fr; } }
.opcion {
  display: flex; align-items: center; min-height: 56px;
  padding: .85rem 1.1rem; text-align: left;
  background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--r);
  font: inherit; color: var(--tinta); cursor: pointer;
  transition: border-color .18s var(--suave), background-color .18s var(--suave), transform .15s var(--suave);
}
.opcion:hover { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 5%, var(--fondo)); }
.opcion:active { transform: scale(.98); }

.aparece { animation: aparece .25s var(--suave) both; }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.resultado__urgencia {
  display: flex; gap: .9rem; align-items: flex-start;
  background: color-mix(in srgb, var(--senal) 9%, var(--fondo));
  border: 1px solid color-mix(in srgb, var(--senal) 40%, transparent);
  border-left: 3px solid var(--senal);
  border-radius: var(--r); padding: 1rem 1.15rem; margin-bottom: 1.4rem;
}
.resultado__urgencia svg { flex: none; margin-top: 2px; color: var(--senal); }
.resultado__urgencia p { margin: 0; color: #7c3a06; }
.resultado__urgencia a { color: #7c3a06; font-weight: 600; }

.resultado h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.resultado__rango {
  margin: 1.2rem 0; padding: 1rem 1.2rem;
  background: var(--fondo-2); border-left: 1px solid var(--acento-2);
  font-variant-numeric: tabular-nums;
}
.resultado__rango strong { font-size: 1.15rem; }
.resultado__aviso { color: var(--tinta-suave); font-size: .98rem; }
.resultado__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------- 4. Precios ---------- */
.precios { background: var(--fondo-2); }
.tabla-envoltorio { background: var(--fondo); border: 1px solid var(--linea); }
.tabla-precios { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tabla-precios caption {
  text-align: left; padding: 1.1rem 1.2rem; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave);
  border-bottom: 1px solid var(--linea);
}
.tabla-precios th, .tabla-precios td { padding: .85rem 1.2rem; text-align: left; vertical-align: top; }
.tabla-precios thead th {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tinta-suave); font-weight: 600; border-bottom: 1px solid var(--tinta);
}
.tabla-precios .grupo th {
  background: var(--acento); color: #fff;
  font-family: 'Newsreader', Georgia, serif; font-size: 1.1rem; font-weight: 500;
  letter-spacing: 0; text-transform: none;
}
.tabla-precios tbody tr:nth-child(even of .fila) { background: var(--fondo-2); }
.tabla-precios .fila th { font-weight: 600; }
.tabla-precios .fila td { border-top: 1px solid var(--linea); }
.tabla-precios .fila th { border-top: 1px solid var(--linea); }
.tabla-precios .incluye { color: var(--tinta-suave); }
.tabla-precios .sesiones { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla-precios .precio { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tabla-precios .precio small { display: block; font-weight: 400; white-space: normal; color: var(--tinta-suave); }

.nota-precios {
  max-width: 68ch; margin-top: 1.6rem; color: var(--tinta-suave);
  border-left: 1px solid var(--acento-2); padding-left: 1.1rem;
}

.calculadora {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--r);
  padding: clamp(1.25rem, 3vw, 2rem); max-width: 720px;
}
.calculadora h3 { margin-bottom: 1.2rem; }
.calculadora__campos { display: grid; gap: 1rem; }
@media (min-width: 640px) { .calculadora__campos { grid-template-columns: 1.6fr 1fr; } }
.calculadora__plazos { border: 0; padding: 0; margin: 1.4rem 0 0; }
.calculadora__plazos legend {
  padding: 0; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tinta-suave); margin-bottom: .6rem;
}
.calculadora__salida {
  margin-top: 1.4rem; padding: 1.1rem 1.25rem;
  background: color-mix(in srgb, var(--acento) 7%, var(--fondo));
  border-left: 1px solid var(--acento); font-variant-numeric: tabular-nums;
}
.calculadora__salida strong { font-size: 1.3rem; }
.calculadora__salida .detalle { display: block; color: var(--tinta-suave); font-size: .94rem; margin-top: .3rem; }
.calculadora__aviso { color: var(--tinta-suave); font-size: .92rem; margin: 1rem 0 1.4rem; }

/* Campos de formulario compartidos */
.campo { display: grid; gap: .4rem; margin: 0; }
.campo label, .campo legend { font-size: .88rem; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; color: var(--tinta); background: #fff;
  border: 1px solid color-mix(in srgb, var(--tinta) 22%, var(--fondo));
  border-radius: var(--r);
}
textarea { min-height: 110px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23565E5B' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.4rem;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 44px; padding: .5rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--tinta) 20%, var(--fondo));
  border-radius: var(--r-chip); background: transparent;
  font: inherit; font-size: .95rem; color: var(--tinta); cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color .18s var(--suave), border-color .18s var(--suave), color .18s var(--suave), transform .15s var(--suave);
}
.chip:hover { border-color: var(--acento); }
.chip:active { transform: scale(.98); }
.chip--activo { background: var(--acento); border-color: var(--acento); color: #fff; }

/* ---------- 5. Proceso ---------- */
.linea-tiempo { list-style: none; margin: 0; padding: 0; position: relative; max-width: 780px; }
.linea-tiempo::before {
  content: ''; position: absolute; left: 19px; top: 12px; bottom: 12px;
  width: 1px; background: var(--acento-2);
}
.paso { position: relative; padding-left: 4.25rem; padding-block: 0 2.2rem; }
.paso:last-child { padding-bottom: 0; }
.paso__num {
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--acento-2) 18%, var(--fondo));
  border: 1px solid var(--acento-2);
  /* La cifra va en verde, no en arena: la arena sobre hueso se queda en 2,15:1
     y no pasa AA. El aro y el fondo del círculo son los que ponen el arena. */
  color: var(--acento); font-family: 'Newsreader', Georgia, serif; font-size: 1.15rem;
}
.paso h3 { margin-bottom: .3em; }
.paso p { color: var(--tinta-suave); }
/* Rotura de simetría 3: el paso 3 sobresale hacia la derecha */
.paso--saliente {
  background: var(--fondo-2); border-radius: var(--r);
  padding: 1.2rem 1.4rem 1.4rem 4.25rem; margin-bottom: 2.2rem;
  margin-right: clamp(-3.5rem, -4vw, 0rem);
}
.paso--saliente .paso__num { top: 1.1rem; left: 1.1rem; background: color-mix(in srgb, var(--acento-2) 18%, var(--fondo-2)); }
.paso--saliente { padding-left: 4.4rem; }

/* ---------- 6. Equipo ---------- */
.equipo { background: var(--fondo-2); }
.fichas { display: grid; gap: 1.1rem; }
.ficha {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--fondo); border: 1px solid var(--linea);
  border-left: 1px solid var(--acento-2);
  border-radius: var(--r); padding: 1.25rem;
  max-width: 760px;
}
/* Rotura de simetría 4: las tres fichas se escalonan 0 / 32 / 64 px */
.ficha:nth-child(2) { margin-left: 32px; }
.ficha:nth-child(3) { margin-left: 64px; }
.ficha img { width: 112px; height: 112px; border-radius: var(--r); object-fit: cover; flex: none; }
.ficha h3 { margin-bottom: .15em; font-size: 1.22rem; }
.ficha__puesto { margin: 0 0 .1rem; color: var(--acento); font-weight: 600; font-size: .95rem; }
.ficha__col {
  margin: 0 0 .7rem; font-size: .86rem; color: var(--tinta-suave);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.ficha__texto p:last-child { color: var(--tinta-suave); font-size: .98rem; }
.equipo__auxiliar { margin-top: 1.8rem; max-width: 60ch; color: var(--tinta-suave); }

/* ---------- 7. Preguntas ---------- */
.acordeon__item { border-top: 1px solid var(--linea); }
.acordeon__item:last-child { border-bottom: 1px solid var(--linea); }
.acordeon h3 { margin: 0; font-family: inherit; }
.acordeon__boton {
  width: 100%; min-height: 60px; display: flex; align-items: center; gap: 1rem;
  justify-content: space-between; text-align: left;
  padding: 1.1rem .25rem; background: none; border: 0; cursor: pointer;
  font-family: 'Newsreader', Georgia, serif; font-size: 1.2rem; font-weight: 500;
  color: var(--tinta);
}
.acordeon__boton::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--acento); border-bottom: 1.5px solid var(--acento);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .25s var(--suave);
}
.acordeon__boton[aria-expanded="true"]::after { transform: rotate(225deg) translate(-3px, -3px); }
.acordeon__boton:hover { color: var(--acento); }
.acordeon__panel { overflow: hidden; }
.acordeon__panel p {
  padding: 0 3rem 1.4rem .25rem; margin: 0;
  color: var(--tinta-suave); max-width: 68ch;
}

/* ---------- 8. Cita ---------- */
.cita { background: var(--acento); color: #fff; }
.cita h2, .cita h3 { color: #fff; }
.cita a { color: #fff; }
.cita .campo label, .cita .campo legend { color: rgba(255, 255, 255, .9); }
.formulario { display: grid; gap: 1.2rem; max-width: 560px; }
.cita .chip { color: #fff; border-color: rgba(255, 255, 255, .45); }
.cita .chip:hover { border-color: #fff; }
.cita .chip--activo { background: #fff; color: var(--acento-oscuro); border-color: #fff; }
.campo--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.campo--consentimiento label {
  display: flex; gap: .7rem; align-items: flex-start;
  font-weight: 400; font-size: .95rem; color: rgba(255, 255, 255, .9);
}
.campo--consentimiento input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: #fff; }
.error { color: #FFD9A8; font-size: .88rem; font-weight: 600; }
.formulario__botones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.confirmacion {
  max-width: 560px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r);
  padding: 1.5rem;
}
.confirmacion[hidden] { display: none; }

/* ---------- 9. Dónde ---------- */
.donde__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.mapa { position: sticky; top: calc(var(--cabecera-alto) + 24px); }
.mapa__tiles {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  width: 100%; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--linea); border-radius: var(--r);
  filter: saturate(.55) contrast(.95);
}
.mapa__tiles img { width: 100%; height: 100%; object-fit: cover; }
.mapa__punto {
  position: absolute; left: 46.67%; top: 46.67%;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; background: var(--acento);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--acento) 25%, transparent), 0 2px 8px rgba(0, 0, 0, .3);
}
.mapa__credito { font-size: .78rem; color: var(--tinta-suave); margin: .5rem 0 1rem; }

.donde__info address { font-style: normal; margin-bottom: 2rem; }
.donde__info h3 { margin-top: 2rem; }
.horarios { width: 100%; border-collapse: collapse; font-size: .97rem; max-width: 420px; }
.horarios th, .horarios td { padding: .5rem 0; text-align: left; border-bottom: 1px solid var(--linea); }
.horarios th { font-weight: 400; color: var(--tinta-suave); }
.horarios td { font-variant-numeric: tabular-nums; text-align: right; }
.horarios tr.hoy th, .horarios tr.hoy td { color: var(--acento); font-weight: 600; }
.horarios tr.hoy th::before { content: '● '; font-size: .7em; vertical-align: middle; }

.urgencias {
  margin-top: 2.2rem; padding: 1.3rem 1.4rem;
  background: var(--fondo-2); border-left: 1px solid var(--acento-2); border-radius: 0 var(--r) var(--r) 0;
}
.urgencias h3 { margin-top: 0; }
.urgencias p { color: var(--tinta-suave); }
.urgencias .boton { margin-top: .5rem; }

.donde__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 2.2rem 0 0; }
.donde__fotos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }

/* ---------- Pie ---------- */
.pie {
  background: var(--tinta); color: rgba(255, 255, 255, .78);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; font-size: .95rem;
}
.pie a { color: #fff; }
.pie__rejilla { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 2.5rem; }
.pie__marca { font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; color: #fff; margin-bottom: .8rem; }
.pie__titulo {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); margin-bottom: .9rem;
}
.pie address { font-style: normal; line-height: 1.9; }
.pie ul { list-style: none; margin: .9rem 0 0; padding: 0; line-height: 2; }
.pie nav ul { margin-top: 0; }
.pie strong { color: #fff; font-variant-numeric: tabular-nums; }
.pie .enlace-boton { color: #fff; }
.pie__linea {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .86rem; color: rgba(255, 255, 255, .55);
}
.pie__linea .enlace-boton { color: rgba(255, 255, 255, .8); font-size: inherit; }

/* ---------- Flotante ---------- */
.flotante {
  position: fixed; z-index: 55;
  right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; min-height: 52px;
  padding: .8rem 1.5rem; border-radius: var(--r-chip);
  background: var(--acento); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: var(--sombra-alta);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--suave), transform .25s var(--suave), visibility .25s;
}
.flotante.visible { opacity: 1; visibility: visible; transform: none; }
.flotante:hover { background: var(--acento-oscuro); color: #fff; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal__fondo { position: absolute; inset: 0; background: rgba(26, 31, 30, .6); }
.modal__caja {
  position: relative; background: var(--fondo); border-radius: var(--r);
  padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 620px;
  max-height: min(85vh, 780px); overflow-y: auto; box-shadow: var(--sombra-alta);
}
.modal__caja h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.modal__caja p { color: var(--tinta-suave); font-size: .98rem; }
.modal__caja .boton { margin-top: .8rem; }

/* ---------- Revelado ----------
   Defensivo: sin la clase .js en <html> (JS desactivado o caído antes de
   arrancar) el contenido se ve entero. El escondite solo existe con JS vivo,
   y app.js tiene además un temporizador de 2,5 s que lo revela todo. */
.revelar { opacity: 1; transform: none; }
.js .revelar { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--suave), transform .6s var(--suave); }
.js .revelar.visible { opacity: 1; transform: none; }

/* ============================================================
   ICONOGRAFÍA APLICADA
   ============================================================ */
.miedo { position: relative; }
.miedo__icono {
  display: grid; place-items: center; width: 52px; height: 52px;
  margin-bottom: 1.1rem; border-radius: 50%;
  background: color-mix(in srgb, var(--acento) 9%, var(--fondo));
  color: var(--acento);
}
.miedo__icono svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.miedo--b .miedo__icono { background: color-mix(in srgb, var(--acento-2) 22%, var(--fondo)); color: #8A6A3C; }

.paso__num { overflow: visible; }
.paso__icono {
  position: absolute; right: -8px; bottom: -8px;
  width: 22px; height: 22px; padding: 3px;
  border-radius: 50%; background: var(--acento); color: #fff;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--suave);
}
.paso:hover .paso__icono { transform: scale(1.18); }

/* Cabecera de grupo de la tabla, con su pieza dental */
.tabla-precios .grupo th { padding-block: .9rem; }
.grupo__titulo { display: flex; align-items: center; gap: .75rem; }
.grupo__titulo svg {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--suave);
}
.tabla-precios .grupo:hover .grupo__titulo svg { transform: scale(1.22) rotate(-4deg); }
.tabla-precios .fila { transition: background-color .18s var(--suave); }
.tabla-precios .fila:hover { background: color-mix(in srgb, var(--acento) 6%, var(--fondo)); }

/* Opciones del orientador con pieza */
.opcion { gap: .85rem; }
.opcion svg {
  width: 26px; height: 26px; flex: none; color: var(--acento);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--suave);
}
.opcion:hover svg { transform: scale(1.22); }

/* Ilustración del resultado: la pieza crece al aparecer */
.resultado { position: relative; }
.resultado__figura {
  float: right; width: clamp(96px, 22vw, 148px); aspect-ratio: 1;
  margin: 0 0 1rem 1.4rem; display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acento) 12%, var(--fondo)), transparent);
  color: var(--acento);
}
.resultado__figura svg {
  width: 62%; height: 62%; fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  animation: pieza-crece .5s var(--suave) both;
}
@keyframes pieza-crece { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Fichas de equipo y asistente: elevación al pasar por encima */
.ficha { transition: transform .25s var(--suave), box-shadow .25s var(--suave); }
.ficha:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.ficha img { transition: transform .35s var(--suave); }
.ficha:hover img { transform: scale(1.04); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* La barra entera solo cabe a partir de 1220 px. Por debajo, hamburguesa:
   antes empezaba en 960 y entre 960 y 1366 la barra salia en dos lineas. */
@media (max-width: 1219px) {
  .nav-escritorio { display: none; }
  .hamburguesa { display: inline-flex; }
}

@media (max-width: 960px) {
  .tel-cabecera { display: none; }

  .portada__rejilla { grid-template-columns: 1fr; }
  .portada__texto { max-width: none; }
  .escena { justify-items: start; }
  .diente3d { width: min(72%, 300px); }
  .datos-duros {
    position: static; max-width: none; margin-top: 1.25rem;
    box-shadow: none; background: var(--fondo-2);
  }
  .portada::before { right: -20vw; top: 18vh; width: 90vw; }

  .miedos__par { grid-template-columns: 1fr; gap: 0; }
  .miedo--b { margin-top: 2rem; border-top: 0; padding-top: 2rem; position: relative; }
  .miedo--b::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--acento-2);
  }

  .donde__rejilla { grid-template-columns: 1fr; }
  .mapa { position: static; }

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

@media (max-width: 760px) {
  body { font-size: 1.0625rem; }  /* 17 px mínimo */
  .cabecera__acciones .boton { display: none; }

  .portada__figura img { aspect-ratio: 16 / 10; }
  .ficha:nth-child(2), .ficha:nth-child(3) { margin-left: 0; }
  .ficha { flex-direction: row; gap: 1rem; }
  .ficha img { width: 84px; height: 84px; }

  .paso--saliente { margin-right: 0; }
  .donde__fotos { grid-template-columns: 1fr; }
  .pie__rejilla { grid-template-columns: 1fr; gap: 2rem; }
  .acordeon__panel p { padding-right: 1rem; }

  /* Objetivos táctiles de 44 px también en el pie */
  .pie ul a, .pie ul .enlace-boton { display: inline-flex; align-items: center; min-height: 44px; }
  .pie__linea .enlace-boton { padding-block: .5rem; }

  /* La tabla de precios se reconstruye como fichas verticales.
     Sigue siendo un <table> semántico: solo cambia la presentación. */
  .tabla-precios thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabla-precios, .tabla-precios tbody, .tabla-precios tr, .tabla-precios th, .tabla-precios td { display: block; width: 100%; }
  .tabla-precios .grupo th { padding: .8rem 1rem; }
  .tabla-precios .fila {
    border-top: 1px solid var(--linea); padding: 1rem 1rem 1.1rem;
    background: var(--fondo);
  }
  .tabla-precios tbody tr:nth-child(even of .fila) { background: var(--fondo-2); }
  .tabla-precios .fila th, .tabla-precios .fila td { border: 0; padding: 0; }
  .tabla-precios .fila th {
    font-family: 'Newsreader', Georgia, serif; font-size: 1.18rem;
    font-weight: 500; margin-bottom: .6rem;
  }
  .tabla-precios .fila td { padding-left: 0; margin-bottom: .35rem; font-size: .97rem; }
  .tabla-precios .fila td::before {
    content: attr(data-label) ': ';
    font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--tinta-suave); display: block;
  }
  .tabla-precios .precio { font-size: 1.15rem; }

  /* Nunca más ancho que la pantalla: con left+right se dimensionaba contra
     el bloque contenedor y desbordaba 72 px a 360 px. */
  .flotante {
    left: auto; right: 1rem;
    width: max-content; max-width: calc(100vw - 2rem);
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .contenedor, .contenedor--estrecho, .portada__rejilla, .cabecera__interior { width: min(100% - 1.75rem, var(--ancho)); }
  h1 { font-size: 2.1rem; }
  .marca__nombre { font-size: 1.02rem; }
  .resultado__acciones .boton, .formulario__botones .boton { width: 100%; }
}

/* ============================================================
   MOVIMIENTO REDUCIDO — el sitio se ve completo y quieto
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .revelar { opacity: 1 !important; transform: none !important; }
  .aparece { animation: none !important; }
  .flotante { transition: none !important; }
}


/* ═══ OBJETIVOS TÁCTILES · fase 2 ═════════════════════════════════════
   Enlaces del pie y de la ficha de dirección a 18-20 px de alto, la casilla
   del consentimiento a 22×22 y la marca de cabecera a 32. Todos por debajo
   de los 44 px del dedo. Se gana alto con relleno, sin tocar la tipografía.
   Justificación: I1.7.                                                    */
.marca,
.donde__info address a,
.pie address a,
.pie a,
.enlace-boton {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* La casilla del consentimiento: se agranda el cuadro y su etiqueta entera
   pasa a ser zona pulsable, que es lo que espera el dedo. */
.campo input[type="checkbox"] { width: 24px; height: 24px; }
.campo label { display: inline-flex; align-items: center; min-height: 44px; gap: .6rem; }
/* El enlace a la política dentro de la etiqueta se quedaba en 43 px. */
.campo label a { display: inline-flex; align-items: center; min-height: 44px; }
