/* =========================================================
   Oral Center — estilos
   Colores de marca: azul profundo + celeste (piezas de campaña)
   Pensado primero para celular; ajustes de escritorio al final.
   ========================================================= */
:root {
  --night: #061433;
  --navy: #0a2463;
  --blue: #1d5bd8;
  --sky: #27aef2;
  --ice: #eaf5ff;
  --ink: #0b1d45;
  --muted: #5b6f95;
  --line: #d7e5f6;
  --white: #fff;
  --ok: #19b47a;
  --warn: #ff6b4a;
  --radius: 22px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dock-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 17px/1.55 var(--font); color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
body.xp-open { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
h2 { font-size: clamp(32px, 8.4vw, 54px); font-weight: 700; }
.hl { color: var(--blue); }
.sub { color: var(--muted); margin-top: 12px; font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 17px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(120deg, var(--blue), var(--sky)); color: #fff; box-shadow: 0 12px 30px -10px #1d5bd8aa; }
.btn-ghost { background: var(--ice); color: var(--navy); }

/* ============ Barra superior ============ */
.top {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; padding-top: max(12px, env(safe-area-inset-top));
  color: #fff; transition: background .3s, box-shadow .3s, color .3s;
}
.top.solid { background: #ffffffee; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 6px 24px -12px #0a246340; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-weight: 700; letter-spacing: .04em; font-size: 17px; }
.brand small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-top: 3px; }
.top-cta { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; background: #ffffff1f; border: 1px solid #ffffff40; }
.top.solid .top-cta { background: var(--blue); color: #fff; border-color: transparent; }

/* ============ 1. Portada ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 70% at 80% 10%, #1c4fc0 0%, var(--navy) 45%, var(--night) 100%);
  padding: 72px 16px 22px; min-height: 100svh; display: flex; flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb.o1 { width: 320px; height: 320px; background: #27aef2; top: -80px; right: -120px; }
.orb.o2 { width: 260px; height: 260px; background: #3b4fff; bottom: 10%; left: -140px; animation-delay: -6s; opacity: .35; }
.arc { position: absolute; width: 560px; height: 560px; border-radius: 50%; border: 60px solid #2f6bff22; right: -300px; top: 160px; }
@keyframes float { 50% { transform: translate(-20px, 30px) scale(1.08); } }

.hero-photo {
  position: absolute; top: 40px; right: -40px; width: 78%; max-width: 420px; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 55% 42%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 70% at 55% 42%, #000 58%, transparent 100%);
  opacity: .95;
}
.hero-photo img { width: 100%; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(1.03); } }

.hero-copy { position: relative; z-index: 1; margin-top: min(36vw, 170px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: #ffffff14; border: 1px solid #ffffff26; padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ff0b0; box-shadow: 0 0 0 0 #3ff0b0; animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px #3ff0b000; } }
.hero h1 { font-size: clamp(38px, 10.8vw, 76px); font-weight: 700; margin-top: 10px; text-shadow: 0 4px 30px #06143380; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7fd8ff, #27aef2 60%, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 8px; font-size: 16.5px; line-height: 1.45; color: #d9e7ff; max-width: 30ch; text-shadow: 0 2px 16px #061433; }
.lead b { color: #fff; font-weight: 600; }

.problems { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.prob {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left;
  padding: 11px 12px; border-radius: 18px; color: #fff; min-height: 0;
  background: linear-gradient(160deg, #ffffff22, #ffffff0a); border: 1px solid #ffffff2e;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .25s, background .25s, border-color .25s;
  animation: pop .6s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--i) * 70ms + .3s);
  overflow: hidden;
}
.prob::after { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #27aef255, transparent 40%); opacity: 0; transition: opacity .3s; }
.prob:hover::after, .prob:focus-visible::after { opacity: 1; }
.prob:active { transform: scale(.96); background: #ffffff33; }
.prob .pi { width: 34px; height: 34px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, #27aef2, #1d5bd8); box-shadow: 0 8px 20px -8px #27aef2; }
.prob .pi svg { width: 21px; height: 21px; }
.prob b { font-weight: 600; font-size: 16px; line-height: 1.15; }
.prob small { font-size: 12px; color: #bcd3f7; line-height: 1.25; }
.prob .go { position: absolute; top: 14px; right: 14px; font-size: 15px; opacity: .6; transition: transform .25s; }
.prob:hover .go { transform: translateX(3px); opacity: 1; }
.prob.urgent .pi { background: linear-gradient(140deg, #ff8a5c, #ff4d6d); box-shadow: 0 8px 20px -8px #ff4d6d; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.hero-foot { position: relative; z-index: 1; margin-top: 12px; font-size: 13px; color: #9fb6df; text-align: center; }

/* ============ 2. Caro es llegar tarde ============ */
.late { padding: 72px 0 64px; background: linear-gradient(180deg, #f3f8ff, #fff); text-align: center; }
.late h2 .hl { background: linear-gradient(120deg, var(--blue), var(--sky)); color: #fff; padding: 0 .2em; border-radius: 10px; }
.late-stage { margin: 28px auto 0; max-width: 560px; display: grid; gap: 18px; }
.late-img { position: relative; aspect-ratio: 250/485; width: min(190px, 46vw); margin: 0 auto; border-radius: 26px; overflow: hidden; background: #eef0f3; box-shadow: 0 30px 60px -30px #0a246366; }
.late-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .5s, transform .8s; }
.late-img img.on { opacity: 1; transform: none; }
.late-price { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; font-size: 24px; letter-spacing: .04em; box-shadow: 0 8px 20px -8px #1d5bd8; transition: background .4s; }
.late-price.hot { background: linear-gradient(120deg, #ff6b4a, #e0245e); }
.late-when { font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.late-info h3 { font-size: 28px; margin-top: 4px; }
.late-info p:not(.late-when) { color: var(--muted); margin-top: 6px; min-height: 3.1em; }
.late-meter { list-style: none; display: flex; gap: 6px; justify-content: center; padding: 0; margin: 14px 0 0; }
.late-meter li { width: 42px; height: 8px; border-radius: 9px; background: var(--line); transition: background .4s; }
.late-meter li.on { background: linear-gradient(90deg, var(--sky), var(--blue)); }
.late-meter.hot li.on { background: linear-gradient(90deg, #ff9a5a, #e0245e); }
.late-slider { display: block; max-width: 520px; margin: 26px auto 28px; }
.late-slider input { width: 100%; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 9px; background: linear-gradient(90deg, var(--sky) var(--p, 0%), var(--line) var(--p, 0%)); outline-offset: 8px; }
.late-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 6px 18px -4px #1d5bd899; }
.late-slider input::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.late-ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
.late-ticks i { font-style: normal; }

/* ============ 3. El doctor ============ */
.doc { padding: 72px 0; background: var(--night); color: #fff; position: relative; overflow: hidden; }
.doc::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(#1d5bd866, transparent 70%); top: -150px; left: -150px; }
.doc-grid { position: relative; display: grid; gap: 28px; }
.doc .eyebrow { color: var(--sky); }
.doc .hl { color: var(--sky); }
.doc .sub { color: #a9bde3; }
.doc-photo { margin: 0; position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -40px #000; }
.doc-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 20%; }
.doc-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 10px 14px; border-radius: 16px; background: #061433b3; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; line-height: 1.2; }
.doc-photo figcaption span { font-size: 13px; color: #a9d8ff; }
.flips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.flip { display: block; width: 100%; padding: 0; perspective: 900px; min-height: 150px; text-align: left; color: #fff; }
.flip-in { display: block; position: relative; width: 100%; height: 100%; min-height: 150px; transition: transform .7s cubic-bezier(.3,1.4,.4,1); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.flip-f, .flip-b { position: absolute; inset: 0; border-radius: 20px; padding: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.flip-f { background: linear-gradient(150deg, #ffffff1c, #ffffff08); border: 1px solid #ffffff26; }
.flip-f .emo { font-size: 30px; }
.flip-f b { font-size: 17px; font-weight: 600; line-height: 1.2; }
.flip-f small { color: #8fb1e6; font-size: 12px; }
.flip-b { background: linear-gradient(150deg, var(--blue), var(--sky)); transform: rotateY(180deg); font-size: 15px; line-height: 1.35; justify-content: center; }

/* ============ 4. Tratamientos ============ */
.treat { padding: 72px 0 60px; }
.treat-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 20px 20px; scrollbar-width: none; }
.treat-track::-webkit-scrollbar { display: none; }
.tcard {
  flex: 0 0 min(78vw, 300px); scroll-snap-align: center; border-radius: 26px; padding: 22px; text-align: left;
  background: linear-gradient(160deg, #fff, var(--ice)); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; min-height: 290px; position: relative; overflow: hidden;
  box-shadow: 0 20px 40px -30px #0a246366; transition: transform .3s;
}
.tcard:active { transform: scale(.98); }
.tcard .pi { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(140deg, var(--sky), var(--blue)); color: #fff; }
.tcard .pi svg { width: 30px; height: 30px; }
.tcard h3 { font-size: 24px; margin-top: 6px; }
.tcard p { color: var(--muted); font-size: 15.5px; flex: 1; }
.tcard .tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--blue); background: #dcecff; padding: 6px 12px; border-radius: 999px; }
.tcard .go { font-weight: 600; color: var(--blue); }
.tcard::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -60px; top: -60px; background: radial-gradient(#27aef233, transparent 70%); }

/* ============ 5. Pasos ============ */
.steps { padding: 64px 0; background: var(--ice); }
.step-list { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; display: grid; gap: 14px; position: relative; }
.step-list::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--sky), var(--blue)); opacity: .35; }
.step-list li { counter-increment: s; position: relative; padding: 4px 0 4px 64px; display: flex; flex-direction: column; opacity: .35; transform: translateX(-10px); transition: opacity .6s, transform .6s; }
.step-list li.on { opacity: 1; transform: none; }
.step-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(140deg, var(--sky), var(--blue)); box-shadow: 0 0 0 6px var(--ice); }
.step-list b { font-size: 20px; }
.step-list span { color: var(--muted); }

/* ============ 6. FAQ ============ */
.faq { padding: 64px 0; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: .9; color: var(--blue); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ============ 7. Ubicación ============ */
.visit { padding: 64px 0; background: linear-gradient(180deg, #fff, var(--ice)); }
.visit-grid { display: grid; gap: 26px; }
.contact { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.contact li { display: flex; gap: 12px; align-items: flex-start; }
.contact .ic { width: 36px; height: 36px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -10px #0a246380; }
.contact a { font-weight: 600; text-decoration: none; color: var(--blue); }
.visit-cta { display: grid; gap: 10px; }
.map { border-radius: 26px; overflow: hidden; background: #dfeaf7; position: relative; min-height: 260px; box-shadow: 0 24px 50px -30px #0a246366; }
.map iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-link { display: block; padding: 14px; text-align: center; font-weight: 600; color: var(--blue); text-decoration: none; background: #fff; }

.foot { background: var(--night); color: #b3c4e6; padding: 36px 20px 28px; text-align: center; font-size: 14px; display: grid; gap: 8px; justify-items: center; }
.foot b { color: #fff; }
.foot .fine { font-size: 12px; color: #7f93bd; max-width: 60ch; }

/* ============ Barra fija ============ */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: #061433e6; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -14px #061433; transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.9,.3,1.2);
}
.dock.show { transform: none; }
.dock-main { flex: 1; min-height: 52px; border-radius: 999px; font-weight: 600; color: #fff; background: linear-gradient(120deg, var(--blue), var(--sky)); }
.dock-wa { width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; }
.dock-wa svg { width: 28px; height: 28px; }

/* ============ Experiencia del test ============ */
.xp {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; color: #fff; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #1b4cc0 0%, var(--navy) 45%, var(--night) 100%);
  padding: max(12px, env(safe-area-inset-top)) 18px max(16px, env(safe-area-inset-bottom));
  animation: xpIn .5s cubic-bezier(.2,.8,.2,1) both;
}
.xp[hidden] { display: none; }
.xp.closing { animation: xpOut .35s ease both; }
@keyframes xpIn { from { opacity: 0; transform: scale(1.04); clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } }
@keyframes xpOut { to { opacity: 0; transform: scale(.98); } }
.xp-bg { position: absolute; inset: 0; pointer-events: none; }
.xp-head { position: relative; display: flex; align-items: center; gap: 12px; }
.xp-back, .xp-close { width: 42px; height: 42px; flex: none; border-radius: 50%; background: #ffffff17; border: 1px solid #ffffff26; font-size: 18px; color: #fff; }
.xp-back[disabled] { opacity: .3; }
.xp-meta { flex: 1; }
.xp-route { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #a9d8ff; font-weight: 600; }
.xp-bar { height: 6px; background: #ffffff1f; border-radius: 9px; margin-top: 7px; overflow: hidden; }
.xp-bar span { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #7fd8ff, #27aef2); transition: width .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px #27aef2; }

.xp-smile { position: relative; height: clamp(120px, 24vh, 210px); margin: 10px auto 0; width: 100%; max-width: 420px; flex: none; transition: height .4s; }
.xp-smile svg { width: 100%; height: 100%; overflow: visible; }
.xp.compact .xp-smile { height: clamp(90px, 15vh, 140px); }
.xp-mood { position: relative; text-align: center; font-size: 14px; color: #a9d8ff; min-height: 21px; margin-top: 2px; transition: opacity .3s; }

.xp-body { position: relative; flex: 1; overflow-y: auto; margin: 10px -18px 0; padding: 4px 18px 10px; -webkit-overflow-scrolling: touch; }
.slide { animation: slideIn .45s cubic-bezier(.2,.8,.2,1) both; }
.slide.back { animation-name: slideBack; }
.slide.still, .slide.still .opt { animation: none; }
@keyframes slideIn { from { opacity: 0; transform: translateX(36px); } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-36px); } }
.q-num { font-size: 13px; color: #8fb1e6; font-weight: 500; }
.q-title { font-size: clamp(24px, 6.6vw, 32px); font-weight: 600; line-height: 1.15; margin: 4px 0 16px; }
.q-hint { color: #a9bde3; font-size: 14px; margin: -8px 0 14px; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 15px 16px; min-height: 58px;
  border-radius: 18px; background: #ffffff12; border: 1px solid #ffffff24; color: #fff; font-size: 16.5px; font-weight: 500;
  transition: background .2s, border-color .2s, transform .15s;
  animation: optIn .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 45ms);
}
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } }
.opt:active { transform: scale(.98); }
.opt .mk { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid #ffffff55; display: grid; place-items: center; transition: all .2s; }
.opt.sel { background: linear-gradient(120deg, #1d5bd8, #27aef2); border-color: transparent; }
.opt.sel .mk { background: #fff; border-color: #fff; }
.opt.sel .mk::after { content: ""; width: 10px; height: 6px; border: solid var(--blue); border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); }
.opt.multi .mk { border-radius: 7px; }
.opt.alarm.sel { background: linear-gradient(120deg, #e0245e, #ff6b4a); }
.tip { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #27aef21f; border: 1px solid #27aef24d; font-size: 14.5px; color: #d9efff; display: flex; gap: 10px; animation: optIn .4s both; }
.tip b { color: #fff; }
.next { margin-top: 16px; width: 100%; }
.next[disabled] { opacity: .35; pointer-events: none; }

.alert { padding: 16px; border-radius: 18px; background: linear-gradient(140deg, #ff6b4a33, #e0245e33); border: 1px solid #ff6b4a80; margin-bottom: 14px; }
.alert b { display: block; font-size: 18px; margin-bottom: 4px; }
.alert.sos { background: linear-gradient(140deg, #e0245e, #ff6b4a); border: 0; }
.alert .btn { display: flex; width: 100%; margin-top: 12px; background: #fff; color: #c41d4f; min-height: 50px; }

/* Resultado */
.res-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; background: #ffffff1c; }
.res-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #3ff0b0); box-shadow: 0 0 10px var(--c, #3ff0b0); }
.res-title { font-size: clamp(28px, 7.4vw, 36px); font-weight: 700; margin: 12px 0 6px; line-height: 1.08; }
.res-text { color: #c8d9f7; }
.res-card { margin: 16px 0; padding: 16px; border-radius: 20px; background: #ffffff10; border: 1px solid #ffffff22; }
.res-card h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #a9d8ff; font-weight: 600; }
.res-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.res-card li { display: flex; gap: 10px; font-size: 15.5px; }
.res-card li::before { content: "✓"; color: #3ff0b0; font-weight: 700; }
.form { display: grid; gap: 10px; margin-top: 6px; }
.form label { font-size: 14px; color: #a9bde3; }
.field { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 16px; border: 1px solid #ffffff33; background: #ffffff14; color: #fff; font: 500 17px var(--font); }
.field::placeholder { color: #8fa6cf; }
.field:focus { outline: none; border-color: var(--sky); background: #ffffff1f; box-shadow: 0 0 0 4px #27aef233; }
.field.err { border-color: var(--warn); }
.hp { position: absolute; left: -9999px; }
.fine { font-size: 12.5px; color: #8fa6cf; }
.wa-btn { background: linear-gradient(120deg, #1fb855, #25d366); box-shadow: 0 14px 30px -12px #25d366aa; color: #fff; }
.done { text-align: center; padding-top: 6px; }
.done .big { font-size: 56px; animation: pop .6s both; }
.done .code { display: inline-block; margin: 12px 0; font-size: 26px; font-weight: 700; letter-spacing: .12em; padding: 8px 18px; border-radius: 14px; background: #ffffff1a; }

/* Sonrisa animada */
.tooth { transition: transform .8s cubic-bezier(.3,1.3,.5,1), opacity .6s; transform-box: fill-box; transform-origin: 50% 0%; }
.tooth.low { transform-origin: 50% 100%; }
.stain { transition: opacity .8s; }
.glow { transition: opacity .8s; }
.spark { opacity: 0; transition: opacity .6s; transform-box: fill-box; transform-origin: center; }
.spark.on { opacity: 1; animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(20deg); opacity: .5; } }
.pulse { animation: pulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.25); opacity: .4; } }

/* Aparición al bajar */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Escritorio ============ */
@media (min-width: 860px) {
  :root { --dock-h: 0px; }
  .dock { display: none; }
  .top { padding: 18px 40px; }
  .hero { padding: 120px max(40px, calc((100vw - 1120px) / 2)) 40px; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: auto 1fr auto; column-gap: 40px; align-items: start; }
  .hero-photo { position: absolute; right: max(0px, calc((100vw - 1200px) / 2)); top: 70px; width: 44%; max-width: 560px; }
  .hero-copy { margin-top: 20px; grid-column: 1; }
  .problems { grid-column: 1; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .prob { min-height: 140px; }
  .prob:hover { transform: translateY(-4px); background: #ffffff2a; border-color: #27aef2; }
  .hero-foot { grid-column: 1; text-align: left; }
  .late-stage { grid-template-columns: auto 1fr; align-items: center; text-align: left; max-width: 680px; gap: 40px; }
  .late-meter { justify-content: flex-start; }
  .doc-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .doc-photo img { aspect-ratio: 4/4.4; }
  .treat-track { padding-inline: max(20px, calc((100vw - 1120px) / 2)); }
  .tcard { flex-basis: 320px; }
  .tcard:hover { transform: translateY(-6px); }
  .step-list { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step-list::before { display: none; }
  .step-list li { padding: 64px 0 0; }
  .visit-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .visit-cta { grid-auto-flow: column; justify-content: start; }
  .xp { padding-inline: calc(50vw - 280px); }
  .xp-body { margin-inline: -20px; padding-inline: 20px; }
}

/* =========================================================
   Capa inmersiva
   ========================================================= */
/* Destellos en la portada */
.twk { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; background: #bfeaff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twk 3.2s ease-in-out infinite; animation-delay: var(--d); opacity: 0; }
@keyframes twk { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .9; transform: scale(1.3) rotate(45deg); } }
.hero-photo { will-change: transform; }

/* Títulos palabra por palabra */
.w { display: inline-block; }
.reveal .w { opacity: 0; transform: translateY(.45em) rotate(2deg); transition: opacity .6s, transform .7s cubic-bezier(.2,.9,.3,1.2); transition-delay: calc(var(--d) * 55ms); }
.reveal.in .w { opacity: 1; transform: none; }
.hero h1 .w { animation: wordIn .8s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--d) * 90ms + .15s); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.5em); filter: blur(6px); } }

/* Brillo que recorre las tarjetas de problemas una vez */
.prob::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, #ffffff40 50%, transparent 65%); transform: translateX(-120%); animation: sweep 1.4s ease 1 both; animation-delay: calc(var(--i) * 120ms + 1.3s); pointer-events: none; }
@keyframes sweep { to { transform: translateX(120%); } }
.prob { transform-style: preserve-3d; }

/* Caro es llegar tarde: escena fija que avanza con el scroll */
.late { padding: 0; height: 300vh; position: relative; }
.late-sticky { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 76px 0 18px; }
.late .sub { margin-top: 6px; }
.late-stage { grid-template-columns: auto 1fr; align-items: center; text-align: left; gap: 18px; margin-top: 18px; }
.late-img { width: min(128px, 33vw); margin: 0; border-radius: 22px; }
.late-price { font-size: 18px; padding: 4px 11px; top: 8px; }
.late-price.bump { animation: bump .5s cubic-bezier(.2,.9,.3,1.6); }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.35); } }
.late-info h3 { font-size: 26px; }
.late-info p:not(.late-when) { font-size: 15.5px; min-height: 4.6em; }
.late-meter { justify-content: flex-start; }
.late-meter li { width: 32px; }
.late-slider { margin: 18px auto 14px; }
.late-hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(4px); opacity: .6; } }
.late.past .late-hint { visibility: hidden; }
.late-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 0 #e0245e; transition: box-shadow .5s; border-radius: inherit; }
.late.hot .late-img::after { box-shadow: inset 0 0 0 4px #e0245e88; }

/* Línea de pasos que se llena al bajar */
.step-list::after { content: ""; position: absolute; left: 23px; top: 10px; width: 2px; height: calc((100% - 20px) * var(--fill, 0)); background: linear-gradient(var(--sky), var(--blue)); }
@media (min-width: 860px) { .step-list::after { display: none; } }

/* Test: color por tratamiento, revelación final y confeti */
.xp .orb.o1 { background: var(--tint, #27aef2); transition: background 1s; }
.xp .orb.o2 { background: var(--tint2, #3b4fff); transition: background 1s; }
.xp.reveal-anim .tooth { transition-duration: 1.6s; }
.xp.reveal-anim .stain, .xp.reveal-anim .glow { transition-duration: 1.6s; }
.xp-smile.boom::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 3px solid #7fd8ff; animation: ring 1s ease-out both; }
@keyframes ring { to { transform: scale(9); opacity: 0; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 12px; border-radius: 2px; background: var(--c); animation: fall var(--t) cubic-bezier(.2,.6,.4,1) forwards; animation-delay: var(--d); transform: rotate(var(--r)); }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(calc(var(--r) * 5)); opacity: .2; } }
.opt { position: relative; overflow: hidden; }
.opt .rip { position: absolute; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: #ffffff66; animation: rip .6s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(22); opacity: 0; } }

@media (min-width: 860px) {
  .late-img { width: 170px; }
  .late-stage { max-width: 620px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .late { height: auto; }
  .late-sticky { position: static; }
  .late-hint { display: none; }
}
.notrans * { transition: none !important; }
/* Ajustes: degradado por palabra y deslizador a todo el ancho */
.hero h1 em { background: none; color: inherit; }
.hero h1 em .w { background: linear-gradient(90deg, #7fd8ff, #27aef2 60%, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.late-slider { width: 100%; }

/* =========================================================
   Capa de cine
   ========================================================= */
/* Grano de película */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); } 60% { transform: translate(-7%, -2%); } 80% { transform: translate(4%, 6%); } 100% { transform: translate(0, 0); } }
.hero.grain::after, .doc.grain::after { position: absolute; }
.hero > *:not(.hero-bg):not(.hero-photo), .doc > * { position: relative; z-index: 4; }

/* Barras de cine */
.bar { position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 6; pointer-events: none; transition: transform 1s cubic-bezier(.7,0,.2,1); }
.bar-t { top: 0; } .bar-b { bottom: 0; }

/* Apertura */
.intro { position: fixed; inset: 0; z-index: 100; background: #02060f; color: #fff; display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; }
.intro .bar { height: 12vh; }
.intro-line { position: absolute; left: 0; right: 0; font-size: clamp(26px, 7.5vw, 46px); font-weight: 300; letter-spacing: -.01em; opacity: 0; }
.intro-line.l1 { top: calc(50% - 1.3em); animation: introTxt 2.1s ease .25s both; }
.intro-line.l2 { top: 50%; font-weight: 600; background: linear-gradient(90deg, #7fd8ff, #27aef2); -webkit-background-clip: text; background-clip: text; color: transparent; animation: introTxt 1.75s ease .6s both; }
@keyframes introTxt { 0% { opacity: 0; filter: blur(10px); transform: translateY(12px); } 25%, 75% { opacity: 1; filter: none; transform: none; } 100% { opacity: 0; filter: blur(6px); transform: translateY(-8px); } }
.intro-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: introLogo 1.6s cubic-bezier(.2,.8,.2,1) 2.3s both; }
.intro-logo img { width: 64px; filter: drop-shadow(0 0 24px #27aef2); }
.intro-logo b { font-size: 30px; letter-spacing: .18em; font-weight: 700; position: relative; overflow: hidden; }
.intro-logo b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffffcc 50%, transparent 70%); transform: translateX(-120%); animation: sweep 1s ease 2.8s both; }
.intro-logo small { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #8fb1e6; }
@keyframes introLogo { from { opacity: 0; transform: scale(.85); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.intro-skip { position: absolute; bottom: calc(12vh + 14px); left: 0; right: 0; font-size: 12px; color: #5f7397; letter-spacing: .1em; z-index: 7; }
.intro.open { background: transparent; pointer-events: none; transition: background .9s ease .25s; }
.intro.open .bar-t { transform: translateY(-100%); }
.intro.open .bar-b { transform: translateY(100%); }
.intro.open .intro-logo, .intro.open .intro-line, .intro.open .intro-skip { opacity: 0 !important; transition: opacity .35s; animation: none; }
body.intro-on { overflow: hidden; }
body.intro-on .hero *, body.intro-on .hero *::before { animation-play-state: paused !important; }

/* Historia de la caries */
.story { height: 420vh; position: relative; background: #02060f; }
.story-frame { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #02060f; }
.story-img { position: absolute; inset: -4%; background: url("assets/caries.jpg") 34% 50% / cover no-repeat; transform-origin: 50% 50%; will-change: transform, background-position; }
.story-tint { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 50%, transparent 35%, #02060fee 100%), linear-gradient(180deg, #02060f99, transparent 30%, transparent 60%, #02060fdd); }
.story-tint::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #e0245e55, transparent 60%); opacity: var(--hot, 0); mix-blend-mode: screen; }
.story .bar { height: 7vh; }
.cap { position: absolute; left: 20px; right: 20px; bottom: calc(7vh + 34px); z-index: 7; text-align: center; color: #fff; font-size: clamp(26px, 7.4vw, 44px); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; text-shadow: 0 4px 24px #000, 0 0 2px #000; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .5s, transform .6s, filter .5s; }
.cap.on { opacity: 1; transform: none; filter: none; }
.cap em { font-style: normal; color: #7fd8ff; }
.cap:nth-of-type(4) em { color: #ff8aa0; }
.story-scroll { position: absolute; top: calc(7vh + 16px); left: 0; right: 0; text-align: center; z-index: 7; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8fb1e6; animation: hint 1.6s ease-in-out infinite; transition: opacity .4s; }
.story.started .story-scroll { opacity: 0; }

/* Doctor: zoom lento tipo cine */
.doc-photo img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, 1%); } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .story { height: auto; }
  .story-frame { position: relative; height: 80svh; }
  .cap { opacity: 1; transform: none; filter: none; position: relative; bottom: auto; top: 50%; }
  .cap:not(:first-of-type) { display: none; }
  .grain::after { animation: none; }
}
.dock.hide-story { transform: translateY(140%); }
.top { transition: background .3s, box-shadow .3s, color .3s, transform .5s cubic-bezier(.7,0,.2,1); }
.top.hide-story { transform: translateY(-110%); }
.story.started .story-scroll { visibility: hidden; }

/* Paso final: motivar a enviar el WhatsApp */
.wa-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; color: #c8d9f7; margin: 4px 0 2px; }
.wa-steps span { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; background: #25d366; color: #04351a; }
.almost { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #3ff0b0; padding: 6px 12px; border-radius: 999px; background: #3ff0b01f; }
.hl2 { color: #7fd8ff; }
.wa-mock { position: relative; margin: 18px auto 16px; max-width: 320px; padding: 14px 12px 12px; border-radius: 20px; background: #0b141a; display: flex; align-items: flex-end; gap: 8px; text-align: left; box-shadow: 0 20px 40px -20px #000; }
.wa-bubble { flex: 1; background: #005c4b; color: #e9fdf3; font-size: 13.5px; padding: 9px 11px; border-radius: 12px 12px 4px 12px; line-height: 1.35; }
.wa-bubble small { display: block; color: #9fe8c9; margin-top: 4px; font-size: 11.5px; }
.wa-send { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 18px; }
.wa-tap { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #25d366; animation: tap 1.4s ease-out infinite; }
@keyframes tap { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.pulse-btn { animation: pbtn 1.8s ease-in-out infinite; }
@keyframes pbtn { 50% { transform: scale(1.03); box-shadow: 0 0 0 10px #25d36622, 0 14px 30px -12px #25d366aa; } }
.sent-ask { margin-top: 14px; padding: 14px; border-radius: 18px; background: #ffffff12; border: 1px solid #ffffff24; animation: optIn .4s both; }
.sent-ask[hidden] { display: none; }
.sent-btns { display: grid; gap: 8px; margin-top: 10px; }
.sent-btns .btn { min-height: 50px; }
.btn { text-decoration: none; }
.wa-steps { display: grid; gap: 6px; }
.wa-steps i { font-style: normal; display: flex; align-items: center; gap: 8px; }
.wa-steps b { color: #fff; }

/* Tono amable: sin rojos de alarma fuera de la ruta de dolor */
.story-tint::after { background: radial-gradient(circle at 50% 50%, #27aef244, transparent 60%); }
.cap:nth-of-type(4) em { color: #7fd8ff; }
.late-price.hot { background: linear-gradient(120deg, var(--blue), var(--sky)); }
.late-meter.hot li.on { background: linear-gradient(90deg, var(--sky), var(--blue)); }
.late.hot .late-img::after { box-shadow: none; }
.wa-tap { animation-duration: 2.6s; opacity: .6; }
.story-tint::after { background: radial-gradient(circle at 50% 55%, #27aef277, #1d5bd844 45%, transparent 75%); }

/* Pre-diagnóstico */
.lvl { margin: 16px 0; padding: 16px; border-radius: 20px; background: #ffffff10; border: 1px solid #ffffff22; }
.lvl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lvl-head span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #a9d8ff; font-weight: 600; }
.lvl-head b { color: var(--c); font-size: 17px; text-align: right; }
.lvl-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 10px; }
.lvl-bar i { height: 10px; border-radius: 9px; background: #ffffff1f; position: relative; overflow: hidden; }
.lvl-bar i.on::after { content: ""; position: absolute; inset: 0; background: var(--c); box-shadow: 0 0 12px var(--c); transform: scaleX(0); transform-origin: left; animation: fillIn .5s ease forwards; animation-delay: calc(var(--k) * 250ms + .3s); }
@keyframes fillIn { to { transform: scaleX(1); } }
.lvl p { color: #c8d9f7; font-size: 15px; }
.finds li { animation: optIn .45s both; animation-delay: calc(var(--i) * 120ms + .5s); }
.finds li::before { content: "•" !important; color: #7fd8ff !important; font-size: 20px; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; padding: 7px 12px; border-radius: 999px; background: #27aef226; border: 1px solid #27aef255; color: #e3f3ff; }
.nowlater { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.nowlater > div { padding: 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.35; }
.nowlater b { font-size: 14.5px; }
.now { background: linear-gradient(150deg, #19b47a33, #19b47a14); border: 1px solid #3ff0b055; }
.now b { color: #3ff0b0; }
.later { background: #ffffff0d; border: 1px solid #ffffff1f; color: #c8d9f7; }
.later b { color: #fff; }
.invite { margin: 18px 0 8px; padding: 16px; border-radius: 22px; background: linear-gradient(150deg, #1d5bd8, #27aef2); display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; box-shadow: 0 20px 40px -20px #27aef2aa; }
.invite img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 3px solid #ffffffcc; }
.invite b { font-size: 17px; }
.invite p { font-size: 14px; color: #e8f4ff; margin-top: 2px; }
.invite ul { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.invite li { display: flex; gap: 8px; font-size: 14.5px; }
.invite li::before { content: "✓"; font-weight: 700; color: #fff; }
.form-title { font-size: 22px; margin: 18px 0 4px; }
.jump { margin-top: 12px; width: 100%; min-height: 46px; border-radius: 999px; font-weight: 600; font-size: 15px; background: #25d366; color: #fff; }
