/* Clínica Dental Santa Librada — estilos base */
:root {
  --crema: #FFF3E0;
  --crema2: #FFE4BA;
  --blanco: #FFFCF6;
  --tinta: #14264A;
  --naranja: #F59E1B;
  --azul: #2D7DDB;
  --azul-f: #1D5DB3;
  --menta: #00BFA5;
  --menta-c: #9BEADD;
  --rosa: #E91E8C;
  --rosa-f: #B8116B;
  --amarillo: #FFD65A;
  --wa: #25D366;
  --titulo: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --texto: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --borde: 3px solid var(--tinta);
  --sombra: 5px 5px 0 var(--tinta);
  --radio: 24px;
  --res: var(--amarillo);
  --foco: var(--rosa-f);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--crema);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }

.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salto { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--tinta); color: var(--blanco); padding: 12px 18px; border-radius: 12px; }
.salto:focus { top: 12px; }

main { overflow-x: clip; }
.cont { width: min(1120px, 100% - 32px); margin-inline: auto; }
.cont-angosto { width: min(720px, 100% - 32px); }
.ico { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300; background: var(--crema);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; font-family: var(--titulo); font-size: 1.15rem; line-height: 1.1; color: var(--tinta);
  pointer-events: none;
  animation: intro-fuera .45s ease 1.15s forwards;
}
.intro strong { font-size: 1.9rem; font-weight: 700; }
.intro svg { animation: intro-pop .8s cubic-bezier(.2, 1.5, .4, 1) both; }
.intro p { animation: intro-sube .6s ease .25s both; }
@keyframes intro-pop { from { scale: .3; rotate: -20deg; opacity: 0; } to { scale: 1; rotate: 0deg; opacity: 1; } }
@keyframes intro-sube { from { translate: 0 16px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes intro-fuera { to { opacity: 0; visibility: hidden; } }

/* ---------- Cabecera ---------- */
.cab {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px; min-height: 64px;
  background: rgba(255, 243, 224, .94); backdrop-filter: blur(8px);
  border-bottom: var(--borde);
}
.marca { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.marca-txt { font-family: var(--titulo); font-weight: 700; font-size: 1.12rem; line-height: 1; display: flex; flex-direction: column; }
.marca-txt small { font-family: var(--texto); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--azul-f); margin-bottom: 2px; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 999px; font-size: .98rem; }
.nav a:hover { background: var(--amarillo); }
@media (min-width: 980px) { .nav { display: flex; } .cab { padding-inline: 28px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 22px;
  font-family: var(--titulo); font-weight: 600; font-size: 1.08rem; line-height: 1.15; text-align: center; text-decoration: none;
  border: var(--borde); border-radius: 999px;
  background: var(--blanco); color: var(--tinta);
  box-shadow: 0 5px 0 var(--tinta);
  transition: translate .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { translate: 0 -2px; box-shadow: 0 7px 0 var(--tinta); }
.btn:active { translate: 0 4px; box-shadow: 0 1px 0 var(--tinta); }
.btn-wa { background: var(--wa); }
.btn-tinta { background: var(--tinta); color: var(--blanco); box-shadow: 0 5px 0 var(--naranja); }
.btn-tinta:hover { box-shadow: 0 7px 0 var(--naranja); }
.btn-tinta:active { box-shadow: 0 1px 0 var(--naranja); }
.btn-linea { background: var(--blanco); }
.btn-crema { background: var(--blanco); }
.btn-linea-clara { background: transparent; color: var(--blanco); border-color: var(--blanco); box-shadow: 0 5px 0 rgba(255, 252, 246, .35); }
.btn-linea-clara:hover { box-shadow: 0 7px 0 rgba(255, 252, 246, .35); }
.btn-chico { min-height: 44px; padding: 8px 16px; font-size: .98rem; box-shadow: 0 4px 0 var(--naranja); }
.btn-ancho { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; }

/* ---------- Hero ---------- */
.hero { padding: 22px 0 34px; position: relative; overflow: hidden; }
.hero-in { width: min(1120px, 100% - 32px); margin-inline: auto; display: grid; gap: 26px; align-items: center; }
.estado {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 11px; border: 2.5px solid var(--tinta); border-radius: 999px;
  background: var(--blanco); font-weight: 700; font-size: .93rem; line-height: 1.25;
}
.estado-pto { width: 12px; height: 12px; border-radius: 50%; background: #9aa3b5; flex: none; }
.estado.abierto .estado-pto { background: #0c9a50; animation: late 1.8s ease-in-out infinite; }
.estado.cerrado .estado-pto { background: var(--rosa-f); }
@keyframes late { 0%, 100% { box-shadow: 0 0 0 0 rgba(12, 154, 80, .55); } 60% { box-shadow: 0 0 0 9px rgba(12, 154, 80, 0); } }

h1 {
  font-family: var(--titulo); font-weight: 700;
  font-size: clamp(3.1rem, 14.6vw, 5.8rem); line-height: .98; letter-spacing: -.015em;
  margin: 16px 0 16px;
}
h1 .pal { display: inline-block; white-space: nowrap; }
h1 .ch { display: inline-block; }
.marcador { display: inline-block; background: var(--naranja); padding: 0 .14em .04em; margin-inline: -.06em; border-radius: .2em; rotate: -2.5deg; }
.hero-sub { font-size: 1.14rem; max-width: 34em; }
.hero-cta { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 560px) { .hero-cta { display: flex; flex-wrap: wrap; } }

.hero-arte { position: relative; width: min(350px, 92vw); aspect-ratio: 1 / .94; margin-inline: auto; }
.hero-sol { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gira { transform-origin: 170px 150px; animation: gira 40s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.hero-foto { position: absolute; left: 1%; top: 13%; width: 78%; margin: 0; rotate: -4deg; }
.hero-foto img { width: 100%; height: auto; aspect-ratio: 630 / 480; object-fit: cover; border: var(--borde); border-radius: 44% 56% 48% 52% / 56% 50% 50% 44%; box-shadow: 6px 6px 0 var(--tinta); background: var(--crema2); }
.hero-foto figcaption { position: absolute; left: 36%; bottom: -15px; rotate: 4deg; background: var(--blanco); border: 2.5px solid var(--tinta); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.hero-foto2 { position: absolute; right: 0; bottom: 0; width: 35%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: var(--borde); box-shadow: 4px 4px 0 var(--tinta); }
.hero-logo { position: absolute; right: 0; top: 0; width: 37%; background: var(--blanco); border: 2.5px solid var(--tinta); border-radius: 16px; padding: 7px 9px; rotate: 6deg; box-shadow: 3px 3px 0 var(--tinta); }
.hero-logo img { width: 100%; height: auto; }
.hero-santi { position: absolute; width: 31%; left: -3%; bottom: -5%; animation: flota 4.5s ease-in-out infinite; }
@keyframes flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.santi-brazo { transform-origin: 172px 98px; animation: saluda 2.4s ease-in-out infinite; }
@keyframes saluda { 0%, 60%, 100% { transform: rotate(0deg); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-10deg); } }
.santi-ojos { transform-origin: 110px 86px; animation: parpadea 4.2s infinite; }
@keyframes parpadea { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.chispa { position: absolute; width: 30px; height: 30px; color: var(--rosa); animation: brilla 2.6s ease-in-out infinite; }
.chispa.c1 { left: 6%; top: 0; }
.chispa.c2 { right: 2%; top: 46%; color: var(--azul); width: 24px; height: 24px; animation-delay: .7s; }
.chispa.c3 { left: 42%; bottom: -4%; color: var(--menta); width: 22px; height: 22px; animation-delay: 1.3s; }
@keyframes brilla { 0%, 100% { scale: .55; opacity: .5; } 50% { scale: 1.1; opacity: 1; } }
.hero-globo {
  position: absolute; right: -4%; top: 2%; rotate: 5deg;
  background: var(--blanco); border: 2.5px solid var(--tinta); border-radius: 16px 16px 16px 4px;
  padding: 6px 12px; font-family: var(--titulo); font-weight: 600; font-size: .95rem; box-shadow: 3px 3px 0 var(--tinta);
}

.confianza { width: min(1120px, 100% - 32px); margin: 30px auto 0; display: grid; gap: 10px; }
.confianza li {
  background: var(--blanco); border: 2.5px solid var(--tinta); border-radius: 18px; padding: 11px 16px;
  font-weight: 600; line-height: 1.3; box-shadow: 3px 3px 0 var(--tinta);
}
.confianza strong { font-family: var(--titulo); font-size: 1.3rem; font-weight: 700; color: var(--azul-f); }
.confianza span { display: block; font-size: .9rem; font-weight: 500; }

@media (min-width: 860px) {
  .hero { padding: 56px 0 56px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; }
  .hero-arte { width: min(420px, 100%); }
  .hero-globo { font-size: 1.1rem; }
  .confianza { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
}

/* ---------- Cinta ---------- */
.cinta { background: var(--tinta); color: var(--blanco); overflow: hidden; border-block: var(--borde); }
.cinta-in { display: flex; align-items: center; gap: 22px; width: max-content; padding: 13px 0; animation: corre 30s linear infinite; font-family: var(--titulo); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.cinta-in i { font-style: normal; color: var(--naranja); }
@keyframes corre { to { translate: -50% 0; } }

/* ---------- Secciones ---------- */
.sec { padding: 64px 0 72px; position: relative; }
.sec + .sec, .cinta + .sec { border-top: var(--borde); }
.sec-azul { background: var(--azul-f); color: var(--blanco); --res: var(--naranja); --foco: var(--amarillo); }
.sec-menta { background: var(--menta-c); --res: var(--blanco); }
.sec-rosa { background: var(--rosa-f); color: var(--blanco); --res: var(--tinta); --foco: var(--amarillo); }
.sec-crema2 { background: var(--crema2); --res: var(--blanco); }
.sec-amarillo { background: var(--amarillo); --res: var(--blanco); }
.antet { font-weight: 800; font-size: .84rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.antet::before { content: ''; width: 22px; height: 4px; border-radius: 4px; background: currentColor; }
h2 { font-family: var(--titulo); font-weight: 700; font-size: clamp(2.15rem, 9.4vw, 3.5rem); line-height: 1.04; letter-spacing: -.01em; }
.subr { background: linear-gradient(transparent 58%, var(--res) 58%, var(--res) 92%, transparent 92%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sec-azul .subr { color: var(--blanco); }
.bajada { font-size: 1.12rem; margin-top: 14px; max-width: 38em; }
h3 { font-family: var(--titulo); font-weight: 600; font-size: 1.32rem; line-height: 1.15; }
.orient { margin-top: 20px; font-size: .98rem; font-weight: 600; padding: 10px 14px; border-left: 5px solid var(--tinta); background: rgba(255, 252, 246, .6); border-radius: 0 12px 12px 0; max-width: 40em; }
.orient-clara { border-left-color: var(--amarillo); background: rgba(20, 38, 74, .35); margin-bottom: 22px; }
.cont-dos { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) { .cont-dos { grid-template-columns: 1fr 1fr; gap: 56px; } .sec { padding: 92px 0 100px; } }

/* aparición al entrar en pantalla (por tiempo, sin parallax) */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Precios ---------- */
.precios { display: grid; gap: 22px; margin-top: 30px; }
@media (min-width: 640px) { .precios { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .precios { grid-template-columns: repeat(3, 1fr); } }
.precio {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 22px 20px 24px; border: var(--borde); border-radius: var(--radio); box-shadow: var(--sombra);
}
.precio .btn { margin-top: auto; width: 100%; }
.precio-ico { width: 68px; height: 68px; margin-bottom: 6px; }
.precio h3 { font-size: 1.45rem; }
.monto { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-family: var(--titulo); line-height: 1; margin: 2px 0 4px; }
.monto b { font-size: 4.6rem; font-weight: 700; letter-spacing: -.02em; line-height: .95; }
.monto small { font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.monto-txt b { font-size: 1.7rem; letter-spacing: 0; line-height: 1.1; }
.precio .nota { font-size: 1rem; margin-bottom: 14px; }
.p-menta { background: var(--menta); }
.p-naranja { background: var(--naranja); }
.p-azul { background: var(--azul-f); color: var(--blanco); --foco: var(--amarillo); }
.p-rosa { background: var(--rosa-f); color: var(--blanco); --foco: var(--amarillo); }
.p-amarillo { background: var(--amarillo); }
.p-crema { background: var(--blanco); border-style: dashed; box-shadow: none; }
.sello {
  position: absolute; top: -16px; right: -6px; rotate: 9deg;
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--amarillo); color: var(--tinta); border: var(--borde); box-shadow: 3px 3px 0 var(--tinta);
  font-family: var(--titulo); font-weight: 700; font-size: 1.02rem; line-height: 1.05;
  animation: sello-late 3s ease-in-out infinite;
}
@keyframes sello-late { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
.pagos { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; }
.pagos b { font-family: var(--titulo); font-weight: 600; background: var(--blanco); border: 2.5px solid var(--tinta); border-radius: 999px; padding: 6px 16px; }

/* ---------- Reserva ---------- */
.reserva { margin-top: 30px; background: var(--blanco); color: var(--tinta); border: var(--borde); border-radius: var(--radio); box-shadow: 6px 6px 0 var(--tinta); padding: 20px 16px; display: grid; gap: 26px; --foco: var(--rosa-f); max-width: 720px; }
@media (min-width: 640px) { .reserva { padding: 30px; } }
.paso legend { font-family: var(--titulo); font-weight: 600; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.num { width: 38px; height: 38px; border-radius: 50%; background: var(--naranja); border: 2.5px solid var(--tinta); display: grid; place-items: center; font-weight: 700; flex: none; }
.opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opciones-3 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .opciones-3 { grid-template-columns: repeat(3, 1fr); } }
.opc {
  min-height: 60px; padding: 9px 12px; text-align: left; line-height: 1.2;
  background: var(--crema); border: 2.5px solid var(--tinta); border-radius: 16px;
  font-weight: 700; font-size: 1rem; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  transition: background-color .15s, translate .15s, box-shadow .15s;
}
.opc small { font-weight: 600; font-size: .86rem; opacity: .85; }
.opc:hover { background: var(--crema2); }
.opc[aria-pressed="true"], .dia[aria-pressed="true"], .hora[aria-pressed="true"] { background: var(--naranja); box-shadow: 3px 3px 0 var(--tinta); translate: -1px -1px; }
.dias { display: flex; gap: 9px; overflow-x: auto; padding: 4px 4px 12px; margin-inline: -4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.dia {
  flex: none; width: 70px; min-height: 84px; scroll-snap-align: start;
  background: var(--crema); border: 2.5px solid var(--tinta); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-weight: 700; font-size: .9rem;
}
.dia b { font-family: var(--titulo); font-size: 1.75rem; font-weight: 700; }
.horas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 8px; }
@media (min-width: 560px) { .horas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hora { min-height: 50px; background: var(--crema); border: 2.5px solid var(--tinta); border-radius: 14px; font-weight: 700; font-size: 1rem; }
.ayuda { font-size: .92rem; margin-top: 12px; opacity: .9; }
.campo { display: grid; gap: 8px; font-weight: 700; }
.campo input { height: 56px; padding: 0 16px; border: 2.5px solid var(--tinta); border-radius: 14px; background: var(--crema); font-size: 1.1rem; font-weight: 600; width: 100%; }
.campo input::placeholder { color: #5b6781; }
.resumen { background: var(--tinta); color: var(--blanco); border-radius: 20px; padding: 18px 16px 20px; display: grid; gap: 16px; --foco: var(--amarillo); }
#r-resumen { font-size: 1.12rem; font-weight: 600; line-height: 1.4; }
#r-resumen b { color: var(--amarillo); }
.resumen .btn-wa { box-shadow: 0 5px 0 var(--naranja); }
.honesto { font-size: .93rem; opacity: .95; }
.sacude { animation: sacude .4s; }
@keyframes sacude { 25% { translate: -6px 0; } 50% { translate: 6px 0; } 75% { translate: -4px 0; } }

/* ---------- Mapa de la sonrisa ---------- */
.mapa { margin-top: 28px; background: var(--blanco); border: var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px; display: grid; gap: 18px; }
@media (min-width: 860px) { .mapa { grid-template-columns: 1.1fr .9fr; padding: 28px; gap: 12px 32px; } .mapa-boca { grid-row: span 2; align-self: center; } }
.mapa-boca svg { width: 100%; height: auto; overflow: visible; }
.diente-z { cursor: pointer; outline: none; }
.diente-z .forma { transition: fill .15s; }
.diente-z:hover .forma, .diente-z:focus-visible .forma { stroke: var(--rosa); stroke-width: 4; }
.diente-z.sel .forma { stroke: var(--rosa); stroke-width: 5; }
.encia-z { cursor: pointer; outline: none; }
.encia-z:hover, .encia-z:focus-visible, .encia-z.sel { stroke: var(--rosa); }
.mapa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 8px 15px; border: 2.5px solid var(--tinta); border-radius: 999px; background: var(--crema); font-weight: 700; font-size: .96rem; }
.chip[aria-pressed="true"] { background: var(--tinta); color: var(--blanco); }
.mapa-info { background: var(--crema); border: 2.5px dashed var(--tinta); border-radius: 18px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.mapa-info .trat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.mapa-info .trat span { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; width: 100%; }
.mapa-info .trat b { font-family: var(--titulo); font-size: 1.25rem; font-weight: 600; }
.mapa-info .trat em { font-style: normal; font-family: var(--titulo); font-weight: 700; font-size: 1.5rem; background: var(--amarillo); border: 2.5px solid var(--tinta); border-radius: 12px; padding: 0 10px; }
.mapa-info .btn { margin-top: 8px; }

/* ---------- Ortodoncia ---------- */
.orto-cab { display: grid; gap: 20px; }
.sello-g {
  width: 150px; height: 150px; border-radius: 50%; background: var(--amarillo); color: var(--tinta);
  border: var(--borde); box-shadow: 5px 5px 0 var(--tinta); rotate: -8deg;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  font-family: var(--titulo); font-weight: 600; text-transform: uppercase; font-size: .95rem; letter-spacing: .04em; justify-self: end; margin-right: 8px;
}
.sello-g b { font-size: 3.5rem; font-weight: 700; }
@media (min-width: 720px) { .orto-cab { grid-template-columns: 1fr auto; align-items: center; } }
.linea { margin: 30px 0 4px; display: grid; gap: 16px; position: relative; padding-left: 22px; }
.linea::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; border-left: 4px dashed var(--amarillo); }
.linea li { position: relative; background: var(--blanco); color: var(--tinta); border: var(--borde); border-radius: 20px; padding: 16px; display: grid; grid-template-columns: 58px 1fr; gap: 4px 14px; align-items: center; box-shadow: 4px 4px 0 var(--tinta); }
.linea li::before { content: ''; position: absolute; left: -26px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--amarillo); border: 3px solid var(--tinta); }
.linea svg { width: 58px; height: 58px; grid-row: span 2; }
.linea h3 { align-self: end; }
.linea p { font-size: 1rem; align-self: start; }
@media (min-width: 980px) {
  .linea { grid-template-columns: repeat(4, 1fr); padding-left: 0; padding-top: 26px; }
  .linea::before { left: 8px; right: 8px; top: 5px; bottom: auto; border-left: 0; border-top: 4px dashed var(--amarillo); }
  .linea li { grid-template-columns: 1fr; align-content: start; }
  .linea li::before { left: 50%; top: -30px; margin: 0 0 0 -8px; }
  .linea svg { grid-row: auto; }
}

/* ---------- Antes y después ---------- */
.casos { margin-top: 24px; padding: 18px; border: 2.5px dashed var(--tinta); border-radius: 20px; background: var(--blanco); display: grid; gap: 10px; justify-items: start; }
.ad { position: relative; aspect-ratio: 320 / 260; border: var(--borde); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; background: var(--menta); }
.ad-capa { position: absolute; inset: 0; }
.ad-capa svg { width: 100%; height: 100%; }
.ad-antes { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ad-et, .ad-ilus { position: absolute; font-family: var(--titulo); font-weight: 600; background: var(--blanco); border: 2.5px solid var(--tinta); border-radius: 999px; padding: 3px 13px; font-size: .98rem; }
.ad-et-a { left: 12px; top: 12px; }
.ad-et-d { right: 12px; top: 12px; }
.ad-ilus { left: 50%; bottom: 10px; translate: -50% 0; font-family: var(--texto); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; z-index: 3; }
.ad-mango { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 5px; margin-left: -2.5px; background: var(--tinta); z-index: 2; pointer-events: none; }
.ad-mango svg { max-width: none; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; padding: 12px; background: var(--amarillo); border: var(--borde); border-radius: 50%; color: var(--tinta); }
.ad input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ad:focus-within { outline: 3px solid var(--foco); outline-offset: 4px; }

/* ---------- Prótesis ---------- */
.protesis { margin-top: 28px; display: grid; gap: 14px; }
@media (min-width: 720px) { .protesis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .protesis { grid-template-columns: repeat(3, 1fr); } }
.prot { background: var(--blanco); border: var(--borde); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; box-shadow: 4px 4px 0 var(--tinta); }
.prot svg { width: 92px; height: 92px; background: var(--crema); border-radius: 16px; border: 2.5px solid var(--tinta); }
.prot p { font-size: .98rem; margin-top: 3px; }
#protesis .btn { margin-top: 20px; }

/* ---------- Doctora ---------- */
.doc-arte { position: relative; width: min(340px, 88vw); aspect-ratio: 320 / 300; margin-inline: auto; }
.doc-fondo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gira2 { transform-origin: 160px 150px; animation: gira 55s linear infinite; }
.doc-logo { position: absolute; left: 3%; right: 3%; top: 30%; background: var(--blanco); border: var(--borde); border-radius: 20px; padding: 16px 12px; rotate: -3deg; box-shadow: 5px 5px 0 var(--rosa); }
.doc-logo img { width: 100%; height: auto; }
.doc-santi { position: absolute; width: 30%; right: -2%; bottom: -4%; rotate: 8deg; }
.doc-ig { margin-top: 16px; }
.doc-ig a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.lista-ok { margin: 18px 0 24px; display: grid; gap: 10px; font-weight: 600; }
.lista-ok li { padding-left: 34px; position: relative; }
.lista-ok li::before { content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--menta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.500l4 4 8-9' fill='none' stroke='%2314264A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border: 2px solid var(--tinta); }

/* ---------- Preguntas ---------- */
.faq { margin-top: 26px; display: grid; gap: 12px; }
.faq details { background: var(--blanco); border: var(--borde); border-radius: 18px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; min-height: 60px; padding: 14px 54px 14px 16px; position: relative; font-family: var(--titulo); font-weight: 600; font-size: 1.14rem; line-height: 1.2; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 14px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--naranja); border: 2.5px solid var(--tinta); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--rosa); color: var(--blanco); }
.faq details[open] summary { border-bottom: 2.5px dashed var(--tinta); }
.faq details p { padding: 14px 16px 18px; }

/* ---------- Recordatorio ---------- */
.recor { margin-top: 24px; background: var(--blanco); border: var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 20px 16px; display: grid; gap: 14px; }
.recor-p { font-family: var(--titulo); font-weight: 600; font-size: 1.2rem; }
.recor .opc { text-align: center; align-items: center; }
.recor-fecha { font-weight: 600; background: var(--crema); border-radius: 14px; padding: 12px 14px; border: 2.5px dashed var(--tinta); }

/* ---------- Ubicación ---------- */
.ubi { margin-top: 28px; display: grid; gap: 26px; }
@media (min-width: 860px) { .ubi { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; } }
.ubi-mapa svg { width: 100%; height: auto; border: var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); }
.m-t { font-family: var(--texto); font-weight: 800; font-size: 11.500px; fill: var(--tinta); paint-order: stroke; stroke: #fffcf6; stroke-width: 3px; stroke-linejoin: round; }
.m-t-f { font-size: 12.500px; fill: var(--azul-f); }
.pin { animation: pin 1.6s ease-in-out infinite; }
@keyframes pin { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.ubi-nota { font-size: .86rem; margin-top: 12px; }
.ubi-txt { display: grid; gap: 14px; }
.ubi-btns { display: grid; gap: 14px; margin-bottom: 10px; }
.horario { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.horario th, .horario td { padding: 11px 14px; text-align: left; background: var(--blanco); border-block: 2.5px solid var(--tinta); font-weight: 600; }
.horario th { border-left: 2.5px solid var(--tinta); border-radius: 14px 0 0 14px; text-transform: capitalize; font-weight: 700; }
.horario td { border-right: 2.5px solid var(--tinta); border-radius: 0 14px 14px 0; text-align: right; }
.horario tr.hoy th, .horario tr.hoy td { background: var(--naranja); }
.horario .et-hoy { display: inline-block; margin-left: 8px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; background: var(--tinta); color: var(--blanco); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: var(--blanco); padding: 48px 0 110px; border-top: var(--borde); --foco: var(--amarillo); }
.pie-marca { display: flex; align-items: center; gap: 12px; }
.pie-marca p { font-family: var(--titulo); font-weight: 700; font-size: 1.7rem; line-height: 1; display: flex; flex-direction: column; }
.pie-marca small { font-family: var(--texto); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--amarillo); margin-bottom: 4px; }
.pie-lema { margin-top: 14px; opacity: .92; }
.pie-enl { margin-top: 22px; display: grid; gap: 4px; }
@media (min-width: 720px) { .pie-enl { grid-template-columns: repeat(2, max-content); gap: 4px 40px; } }
.pie-enl a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; text-decoration: none; }
.pie-enl a:hover { color: var(--amarillo); }
.pie-panel { margin-top: 22px; }
.pie-panel a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--amarillo); }
.enl-notas { text-decoration: none; padding: 0 16px; opacity: .5; }
.pie-demo { margin-top: 14px; font-size: .92rem; opacity: .9; padding-top: 16px; border-top: 1px solid rgba(255, 252, 246, .25); }

/* ---------- Asistente ---------- */
.asi-btn {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 16px 0 8px;
  background: var(--naranja); border: var(--borde); border-radius: 999px; box-shadow: 0 5px 0 var(--tinta);
  font-family: var(--titulo); font-weight: 600; font-size: 1.02rem;
  transition: translate .15s;
}
.asi-btn:hover { translate: 0 -2px; }
.asi-btn[hidden] { display: none; }
.msg .btn { display: flex; width: fit-content; }
.asi-btn svg { width: 46px; height: 46px; }
.asi-panel {
  position: fixed; z-index: 90; right: 10px; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 400px; margin-left: auto; height: min(78vh, 580px);
  background: var(--blanco); border: var(--borde); border-radius: 24px; box-shadow: 6px 6px 0 var(--tinta);
  display: flex; flex-direction: column; overflow: hidden;
}
.asi-panel[hidden] { display: none; }
.asi-cab { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; background: var(--azul-f); color: var(--blanco); border-bottom: var(--borde); --foco: var(--amarillo); }
.asi-cab svg { width: 40px; height: 40px; flex: none; }
.asi-cab p { font-family: var(--titulo); font-weight: 600; line-height: 1.1; flex: 1; }
.asi-cab small { display: block; font-family: var(--texto); font-weight: 500; font-size: .8rem; opacity: .95; }
.asi-x { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--blanco); background: transparent; color: var(--blanco); font-size: 1.4rem; line-height: 1; }
.asi-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--crema); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; border: 2.5px solid var(--tinta); font-size: 1rem; line-height: 1.4; }
.msg a { font-weight: 700; }
.msg-b { background: var(--blanco); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-u { background: var(--amarillo); border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 600; }
.msg .btn { margin-top: 10px; min-height: 46px; font-size: 1rem; padding: 8px 16px; }
.asi-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; border-top: 2.5px solid var(--tinta); background: var(--blanco); }
.asi-chips .chip { flex: none; min-height: 44px; }
.asi-form { display: flex; gap: 8px; padding: 0 12px 12px; background: var(--blanco); }
.asi-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2.5px solid var(--tinta); border-radius: 999px; background: var(--crema); font-size: 1rem; }
.asi-form button { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 2.5px solid var(--tinta); background: var(--naranja); font-weight: 800; font-size: 1.2rem; }

/* ---------- Panel y notas ---------- */
.pag { padding: 26px 0 80px; }
.pag h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); margin: 10px 0 10px; }
.aviso-demo { background: var(--amarillo); border: var(--borde); border-radius: 16px; padding: 12px 14px; font-weight: 600; margin: 16px 0 22px; box-shadow: 4px 4px 0 var(--tinta); }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cifra { background: var(--blanco); border: var(--borde); border-radius: 18px; padding: 12px 10px; text-align: center; font-weight: 700; font-size: .86rem; line-height: 1.2; }
.cifra b { display: block; font-family: var(--titulo); font-size: 2.3rem; line-height: 1; color: var(--azul-f); }
.bloque { margin-top: 30px; }
.bloque h2 { font-size: 1.7rem; margin-bottom: 4px; }
.bloque > p { font-size: .98rem; margin-bottom: 14px; }
.fichas { display: grid; gap: 12px; }
.ficha { background: var(--blanco); border: var(--borde); border-radius: 18px; padding: 14px; display: grid; gap: 8px; }
.ficha.nueva { background: #FFF0CC; box-shadow: 4px 4px 0 var(--naranja); }
.ficha-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ficha-cab strong { font-family: var(--titulo); font-weight: 600; font-size: 1.18rem; }
.et { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--tinta); border-radius: 999px; padding: 2px 9px; background: var(--crema); }
.et-ej { background: var(--crema2); }
.et-web { background: var(--menta); }
.et-ok { background: var(--menta-c); }
.et-nueva { background: var(--rosa-f); color: var(--blanco); }
.ficha-acc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ficha-acc .btn { min-height: 46px; font-size: .98rem; padding: 8px 16px; flex: 1 1 auto; }
.btn-plano { background: transparent; border: 0; box-shadow: none; text-decoration: underline; font-family: var(--texto); font-weight: 700; min-height: 44px; padding: 8px; }
.btn-plano:hover { box-shadow: none; translate: 0 0; }
.agenda li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: center; padding: 11px 12px; background: var(--blanco); border: 2.5px solid var(--tinta); border-radius: 14px; }
.agenda { display: grid; gap: 8px; }
.agenda time { font-family: var(--titulo); font-weight: 600; }
.agenda .libre { background: transparent; border-style: dashed; opacity: .8; }
.agenda small { display: block; font-size: .86rem; }
.vacio { padding: 16px; border: 2.5px dashed var(--tinta); border-radius: 16px; font-weight: 600; }
.notas-l { display: grid; gap: 12px; margin-top: 18px; }
.notas-l li { background: var(--blanco); border: var(--borde); border-radius: 16px; padding: 14px 16px; }
.notas-l strong { font-family: var(--titulo); font-weight: 600; font-size: 1.12rem; display: block; margin-bottom: 2px; }
.volver { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- Fotos reales y logo ---------- */
.intro img { width: 210px; height: auto; }
.intro p { font-family: var(--texto); font-weight: 800; font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; }
.marca img { height: 46px; width: auto; }
.orto-foto { position: relative; width: min(250px, 66%); justify-self: center; margin: 6px 0 22px; }
.orto-foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: var(--borde); border-radius: 28px; box-shadow: 7px 7px 0 var(--amarillo); rotate: 3deg; }
.orto-foto .sello-g { position: absolute; left: -44px; bottom: -26px; margin: 0; width: 132px; height: 132px; }
.orto-foto .sello-g b { font-size: 3rem; }
@media (min-width: 720px) { .orto-foto { width: 250px; margin-right: 20px; } }
.ad { aspect-ratio: 3 / 2; background: var(--crema2); }
.ad-capa img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ad-col { display: grid; gap: 16px; min-width: 0; }
.ad-casos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ad-caso { padding: 0; border: 2.5px solid var(--tinta); border-radius: 14px; overflow: hidden; background: var(--blanco); display: grid; text-align: center; transition: translate .15s, box-shadow .15s; }
.ad-caso img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 2.5px solid var(--tinta); }
.ad-caso span { font-weight: 800; font-size: .78rem; line-height: 1.1; padding: 6px 2px; min-height: 34px; display: grid; place-items: center; }
.ad-caso[aria-pressed="true"] { background: var(--naranja); box-shadow: 3px 3px 0 var(--tinta); translate: -1px -1px; }
.prot-fotos { display: flex; justify-content: center; max-width: 540px; margin: 28px auto 8px; }
.prot-fotos img { width: 34%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: var(--borde); box-shadow: 4px 4px 0 var(--tinta); background: #fff; margin-inline: -1.5%; }
.prot-fotos img:nth-child(2) { translate: 0 18px; position: relative; z-index: 1; }
.protesis { margin-top: 44px; }
.prot img { width: 92px; height: 92px; object-fit: cover; border-radius: 16px; border: 2.5px solid var(--tinta); background: #fff; }
.consejos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0 44px; }
.consejos li { background: var(--blanco); border: var(--borde); border-radius: 20px; padding: 14px; display: grid; gap: 8px; align-content: start; box-shadow: 4px 4px 0 var(--tinta); }
.consejos li:nth-child(2n) { rotate: 1.2deg; }
.consejos li:nth-child(2n+1) { rotate: -1deg; }
.consejos svg { width: 54px; height: 54px; }
.consejos p { font-family: var(--titulo); font-weight: 600; font-size: 1.1rem; line-height: 1.15; }
@media (min-width: 720px) { .consejos { grid-template-columns: repeat(4, 1fr); } }
.faq-tit { font-size: 1.8rem; }
.faq { margin-top: 16px; }
.pie-marca img { width: 180px; height: auto; background: var(--blanco); border-radius: 18px; padding: 10px 16px; }

@media (prefers-reduced-motion: reduce) {
  /* se respeta la preferencia: sin desplazamientos ni bucles, solo desvanecidos cortos */
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity !important; transition-duration: .35s !important; transition-delay: 0s !important; }
  .intro { display: none; }
  .js .reveal { translate: none; scale: none; }
}
