/* Clínica Dental Santa Librada — capa artística (ronda 2): cuadros de color, divisores, fondos a mano y más movimiento.
   Todo el movimiento es por tiempo o al entrar en pantalla; nada va ligado al scroll. */
:root {
  --marino: #14264A; --celeste: #CFE4FF; --magenta: #B8116B; --verde: #BDEFD0; --menta-m: #5FD9C6; --rosa-s: #FFD3E6;
  --mano: 'Caveat', 'Segoe Print', cursive;
  --t-muelas: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path transform='translate(12 10) scale(.3)' stroke-width='10' d='M100 34C80 16 30 18 30 72c0 34 16 48 22 86 3 24 24 27 28 0 3-19 10-30 20-30s17 11 20 30c4 27 25 24 28 0 6-38 22-52 22-86 0-54-50-56-70-38Z'/><path d='M146 22l5 12 12 5-12 5-5 12-5-12-12-5 12-5Z'/><path d='M30 132q22 22 44 0'/><circle cx='104' cy='96' r='6'/><path d='M172 142v16M164 150h16'/><path transform='translate(112 124) rotate(18) scale(.22)' stroke-width='13' d='M100 34C80 16 30 18 30 72c0 34 16 48 22 86 3 24 24 27 28 0 3-19 10-30 20-30s17 11 20 30c4 27 25 24 28 0 6-38 22-52 22-86 0-54-50-56-70-38Z'/><path d='M84 56q8-10 16 0t16 0'/><circle cx='24' cy='182' r='3' fill='black'/><circle cx='176' cy='92' r='3' fill='black'/></svg>");
  --t-higiene: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><rect x='20' y='44' width='74' height='12' rx='6'/><path d='M62 44V30M72 44V30M82 44V30M90 44V32'/><path d='M140 36c30-10 42 28 12 30s-22 38 8 34'/><circle cx='60' cy='150' r='15'/><path d='M71 161l26 26'/><path d='M168 150l4 10 10 4-10 4-4 10-4-10-10-4 10-4Z'/><path d='M120 110c-8 12-8 20 0 20s8-8 0-20Z'/><circle cx='196' cy='60' r='3' fill='black'/><circle cx='20' cy='108' r='3' fill='black'/></svg>");
  --t-burbujas: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke='black' stroke-width='3'><circle cx='30' cy='40' r='16'/><circle cx='120' cy='30' r='8'/><circle cx='150' cy='112' r='22'/><circle cx='70' cy='130' r='10'/><circle cx='20' cy='160' r='6'/><circle cx='100' cy='80' r='5'/><path d='M22 34a9 9 0 0 1 8-6M140 100a12 12 0 0 1 10-8' stroke-linecap='round'/></svg>");
  --t-curvas: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='100' fill='none' stroke='black' stroke-width='2.500' stroke-linecap='round'><path d='M0 20q30-22 60 0t60 0 60 0 60 0M0 50q30 22 60 0t60 0 60 0 60 0M0 80q30-22 60 0t60 0 60 0 60 0'/></svg>");
  --t-confeti: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 24l12 8M96 18l-6 14M140 60l12-6M30 90l4 14M84 76l14 4M124 128l-10 10M52 140l12-4'/><circle cx='60' cy='52' r='4' fill='black'/><circle cx='136' cy='100' r='4' fill='black'/><circle cx='18' cy='130' r='3' fill='black'/><path d='M108 96l8 12h-16Z'/></svg>");
  --d-ola: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0 0H1200V18C1050 66 900 -8 750 28S450 66 300 28 100 8 0 38Z'/></svg>");
  --d-curva: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'><path d='M0 0H1200V8C820 86 380 62 0 18Z'/></svg>");
  --d-rasga: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 50' preserveAspectRatio='none'><path d='M0 0H1200V30L1160 38 1120 22 1085 44 1040 26 1000 40 960 20 925 44 880 28 840 42 800 24 760 44 715 30 680 45 640 26 600 40 560 22 520 44 480 30 440 44 400 24 360 42 320 28 280 45 240 26 200 40 160 22 120 44 80 30 40 44 0 28Z'/></svg>");
  --d-colinas: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0 0H1200V44C1120 4 1010 0 900 40S700 78 600 40 420 2 300 40 100 76 0 40Z'/></svg>");
  --d-sesgo: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 64' preserveAspectRatio='none'><path d='M0 0H1200V8L0 58Z'/></svg>");
  --d-feston: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26'><path d='M0 0H44V2A22 20 0 0 1 0 2Z'/></svg>");
  --d-nubes: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'><path d='M0 0H120V10A22 22 0 0 1 82 20 26 26 0 0 1 36 22 20 20 0 0 1 0 10Z'/></svg>");
  --d-dientes: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 36'><path d='M3 0H43V18Q43 31 31 31H15Q3 31 3 18Z'/></svg>");
  --d-zig: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'><path d='M0 0H28L14 13Z'/></svg>");
}

