/* ==========================================================================
   TDAH Online — Sistema de diseño
   Minimalista, clínico, cálido. Orientado a conversión.
   ========================================================================== */

:root {
  /* Paleta */
  --bg: #FBFAF7;
  --bg-soft: #F4F1EA;
  --surface: #FFFFFF;
  --ink: #1D2A2A;
  --ink-soft: #4C5A5A;
  --ink-mute: #7A8785;
  --line: #E7E2D8;
  --primary: #12776B;      /* teal clínico */
  --primary-dark: #0C5A50;
  --primary-soft: #E4F1EE;
  --accent: #E4913C;       /* ámbar cálido para acentos/CTA secundaria */
  --accent-soft: #FBEEDD;
  --danger: #C0492F;
  --ok: #2E7D5B;
  --shadow-sm: 0 1px 2px rgba(29,42,42,.06), 0 1px 3px rgba(29,42,42,.04);
  --shadow-md: 0 4px 14px rgba(29,42,42,.08);
  --shadow-lg: 0 18px 48px rgba(29,42,42,.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Fraunces', 'Merriweather', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 620px; }
.muted { color: var(--ink-mute); font-size: .92rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--wa { background: #25D366; color: #062e17; }
.btn--wa:hover { background: #1fb857; transform: translateY(-1px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.85);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.05rem; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--primary);
  color: #fff; display: grid; place-items: center; font-family: var(--font-head);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; box-shadow: var(--shadow-sm);
}
.brand__name { line-height: 1; }
.brand__name small { display: block; font-size: .66rem; color: var(--ink-mute); font-weight: 500; letter-spacing: .02em; margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .95rem; color: var(--ink-soft); font-weight: 500; }
.nav__links a:hover { color: var(--primary); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.nav__mcta { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(46,125,91,.18); }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero__sub { font-size: 1.18rem; color: var(--ink-soft); margin-bottom: 30px; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__reassure { display: flex; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.hero__reassure span { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.hero__reassure svg { width: 17px; height: 17px; color: var(--primary); flex: none; }

.hero__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-lg);
}
.hero__card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.hero__card .muted { margin-bottom: 20px; }
.mini-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); margin-bottom: 14px; }
.mini-q p { color: var(--ink); font-weight: 500; font-size: .98rem; margin-bottom: 14px; }
.mini-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mini-opts button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 9px 4px;
  font-size: .72rem; color: var(--ink-soft); font-weight: 600; transition: all .12s ease; line-height: 1.2;
}
.mini-opts button:hover { border-color: var(--primary); color: var(--primary); }
.mini-opts button.sel { background: var(--primary); color: #fff; border-color: var(--primary); }
.hero__card .btn { margin-top: 4px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustbar__row { display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; flex-wrap: wrap; }
.trustbar__item { display: flex; align-items: center; gap: 11px; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.trustbar__item svg { width: 22px; height: 22px; color: var(--primary); flex: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; box-shadow: var(--shadow-sm);
}
.step__n {
  width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark);
  font-family: var(--font-head); font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 18px; font-weight: 600;
}
.step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.step p { font-size: .96rem; }

/* ---------- Feature list ---------- */
.feature-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; display: grid; gap: 18px; margin-top: 24px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list svg { width: 24px; height: 24px; color: var(--primary); flex: none; margin-top: 2px; }
.feature-list strong { display: block; color: var(--ink); font-weight: 600; }
.feature-list span { font-size: .95rem; color: var(--ink-soft); }
.panel {
  background: linear-gradient(160deg, var(--primary-soft), #fff);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md);
}
.panel h3 { margin-bottom: 18px; }
.panel__stat { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.panel__stat:last-child { border-bottom: none; }
.panel__stat b { font-family: var(--font-head); font-size: 2rem; color: var(--primary-dark); line-height: 1; }
.panel__stat span { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.compare__card { border-radius: var(--radius-lg); padding: 32px; }
.compare__card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 1.25rem; }
.compare__card ul { list-style: none; display: grid; gap: 14px; }
.compare__card li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; }
.compare__card li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; }
.compare--old { background: var(--surface); border: 1px solid var(--line); }
.compare--old li svg { color: var(--danger); }
.compare--old .price { color: var(--ink-mute); }
.compare--new { background: var(--ink); color: #EDEFEC; border: 1px solid var(--ink); }
.compare--new h3, .compare--new .price { color: #fff; }
.compare--new li { color: #D6DCD9; }
.compare--new li svg { color: #5FD3A9; }
.compare .price { font-family: var(--font-head); font-size: 1.5rem; margin-top: 22px; display: block; }
.compare .price small { font-size: .8rem; font-family: var(--font-body); color: inherit; opacity: .7; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; max-width: 860px; margin-left: auto; margin-right: auto; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column;
}
.price-card--feature { border-color: var(--primary); box-shadow: var(--shadow-md); }
.price-card__tag {
  position: absolute; top: -13px; left: 34px; background: var(--primary); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price-card .amount { font-family: var(--font-head); font-size: 2.6rem; color: var(--ink); margin: 14px 0 4px; }
.price-card .amount small { font-size: .95rem; font-family: var(--font-body); color: var(--ink-mute); font-weight: 500; }
.price-card ul { list-style: none; display: grid; gap: 12px; margin: 22px 0 26px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); }
.price-card li svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.team__photo { width: 220px; height: 260px; border-radius: var(--radius); background: linear-gradient(160deg, var(--primary-soft), var(--accent-soft)); display: grid; place-items: center; color: var(--primary-dark); font-family: var(--font-head); box-shadow: var(--shadow-sm); overflow: hidden; }
.team__photo span { font-size: 3.4rem; }
.team__badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.chip { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 44px auto 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; text-align: left; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq__q svg { width: 20px; height: 20px; color: var(--primary); flex: none; transition: transform .2s ease; }
.faq__item.open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding-bottom: 22px; font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #C7CFCC; max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { font-size: .92rem; color: var(--ink-soft); }
.footer a:hover { color: var(--primary); }
.footer__brand p { font-size: .92rem; margin-top: 14px; max-width: 280px; }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-mute); }
.footer__disclaimer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-top: 28px; font-size: .84rem; color: var(--ink-mute); }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-lg); z-index: 90; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie p { font-size: .88rem; color: var(--ink-soft); flex: 1; min-width: 240px; }
.cookie a { color: var(--primary); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; }
.cookie__actions .btn { padding: 10px 20px; font-size: .9rem; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero__grid, .feature-grid, .team { grid-template-columns: 1fr; gap: 34px; }
  .steps, .compare, .pricing, .footer__grid { grid-template-columns: 1fr; }
  .footer__grid { gap: 26px; }
  .team__photo { width: 100%; height: 200px; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav--open .nav__links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 18px; box-shadow: var(--shadow-md); }
  .nav--open .nav__mcta { display: inline-flex; margin-top: 6px; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .mini-opts { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .mini-opts button { font-size: .62rem; padding: 8px 2px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none !important; } }
