:root {
  --bg: #fffbf7;
  --tint: #fbf1e9;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #eadfd5;
  --accent: #c2462a;      /* botones y texto de acento (contraste AA sobre blanco) */
  --accent-soft: #fde4da;
  --accent-ink: #9a3412;
  --ok: #15803d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(68, 40, 20, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.wrap--narrow { width: min(760px, 92vw); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hl { color: var(--accent); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; border: 2px solid var(--accent); border-radius: 999px; padding: .8em 1.4em; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, background .15s; }
.btn:hover { background: #a93a20; border-color: #a93a20; transform: translateY(-1px); }
.btn--small { padding: .5em 1.05em; font-size: .92rem; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn--light { background: #fff; color: var(--accent-ink); border-color: #fff; }
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.link { font-weight: 700; text-decoration: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 251, 247, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.logo__dot { color: var(--accent); }
.nav__links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--accent); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 3rem; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); font-size: .95rem; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: .4em; }
.checks--col { flex-direction: column; }

.phone { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; max-width: 380px; margin-left: auto; }
.phone__bar, .chat__head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--ink); color: #fff; }
.phone__bar small, .chat__head small { display: block; opacity: .75; font-size: .78rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.2rem; flex: none; }
.phone__body { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: #f6efe8; }
.bubble { margin: 0; padding: .6rem .85rem; border-radius: 14px; max-width: 85%; font-size: .93rem; box-shadow: 0 1px 1px rgba(0,0,0,.05); white-space: pre-line; }
.bubble--in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble--out { background: #ffe9df; align-self: flex-end; border-bottom-right-radius: 4px; }

/* Secciones */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--tint); }
.pains { padding: 2rem 0 3.5rem; }
.grid { display: grid; gap: 1.2rem; margin-top: 2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.pain span { font-size: 1.6rem; }
.pain p { margin: .5rem 0 0; color: var(--muted); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card__icon { font-size: 1.8rem; margin-bottom: .6rem; }
.card__price { margin: auto 0 0; color: var(--ink) !important; }
.card__price b { color: var(--accent); font-size: 1.15rem; }
.card--accent { background: var(--accent-soft); border-color: transparent; }

/* Demos */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1.5rem; }
.tab { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.2rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.demo[hidden] { display: none; }
.demo--soon { grid-template-columns: 1fr; text-align: center; padding: 3rem 1.5rem; }
.demo__note { margin-top: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font: inherit; font-size: .88rem; background: var(--tint); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .4rem .8rem; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

.chat { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; height: 460px; }
.chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: #f6efe8; }
.chat__form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: #fff; }
.chat__form input, .booking input { flex: 1; font: inherit; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1rem; background: var(--bg); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.booking__step { font-weight: 700; margin: 0 0 .6rem; }
.days, .slots { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.day, .slot { font: inherit; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .55rem .8rem; cursor: pointer; text-align: center; }
.day small { display: block; color: var(--muted); font-size: .75rem; }
.day.is-active, .slot.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.is-active small { color: #ddd; }
.slot:disabled { text-decoration: line-through; color: #a8a29e; cursor: not-allowed; background: #f5f5f4; }
.booking__form { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.booking__form label { font-size: .9rem; color: var(--muted); }
.booking__form input { width: 100%; max-width: 320px; border-radius: 12px; }
.done { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 16px; padding: 1.2rem; }
.done h4 { margin: 0 0 .5rem; color: var(--ok); }
.done .bubble { margin-top: .8rem; max-width: 100%; }

/* Pasos */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; margin-bottom: .4rem; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Precios */
.prices { align-items: stretch; }
.price { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; position: relative; }
.price--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price__tag { margin: 0; font-size: 1.05rem; }
.price__tag b { font-size: 1.7rem; letter-spacing: -.02em; }
.price ul { padding-left: 1.1rem; margin: 1rem 0 0; color: var(--muted); }
.price li { margin-bottom: .35rem; }
.badge { position: absolute; top: -13px; left: 1.8rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; margin: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); margin: .7rem 0 0; }

/* CTA y footer */
.cta { background: var(--ink); color: #fff; }
.cta .lead { color: #d6d3d1; margin: 0 auto 1.8rem; }
.footer { padding: 2rem 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .demo { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .chat { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