main { position: relative; }
main::after { /* grano sutil de papel sobre todo */
  content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* ---------- Cuadros: cada sección con su color, patrón y mancha ---------- */
.sec, .hero { position: relative; overflow: clip; isolation: isolate; }
.sec { border-top: 0; }
.sec > .cont, .hero-in, .confianza { position: relative; z-index: 1; }
.sec::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--pat-c, transparent); opacity: var(--pat-o, .15);
  -webkit-mask: var(--pat) 0 0 / var(--pat-s, 200px) repeat; mask: var(--pat) 0 0 / var(--pat-s, 200px) repeat;
}
.sec::after, .hero::before, .hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(520px, 115vw); aspect-ratio: 1;
  background: var(--blob-c, transparent); opacity: var(--blob-o, .5);
  top: var(--blob-t, -10%); right: var(--blob-r, -34%); bottom: var(--blob-b, auto); left: var(--blob-l, auto);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  animation: mancha 18s ease-in-out infinite alternate;
}
@keyframes mancha {
  to { border-radius: 42% 58% 44% 56% / 60% 42% 58% 40%; rotate: 14deg; }
}
.hero { background: var(--crema); }
.hero::before { --blob-c: var(--amarillo); --blob-o: .75; --blob-t: -22%; --blob-r: -42%; }
.hero::after { --blob-c: var(--menta-m); --blob-o: .5; --blob-t: auto; --blob-b: -30%; --blob-r: auto; --blob-l: -48%; animation-duration: 23s; }
.hero-in::before { /* trama de puntos tipo halftone */
  content: ''; position: absolute; z-index: -1; left: -24px; top: 34%; width: 190px; height: 190px; pointer-events: none;
  background: radial-gradient(circle, var(--azul) 2.2px, transparent 2.7px) 0 0 / 15px 15px; opacity: .3;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%);
}
.s-precios { background: var(--azul-f); color: var(--blanco); --res: var(--magenta); --foco: var(--amarillo); --pat: var(--t-muelas); --pat-c: #fff; --pat-o: .13; --blob-c: var(--azul); --blob-o: .55; }
.s-cita { background: var(--amarillo); --res: var(--blanco); --blob-c: var(--naranja); --blob-o: .5; --blob-t: auto; --blob-b: -16%; --blob-r: auto; --blob-l: -40%; }
.s-cita::before { background: radial-gradient(circle, var(--naranja) 2.4px, transparent 2.9px) 0 0 / 17px 17px; opacity: .6; -webkit-mask: linear-gradient(115deg, #000, transparent 38%, transparent 62%, #000); mask: linear-gradient(115deg, #000, transparent 38%, transparent 62%, #000); }
.s-mapa { background: var(--menta-m); --res: var(--blanco); --pat: var(--t-burbujas); --pat-c: #fff; --pat-o: .5; --pat-s: 180px; --blob-c: #9BEADD; --blob-o: .7; }
.s-orto { background: var(--naranja); --res: var(--amarillo); --pat: var(--t-curvas); --pat-c: var(--tinta); --pat-o: .1; --pat-s: 240px 100px; --blob-c: var(--amarillo); --blob-o: .6; --blob-r: auto; --blob-l: -40%; --blob-t: 30%; }
.s-antes { background: var(--marino); color: var(--blanco); --res: var(--magenta); --foco: var(--amarillo); --blob-c: transparent; }
.s-antes::before { background: radial-gradient(60% 46% at 74% 46%, rgba(45, 125, 219, .7), transparent 72%), radial-gradient(46% 36% at 6% 92%, rgba(233, 30, 140, .4), transparent 72%), radial-gradient(30% 22% at 20% 8%, rgba(0, 191, 165, .3), transparent 72%); opacity: 1; -webkit-mask: none; mask: none; }
.s-prot { background: var(--rosa-s); --res: var(--blanco); --pat: var(--t-confeti); --pat-c: var(--magenta); --pat-o: .2; --pat-s: 160px; --blob-c: #FFB3D0; --blob-o: .7; }
.s-doc { background: var(--crema); --res: var(--amarillo); --blob-c: transparent; }
.s-doc::before {
  opacity: 1;
  background: repeating-radial-gradient(circle at 0 100%, transparent 0 30px, rgba(245, 158, 27, .45) 30px 35px) left bottom / 340px 340px no-repeat, repeating-radial-gradient(circle at 100% 0, transparent 0 30px, rgba(45, 125, 219, .32) 30px 35px) right top / 300px 300px no-repeat;
  -webkit-mask: radial-gradient(circle at 0 100%, #000 339px, transparent 340px) left bottom / 340px 340px no-repeat, radial-gradient(circle at 100% 0, #000 299px, transparent 300px) right top / 300px 300px no-repeat;
  mask: radial-gradient(circle at 0 100%, #000 339px, transparent 340px) left bottom / 340px 340px no-repeat, radial-gradient(circle at 100% 0, #000 299px, transparent 300px) right top / 300px 300px no-repeat;
}
.s-cuida { background: var(--celeste); --res: var(--blanco); --pat: var(--t-muelas); --pat-c: var(--azul); --pat-o: .24; --blob-c: #fff; --blob-o: .55; --blob-t: 40%; }
.s-recor { background: var(--magenta); color: var(--blanco); --res: var(--tinta); --foco: var(--amarillo); --pat: var(--t-higiene); --pat-c: #fff; --pat-o: .15; --pat-s: 220px; --blob-c: var(--rosa); --blob-o: .55; }
.s-ubi { background: var(--verde); --res: var(--blanco); --pat: var(--t-curvas); --pat-c: #0E8A63; --pat-o: .3; --pat-s: 240px 100px; --blob-c: #9BEADD; --blob-o: .6; --blob-r: auto; --blob-l: -36%; }

/* ---------- Divisores entre cuadros (cada uno distinto) ---------- */
.dv { position: relative; z-index: 2; height: var(--h, 56px); background: var(--n); margin-block: -1px; pointer-events: none; }
.dv::before, .dv::after {
  content: ''; position: absolute; inset: 0;
  -webkit-mask: var(--m) 0 0 / var(--ms, 100% 100%) var(--mr, no-repeat); mask: var(--m) 0 0 / var(--ms, 100% 100%) var(--mr, no-repeat);
}
.dv::before { background: var(--tinta); translate: 0 4px; }
.dv::after { background: var(--p); }
.dv-inv::before, .dv-inv::after { scale: -1 1; }
.dv-ola { --h: 60px; --m: var(--d-ola); }
.dv-curva { --h: 70px; --m: var(--d-curva); }
.dv-rasga { --h: 46px; --m: var(--d-rasga); }
.dv-colinas { --h: 78px; --m: var(--d-colinas); }
.dv-sesgo { --h: 64px; --m: var(--d-sesgo); }
.dv-feston { --h: 28px; --m: var(--d-feston); --ms: 44px 26px; --mr: repeat-x; }
.dv-nubes { --h: 44px; --m: var(--d-nubes); --ms: 120px 40px; --mr: repeat-x; }
.dv-dientes { --h: 40px; --m: var(--d-dientes); --ms: 46px 36px; --mr: repeat-x; }
.dv-zig { --h: 22px; --m: var(--d-zig); --ms: 28px 18px; --mr: repeat-x; }
.hero { padding-bottom: 64px; }
.cinta { position: relative; z-index: 3; rotate: -1.4deg; width: 108%; margin: -52px 0 -14px -4%; border-block: var(--borde); box-shadow: 0 6px 0 var(--naranja); }

/* ---------- Títulos: palabra por palabra con máscara + marcador que se dibuja ---------- */
.js .tit.reveal { opacity: 1; translate: none; scale: none; }
.tit .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .04em .14em; margin: -.16em -.04em -.14em; }
.tit .w i { display: inline-block; font-style: normal; transition: translate .7s cubic-bezier(.2, .9, .2, 1) calc(var(--i, 0) * 60ms); }
.js .tit:not(.in) .w i { translate: 0 118%; }
.js .tit .subr { background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .7s cubic-bezier(.6, 0, .2, 1) .55s; }
.js .tit.in .subr { background-size: 100% 100%; }

/* ---------- Entradas con rebote y escalonadas ---------- */
.js .reveal { scale: .93; transition: opacity .55s ease calc(var(--i, 0) * 90ms), translate .7s cubic-bezier(.2, 1.5, .4, 1) calc(var(--i, 0) * 90ms), scale .7s cubic-bezier(.2, 1.5, .4, 1) calc(var(--i, 0) * 90ms), rotate .3s ease, box-shadow .2s ease; }
.js .reveal.in { scale: 1; }

/* ---------- Notas manuscritas y flechas ---------- */
.nota-m { font-family: var(--mano); font-weight: 700; font-size: 1.65rem; line-height: .95; display: flex; align-items: center; gap: 6px; rotate: -4deg; color: var(--magenta); margin: 0; }
.nota-m svg { width: 44px; height: auto; flex: none; }
.nota-hero { position: absolute; left: 30%; bottom: -5%; width: 34%; font-size: 1.3rem; rotate: -6deg; display: block; text-align: center; color: var(--azul-f); }
.nota-hero svg { display: inline-block; width: 34px; rotate: -70deg; vertical-align: middle; }
.nota-mapa { justify-content: flex-end; margin: 20px 8px -38px 0; color: var(--tinta); rotate: 3deg; position: relative; z-index: 2; }
.nota-desliza { color: var(--amarillo); justify-content: center; margin-bottom: -4px; }
.nota-aqui { color: #0B6B4D; margin: 0 0 6px 8px; }
.ubi-mapa .nota-m svg { width: 44px; border: 0; border-radius: 0; box-shadow: none; rotate: none; }
@media (min-width: 860px) { .nota-m { font-size: 2rem; } .nota-hero { font-size: 1.7rem; } }

/* ---------- Sellos giratorios ---------- */
.gira-t { transform-origin: 60px 60px; animation: gira 22s linear infinite; }
.sello-giro { position: absolute; left: -3%; top: -6%; width: 28%; height: auto; overflow: visible; filter: drop-shadow(3px 3px 0 var(--tinta)); }
.chispa.c1 { left: 32%; top: -5%; }
.sello-g { position: relative; isolation: isolate; background: transparent; color: var(--blanco); }
.aro-giro { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; z-index: -1; overflow: visible; }
.sello-g::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--magenta); border: var(--borde); z-index: 0; }
.sello-g > span, .sello-g > b { position: relative; z-index: 1; }
.orto-foto .sello-g { border: 0; box-shadow: none; left: -30px; bottom: -6px; width: 112px; height: 112px; }
.orto-foto .sello-g b { font-size: 2.5rem; }
.orto-foto .sello-g span { font-size: .8rem; }
.orto-foto { margin-bottom: 54px; }
.orto-foto img { box-shadow: 7px 7px 0 var(--tinta); }

/* ---------- Trazos que se dibujan ---------- */
.trazo { fill: none; pointer-events: none; overflow: visible; }
.trazo path { stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.6, 0, .2, 1) .5s; }
.js .hero:not(.visto) .trazo path, .js .sec:not(.visto) .trazo path { stroke-dashoffset: 1; }
.trazo-hero { display: block; width: min(230px, 62%); height: auto; margin: 12px 0 -8px; stroke: var(--rosa); }
.trazo-orto { position: absolute; z-index: -1; right: -70px; top: -34px; width: 250px; height: auto; stroke: var(--blanco); opacity: .6; }
.trazo-frenos rect { fill: var(--amarillo); stroke: var(--tinta); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: scale .4s cubic-bezier(.2, 1.6, .4, 1) 1.6s, opacity .3s 1.6s; }
.js .sec:not(.visto) .trazo-frenos rect { scale: 0; opacity: 0; }
@media (min-width: 860px) { .trazo-orto { width: 380px; right: 26%; top: -60px; } }

/* ---------- Santi se asoma detrás de las tarjetas y reacciona ---------- */
.asoma { display: block; width: 96px; height: auto; margin: 18px 26px -30px auto; position: relative; z-index: 0; cursor: pointer; transition: translate .8s cubic-bezier(.2, 1.6, .4, 1) .25s; }
.asoma-izq { margin: 18px auto -30px 26px; }
.js .asoma:not(.in) { translate: 0 60px; }
.asoma + * { position: relative; z-index: 1; margin-top: 0; }
.hero-santi { cursor: pointer; }
.salta { animation: salta .7s cubic-bezier(.3, 1.6, .5, 1) !important; }
@keyframes salta { 30% { translate: 0 -26px; rotate: -10deg; } 60% { translate: 0 0; rotate: 6deg; } }

/* ---------- Partículas que flotan (burbujas, chispas, estrellas) ---------- */
.deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fl { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); animation: flota-p var(--t, 9s) ease-in-out var(--d, 0s) infinite alternate; }
.fl-burbujas { border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .85); background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .8) 0 14%, rgba(255, 255, 255, .12) 16%); }
.fl-chispas, .fl-estrellas { color: var(--c, #fff); animation-name: titila; }
.fl svg { width: 100%; height: 100%; }
@keyframes flota-p { from { translate: 0 14px; } to { translate: 8px -22px; } }
@keyframes titila { from { scale: .4; opacity: .25; rotate: -20deg; } to { scale: 1.1; opacity: .95; rotate: 20deg; } }

/* ---------- Precios: tarjetas de papel con cinta washi ---------- */
.s-precios .precio { background: var(--blanco); color: var(--tinta); --foco: var(--magenta); box-shadow: 7px 7px 0 var(--tinta); border-radius: 10px 26px 12px 24px; padding-top: 30px; }
.s-precios .precio::before { content: ''; position: absolute; top: -13px; left: 50%; width: 104px; height: 28px; margin-left: -52px; rotate: -4deg; background: repeating-linear-gradient(90deg, var(--c) 0 9px, color-mix(in srgb, var(--c) 72%, #fff) 9px 18px); opacity: .93; clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.precios > .precio:nth-child(odd) { rotate: -1.1deg; }
.precios > .precio:nth-child(even) { rotate: .9deg; }
.js .precio.in:hover { rotate: 0deg; translate: 0 -5px; box-shadow: 9px 12px 0 var(--tinta); }
.p-menta { --c: var(--menta); } .p-naranja { --c: var(--naranja); } .p-azul { --c: #7DB6F5; } .p-rosa { --c: #FF8FB3; } .p-amarillo { --c: var(--amarillo); }
.precio .monto b { position: relative; z-index: 0; padding-inline: .06em; }
.precio .monto b::before { content: ''; position: absolute; z-index: -1; inset: 22% -9% 2% -7%; background: var(--c, transparent); border-radius: 62% 38% 56% 44% / 54% 62% 38% 46%; rotate: -4deg; }
.precio-ico { filter: drop-shadow(2px 3px 0 rgba(20, 38, 74, .25)); animation: mece 5s ease-in-out infinite; transform-origin: 50% 90%; }
.precios > .precio:nth-child(even) .precio-ico { animation-delay: -2.5s; }
@keyframes mece { 0%, 100% { rotate: -5deg; } 50% { rotate: 6deg; } }
.s-precios .p-crema { background: transparent; color: var(--blanco); border-color: var(--blanco); box-shadow: none; --foco: var(--amarillo); padding-top: 22px; }
.s-precios .p-crema::before { display: none; }
.s-precios .p-crema .monto b::before { display: none; }
.s-precios .btn-crema { background: var(--tinta); color: var(--blanco); box-shadow: 0 5px 0 var(--naranja); }
.s-precios .pagos b { color: var(--tinta); }

/* ---------- Cita ---------- */
.reserva { position: relative; border-radius: 26px 12px 26px 14px; }
.reserva::before { content: ''; position: absolute; top: -14px; left: 32px; width: 110px; height: 28px; rotate: -5deg; background: repeating-linear-gradient(90deg, var(--rosa) 0 9px, #FF8FB3 9px 18px); opacity: .92; clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.num { animation: num-late 2.8s ease-in-out infinite; }
.paso:nth-of-type(2) .num { animation-delay: .5s; } .paso:nth-of-type(3) .num { animation-delay: 1s; }
@keyframes num-late { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; scale: 1.08; } }

/* ---------- Mapa ---------- */
.s-mapa .mapa { border-radius: 14px 28px 16px 30px; }
.diente-z .forma { transition: fill .15s, translate .2s; }
.diente-z:hover { translate: 0 2px; }
.diente-z.sel { animation: toque .5s cubic-bezier(.3, 1.8, .5, 1); transform-box: fill-box; transform-origin: center; }
@keyframes toque { 40% { scale: 1.18; } }
.mapa-info .trat em { rotate: -3deg; display: inline-block; }

/* ---------- Ortodoncia (naranja) ---------- */
.s-orto .linea::before { border-color: var(--tinta); }
.s-orto .linea li::before { background: var(--blanco); }
.s-orto .linea li:nth-child(odd) { rotate: -.8deg; } .s-orto .linea li:nth-child(even) { rotate: .8deg; }
.s-orto .linea svg { animation: mece 4.5s ease-in-out infinite; transform-origin: 50% 80%; }
.s-orto .linea li:nth-child(even) svg { animation-delay: -2s; }
.s-orto .orient-clara { background: rgba(255, 252, 246, .6); border-left-color: var(--tinta); }

/* ---------- Antes y después (marino, con luz) + polaroids ---------- */
.s-antes .casos { background: rgba(255, 252, 246, .08); border-color: rgba(255, 252, 246, .7); }
.s-antes .ad { border-color: var(--blanco); box-shadow: 0 0 0 3px var(--tinta), 10px 12px 0 var(--amarillo), 0 30px 70px rgba(45, 125, 219, .55); border-radius: 18px; }
.s-antes .ad-mango { background: var(--blanco); }
.ad-et { color: var(--tinta); }
.ad-casos { gap: 10px; padding: 14px 4px 6px; }
.ad-caso { position: relative; overflow: visible; border: 0; border-radius: 3px; padding: 6px 6px 0; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); }
.ad-caso img { border: 0; border-radius: 1px; }
.ad-caso span { font-family: var(--mano); font-size: 1.05rem; font-weight: 700; color: var(--tinta); min-height: 40px; }
.ad-caso:nth-child(1) { rotate: -4deg; } .ad-caso:nth-child(2) { rotate: 3deg; } .ad-caso:nth-child(3) { rotate: -2deg; } .ad-caso:nth-child(4) { rotate: 4deg; }
.ad-caso::before { content: ''; position: absolute; top: -9px; left: 50%; width: 46px; height: 16px; margin-left: -23px; rotate: -6deg; background: rgba(255, 214, 90, .9); }
.ad-caso[aria-pressed="true"] { background: #fff; rotate: 0deg; translate: 0 -8px; box-shadow: 0 0 0 3px var(--amarillo), 0 14px 22px rgba(0, 0, 0, .45); }
.js .ad-caso.in:hover { translate: 0 -6px; }

/* ---------- Prótesis (rosa suave): fotos como recortes ---------- */
.prot-fotos img { border-radius: 46% 54% 50% 50% / 54% 48% 52% 46%; }
.prot-fotos img:nth-child(1) { rotate: -5deg; } .prot-fotos img:nth-child(3) { rotate: 5deg; border-radius: 54% 46% 48% 52% / 46% 54% 46% 54%; }
.prot { border-radius: 12px 24px 14px 22px; }
.protesis > .prot:nth-child(odd) { rotate: -.7deg; } .protesis > .prot:nth-child(even) { rotate: .7deg; }

/* ---------- Doctora: escena de consultorio ---------- */
.doc-arte { aspect-ratio: 320 / 350; }
.doc-fondo { inset: 0 0 auto 0; height: auto; }
.doc-logo { top: auto; bottom: 0; left: 6%; right: 16%; rotate: -3deg; padding: 12px 10px; }
.doc-santi { bottom: 2%; right: -3%; width: 27%; animation: flota 4s ease-in-out infinite; }
.lampara { transform-origin: 262px 0; animation: lampara 5s ease-in-out infinite; }
@keyframes lampara { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }

/* ---------- Cuidado: el cepillo que limpia ---------- */
.limpia { width: min(310px, 84%); margin: 20px auto 0; }
.limpia svg { width: 100%; height: auto; overflow: visible; }
.limpia .manchas { opacity: 0; }
.limpia .cepillo { translate: 74px 6px; }
.limpia .espuma { opacity: 0; }
.limpia .brillos path { transform-box: fill-box; transform-origin: center; animation: brilla 2.4s ease-in-out infinite; }
.limpia .brillos path:nth-child(2) { animation-delay: .6s; } .limpia .brillos path:nth-child(3) { animation-delay: 1.2s; }
.js .limpia:not(.in) .manchas { opacity: 1; }
.js .limpia:not(.in) .brillos { opacity: 0; }
.js .limpia:not(.in) .cepillo { translate: 90px -10px; opacity: 0; }
.js .limpia.in .cepillo { animation: cepilla 2.6s ease-in-out .6s both; }
.js .limpia.in .manchas { animation: quita 2.6s ease .6s both; }
.js .limpia.in .espuma { animation: espuma 2.6s ease .6s both; }
.js .limpia.in .brillos { animation: aparece .6s ease 2.9s both; }
@keyframes cepilla { 0% { translate: 90px -10px; opacity: 0; } 12% { translate: 10px 0; opacity: 1; } 25% { translate: -36px 6px; } 38% { translate: 10px -4px; } 51% { translate: -36px 8px; } 64% { translate: 8px 0; } 82%, 100% { translate: 74px 6px; opacity: 1; } }
@keyframes quita { 0%, 14% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes espuma { 0%, 10% { opacity: 0; } 20%, 62% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.s-cuida .consejos svg { animation: mece 4s ease-in-out infinite; transform-origin: 50% 80%; }
.s-cuida .consejos li:nth-child(even) svg { animation-delay: -2s; }
.faq details[open] p { animation: baja .35s ease; }
@keyframes baja { from { opacity: 0; translate: 0 -8px; } }

/* ---------- Recordatorio (magenta) ---------- */
.s-recor .recor { color: var(--tinta); --foco: var(--magenta); border-radius: 26px 12px 26px 14px; }
.s-recor .recor .btn-tinta svg { animation: mece 2.6s ease-in-out infinite; }

/* ---------- Ubicación ---------- */
.s-ubi .ubi-mapa svg { border-radius: 14px 30px 16px 28px; rotate: -1deg; }
.horario tr.hoy th, .horario tr.hoy td { animation: hoy 2.4s ease-in-out infinite; }
@keyframes hoy { 50% { background: var(--amarillo); } }

/* ---------- Detalles ---------- */
.btn-wa .ico { animation: mece 2.8s ease-in-out infinite; }
.confianza li:nth-child(1) { rotate: -1.2deg; } .confianza li:nth-child(2) { rotate: .8deg; } .confianza li:nth-child(3) { rotate: -.6deg; }
.hero-logo { animation: flota 5.5s ease-in-out -2s infinite; }
.hero-foto2 { animation: flota 6s ease-in-out -1s infinite; }
.pie { padding-top: 34px; }

@media (prefers-reduced-motion: reduce) {
  .js .tit:not(.in) .w i { translate: none; }
  .js .tit .subr { background-size: 100% 100%; }
  .js .reveal { scale: 1; }
  .js .asoma:not(.in) { translate: none; }
}
