:root {
  --navy: #211F50; --yellow: #FFC636; --yellow-soft: #FFF3CC; --ink: #23223a; --muted: #6b6b80; --line: #e8e8f0;
  --bg: #ffffff; --bg-alt: #f8f9fc; --green: #25d366; --green-dark: #128c7e; --wa-bg: #efeae2; --wa-out: #d9fdd3;
  --radius: 18px; --shadow: 0 10px 40px rgba(33, 31, 80, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); margin-bottom: .6em; }
h3 { font-size: 1.2rem; margin-bottom: .3em; }
p { margin: 0 0 1em; }
mark { background: none; color: inherit; background-image: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.two { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.lead.center { margin: 0 auto 1.2em; text-align: center; }
.fine { font-size: .9rem; color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--yellow-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 8px 24px rgba(33,31,80,.25); }
.btn.primary:hover { background: #2c2a6b; }
.btn.dark { background: var(--navy); color: #fff; }
.btn.ghost { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn.ghost:hover { background: var(--bg-alt); }
.btn.wa { background: var(--green); color: #fff; }
.btn.wa::before { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.8-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-1 1.2-.2.2-.3.2-.6.1-.3-.1-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.5-.5c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5-.1-.1-.7-1.6-.9-2.2-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5 2.5 1 3 .8 3.6.8.6-.1 1.8-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.2-.3-.3-.6-.4zM12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn.big { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
.brand img { border-radius: 8px; }
.nav .links { display: none; gap: 22px; margin-left: auto; font-weight: 700; color: var(--navy); }
.nav .links a { text-decoration: none; opacity: .85; }
.nav .links a:hover { opacity: 1; }
.nav .btn { margin-left: auto; }
.nav .links + .btn { margin-left: 0; }
.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.burger span { width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; }
body.menu-open .nav .links { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: #fff; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
body.menu-open .nav .links a { padding: 10px 0; font-size: 1.1rem; }
.nav.slim .btn { margin-left: auto; }

/* hero */
.hero { padding: 40px 0 30px; overflow: hidden; }
.hero-text h1 { max-width: 14ch; }
.hero-phone { display: flex; justify-content: center; }

/* strip */
.strip { background: var(--navy); color: #fff; font-weight: 700; padding: 14px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; font-size: .95rem; }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 30px 0 34px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step .n { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 1.2rem; align-items: center; justify-content: center; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ic { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.who-list { list-style: none; padding: 0; margin: 10px 0 24px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.who-list li { background: var(--bg-alt); border-radius: 14px; padding: 14px 16px 14px 46px; position: relative; font-weight: 600; color: var(--navy); }
.who-list li::before { content: "…"; position: absolute; left: 16px; top: 10px; font-weight: 800; color: var(--yellow); font-size: 1.3rem; }
.checks { list-style: none; padding: 0; margin: 10px 0 18px; }
.checks li { padding: 8px 0 8px 34px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.checks.big li { font-size: 1.05rem; }
.badges { display: grid; grid-template-columns: 1fr; gap: 12px; }
.badge { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.badge b { color: var(--navy); }
.badge span { color: var(--muted); font-size: .95rem; }
.trust p { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.trust b { color: var(--navy); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 12px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--yellow); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 14px; }

/* final CTA */
.final { background: var(--yellow); padding: 64px 0; }
.final h2 { margin-bottom: .4em; }
.final .lead { color: var(--navy); opacity: .85; }
.qr-box { background: #fff; border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); width: 260px; justify-self: center; }
.qr-box p { font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.qr-box small { color: var(--muted); }
.qr-box img { margin: 0 auto 6px; }

/* footer */
.footer { background: var(--navy); color: #fff; padding: 36px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.footer .brand { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer nav a { color: #fff; opacity: .85; text-decoration: none; font-weight: 600; }
.footer p { width: 100%; margin: 6px 0 0; opacity: .7; font-size: .9rem; }

/* ===== phone mockup (looks like the app) ===== */
.phone { width: min(340px, 100%); background: var(--wa-bg); border-radius: 36px; border: 8px solid #1c1c22; box-shadow: 0 30px 60px rgba(33,31,80,.25); overflow: hidden; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 14px; color: #111b21; }
.phone-top { display: flex; align-items: center; gap: 8px; background: #fff; padding: 12px 10px 10px; border-bottom: 1px solid #e9edef; }
.p-back { font-size: 24px; color: #54656f; line-height: 1; }
.p-avatar { width: 36px; height: 36px; border-radius: 50%; background: #dfe5e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-3.3 0-8 1.7-8 4v2h16v-2c0-2.3-4.7-4-8-4z'/%3E%3C/svg%3E") center/24px no-repeat; flex: none; }
.p-title { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.p-title b { font-size: 15px; }
.p-title small { color: #667781; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat { height: 470px; overflow: hidden; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.045' stroke-width='1.2'%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Cpath d='M70 15l8 8-8 8-8-8z'/%3E%3Cpath d='M100 60h12M106 54v12'/%3E%3Ccircle cx='85' cy='95' r='4'/%3E%3C/g%3E%3C/svg%3E"); }
.m { position: relative; max-width: 86%; background: #fff; border-radius: 8px; padding: 6px 8px 16px 9px; box-shadow: 0 1px .5px rgba(11,20,26,.13); line-height: 1.3; transition: opacity .35s, transform .35s; }
/* Messages are visible by default; only while animating are the pending ones hidden (progressive enhancement). */
.phone.animating .m:not(.show) { opacity: 0; transform: translateY(8px); }
.m.out { align-self: flex-end; background: var(--wa-out); }
.m i { position: absolute; right: 7px; bottom: 3px; font-style: normal; font-size: 10.5px; color: #667781; }
.m .ticks { color: #53bdeb; }
.who { display: block; font-size: 12px; font-weight: 700; color: #e17076; margin-bottom: 1px; }
.m[data-step="2"] .who { color: #7bc862; }
.who.ai { color: #7c5cff; }
.who.ai em { font-style: normal; font-size: 9px; background: #efe9ff; padding: 1px 4px; border-radius: 3px; margin-left: 4px; }
.at { color: #027eb5; }
.tl { min-width: 210px; }
.tl-h { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(0,0,0,.08); padding-bottom: 6px; margin-bottom: 4px; }
.tl-h .tick { width: 22px; height: 22px; border-radius: 50%; background: #00a884; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.tl-h b { flex: 1; }
.tl-h span:last-child { font-size: 11px; color: #667781; }
.tl label { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.tl label.done { color: #667781; text-decoration: line-through; }
.cb { width: 18px; height: 18px; border: 2px solid #8696a0; border-radius: 50%; flex: none; }
.cb.on { background: #00a884; border-color: #00a884; position: relative; }
.cb.on::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ini { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: #dfe5e7; color: #54656f; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.audio { display: flex; align-items: center; gap: 8px; min-width: 190px; padding: 4px 0; }
.audio .play { color: #8696a0; font-size: 16px; }
.audio .bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(0,0,0,.14); position: relative; }
.audio .bar span { position: absolute; left: 0; top: 0; height: 100%; width: 35%; background: #4fc3f7; border-radius: 2px; }
.audio .dur { font-size: 11px; color: #667781; }
.transcript { border-top: 1px solid rgba(0,0,0,.08); margin-top: 4px; padding-top: 5px; font-size: 12.5px; }
.transcript { color: #111b21; }
.transcript::first-line { font-size: 10px; color: #8696a0; letter-spacing: .3px; }
.phone-bar { display: flex; align-items: center; gap: 8px; padding: 8px; background: #f0f2f5; }
.phone-bar span:first-child { flex: 1; background: #fff; border-radius: 20px; padding: 10px 14px; color: #8696a0; }
.phone-bar .mic { width: 40px; height: 40px; border-radius: 50%; background: #25d366; display: inline-flex; align-items: center; justify-content: center; }

/* ===== responsive ===== */
@media (min-width: 720px) {
  .steps, .badges { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .who-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .two { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero { padding: 64px 0 40px; }
  .nav .links { display: flex; }
  .nav .btn { margin-left: 0; }
  .burger { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 84px 0; }
}
@media (max-width: 899px) {
  .nav .wrap .btn.primary { display: none; }
  body.menu-open .nav .wrap .btn.primary { display: inline-flex; position: absolute; left: 20px; right: 20px; top: 260px; }
  .hero-phone { order: 2; }
}
@media (max-width: 400px) {
  .btn.big { width: 100%; }
  .cta-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .m, .phone.animating .m:not(.show) { transition: none; opacity: 1; transform: none; }
}

/* Legal pages (privacidad, términos) */
.legal-text h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .6em; }
.legal-text h2 { font-size: 1.25rem; margin: 1.8em 0 .4em; }
.legal-text h3 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
.legal-text ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal-text li { margin-bottom: .35em; }
.legal-text address { font-style: normal; line-height: 1.6; }
.legal-text code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .95em; }
