/* DiaTrader · diatrader.com — brand tokens shared with apps/mobile/src/theme/tokens.ts */

:root {
  --bg: #3A1F4D;
  --bg-deep: #2C1639;
  --surface: #4A2A60;
  --raised: #55316D;
  --ink: #FBF3FF;
  --muted: #CDB6DC;
  --line: #5E3F75;
  --outline: #6E4E85;
  --accent: #F7E27A;
  --on-accent: #3A1F4D;
  --jade: #58C98F;
  --call: #6CF0B4;
  --put: #FF8A80;
  --light: #FAF5FC;
  --ink-on-light: #2A1438;
  --muted-on-light: #6B5578;
  --sans: "Bricolage Grotesque", sans-serif;
  --mono: "DM Mono", monospace;
  --pad: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(.22, .61, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--on-accent); }
img { display: block; }
a { color: inherit; }

/* ── Type ── */
h1, h2 {
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
h1 { font-size: clamp(46px, 8.4vw, 118px); }
h2 { font-size: clamp(34px, 5.4vw, 72px); }
h1 em { font-style: normal; color: var(--accent); }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 54ch;
  margin-top: 22px;
}
.fine { font-size: 13px; color: var(--muted); margin-top: 26px; }

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px var(--pad);
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 11px;
  padding-bottom: 11px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.wordmark b { font-weight: 800; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--outline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-small { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 26px; }
.is-disabled { opacity: .45; pointer-events: none; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: clip;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px var(--pad) 80px;
}
.hero-copy { position: relative; z-index: 2; max-width: 880px; }
.hero-sun {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: calc(-1 * clamp(60px, 8vw, 120px));
  translate: 0 -50%;
  opacity: .5;
  pointer-events: none;
}
.hero-sun img { width: clamp(300px, 42vw, 620px); height: auto; will-change: transform; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ── Marquee ── */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg-deep);
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  animation: marquee 36s linear infinite;
}
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ── */
.section { padding: clamp(84px, 11vw, 160px) var(--pad); }
.section-deep { background: var(--bg-deep); }

/* Qué somos / qué no */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 54px;
}
.panel {
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}
.panel-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.panel-title.ok { color: var(--call); }
.panel-title.no { color: var(--put); }
.list { list-style: none; display: grid; gap: 14px; }
.list li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-weight: 500; }
.mark { font-style: normal; font-family: var(--mono); font-size: 14px; flex: none; }
.mark.ok { color: var(--call); }
.mark.no { color: var(--put); }

/* Cómo funciona */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.steps { list-style: none; margin-top: 50px; display: grid; gap: 38px; }
.steps li { display: flex; gap: 22px; }
.step-n {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  padding-top: 5px;
  flex: none;
}
.steps h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 46ch; }

/* Phone mock */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(330px, 86vw);
  border-radius: 44px;
  border: 1.5px solid var(--outline);
  background: var(--bg);
  padding: 26px 18px 30px;
  box-shadow: 0 40px 90px -30px rgba(10, 2, 18, .8);
  will-change: transform;
}
.phone-status {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.phone-status .dot { width: 6px; height: 6px; }
.phone-title { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 8px 0 14px; }
.chip-row { display: flex; gap: 6px; margin-bottom: 14px; }
.chip {
  font-size: 12px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
  background: var(--surface); color: var(--ink);
}
.chip-on { background: var(--accent); color: var(--on-accent); }
.pcard {
  border-radius: 18px;
  background: var(--surface);
  padding: 13px 14px;
  margin-top: 8px;
}
.pcard.unread { background: var(--raised); border: 1.5px solid var(--accent); }
.pcard-top { display: flex; align-items: center; gap: 8px; }
.pticker { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.ptime { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: auto; }
.pbadge {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 999px;
}
.pbadge.call { background: var(--call); color: var(--on-accent); }
.pbadge.put { background: var(--put); color: var(--on-accent); }
.pbadge.outline { border: 1px solid var(--outline); color: var(--muted); }
.pcard-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.pcard-body {
  font-size: 12.5px; color: var(--muted); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Estrategias */
.strat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 54px;
}
.strat {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 24px;
  transition: transform .3s var(--ease), border-color .3s;
}
.strat:hover { transform: translateY(-5px); border-color: var(--accent); }
.strat-n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.strat h3 { font-size: 23px; font-weight: 800; letter-spacing: -.025em; margin: 30px 0 8px; }
.strat p { font-size: 14.5px; color: var(--muted); }
.tag {
  position: absolute; top: 24px; right: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--outline); color: var(--muted);
}
.tag.live { border-color: var(--call); color: var(--call); }
.tag.accent { position: absolute; top: -13px; left: 26px; background: var(--accent); color: var(--on-accent); border: none; font-weight: 500; }

/* Precios */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 54px;
  align-items: stretch;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  padding: clamp(26px, 3vw, 38px);
  background: var(--bg);
}
.price-featured { border-color: var(--accent); background: var(--surface); }
.price-soon { opacity: .66; }
.price h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.price-amount { font-size: clamp(40px, 4vw, 54px); font-weight: 800; letter-spacing: -.04em; margin: 10px 0 24px; }
.price-amount span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-amount.muted { font-size: 28px; color: var(--muted); }
.price .list { flex: 1; align-content: start; }
.price .list li { font-size: 15.5px; }

/* FAQ */
.faq { margin-top: 48px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: -.015em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--accent); transition: transform .3s var(--ease);
}
.plus::before { width: 16px; height: 2px; }
.plus::after { width: 2px; height: 16px; }
.faq details[open] .plus::after { transform: rotate(90deg); }
.faq details p { padding: 0 40px 26px 0; color: var(--muted); max-width: 64ch; }

/* Banda clara */
.band-light {
  background: var(--light);
  color: var(--ink-on-light);
  text-align: center;
  padding: clamp(84px, 11vw, 150px) var(--pad);
}
.band-light .band-logo { margin: 0 auto 30px; }
.band-light h2 { font-size: clamp(28px, 4.2vw, 54px); }
.band-light p { margin-top: 20px; color: var(--muted-on-light); max-width: 62ch; margin-inline: auto; }
.band-light a { color: var(--ink-on-light); font-weight: 700; }
.band-cta { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* Footer */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 54px var(--pad) 40px; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 26px;
  align-items: center; justify-content: space-between;
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { padding-top: 26px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.footer-bottom .fine { margin: 0; }

/* ── Language switch (in the nav, next to the brand) ── */
.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1.5px solid var(--outline);
  flex: none;
}
.lang-switch a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.on { background: var(--accent); color: var(--on-accent); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Legal prose pages ── */
.prose { max-width: 720px; margin: 0 auto; padding: 150px var(--pad) 100px; }
.prose h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 10px; }
.prose .updated { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 44px; }
.prose h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 22px; margin-top: 10px; display: grid; gap: 8px; }
.prose a { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .hero-sun { right: -120px; opacity: .22; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 560px) {
  /* Keep brand mark + toggle + CTA on one row: drop the wordmark text. */
  .nav { gap: 14px; }
  .nav .wordmark { display: none; }
  .nav .btn-small { margin-left: auto; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-sun img, .phone { transform: none !important; }
}
