/* ============================================================
   Ohana Trading Club — estilos
   ============================================================ */

:root {
  --bg: #050f1f;
  --bg-2: #081a33;
  --card: #0c2242;
  --card-border: rgba(217, 169, 63, 0.18);
  --gold: #d9a93f;
  --gold-light: #f2d28a;
  --text: #e8edf5;
  --muted: #9fb0c8;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.gold { color: var(--gold-light); }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }
.center.lead { margin: 0 auto; }

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1204;
  box-shadow: 0 8px 30px rgba(217, 169, 63, 0.3);
}
.btn-gold:hover { box-shadow: 0 12px 40px rgba(217, 169, 63, 0.45); }
.btn-ghost { border: 1px solid rgba(232, 237, 245, 0.25); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-exchange {
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  color: var(--gold-light);
  padding: 10px 22px;
}
.btn-exchange:hover { border-color: var(--gold); }

/* ---------- Cabecera ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 15, 31, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: auto; filter: drop-shadow(0 0 1px rgba(242, 210, 138, 0.8)); }
.brand-name { font-family: "Cinzel", serif; font-weight: 700; font-size: 1.05rem; color: var(--gold-light); letter-spacing: 0.04em; }
.brand-name span { color: var(--text); font-weight: 600; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 4px; }
.lang button {
  background: none;
  border: 1px solid rgba(217, 169, 63, 0.35);
  color: var(--gold-light);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button.active { background: var(--gold); color: #1a1204; border-color: var(--gold); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 20%, #0f2d57 0%, var(--bg) 60%);
}
#heroChart { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 15, 31, 0.95) 0%, rgba(5, 15, 31, 0.6) 55%, rgba(5, 15, 31, 0.2) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); max-width: 600px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 820px; }
.stat {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 16px;
}
.stat strong { display: block; font-size: 1.8rem; color: var(--gold-light); font-weight: 700; }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Cinta ---------- */
.ticker {
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 0.95rem; }
.ticker-item .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.up { background: var(--green); }
.dot.down { background: var(--red); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section h2.center { margin-bottom: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217, 169, 63, 0.45); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(217, 169, 63, 0.12);
  color: var(--gold-light);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.red { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }

/* ---------- Mercados ---------- */
.markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 48px 0; }
.market {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 14px;
}
.market h3 { font-size: 1rem; margin: 10px 0 4px; }
.market p { color: var(--muted); font-size: 0.85rem; }
.m-icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1204; font-weight: 700; font-size: 1.2rem;
}
.horizons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.horizon {
  background: linear-gradient(135deg, var(--card), var(--bg-2));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
}
.horizon p { color: var(--muted); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.tag.green { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.tag.gold-tag { background: rgba(217, 169, 63, 0.15); color: var(--gold-light); }

/* ---------- Trader ---------- */
.trader { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.trader p { color: var(--muted); margin-bottom: 16px; }
.trader .lead { color: var(--text); }
.trader-visual {
  aspect-ratio: 1;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(217, 169, 63, 0.15), transparent 60%),
    url("images/logo.png") center / 60% no-repeat,
    var(--card);
  border: 1px solid var(--card-border);
  position: relative;
}
.trader-badge {
  position: absolute; right: -16px; bottom: 28px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1204;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.trader-badge strong { display: block; font-size: 2rem; line-height: 1; }
.trader-badge span { font-size: 0.85rem; font-weight: 600; }
.checks { list-style: none; margin-top: 8px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(34, 197, 94, 0.18); color: var(--green);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
}

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; counter-reset: s; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 28px 28px;
}
.step p { color: var(--muted); font-size: 0.95rem; }
.step-n {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-light);
  font-weight: 700; margin-bottom: 16px;
}
.exchange-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.why-free {
  margin-top: 36px;
  border: 1px dashed rgba(217, 169, 63, 0.4);
  border-radius: var(--radius);
  padding: 28px 32px;
  background: rgba(217, 169, 63, 0.05);
}
.why-free h3 { color: var(--gold-light); }
.why-free p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold); font-size: 1.4rem; font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Llamada final ---------- */
.final-cta {
  padding: 110px 0;
  background: radial-gradient(ellipse at center, #123463 0%, var(--bg) 70%);
}
.final-logo { width: 110px; margin: 0 auto 24px; filter: drop-shadow(0 0 1px rgba(242, 210, 138, 0.9)) drop-shadow(0 0 30px rgba(217, 169, 63, 0.35)); }
.final-cta .lead { margin: 0 auto 30px; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--card-border); padding: 40px 0; background: #030a15; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.footer-copy { color: var(--muted); font-size: 0.85rem; }
.disclaimer { color: #6f819b; font-size: 0.8rem; line-height: 1.6; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Móvil ---------- */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(5, 15, 31, 0.97);
    border-bottom: 1px solid var(--card-border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .markets { grid-template-columns: repeat(2, 1fr); }
  .horizons, .trader { grid-template-columns: 1fr; }
  .trader { gap: 40px; }
  .trader-visual { max-width: 380px; width: 100%; margin: 0 auto; }
  .trader-badge { right: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 480px) {
  .brand-name span { display: none; }
  .section { padding: 72px 0; }
  .card, .step, .horizon { padding: 24px; }
  .markets { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
