/* ADM Group — paleta clara, elegante y minimalista (ver docs/DIRECTRICES.md) */
:root {
  --bg: #F6F3EE;          /* marfil claro */
  --surface: #FFFFFF;
  --surface-2: #FBF9F6;
  --ink: #121212;         /* casi negro */
  --muted: #6E6A64;       /* gris secundario */
  --line: #E3DED5;        /* líneas finas */
  --blue: #0052CC;
  --blue-soft: #E8EEF9;
  --gold: #B8901F;
  --gold-soft: #F5EDD8;
  --wa: #25D366;          /* solo WhatsApp */
  --gray-btn: #E9E5DE;
  --radius: 18px;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(18,18,18,.04), 0 24px 60px -28px rgba(18,18,18,.22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.i { width: 1.15em; height: 1.15em; flex: none; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; }
.h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
.note { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #A29D95; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; }
.logo-text small { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.38em; color: var(--muted); margin-top: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #08341A; }
.btn-wa:hover { box-shadow: 0 10px 26px -10px rgba(37,211,102,.7); }
.btn-gray { background: var(--gray-btn); color: var(--ink); }
.btn-gray:hover { background: #DFDAD2; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.link { color: var(--blue); font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(246,243,238,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.nav-links { display: flex; gap: 34px; font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- 1. Hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: clamp(40px, 6vw, 96px); padding-top: 130px; padding-bottom: 90px;
}
.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.045em; max-width: 14ch; }
.hero-sub { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 48ch; margin: 28px 0 38px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { margin-top: 30px; font-size: 0.88rem; color: var(--muted); }
.proof strong { color: var(--ink); font-weight: 700; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: middle; position: relative; top: -1px; }

.hero-visual { position: relative; max-width: 420px; width: 100%; justify-self: end; padding: 34px 0 40px; }
.chat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.chat-head small { display: block; color: var(--muted); font-size: 0.74rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.chat-avatar svg { width: 24px; height: 24px; }
.chat-time { margin-left: auto; color: var(--muted); font-size: 0.78rem; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 24px; min-height: 360px; background: var(--surface-2); font-size: 0.88rem; line-height: 1.5; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; }
.msg.in { align-self: flex-start; background: #EFEBE4; border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: var(--blue-soft); color: #0B2A5B; border-bottom-right-radius: 5px; }
.typing { align-self: flex-end; display: none; gap: 4px; padding: 13px 14px; background: var(--blue-soft); border-radius: 16px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: .5; animation: dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: .8; transform: translateY(-2px); } }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; box-shadow: var(--shadow);
}
.chip b { color: var(--ink); }
.chip-speed { top: 0; left: -28px; }
.chip-alert { bottom: 0; right: -24px; max-width: 300px; border-radius: 16px; align-items: flex-start; line-height: 1.4; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip-alert .chip-dot { margin-top: 5px; }
.chip-dot.blue { background: var(--blue); }
.chip-dot.gold { background: var(--gold); }
.hero-visual > .note { position: absolute; bottom: -18px; left: 0; }

/* ---------- 2. Problema ---------- */
.problem { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.problem-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); padding-block: clamp(90px, 13vh, 150px); }
.problem-head { align-self: start; position: sticky; top: 120px; }
.problem-head .muted { margin-top: 16px; }
.pains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pains li { border-bottom: 1px solid var(--line); }
.pain {
  width: 100%; display: flex; align-items: flex-start; gap: 20px; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 26px 4px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 500; line-height: 1.45;
  transition: color .2s;
}
.pain:hover { color: var(--blue); }
.check { width: 24px; height: 24px; flex: none; margin-top: 2px; border-radius: 50%; border: 1.5px solid #C9C3B8; position: relative; transition: background .25s, border-color .25s; }
.check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s; }
.pain[aria-pressed="true"] { color: var(--ink); }
.pain[aria-pressed="true"] .check { background: var(--blue); border-color: var(--blue); }
.pain[aria-pressed="true"] .check::after { transform: rotate(45deg) scale(1); }
.verdict { margin-top: 36px; display: grid; gap: 16px; }
.meter { height: 2px; background: var(--line); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: var(--blue); transition: width .5s cubic-bezier(.2,.8,.2,1), background .3s; }
.verdict p { color: var(--muted); font-size: 1.05rem; }
.verdict strong { color: var(--ink); }
.verdict.hit .meter-fill { background: var(--gold); }
.verdict.hit strong { color: var(--gold); }

/* ---------- 3. Solución ---------- */
.solution { padding-block: clamp(90px, 13vh, 150px); }
.features { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 30px 26px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: start; gap: 12px; transition: background .3s; }
.feature:hover { background: var(--surface); }
.f-n { font-size: 0.78rem; font-weight: 700; color: var(--blue); }
.feature h3 { font-size: 1.22rem; letter-spacing: -0.025em; }
.feature p { color: var(--muted); font-size: 0.94rem; }
.feature-cta { align-content: end; background: var(--surface); }
.feature-cta p { color: var(--ink); font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.feature-cta .link { justify-self: start; }

.app { margin-top: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-title { font-weight: 700; }
.app-date { margin-left: auto; color: var(--muted); }
.app-body { padding: clamp(18px, 3vw, 32px); display: grid; gap: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 6px; }
.kpi small { font-size: 0.78rem; color: var(--muted); }
.kpi b { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi b.gold { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 0.9rem; }
.tr { display: grid; grid-template-columns: 1.4fr 1fr .7fr 1.3fr 1fr; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.tr:last-child { border-bottom: 0; }
.th { background: var(--surface-2); font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tr span:first-child { font-weight: 700; }
.tag { font-style: normal; font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: var(--blue-soft); color: var(--blue); }
.tag-warn { background: var(--gold-soft); color: #8A6A10; }
.tag-due { background: #EFEBE4; color: var(--muted); }
.app > .note { position: absolute; top: 16px; right: 70px; }

/* ---------- 4. Pasos ---------- */
.steps-sec { padding-block: clamp(90px, 13vh, 150px) clamp(60px, 9vh, 100px); border-top: 1px solid var(--line); }
.steps { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: 36px; }
.steps-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: left; }
.step { display: grid; gap: 14px; align-content: start; }
.step-n { font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.step h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.03em; }
.step p { color: var(--muted); }
.final { margin-top: clamp(90px, 13vh, 150px); text-align: center; display: grid; justify-items: center; gap: 32px; }
.final-title { font-size: clamp(2.2rem, 5.4vw, 4.2rem); letter-spacing: -0.045em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 32px 40px; padding-right: max(var(--pad), 90px); font-size: 0.88rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #08341A;
  box-shadow: 0 12px 28px -10px rgba(18,18,18,.35);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.wa-float .i { width: 26px; height: 26px; }
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }

/* SplitText: hueco para descendentes */
.ln-mask { padding-bottom: 0.24em; margin-bottom: -0.24em; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-title, .js [data-in] { visibility: hidden; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .chip-speed { left: -8px; }
  .chip-alert { right: -8px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; }
  .hero-visual { justify-self: center; }
  .problem-in { grid-template-columns: 1fr; }
  .problem-head { position: static; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .tr { grid-template-columns: 1.3fr 1fr 1.2fr; }
  .tr span:nth-child(2), .tr span:nth-child(5) { display: none; }
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; }
  .steps-line { top: 0; bottom: 0; left: 0; right: auto; width: 1px; height: auto; transform-origin: top; }
  .app > .note { position: static; display: block; padding: 0 20px 18px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 10px; }
  .hero-ctas .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .chip-speed { left: 0; }
  .chip-alert { right: 0; max-width: 250px; }
  .tr { padding: 12px 14px; font-size: 0.82rem; grid-template-columns: 1.1fr 1fr; }
  .tr span:nth-child(3) { display: none; }
  .th span:nth-child(4) { text-align: left; }
  .footer-in { flex-direction: column; align-items: flex-start; padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typing span { animation: none; }
}

/* Logo monograma: el avatar del chat usa el símbolo tal cual */
.chat-avatar { background: none; }
.chat-avatar svg { width: 36px; height: 36px; }
.logo-mark { width: 34px; height: 34px; }
.logo { gap: 11px; }
