@font-face { font-family: "Bricolage"; src: url(fuentes/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(fuentes/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(fuentes/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(fuentes/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #10201b; --paper: #f5f2ea; --card: #fffdf8; --line: #e2ddd0;
  --text: #10201b; --muted: #56645e; --lime: #c6f36b; --green: #1d5a43; --green-soft: #e3eedb;
  --bubble: #ffffff; --shadow: 0 1px 2px rgb(16 32 27 / .06), 0 12px 32px -12px rgb(16 32 27 / .18);
  --radius: 22px; --wrap: 1120px; --focus: #10201b;
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1915; --card: #14241f; --line: #24372f; --text: #eef1ea; --muted: #9fb0a7;
    --green: #9fd8b5; --green-soft: #1a3129; --bubble: #1c2f28; --shadow: 0 12px 32px -12px rgb(0 0 0 / .5);
    --focus: var(--lime);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark; --focus: var(--lime);
  --paper: #0d1915; --card: #14241f; --line: #24372f; --text: #eef1ea; --muted: #9fb0a7;
  --green: #9fd8b5; --green-soft: #1a3129; --bubble: #1c2f28; --shadow: 0 12px 32px -12px rgb(0 0 0 / .5);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }  /* que la cabecera fija no tape los títulos */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 "Instrument", system-ui, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Bricolage", system-ui, sans-serif; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
:is(.demo, .pains, .plan.featured) :focus-visible { outline-color: var(--lime); }  /* sobre fondo oscuro */
.saltar { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--ink); color: #f5f2ea; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.saltar:focus { top: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; border-radius: 999px;
  padding: 14px 22px; border: 2px solid transparent; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: #10201b; }
.btn-lime:hover { background: #b4e655; }
.btn-line { border-color: var(--line); }
.btn-line:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 26px/1 "Bricolage", sans-serif; letter-spacing: -0.04em; }
.logo img { width: 34px; height: 34px; }
.top nav { display: none; gap: 28px; font-size: 15.5px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top .btn { padding: 10px 16px; font-size: 15px; }
@media (min-width: 900px) { .top nav { display: flex; } }

/* Portada */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 104px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green);
  background: var(--green-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(40px, 7.4vw, 72px); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62% 92%, transparent 92%); padding: 0 .06em; }
:root[data-theme="dark"] .hero h1 em { color: #10201b; background: var(--lime); border-radius: 8px; padding: 0 .12em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: #10201b; background: var(--lime); border-radius: 8px; padding: 0 .12em; } }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 15px; color: var(--muted); padding: 0; list-style: none; }
.trust li::before { content: "✓"; content: "✓" / ""; color: var(--green); font-weight: 700; margin-right: 6px; }

/* Demo animada del portada */
.demo { position: relative; background: var(--ink); color: #eef1ea; border-radius: 28px; padding: 22px; box-shadow: var(--shadow); overflow: hidden; }
.demo-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #9fb0a7; margin-bottom: 18px; }
.demo-head b { color: var(--lime); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.flow { display: grid; gap: 10px; position: relative; }
.step { display: flex; align-items: center; gap: 14px; background: #1a2e27; border: 1px solid #284239; border-radius: 16px; padding: 13px 14px;
  opacity: .45; transition: opacity .4s, border-color .4s, transform .4s; }
.step.on { opacity: 1; border-color: var(--lime); transform: translateX(4px); }
.step i { flex: none; width: 38px; height: 38px; border-radius: 11px; background: #24392f; display: grid; place-items: center; font-style: normal; font-size: 19px; }
.step.on i { background: var(--lime); }
.step small { display: block; color: #9fb0a7; font-size: 13px; line-height: 1.35; }
.step span { font-weight: 600; font-size: 15.5px; }
.chat { margin-top: 16px; display: grid; gap: 8px; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45;
  opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.bubble.show { opacity: 1; transform: none; }
.bubble.in { background: #eef1ea; color: #10201b; border-bottom-left-radius: 5px; }
.bubble.out { justify-self: end; background: var(--lime); color: #10201b; border-bottom-right-radius: 5px; }
.bubble time { display: block; font-size: 11.5px; opacity: .6; margin-top: 3px; text-align: right; }
@media (prefers-reduced-motion: reduce) { .step, .bubble { transition: none; } }

/* Secciones */
section { padding: 72px 0; }
@media (min-width: 960px) { section { padding: 104px 0; } }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.title { font-size: clamp(32px, 5vw, 50px); font-weight: 800; max-width: 17em; }
.sub { color: var(--muted); font-size: 18.5px; margin-top: 16px; max-width: 36em; }

/* ¿Te suena? */
.pains { background: var(--ink); color: #eef1ea; }
.pains .kicker { color: var(--lime); }
.pains .sub { color: #9fb0a7; }
.pain-list { display: grid; gap: 12px; margin-top: 40px; padding: 0; list-style: none; }
@media (min-width: 720px) { .pain-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pain-list { grid-template-columns: repeat(3, 1fr); } }
.pain-list li { background: #1a2e27; border: 1px solid #284239; border-radius: 18px; padding: 20px 20px 20px 56px; position: relative; font-size: 16.5px; }
.pain-list li::before { content: "↻"; content: "↻" / ""; position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 8px;
  background: #2b453b; color: var(--lime); display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.pain-list li.answer { background: var(--lime); color: #10201b; border-color: var(--lime); font-weight: 600; }
.pain-list li.answer::before { content: "→"; content: "→" / ""; background: #10201b; }

/* Ejemplos */
.cards { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 24px; font-weight: 600; }
.card p { color: var(--muted); font-size: 16.5px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; margin-top: auto; padding-top: 6px; }
.chain span { background: var(--green-soft); color: var(--green); padding: 5px 10px; border-radius: 8px; }
.chain b { color: var(--muted); font-weight: 400; }
.tools { margin-top: 28px; color: var(--muted); font-size: 15.5px; }
.tools strong { color: var(--text); font-weight: 600; }

/* Precios */
.plans { display: grid; gap: 16px; margin-top: 44px; align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { background: var(--ink); color: #eef1ea; border-color: var(--ink); }
.plan .tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; background: var(--lime); color: #10201b; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 22px; font-weight: 600; }
.price { font: 800 46px/1 "Bricolage", sans-serif; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { display: block; margin-top: 8px; font: 400 15px/1.4 "Instrument", sans-serif; color: var(--muted); letter-spacing: 0; }
.plan.featured .price small, .plan.featured .desc, .plan.featured li { color: #c7d2cc; }
.plan .desc { color: var(--muted); font-size: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan.featured li::before { color: var(--lime); }
.plan .btn { justify-content: center; margin-top: 6px; }
.plan.featured .btn-line { border-color: #3a554b; color: #eef1ea; }
.note { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 52em; }

/* Cómo trabajo */
.steps { display: grid; gap: 16px; margin-top: 44px; counter-reset: s; padding: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; border-top: 2px solid var(--text); padding-top: 18px; }
.steps li::before { content: "0" counter(s); font: 800 15px "Bricolage", sans-serif; color: var(--green); }
.steps h3 { font-size: 21px; font-weight: 600; margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 16px; }

.promises { display: grid; gap: 12px; margin-top: 56px; }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .promises { grid-template-columns: repeat(4, 1fr); } }
.promise { background: var(--green-soft); border-radius: 18px; padding: 20px; }
.promise b { display: block; font-family: "Bricolage", sans-serif; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.promise p { color: var(--muted); font-size: 15px; }

/* Preguntas */
.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 44em; }

/* Contacto */
.contact { padding: 0 0 72px; }
.contact-box { background: var(--lime); color: #10201b; border-radius: 32px; padding: 40px 24px; display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-box { padding: 64px; grid-template-columns: 1.3fr 1fr; align-items: center; } }
.contact-box h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.contact-box p { margin-top: 14px; font-size: 18px; }
.contact-box .btn { background: #10201b; color: #f5f2ea; justify-self: start; }
.contact-box .btn:hover { background: #1d3a30; }
.contact-box ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 15.5px; }
.contact-box li::before { content: "→ "; content: "→ " / ""; font-weight: 700; }
.mail { font: 600 clamp(20px, 3vw, 26px) "Bricolage", sans-serif; word-break: break-all; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Páginas legales */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal .upd { font-size: 14.5px; }
.fill { background: #fff3b0; color: #5c4600; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* En modo oscuro las tarjetas oscuras necesitan borde para no fundirse con el fondo */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.demo, .plan.featured, .pains .pain-list li:not(.answer)) { border: 1px solid #2c463c; } }
:root[data-theme="dark"] :is(.demo, .plan.featured) { border: 1px solid #2c463c; }

/* Recomendaciones (con enlaces de afiliado declarados) y avisos de producto propio en las herramientas */
.reco[hidden] { display: none; }
.reco { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.reco h3 { font-size: 18px; font-weight: 700; }
.reco ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reco li { display: grid; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.reco li a { font-weight: 700; color: var(--text); }
.reco li span { color: var(--muted); font-size: 15px; }
.reco .afil { font-size: 13px; color: var(--muted); }
.propio { background: var(--lime); color: #10201b; border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.propio b { font: 700 18px/1.25 "Bricolage", sans-serif; }
.propio a { justify-self: start; font-weight: 700; color: #10201b; }
