/* Flowbit landing — brand tokens from the Manual de Marca v1.0 */
:root {
  --teal: #0E767E;
  --teal-dark: #0B5F66;
  --ink: #0A1F33;
  --peach: #F3C6AE;
  --peach-dark: #E9AE90;
  --lino: #F6F4EF;
  --white: #FFFFFF;
  --line: #E4E0D6;
  --muted: #4A5866;

  --font-head: "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(10, 31, 51, 0.35);
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 10vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--lino);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 900; }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--lino); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- Highlights & labels ---------- */
.hl {
  background: linear-gradient(transparent 58%, var(--peach) 58%, var(--peach) 92%, transparent 92%);
  padding-inline: .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.text-peach { color: var(--peach); }
.eyebrow {
  font-family: var(--font-head); font-weight: 800; font-size: .95rem;
  letter-spacing: .02em; margin-bottom: .9rem; color: inherit; opacity: .85;
}
.eyebrow-teal { color: var(--teal); opacity: 1; }
.strong-teal { color: var(--teal); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.pill-tag {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--peach); color: var(--ink); padding: 4px 14px; border-radius: 999px; margin-bottom: 1.2rem;
}
.section-title { margin-bottom: .4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .2s, transform .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--lino); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-peach { background: var(--peach); color: var(--ink); }
.btn-peach:hover { background: var(--peach-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--lino); }
.btn-sm { padding: .55em 1.1em; font-size: .95rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { width: 120px; }
.header-nav { display: none; gap: 28px; margin-left: auto; font-weight: 600; }
.header-nav a { text-decoration: none; color: var(--ink); opacity: .8; }
.header-nav a:hover { opacity: 1; color: var(--teal); }
.header-inner .btn { margin-left: auto; }
@media (min-width: 860px) {
  .header-nav { display: flex; }
  .header-inner .btn { margin-left: 8px; }
}

/* ---------- Background bubbles (solid palette, 15–40% opacity) ---------- */
.hero, .section, .final-cta { position: relative; overflow: hidden; }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bubble { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; }
.b-teal { background: var(--teal); opacity: .15; }
.b-peach { background: var(--peach); opacity: .4; }
.b-lino { background: var(--lino); opacity: .12; }
.hero > .container, .section > .container, .final-cta > .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 9vw, 104px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; max-width: 34ch; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--teal); }
.hero-visual { position: relative; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- Mockup cards ---------- */
.mock-card {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); color: var(--ink);
}
.mock-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.mock-head img { width: 92px; margin-right: auto; }
.mock-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; font-family: var(--font-head); font-size: 1.25rem; }
.mock-title small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.chip { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--lino); white-space: nowrap; }
.chip-teal { background: var(--teal); color: var(--lino); }

.agenda-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: auto repeat(9, 30px);
  gap: 5px;
}
.day { font-size: .78rem; font-weight: 700; text-align: center; padding: 4px 0; color: var(--muted); border-radius: 8px; }
.day-on { background: var(--peach); color: var(--ink); }
.appt { border-radius: 10px; padding: 5px 7px; font-size: .7rem; line-height: 1.2; overflow: hidden; }
.appt b { display: block; font-size: .74rem; }
.appt.t { background: var(--teal); color: var(--lino); }
.appt.d { background: var(--peach); color: var(--ink); }
.appt.p { background: #E8E4DA; color: var(--ink); }

.toast {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--ink); color: var(--lino); font-weight: 700; font-size: .92rem;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow);
}
.toast .icon { color: var(--peach); }
@media (max-width: 420px) {
  .toast { font-size: .8rem; padding: 10px 14px; }
  .appt { font-size: .62rem; padding: 4px 5px; }
  .appt b { font-size: .66rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }

.pain { background: var(--lino); padding-top: calc(var(--section-y) * .8); }
.pain-grid { display: grid; gap: 20px; margin-top: 36px; }
.pain-card { background: var(--white); border-radius: var(--radius); padding: 28px; }
.pain-card p { color: var(--muted); margin: 0; }
.pain-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--peach); color: var(--teal); margin-bottom: 16px;
}
.pain-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }

/* Features */
.feature-grid { display: grid; gap: 48px; align-items: center; }
.feature-copy p { font-size: 1.1rem; }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature-grid.reverse .feature-copy { order: 2; }
}
.feature-teal { background: var(--teal); color: var(--lino); }
.feature-teal .feature-copy p { color: rgba(246, 244, 239, .9); }
.feature-white { background: var(--white); }
.feature-ink { background: var(--ink); color: var(--lino); }
.feature-ink .lead { color: rgba(246, 244, 239, .85); font-size: 1.15rem; }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 600; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks .icon { color: var(--peach); }
.checks-teal .icon { color: var(--teal); }

