/* ==========================================================================
   FONDEATORS — Design System
   Paleta "velas doradas" derivada del logo. Misma lógica estructural que
   TraderFondeado (dark mode, cards grandes, separadores sutiles, Montserrat)
   pero con identidad propia: dorado/oliva/bronce + acentos monoespaciados
   tipo terminal de trading.
   ========================================================================== */

:root {
  /* Superficies */
  --bg:            #050505;
  --bg-raised:     #0c0c0c;
  --bg-card:       #101010;
  --bg-card-hover: #141210;

  /* Bordes */
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(250, 204, 21, 0.22);
  --divider:       rgba(255, 255, 255, 0.06);

  /* Marca — extraídos del logo */
  --gold:        #FACC15;
  --gold-soft:   #E8B923;
  --olive:       #B48C0A;
  --bronze:      #644B05;
  --gold-glow:   rgba(250, 204, 21, 0.16);

  /* Texto */
  --text:          #F5F1E8;
  --text-secondary:#9CA3AF;
  --text-muted:    #6B7280;

  /* Estado / riesgo (matching el panel real de la app) */
  --danger:      #EF4444;
  --danger-dim:  rgba(239, 68, 68, 0.12);
  --success:     #22C55E;

  /* Tipografía */
  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Forma */
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.fondeators {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: #050505; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
h3 { font-size: 20px; }

p { color: var(--text-secondary); margin: 0; }

.lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  box-shadow: 0 0 0 0 rgba(250,204,21,0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--gold-glow);
  background: var(--gold-soft);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-danger-outline {
  background: transparent;
  border-color: rgba(239,68,68,0.35);
  color: var(--danger);
}

/* ---------- Secciones ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--divider);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { justify-content: center; margin-bottom: 14px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); }

.badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--olive);
  background: rgba(180, 140, 10, 0.12);
  border: 1px solid rgba(180, 140, 10, 0.3);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img,
.brand .custom-logo-link img { height: 34px; width: auto; }
.brand-word { font-weight: 800; font-size: 19px; }
.brand-word .accent { color: var(--gold); }

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14.5px;
  font-weight: 600;
}
.main-nav a { color: var(--text-secondary); transition: color 0.15s; }
.main-nav a:hover { color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 18px; }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; align-items: center; }
.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.hero-meta span { color: var(--gold-soft); }

.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7), 0 0 0 1px rgba(250,204,21,0.05);
  position: relative;
}
.hero-visual::after{
  content:"";
  position:absolute; inset:-1px;
  border-radius: var(--radius-lg);
  padding:1px;
  background: linear-gradient(160deg, var(--gold-glow), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
}
.hero-visual img { border-radius: calc(var(--radius-lg) - 6px); }

/* ---------- Señal / diagrama de replicación (elemento firma) ---------- */
.replica-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 46px 20px;
}
.replica-diagram svg { width: 100%; height: auto; max-width: 560px; }
.candle { transform-origin: bottom center; }
.candle-parent { fill: var(--gold); }
.candle-child { fill: var(--olive); opacity: 0.9; }
.replica-line {
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  opacity: 0.55;
}

/* ---------- Grid de features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(250,204,21,0.08);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; }

/* ---------- Compatibilidad / firmas ---------- */
.firms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.firm-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: var(--text-secondary);
}

/* ---------- Pricing ---------- */
.price-card {
  background: linear-gradient(180deg, rgba(250,204,21,0.05), transparent 40%), var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}
.price-tag {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 700;
  color: var(--gold);
  margin: 14px 0 4px;
}
.price-tag sup { font-size: 20px; top: -1.6em; }
.price-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.price-features {
  list-style: none; padding: 0; margin: 30px 0;
  text-align: left; display: flex; flex-direction: column; gap: 12px;
  font-size: 14.5px;
}
.price-features li { display: flex; gap: 10px; }
.price-features li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--divider);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 20px;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { color: var(--text-secondary); margin-top: 14px; font-size: 15px; max-width: 760px; }

/* ---------- Legal / compliance footer ---------- */
.partners-bar {
  border-top: 1px solid var(--divider);
  padding: 36px 0;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partners-bar img { height: 26px; width: auto; opacity: 0.6; transition: opacity 0.2s; filter: grayscale(1); }
.partners-bar a:hover img { opacity: 1; }
.partner-text-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.partners-bar a:hover .partner-text-logo { color: var(--gold); }

.legal-disclaimer {
  border-top: 1px solid var(--divider);
  padding: 28px 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.legal-disclaimer strong { color: var(--text-secondary); display: block; margin-bottom: 6px; }
.legal-disclaimer + .legal-disclaimer { padding-top: 0; }

.site-footer { background: var(--bg-raised); }
.footer-bottom {
  border-top: 1px solid var(--divider);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- CTA final ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(250,204,21,0.1), rgba(100,75,5,0.15));
  border: 1px solid var(--border-strong);
  padding: 64px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band .btn { margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .firms-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .firms-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 64px 0; }
}

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