:root {
  --bg: #F2F5F4; --surface: #FFFFFF; --subtle: #E6F1EE; --line: #DCE5E2;
  --ink: #102320; --muted: #56686A; --accent: #087769; --on-accent: #FFFFFF;
  --soft: #CDEFE8; --on-soft: #06433B;
  --link: #087769; --success: #0A8F5A; --frame: #102320;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F0E; --surface: #141B19; --subtle: #1B2522; --line: #25312E;
    --ink: #EEF4F2; --muted: #9DB0AB; --accent: #2DD4B4; --on-accent: #052A24;
    --soft: #11352F; --on-soft: #A7F0E1;
    --link: #2DD4B4; --success: #3DDC84; --frame: #25312E;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 72px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 20px 0 18px; }
h1 mark { background: var(--accent); color: var(--on-accent); padding: 0 0.12em;
  border-radius: 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: 19px; color: var(--muted); max-width: 500px; margin: 0 0 28px; }
/* Official store badges at the same visible height. The Google Play PNGs (646x250) carry
   transparent clear space that differs per language, so each is cropped to its visible badge:
   --x/--y = offset of the badge, --w/--h = its size (px in the PNG). */
.stores { --badge-h: 52px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stores a { display: block; height: var(--badge-h); line-height: 0; }
.stores img { height: 100%; width: auto; display: block; }
.stores .gp { --x: 41; --y: 41; --w: 564; --h: 168;
  width: calc(var(--badge-h) * var(--w) / var(--h)); overflow: hidden; }
.stores .gp.es { --x: 0; --y: 29; --w: 646; --h: 192; }
.stores .gp img { height: calc(var(--badge-h) * 250 / var(--h)); max-width: none;
  margin-left: calc(var(--badge-h) * var(--x) / var(--h) * -1);
  margin-top: calc(var(--badge-h) * var(--y) / var(--h) * -1); }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

.phone { width: 100%; max-width: 300px; aspect-ratio: 1206 / 2622; border-radius: 44px;
  border: 9px solid var(--frame); background: #F2F5F4; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.55), 0 0 0 1px var(--line); }
.phone img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before { content: ""; position: absolute; inset: 10% 5% 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent);
  filter: blur(20px); }
.hero-art .phone { position: relative; }
.chip { position: absolute; left: -8px; top: 56%; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); }
.chip .check { width: 30px; height: 30px; border-radius: 50%; background: var(--success);
  display: grid; place-items: center; color: #FFFFFF; font-weight: 800; }
.chip b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.chip span { color: var(--muted); font-size: 13px; }

section { padding: 56px 0; }
h2 { font-size: clamp(28px, 3.6vw, 36px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 620px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { font-size: 18px; margin: 12px 0 6px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--subtle);
  display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.card.hi { background: var(--accent); border-color: var(--accent); }
.card.hi h3, .card.hi p { color: var(--on-accent); }
.card.hi .icon { background: rgba(255,255,255,.16); }
.card.hi .icon svg { stroke: var(--on-accent); }

.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.shots figure { margin: 0; text-align: center; }
.shots .phone { max-width: none; border-width: 7px; border-radius: 34px; }
.shots figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; color: var(--ink); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 14px; }
.steps li span { color: var(--muted); display: block; font-size: 16px; margin-top: 4px; }

.two { grid-template-columns: repeat(2, 1fr); }
.plans .card b { font-size: 26px; letter-spacing: -0.02em; display: block; margin-top: 4px; }
.plans .card .tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); }
.plans .card.hi .tag { color: var(--on-accent); opacity: .7; }
.note { color: var(--muted); max-width: 720px; margin: 20px 0 0; font-size: 16px; }

.data { max-width: 720px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; margin-top: 32px; font-size: 14px; color: var(--muted); }
footer nav { margin-bottom: 14px; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--ink); font-size: 14px; }
footer p { margin: 6px 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(5, 220px); overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .shots figure { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  header nav a.hide-sm { display: none; }
  .grid, .steps, .two { grid-template-columns: 1fr; }
  .chip { left: 0; }
  section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Micro-animations. Everything here is skipped with reduced motion. ---- */
.stores a, .card, .shots .phone, .lang { transition: transform .2s ease, box-shadow .2s ease,
  border-color .2s ease, background-color .2s ease; }
header { transition: box-shadow .25s ease; }
header.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.6); }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: content comes in one line at a time, the phone rises, then the "Paid" chip pops. */
  .hero > div:first-child > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .hero > div:first-child > :nth-child(5) { animation-delay: .32s; }
  .hero-art .phone { animation: rise .8s .15s cubic-bezier(.2,.7,.2,1) both,
    float 6s 1.2s ease-in-out infinite; }
  .chip { animation: pop .5s 1s cubic-bezier(.3,1.5,.5,1) both, float 6s 1.8s ease-in-out infinite; }
  .chip .check { animation: pop .4s 1.25s cubic-bezier(.3,1.6,.5,1) both; }
  /* The highlight on the headline sweeps in. */
  h1 mark { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%;
    animation: sweep .5s .7s cubic-bezier(.6,0,.2,1) both; }
  .eyebrow .dot { animation: pulse 2.4s ease-out infinite; }

  /* Hover: cards, badges and screenshots lift a little. */
  .stores a:hover { transform: translateY(-2px); }
  .card:hover, .steps li:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.6); }
  .card:not(.hi):hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .steps li { transition: transform .2s ease, box-shadow .2s ease; }
  .card .icon svg { transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
  .card:hover .icon svg { transform: scale(1.12) rotate(-4deg); }
  .shots figure:hover .phone { transform: translateY(-6px); }
  /* Highlighted card icon: its lines blink on hover. */
  .card.hi:hover .icon path { animation: wave 1.2s ease-in-out infinite; }
  .card.hi:hover .icon path:nth-child(2) { animation-delay: .15s; }
  .card.hi:hover .icon path:nth-child(3) { animation-delay: .3s; }

  /* Scroll reveal (js/motion.js adds .motion to <html> and .in when an element is in view). */
  .motion :is(section > h2, section > .sub, section > .data, section > .note,
    .grid > .card, .steps > li, .shots > figure) {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease,
      border-color .2s ease;
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .motion :is(section > h2, section > .sub, section > .data, section > .note,
    .grid > .card, .steps > li, .shots > figure).in { opacity: 1; transform: none; }
  /* Once revealed (js/motion.js resets --i), hover reacts quickly. */
  .motion .in.settled:is(.card, li) { transition-duration: .2s; }
  .motion .steps > li.in::before { animation: pop .45s calc(var(--i, 0) * 70ms + .2s) cubic-bezier(.3,1.6,.5,1) both; }
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes sweep { from { color: var(--ink); } to { background-size: 100% 100%; color: var(--on-accent); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes wave { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- Dentix ---- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button.primary { background: var(--accent); color: var(--on-accent);
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--accent) 80%, transparent); }
.button.secondary { background: var(--soft); color: var(--on-soft); }
.soon { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 16px; }
.soon b { color: var(--ink); font-weight: 600; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.plans .card .price { color: var(--muted); font-size: 15px; margin-top: 2px; }
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex;
  justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }
.cta-band { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: 44px 32px;
  display: grid; gap: 18px; justify-items: start; }
.cta-band h2 { color: var(--on-accent); }
.cta-band p { margin: 0; max-width: 560px; opacity: .9; }
.cta-band .button.primary { background: var(--on-accent); color: var(--accent); box-shadow: none; }
.cta-band .button.secondary { background: transparent; color: var(--on-accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--on-accent) 55%, transparent); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .button:hover { transform: translateY(-2px); }
}

/* Asistente de IA: texto y video lado a lado; en el teléfono, uno debajo del otro. */
a.eyebrow { text-decoration: none; }
section[id] { scroll-margin-top: 80px; }
.assistant { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.assistant .tag { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--on-soft); background: var(--soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.assistant h2 { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--soft); color: var(--on-soft); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 16px; }
.assistant-video { margin: 0; text-align: center; }
.assistant-video video { width: 100%; max-width: 960px; height: auto; aspect-ratio: 16 / 9; border-radius: 24px; background: var(--subtle);
  box-shadow: 0 30px 60px rgba(8, 60, 52, .18); display: block; margin: 0 auto; }
.assistant-video figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
/* El iPhone Duo: el texto y, al lado, el video vertical; en el teléfono, uno debajo del otro. */
.duo { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 48px; align-items: center; }
.duo .tag { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--on-soft); background: var(--soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.duo h2 { margin-top: 0; }
.duo .checks { margin-bottom: 0; }
.duo-video { margin: 0; text-align: center; }
.duo-video video { width: 100%; max-width: 380px; height: auto; aspect-ratio: 9 / 16; border-radius: 24px; background: var(--subtle);
  box-shadow: 0 30px 60px rgba(8, 60, 52, .18); display: block; margin: 0 auto; }
.duo-video figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; gap: 32px; } .duo-video video { max-width: 340px; } }
.plan-ai { margin-top: 14px; }
.plan-ai b { display: block; font-size: 20px; margin: 8px 0 4px; }
.plan-ai .button { margin-top: 14px; }


/* El enlace a la tienda en la barra de arriba: también en el teléfono. */
header nav a.nav-cta { color: var(--on-accent); background: var(--accent); font-weight: 700; padding: 8px 16px; border-radius: 999px; }
header nav a.nav-cta:hover { color: var(--on-accent); }

/* El badge oficial de Apple, sin cambiarle colores ni proporciones. */
.store-badge { display: inline-flex; border-radius: 13px; }
.store-badge img { display: block; height: 52px; width: auto; }
