/* DOKIA — landing v2. Paleta DOKIA: blanco, teal y mint. */

:root {
  --teal: #027E74;
  --teal-dark: #01635B;
  --ink: #0E3C36;
  --mint: #7FE0D4;
  --mint-soft: #E7F7F4;
  --paper: #F5FAF9;
  --line: #D9E7E4;
  --text: #24423D;
  --muted: #5C7772;
  --white: #FFFFFF;
  --warn: #B4531A;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(14, 60, 54, 0.28);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--mint); }

.h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.h2-light { color: var(--white); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.btn-solid { background: var(--teal); color: var(--white); }
.btn-solid:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 17px 30px; font-size: 18px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Cabecera */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top-logo img { height: 40px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 28px; }
.top-link { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.top-link:hover { color: var(--teal); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 480px at 88% 8%, var(--mint-soft), transparent 70%),
    var(--white);
  padding: 76px 0 92px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.accent { color: var(--teal); }
.lead { margin-top: 24px; font-size: 21px; line-height: 1.5; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 16px; font-weight: 600; color: var(--muted); }
.hero-facts li { position: relative; padding-left: 20px; }
.hero-facts li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 10px; height: 6px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

/* Hero: escena foto -> datos */
.hero-visual { position: relative; min-height: 590px; }
.chat {
  width: 268px;
  background: #EFE9E1;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.chat-head { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); padding: 12px 14px; }
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--mint); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.chat-name { font-weight: 700; font-size: 16px; }
.chat-body { padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { position: relative; max-width: 86%; padding: 9px 11px 20px; border-radius: 12px; font-size: 15px; line-height: 1.35; color: #1F2D2A; }
.bubble-out { align-self: flex-end; background: #D5F3DF; border-top-right-radius: 3px; }
.bubble-in { align-self: flex-start; background: var(--white); border-top-left-radius: 3px; }
.bubble-time { position: absolute; right: 9px; bottom: 4px; font-size: 11px; color: #6B7C78; }
.receipt {
  width: 150px; background: var(--white); padding: 14px 13px 12px;
  display: flex; flex-direction: column; gap: 7px;
  border-radius: 3px; transform: rotate(-2deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.receipt-line { height: 6px; border-radius: 3px; background: #D6DCDA; }
.receipt-gap { height: 4px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.receipt-total { align-self: flex-end; font-weight: 800; font-size: 16px; color: #1F2D2A; }

.read {
  position: absolute; right: 0; bottom: 0;
  width: 310px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 16px;
}
.read-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.read-title { font-weight: 800; color: var(--ink); font-size: 16px; }
.tag { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: var(--mint-soft); color: var(--teal-dark); }
.read-data > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.read-data dt { color: var(--muted); }
.read-data dd { font-weight: 600; color: var(--ink); text-align: right; }
.read-total dt, .read-total dd { font-weight: 800; font-size: 17px; color: var(--teal-dark); }

/* Cifras */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); padding: 44px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-item { text-align: center; }
.trust-num { font-size: clamp(34px, 4.2vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--teal); }
.trust-cap { margin-top: 10px; font-size: 17px; font-weight: 600; color: var(--ink); }

/* Dolor */
.pain { background: var(--ink); color: #CFE3DF; padding: 88px 0; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.pain-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(127, 224, 212, 0.22); border-radius: var(--radius); padding: 28px 26px; }
.pain-card h3 { color: var(--white); font-size: 22px; line-height: 1.2; font-weight: 700; margin-bottom: 10px; }
.pain-card p { font-size: 17px; }
.pain-quote { margin-top: 48px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; font-weight: 800; color: var(--mint); }
.pain-close { margin-top: 14px; font-size: 20px; color: #CFE3DF; max-width: 30em; }

/* Cómo funciona */
.how { padding: 96px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; counter-reset: none; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-weight: 800; font-size: 20px; margin-bottom: 20px;
}
.step h3 { font-size: 23px; line-height: 1.2; color: var(--ink); font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 17px; }
.how-note { margin-top: 40px; font-size: 22px; font-weight: 700; color: var(--teal-dark); }

/* Beneficios */
.gain { background: var(--paper); padding: 96px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gain-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 64px; }
.gain-row-flip .gain-copy { order: 2; }
.gain-copy h3 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.gain-copy p { font-size: 20px; max-width: 26em; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 28px 26px; }
.panel-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.panel-big { font-size: 76px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--teal); }
.panel-big span { font-size: 24px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.panel-foot { margin-top: 14px; font-size: 15px; color: var(--muted); }

.alerts li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.alerts li:first-child { border-top: 0; padding-top: 0; }
.alert-name { font-weight: 700; color: var(--ink); }
.alert-up { font-weight: 800; color: var(--warn); }
.alert-miss { font-weight: 700; font-size: 13px; color: var(--warn); background: #FBEDE3; padding: 3px 9px; border-radius: 999px; align-self: center; }
.alert-sub { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }

.quarters { width: 100%; border-collapse: collapse; font-size: 17px; }
.quarters th, .quarters td { padding: 11px 10px; border-top: 1px solid var(--line); text-align: right; }
.quarters tr:first-child th, .quarters tr:first-child td { border-top: 0; }
.quarters th { text-align: left; font-weight: 800; color: var(--ink); width: 3em; }
.quarters td:nth-child(2) { color: var(--muted); }
.quarters td:last-child { font-weight: 700; color: var(--teal-dark); }
.quarters .is-now th, .quarters .is-now td { background: var(--mint-soft); }
.bank li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.bank li:first-child { border-top: 0; padding-top: 0; }
.bank-move { font-weight: 700; color: var(--ink); }
.bank-doc { grid-column: 1; font-size: 15px; color: var(--muted); }
.bank-ok, .bank-miss { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.bank-ok { background: var(--mint-soft); color: var(--teal-dark); }
.bank-miss { background: #FBEDE3; color: var(--warn); }
.example-note { margin-top: 36px; font-size: 14px; color: var(--muted); }

/* Calculadora */
.calc { background: var(--teal); color: #DDF4F0; padding: 88px 0; }
.calc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc-copy p:last-child { margin-top: 18px; font-size: 20px; max-width: 24em; }
.calc-box { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 32px 30px 26px; box-shadow: var(--shadow); }
.calc-label { display: block; font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 16px; }
.calc-label output { color: var(--teal); font-weight: 800; }
.calc-box input[type="range"] { width: 100%; accent-color: var(--teal); height: 28px; cursor: pointer; }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-num { font-size: clamp(34px, 4.4vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--teal); }
.calc-cap { margin-top: 8px; font-size: 15px; color: var(--muted); }
.calc-foot { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Testimonios */
.quotes { padding: 96px 0 24px; }
.quotes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }
.quote { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 40px 38px 34px; }
.quote blockquote { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.quote figcaption { margin-top: 22px; font-size: 17px; font-weight: 600; color: var(--teal-dark); }

/* Para quién */
.who { padding: 88px 0 40px; text-align: center; }
.who .h2 { margin: 0 auto; max-width: 16em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.chips li { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 11px 20px; font-weight: 600; color: var(--ink); font-size: 17px; }

/* Dudas */
.faq { padding: 64px 0 96px; }
.faq-inner { max-width: 820px; }
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 20px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.faq details p { padding: 0 0 24px; max-width: 36em; }

/* Precio */
.price { background: var(--mint-soft); padding: 64px 0; text-align: center; }
.price-line { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.price-line strong { font-weight: 800; color: var(--teal); }
.price-sub { margin-top: 12px; font-size: 20px; }

/* Alta */
.signup { padding: 96px 0; }
.signup-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.signup-lead { margin-top: 18px; font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--teal-dark); max-width: 22em; }
.signup-steps { margin-top: 34px; counter-reset: s; display: grid; gap: 18px; }
.signup-steps li { counter-increment: s; position: relative; padding-left: 52px; font-size: 20px; font-weight: 600; color: var(--ink); min-height: 36px; display: flex; align-items: center; }
.signup-steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--mint-soft); color: var(--teal-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.signup-form { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 34px 32px 30px; }
.signup-title { font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--mint-soft); }
.field .is-invalid { border-color: var(--warn); }
.field-consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 20px 0 22px; }
.field-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); }
.field-consent label { font-size: 13.5px; font-weight: 400; line-height: 1.45; color: var(--muted); margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-foot { margin-top: 12px; text-align: center; font-size: 15px; color: var(--muted); }
.form-status { margin-top: 12px; font-size: 16px; font-weight: 600; text-align: center; min-height: 1.4em; }
.form-status.is-success { color: var(--teal-dark); }
.form-status.is-error { color: var(--warn); }

/* Pie */
.foot { background: var(--ink); color: #B9D3CE; padding: 52px 0 44px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 48px; align-items: start; }
.foot-brand img { height: 40px; width: auto; }
.foot-tag { margin-top: 14px; color: var(--mint); font-weight: 600; font-size: 17px; }
.foot-nav { display: grid; gap: 8px; justify-items: start; }
.foot a { color: #DCEDEA; text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot-legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); line-height: 1.6; }

/* Pantallas medianas y móvil */
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid, .calc-inner, .signup-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 480px; min-height: 590px; }
  .gain-row { grid-template-columns: 1fr; gap: 26px; margin-top: 52px; }
  .gain-row-flip .gain-copy { order: 0; }
  .pain-grid, .steps, .quotes-grid { grid-template-columns: 1fr; gap: 16px; }
  .quotes { padding: 68px 0 8px; }
  .pain, .how, .gain, .calc, .signup { padding: 68px 0; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .top-inner { height: 62px; }
  .top-logo img { height: 34px; }
  .top-link { display: none; }
  .lead { font-size: 19px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 0; display: grid; gap: 14px; justify-items: start; }
  .chat { width: 100%; max-width: 300px; }
  .read { position: static; width: 100%; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .signup-form { padding: 26px 20px 24px; }
  .calc-box { padding: 26px 20px 22px; }
  .panel-big { font-size: 60px; }
  .foot-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 26px; }
  .quote { padding: 28px 24px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
