@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #17161c;
  --ink-2: #4a4855;
  --ink-3: #7b7887;
  --line: #e8e5de;
  --brand: #4f3df5;
  --brand-ink: #ffffff;
  --brand-soft: #efedff;
  --yes: #0f8a5f;
  --yes-soft: #e3f5ec;
  --no: #c2410c;
  --no-soft: #fdeee4;
  --warn-soft: #fff6d6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 22, 28, .04), 0 8px 24px rgba(23, 22, 28, .06);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; color: var(--ink-3); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: .8em; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 24px; height: 21px; fill: #7d6dff; flex: none; }
.nav { display: none; gap: 22px; font-size: .95rem; }
.nav a { color: var(--ink-2); font-weight: 600; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }
.menu-btn { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-nav { display: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; text-align: center; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2c2a35; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.top .btn-sm { display: none; }
@media (min-width: 560px) { .top .btn-sm { display: inline-flex; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Secciones */
section { padding: 64px 0; }
@media (min-width: 720px) { section { padding: 96px 0; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding-top: 48px; }
@media (min-width: 720px) { .hero { padding-top: 72px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; }
.hero .btn-row { margin: 28px 0 14px; }
.hl { background: linear-gradient(transparent 62%, #d9d4ff 62%); }

/* Simulación de respuesta de IA */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; }
.chat-q { margin-left: auto; max-width: 85%; background: #f1f0ec; border-radius: 16px 16px 4px 16px; padding: 12px 14px; font-size: .95rem; }
.chat-a { margin-top: 14px; font-size: .95rem; color: var(--ink-2); }
.chat-a strong { color: var(--ink); }
.chat-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.chat-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.chat-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.chat-list li.you { border-style: dashed; color: var(--ink-3); }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill-yes { background: var(--yes-soft); color: var(--yes); }
.pill-no { background: var(--no-soft); color: var(--no); }
.chat-foot { margin-top: 12px; font-size: .8rem; color: var(--ink-3); }

/* Tarjetas */
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.num { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 14px; }
.stat { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.src { font-size: .8rem; color: var(--ink-3); }
.src a { color: var(--ink-3); text-decoration: underline; }

/* Listas con palomita */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { padding-left: 28px; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--yes-soft); box-shadow: inset 0 0 0 5px var(--yes-soft), inset 0 0 0 16px var(--yes); transform: scale(.75); }
.cross li::before { background: var(--no-soft); box-shadow: inset 0 0 0 5px var(--no-soft), inset 0 0 0 16px var(--no); }

/* Comparativo antes/ahora */
.vs { display: grid; gap: 18px; }
@media (min-width: 820px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs .card h3 { display: flex; align-items: center; gap: 10px; }

/* Precios */
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.plan.featured { border: 2px solid var(--ink); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 0; }
.plan .price span { font-size: .95rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.plan .alt-price { font-size: .9rem; color: var(--ink-3); margin-bottom: 18px; }
.plan .check { margin: 18px 0 24px; flex: 1; font-size: .95rem; align-content: start; }
.plan .btn { width: 100%; }
.currency { display: inline-flex; background: #efede8; border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 28px; }
.currency button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.currency button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Preguntas */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--ink-3); }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--ink-2); }

/* Llamado final */
.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 44px 24px; text-align: center; }
@media (min-width: 720px) { .cta-band { padding: 64px 48px; } }
.cta-band p { color: #c9c7d1; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-ghost { color: #fff; border-color: #4a4855; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }

/* Formulario */
.form { display: grid; gap: 16px; }
.form label { font-weight: 700; font-size: .95rem; display: grid; gap: 6px; }
.form label span { font-weight: 500; color: var(--ink-3); font-size: .85rem; }
.form input, .form textarea, .form select { font: inherit; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }

/* Artículos */
.article { max-width: 740px; margin: 0 auto; }
.article h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .4em; }
.answer { background: var(--brand-soft); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 28px; }
.answer p:last-child { margin: 0; }
.article table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-weight: 700; background: #f4f2ed; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }

/* Pendientes visibles para el equipo */
.todo { background: var(--warn-soft); border: 1px dashed #d4b106; border-radius: 12px; padding: 14px 16px; font-size: .9rem; color: #6b5300; }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: .92rem; color: var(--ink-2); }
footer .cols { display: grid; gap: 28px; }
@media (min-width: 820px) { footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--ink-2); }

/* Botón flotante de WhatsApp */
.wa { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: #1f9d55; color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); }
.wa:hover { text-decoration: none; background: #198447; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; color: #7d6dff; line-height: 1.1; }
.metrics span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; line-height: 1.3; }
.card.case { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card.case h3 { max-width: 22ch; }
.card.case .metrics { width: 100%; }
.card.case .case-chart { width: 100%; margin: 0 0 14px; }
.card.case .case-chart figcaption { margin-top: 6px; }
.card.case p.muted { flex: 1; margin-bottom: 18px; }
.faq { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq h3 { font-size: 1.1rem; margin: 0 0 8px; }
.faq p { margin: 0; color: var(--ink-2); }
.faq p + p { margin-top: 10px; }
.card.study { padding: 26px; }
.sb { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 12px; font-size: .92rem; font-weight: 700; margin-bottom: 12px; }
.sb i { display: block; height: 14px; border-radius: 7px; background: #7d6dff; }
.sb em { font-style: normal; color: var(--ink-3); font-weight: 600; text-align: right; font-size: .85rem; }
.sb:last-child { color: var(--ink-3); margin: 0; }
.sb:last-child i { background: #e4e2ee; min-width: 6px; }
.term { padding: 22px 0; border-bottom: 1px solid var(--line); }
.term h3 { font-size: 1.1rem; margin: 0 0 8px; }
.term p { margin: 0; color: var(--ink-2); }
