:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #0f0e0c;
  --muted: #5d5850;
  --line: #e7e1d6;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --resto: #fff1e6;
  --estetica: #fbeef3;
  --clinica: #eaf4f2;
  --radius: 18px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110f;
    --surface: #1c1a17;
    --ink: #f4efe7;
    --muted: #b3ab9f;
    --line: #2e2b26;
    --resto: #221a14;
    --estetica: #221820;
    --clinica: #14201e;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 17px; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }

.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: .9em 1.4em; border-radius: 999px; border: 2px solid var(--accent); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -10px var(--accent); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { box-shadow: none; border-color: var(--ink); }
.btn--small { padding: .55em 1.1em; font-size: .9rem; }
.btn--light { background: #fff; color: #0f0e0c; border-color: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.02em; }
.logo__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.nav__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav__links { display: none; } }

/* Hero */
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 8vw, 96px); }
.hero__title { font-size: clamp(2.3rem, 6.4vw, 4.8rem); font-weight: 800; max-width: 15ch; }
.hero__title span { display: block; color: var(--accent); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero__facts strong { color: var(--ink); }

/* Steps */
.how { padding: 72px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; }
.steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 16px; }

/* Sectors */
.sector { padding: clamp(64px, 10vw, 120px) 0; }
.sector--resto { background: var(--resto); }
.sector--estetica { background: var(--estetica); }
.sector--clinica { background: var(--clinica); }
.sector__grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr 1fr; }
.sector__grid--rev .sector__text { order: 2; }
@media (max-width: 820px) {
  .sector__grid { grid-template-columns: 1fr; }
  .sector__grid--rev .sector__text { order: 0; }
}
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.3em + 4px); width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Mock browser */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); overflow: hidden; }
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock__body { padding: 20px; display: grid; gap: 16px; }
.mock__hero { height: 140px; border-radius: 12px; background: linear-gradient(135deg, #ff8a4c, #c2410c); }
.mock__row { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; }
.mock__row span { color: var(--muted); flex: 1; }
.mock__row em { font-style: normal; font-weight: 700; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .82rem; }
.mock__lines { display: grid; gap: 8px; }
.mock__lines i { height: 10px; border-radius: 6px; background: var(--line); }
.mock__chips, .mock__slots { display: flex; flex-wrap: wrap; gap: 8px; }
.mock__chips span, .mock__slots span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; }
.mock__slots span { border-radius: 10px; }
.mock__chips .on, .mock__slots .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mock__doc { display: flex; align-items: center; gap: 12px; }
.mock__doc small { display: block; color: var(--muted); }
.mock__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #5eb8a8, #1f6f63); flex: none; }

/* Scroll-driven video section */
.scrolly { position: relative; height: 260vh; background: #0f0e0c; color: #f4efe7; }
.scrolly__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; }
.scrolly__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrolly__content { position: relative; z-index: 1; width: 100%; }
.scrolly__content .section-title { max-width: 18ch; }
.scrolly__lead { color: #cfc7bb; max-width: 44ch; font-size: 1.1rem; }
.scrolly__progress { margin-top: 36px; width: 180px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.scrolly__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* CTA */
.cta { padding: clamp(72px, 10vw, 120px) 0; background: var(--accent); color: #fff; text-align: center; }
.cta .section-title { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta p { font-size: 1.15rem; opacity: .92; }

.footer { padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .scrolly { height: auto; }
  .scrolly__sticky { position: relative; height: auto; min-height: 80vh; padding: 96px 0; }
}