/* Phone mock */
.feature-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(330px, 100%); background: #E8E4DA; border: 10px solid var(--ink); border-radius: 36px;
  padding: 0 14px 22px; color: var(--ink); box-shadow: var(--shadow); transform: rotate(-3deg);
}
.phone-head { display: flex; align-items: center; gap: 10px; background: var(--lino); margin: 0 -14px 16px; padding: 18px 16px 12px; border-radius: 26px 26px 0 0; }
.phone-head small { display: block; color: var(--teal); font-weight: 700; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--lino); display: grid; place-items: center; font-weight: 800; }
.badge { margin-left: auto; background: #C2344D; color: #fff; font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.bubble-msg { background: var(--white); border-radius: 16px; padding: 9px 13px; margin: 0 0 9px; font-size: .92rem; width: fit-content; max-width: 88%; }
.bubble-msg.me { background: #FBE3D6; margin-left: auto; }
.bubble-msg.audio { letter-spacing: 1px; color: var(--teal); font-weight: 700; }

/* Cierre de caja */
.cierre { width: min(380px, 100%); }
.rows { margin: 0; display: grid; }
.rows div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.rows .neg dd { color: var(--ink); }
.total-box { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; background: var(--teal); color: var(--lino); border-radius: var(--radius-sm); padding: 14px 18px; }
.total-box b { font-family: var(--font-head); font-size: 1.4rem; }
.note-scrap {
  position: absolute; left: 0; top: -22px; transform: rotate(-6deg);
  background: #FFFDF8; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: .9rem; color: var(--muted);
  box-shadow: 0 8px 18px -10px rgba(10,31,51,.3);
}
.note-scrap s { opacity: .6; }
@media (max-width: 560px) { .note-scrap { display: none; } }

/* Tips */
.tips { width: min(440px, 100%); }
.tips table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tips th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px; border-bottom: 2px solid var(--line); }
.tips td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.tips td:first-child { color: var(--muted); width: 22%; }
.tips td:nth-child(2) { font-weight: 700; }
.tips th:last-child, .tips td:last-child { text-align: right; }
.tips td:last-child { color: var(--teal); font-weight: 800; }
.tips-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tips-totals div { border-radius: var(--radius-sm); padding: 12px 14px; }
.tips-totals small { display: block; font-size: .78rem; font-weight: 600; }
.tips-totals b { font-family: var(--font-head); font-size: 1.25rem; }
.tot-lino { background: var(--lino); }
.tot-lino b { color: var(--teal); }
.tot-peach { background: var(--peach); }

/* Steps */
.steps { background: var(--lino); }
.steps-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; counter-reset: none; }
.steps-grid li { background: var(--white); border-radius: var(--radius); padding: 28px; }
.steps-grid p { color: var(--muted); margin: 0; }
.step-n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: var(--lino); font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; margin-bottom: 14px;
}
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

/* Pricing */
.pricing { background: var(--white); }
.price-card {
  margin-top: 36px; background: var(--lino); border-radius: 32px; padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 24px;
}
.price-main { display: grid; gap: 20px; }
.price-main h3 { margin-bottom: .2em; }
.price { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3rem); color: var(--teal); margin: 0; line-height: 1.1; }
.price small, .price-total small { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
.price-main .checks { margin: 0; }
@media (min-width: 680px) { .price-main { grid-template-columns: 1fr 1fr; align-items: center; } }

.addons { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.addons legend { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; padding: 0; }
.addon {
  display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: var(--radius-sm);
  padding: 14px 18px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s;
}
.addon:has(input:checked) { border-color: var(--teal); }
.addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.addon-name { font-weight: 700; flex: 1; }
.addon-price { font-weight: 700; color: var(--teal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.switch { flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.addon input:checked + .switch { background: var(--teal); }
.addon input:checked + .switch::after { transform: translateX(18px); }
.addon input:focus-visible + .switch { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 420px) { .addon { flex-wrap: wrap; } .addon-price { margin-left: 58px; } }

.price-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line); padding-top: 20px; font-weight: 700; }
.price-total b { font-family: var(--font-head); font-size: 1.8rem; font-weight: 900; color: var(--ink); }

/* FAQ */
.faq { background: var(--lino); }
.faq .section-title { margin-bottom: 32px; }
details { background: var(--white); border-radius: var(--radius-sm); margin-bottom: 12px; }
summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--lino); color: var(--teal);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
}
details[open] summary::after { content: "−"; background: var(--teal); color: var(--lino); }
details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Final CTA — circle pattern from the manual */
.final-cta {
  background-color: var(--teal); color: var(--lino); padding-block: var(--section-y);
  background-image: radial-gradient(circle at center, rgba(246,244,239,.08) 0 49px, transparent 50px);
  background-size: 112px 112px;
}
.final-logo { width: min(300px, 70%); margin: 0 auto 36px; }
.final-cta .lead { font-size: 1.2rem; max-width: 40ch; margin-inline: auto; color: rgba(246,244,239,.9); }
.final-cta .btn { margin-top: 12px; }
.phone-text { margin-top: 18px; font-weight: 700; letter-spacing: .03em; opacity: .9; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(246,244,239,.85); padding-block: 40px calc(40px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--peach); }
.copy { margin: 0; opacity: .7; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--teal); color: var(--lino);
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* Reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
