:root {
  --ink: #10160d;
  --ink-2: #1b2416;
  --paper: #f5f3ea;
  --card: #ffffff;
  --lime: #55c22b;
  --lime-deep: #2d7a12;
  --lime-soft: #e3f5d6;
  --warn: #ffd23f;
  --text: #1a2016;
  --muted: #5b6455;
  --line: rgba(16, 22, 13, 0.12);
  --radius: 14px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font: 700 1.05rem/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 6px 0 var(--lime-deep); }
.btn-primary:hover { background: #63d335; }
.btn-primary:active { box-shadow: 0 3px 0 var(--lime-deep); transform: translateY(3px); }
.btn-ghost { background: transparent; color: var(--muted); padding: 0 14px; }
.btn-ghost:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 3px; }

/* Topbar */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.45rem/1 var(--head); letter-spacing: .01em; }
.brand img { border-radius: 50%; width: 40px; height: 40px; }
.topbar-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; background: rgba(255,255,255,.08); padding: 9px 14px; border-radius: 999px; }
.topbar-phone svg { width: 18px; height: 18px; fill: var(--lime); }

/* Hero */
.hero { background: var(--ink); color: #f1f4ee; padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 2px solid rgba(85,194,43,.22); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.eyebrow { font: 700 .82rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.eyebrow-dark { color: var(--lime-deep); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
.hero mark { background: none; color: var(--warn); }
.lead { margin-top: 22px; font-size: 1.12rem; color: #c9d2c3; max-width: 60ch; }
.lead strong { color: #fff; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-note { color: #9aa693; font-size: .95rem; }
.hero-checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-checks li { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 14px 7px 34px; font-weight: 600; font-size: .95rem; position: relative; }
.hero-checks li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 12px; height: 7px; border-left: 3px solid var(--lime); border-bottom: 3px solid var(--lime); transform: translateY(-70%) rotate(-45deg); }

/* Payslip card */
.payslip { background: var(--paper); color: var(--text); border-radius: 18px; padding: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(1.2deg); }
.payslip-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.tag { background: var(--ink); color: var(--lime); padding: 4px 10px; border-radius: 6px; letter-spacing: .04em; }
.payslip-rows { margin: 0; }
.payslip-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.payslip-rows dt { color: var(--muted); }
.payslip-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.payslip-diff { display: flex; justify-content: space-between; align-items: center; background: var(--warn); border-radius: 12px; padding: 14px 18px; margin-top: 16px; }
.payslip-diff span { font-weight: 700; }
.payslip-diff strong { font: 800 2.6rem/1 var(--head); }
.payslip-foot { margin-top: 16px; display: grid; gap: 8px; font-size: .97rem; }
.fine { font-size: .8rem; color: var(--muted); }

/* Facts */
.facts { background: var(--lime); border-block: 3px solid var(--ink); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 18px; display: grid; gap: 4px; border-right: 2px solid rgba(16,22,13,.18); }
.fact:last-child { border-right: 0; }
.fact b { font: 800 2.2rem/1 var(--head); color: var(--ink); }
.fact span { font-size: .95rem; font-weight: 500; color: #1d2b15; }

/* Calculadora */
.calc-section { padding: 84px 0; background: var(--paper); scroll-margin-top: 64px; }
.calc-section .eyebrow { margin-bottom: 12px; }
.calc-sub { color: var(--muted); margin-top: 12px; max-width: 68ch; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; align-items: start; }
.calc-form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 20px; }
.calc-form fieldset { border: 0; padding: 0; margin: 0; }
.calc-form legend { font: 600 1rem var(--body); margin-bottom: 10px; padding: 0; }
.calc-form .field small { color: var(--muted); font-weight: 400; }
.calc-row { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-row legend { width: 100%; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; }
.pill input:checked + span { border-color: var(--lime-deep); background: var(--lime-soft); }
.pill input:focus-visible + span { outline: 3px solid var(--warn); outline-offset: 2px; }
.calc-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-months legend { grid-column: 1 / -1; }
.calc-months label { display: grid; gap: 4px; font-weight: 700; }
.calc-months input { min-height: 50px; border: 2px solid var(--line); border-radius: 12px; padding: 0 12px; font: 600 1.1rem var(--body); width: 100%; }
.calc-months input:focus { border-color: var(--lime-deep); outline: none; }
.calc-result { position: sticky; top: 90px; background: var(--ink); color: #eef2ea; border-radius: 20px; padding: 28px; display: grid; gap: 10px; box-shadow: 0 24px 50px rgba(0,0,0,.18); }
.calc-result-label { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--lime); }
.calc-total { font: 800 clamp(3rem, 8vw, 4.6rem)/1 var(--head); color: var(--warn); font-variant-numeric: tabular-nums; }
.calc-mora { color: #c9d2c3; font-weight: 600; }
.calc-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.calc-table th { text-align: right; font-weight: 600; color: #9aa693; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.14); }
.calc-table td { text-align: right; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table td small { color: #9aa693; }
.calc-table b { color: var(--lime); }
.calc-msg { background: rgba(255,210,63,.12); border-radius: 12px; padding: 12px 14px; color: #f3e7b6; }
.calc-cta { margin-top: 8px; }
.calc-result .fine { color: #8e9a88; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .calc-section { padding: 60px 0; }
}
@media (max-width: 640px) { .calc-form, .calc-result { padding: 20px; } .calc-cta { width: 100%; } }

/* Pain */
.pain { padding: 84px 0; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.pain-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; border-left: 6px solid var(--lime); }
.pain-card h3 { font-size: 1.5rem; }
.pain-card p { color: var(--muted); }

/* Quiz */
.quiz-section { background: var(--lime-soft); padding: 84px 0; scroll-margin-top: 64px; }
.quiz-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.quiz-intro { position: sticky; top: 96px; display: grid; gap: 16px; }
.quiz-intro .eyebrow { margin-bottom: 0; }
.trust-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; font-weight: 600; }
.trust-list li { padding-left: 30px; position: relative; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 5px var(--lime-soft), inset 0 0 0 9px var(--lime); }

.quiz { background: var(--card); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px rgba(45,122,18,.16); border: 1px solid rgba(45,122,18,.18); }
.quiz-progress { height: 8px; background: #edf1ea; border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 16%; background: var(--lime); border-radius: inherit; transition: width .3s ease; }
.quiz-count { margin: 12px 0 18px; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.step { border: 0; padding: 0; margin: 0; display: none; gap: 12px; }
.step.is-active { display: grid; animation: in .25s ease; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
legend { font: 700 1.75rem/1.1 var(--head); margin-bottom: 14px; padding: 0; }
legend small { display: block; font: 500 .95rem var(--body); color: var(--muted); margin-top: 6px; }
.step-note { color: var(--muted); margin: -4px 0 4px; }
.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; transition: border-color .15s, background-color .15s; }
.opt span::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b6bfb0; background: #fff; transition: all .15s; }
.opt input[type="checkbox"] + span::before { border-radius: 6px; }
.opt:hover span { border-color: #9fd486; }
.opt input:checked + span { border-color: var(--lime-deep); background: var(--lime-soft); }
.opt input:checked + span::before { border-color: var(--lime-deep); background: var(--lime); box-shadow: inset 0 0 0 4px #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--warn); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 0 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
  font: 500 1rem var(--body); color: var(--text);
}
.field input:focus, .field select:focus { border-color: var(--lime-deep); outline: none; box-shadow: 0 0 0 4px rgba(85,194,43,.2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); margin-top: 6px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--lime-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.quiz-error { color: #b42318; font-weight: 600; min-height: 1.5em; margin-top: 12px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.quiz-nav .btn-primary { flex: 1; max-width: 340px; margin-left: auto; }
.quiz-done { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 10px 0; }
.quiz-done[hidden] { display: none; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.quiz-done h3 { font-size: 2rem; }
.done-sub { color: var(--muted); max-width: 46ch; }
.booking { width: 100%; background: var(--lime-soft); border-radius: 16px; padding: 18px 12px 8px; display: grid; gap: 6px; }
.booking h4 { margin: 0; font: 800 1.5rem/1.1 var(--head); text-transform: uppercase; }
.booking p { color: var(--muted); font-size: .95rem; }
.booking-frame iframe { width: 100%; height: 720px; border: 0; border-radius: 12px; background: #fff; margin-top: 8px; }
.quiz.is-done .quiz-progress, .quiz.is-done .quiz-count, .quiz.is-done .step, .quiz.is-done .quiz-nav, .quiz.is-done .quiz-error { display: none; }

/* How */
.how { padding: 84px 0; }
.how-grid { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.how-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.how-grid b { font: 800 3rem/1 var(--head); color: var(--lime-deep); }
.how-grid p { color: var(--muted); }

/* Who */
.who { background: var(--ink); color: #e9eee5; padding: 72px 0; }
.who-grid { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: center; }
.who img { border-radius: 50%; }
.who h2 { color: #fff; margin-bottom: 14px; }
.who p + p { margin-top: 12px; }
.who b { color: var(--lime); }

/* Afiliación */
.affil { background: var(--lime-soft); padding: 72px 0; border-top: 1px solid rgba(45,122,18,.18); }
.affil-in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.affil-in > div { display: grid; gap: 12px; max-width: 70ch; }
.affil .eyebrow { margin-bottom: 0; }
.affil-steps { margin: 4px 0; padding-left: 22px; display: grid; gap: 6px; font-weight: 600; }
.affil-steps a { color: var(--lime-deep); }
.footer a { color: #cfd8c9; }
.footer .social a { color: var(--lime); font-weight: 600; }
@media (max-width: 900px) { .affil-in { grid-template-columns: 1fr; } .affil .btn { width: 100%; } }

/* FAQ */
.faq { padding: 84px 0; }
.faq-wrap { max-width: 820px; }
.faq h2 { margin-bottom: 26px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 700 1.3rem/1.2 var(--head); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 700 1.8rem var(--body); color: var(--lime-deep); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* Final */
.final { background: var(--lime); padding: 72px 0; border-top: 3px solid var(--ink); }
.final-in { display: grid; gap: 16px; justify-items: start; }
.final .btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 0 #000; }
.final .btn-primary:hover { background: #222c1c; }
.final p { font-size: 1.15rem; font-weight: 500; }

/* Footer */
.footer { background: var(--ink); color: #9aa693; padding: 28px 0 100px; font-size: .9rem; }
.footer-in { display: grid; gap: 8px; }
.footer b { color: #fff; }

/* Sticky CTA (mobile) */
.sticky-cta { display: none; }

@media (max-width: 900px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid, .quiz-wrap { grid-template-columns: 1fr; gap: 36px; }
  .payslip { transform: none; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 2px solid rgba(16,22,13,.18); }
  .quiz-intro { position: static; }
  .how-grid { grid-template-columns: 1fr; }
  .pain, .quiz-section, .how, .faq { padding: 60px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pain-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; gap: 20px; }
  .who img { width: 96px; height: 96px; }
  .topbar-phone span { display: none; }
  .topbar-phone { padding: 10px; }
  .hero-cta .btn { width: 100%; }
  .quiz { padding: 20px; }
  .final .btn { width: 100%; }
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    min-height: 54px; border-radius: 999px; background: var(--lime); color: var(--ink);
    font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.3);
    transition: transform .25s ease, opacity .25s ease;
  }
  .sticky-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Reservar llamada (calendario de la subcuenta) */
.reservar { background: var(--lime-soft); padding: 84px 0; scroll-margin-top: 64px; border-top: 1px solid rgba(45,122,18,.18); }
.reservar-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.reservar-head > div:first-child { display: grid; gap: 12px; max-width: 640px; }
.reservar-head .eyebrow { margin-bottom: 0; }
.reservar-contact { display: grid; gap: 6px; justify-items: start; font-weight: 600; color: var(--muted); }
.reservar-contact a { color: var(--lime-deep); }
.btn-ghost-dark { min-height: 48px; padding: 0 22px; border: 2px solid var(--lime-deep); color: var(--lime-deep); background: #fff; font-size: 1.05rem; }
.btn-ghost-dark:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.reservar-frame { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(45,122,18,.16); border: 1px solid rgba(45,122,18,.18); }
.reservar-frame iframe, .booking-frame iframe { display: block; width: 100%; border: 0; height: 800px; }
.hero-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--lime); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1060px) { .reservar-frame iframe { height: 1180px; } }
@media (max-width: 900px) { .reservar { padding: 60px 0; } }
@media (max-width: 640px) {
  .reservar-frame { border-radius: 16px; margin-inline: -4px; }
  .reservar-frame iframe { height: 1320px; }
}
.booking-frame iframe { height: 1320px; border-radius: 12px; margin-top: 8px; background: #fff; }
