/* ============================================================
   GridBots.pro — Hoja de estilos compartida
   Versión: 1.0
   Uso: Incluir en el <head> de todas las páginas con:
   <link rel="stylesheet" href="/estilos.css">
============================================================ */

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --bg-base:       #080b0f;
  --bg-surface:    #0d1117;
  --bg-card:       #111820;
  --bg-card-hover: #16202c;
  --border:        #1e2d3d;
  --border-light:  #243447;

  --accent-green:  #00e676;
  --accent-cyan:   #00bcd4;
  --accent-amber:  #ffab00;
  --accent-red:    #ff4444;
  --accent-purple: #a78bfa;

  --text-primary:  #e8edf2;
  --text-secondary:#8899aa;
  --text-muted:    #4a5a6a;
  --text-on-green: #001a09;

  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --header-h: 64px;
  --max-w: 1200px;

  --transition: 0.2s ease;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Grid background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,230,118,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,230,118,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER — FIJO
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(8,11,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 32px; height: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 3px;
}
.logo-icon span {
  border-radius: 2px;
  background: var(--accent-green);
  opacity: 0.3;
  transition: opacity 0.6s;
}
.logo-icon span:nth-child(1) { opacity: 1; }
.logo-icon span:nth-child(2) { opacity: 0.7; }
.logo-icon span:nth-child(4) { opacity: 0.8; }
.logo-icon span:nth-child(5) { opacity: 0.5; }
.logo-icon span:nth-child(7) { opacity: 0.9; }
.logo-icon span:nth-child(9) { opacity: 0.6; }
.logo-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-text em {
  color: var(--accent-green);
  font-style: normal;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
.nav-item.active {
  color: var(--accent-green);
}

/* Language selector */
.lang-selector {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.lang-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.lang-btn svg { width: 12px; height: 12px; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.lang-selector:hover .lang-dropdown { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang-option {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.lang-option:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.lang-option.current { color: var(--accent-green); font-weight: 600; }

/* CTA button header */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green);
  color: var(--text-on-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition);
  text-transform: uppercase;
}
.cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cta-btn svg { width: 14px; height: 14px; }

/* ============================================================
   BREADCRUMBS
============================================================ */
.breadcrumb-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  background: rgba(13,17,23,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bc-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.bc-item:hover { color: var(--text-secondary); }
.bc-item.current { color: var(--accent-cyan); }
.bc-sep {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   LAYOUT PRINCIPAL
============================================================ */
.page-wrap {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,230,118,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 20px;
}
.hero-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  max-width: 780px;
  margin-bottom: 24px;
}
.hero h1 .highlight { color: var(--accent-green); }
.hero h1 .dim { color: var(--text-muted); }
.hero-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-green);
  color: var(--text-on-green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,230,118,0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}
.btn-secondary:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-green);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   SECTION TITLES
============================================================ */
.section {
  padding: 72px 0;
}
.section-header {
  margin-bottom: 48px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   CARDS DE BOTS
============================================================ */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.bot-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent-green));
  opacity: 0;
  transition: opacity var(--transition);
}
.bot-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.bot-card:hover::before { opacity: 1; }
.bot-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.bot-card-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,230,118,0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0,230,118,0.2);
  margin-left: auto;
}
.bot-card-badge.cyan {
  background: rgba(0,188,212,0.1);
  color: var(--accent-cyan);
  border-color: rgba(0,188,212,0.2);
}
.bot-card-badge.amber {
  background: rgba(255,171,0,0.1);
  color: var(--accent-amber);
  border-color: rgba(255,171,0,0.2);
}
.bot-card-top {
  display: flex;
  align-items: center;
}
.bot-card h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.bot-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.bot-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  margin-top: auto;
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }

/* ============================================================
   SECCIÓN "CÓMO FUNCIONA" (how-grid)
============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.how-item {
  background: var(--bg-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--transition);
}
.how-item:hover { background: var(--bg-card-hover); }
.how-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.how-number span { color: var(--accent-green); }
.how-item h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.how-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   ESTRATEGIAS
============================================================ */
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .strategies-grid { grid-template-columns: 1fr; }
}
.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition);
}
.strategy-card:hover { border-color: var(--border-light); }
.strategy-market {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}
.market-lateral {
  background: rgba(0,188,212,0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0,188,212,0.2);
}
.market-bull {
  background: rgba(0,230,118,0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0,230,118,0.2);
}
.market-bear {
  background: rgba(255,68,68,0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255,68,68,0.2);
}
.strategy-card h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.strategy-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.strategy-bots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.bot-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  margin: 0;
  padding: 72px 0;
  background: linear-gradient(135deg, rgba(0,230,118,0.06) 0%, rgba(0,188,212,0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: 'GRID';
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 200px;
  font-weight: 700;
  color: rgba(0,230,118,0.025);
  letter-spacing: -10px;
  pointer-events: none;
  user-select: none;
}
.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-content h2 {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.cta-content p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
}
.cta-content p strong { color: var(--accent-green); font-weight: 600; }
.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-green);
  color: var(--text-on-green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-cta-large:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,230,118,0.3);
}
.cta-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ============================================================
   ARTÍCULOS / TUTORIALES
============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition);
}
.article-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.article-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-amber);
}
.article-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.article-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.article-read {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.article-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.article-link:hover { gap: 8px; }

/* ============================================================
   ARTÍCULO — LAYOUT INTERIOR (article pages)
============================================================ */
.page-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

/* Artículo texto */
.article-content {
  min-width: 0;
}
.article-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.article-title em {
  color: var(--accent-green);
  font-style: normal;
}
.article-intro {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.meta-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.meta-pill.amber { color: var(--accent-amber); background: rgba(255,171,0,0.08); border-color: rgba(255,171,0,0.2); }
.meta-pill.green  { color: var(--accent-green); background: rgba(0,230,118,0.08); border-color: rgba(0,230,118,0.2); }
.meta-pill.cyan   { color: var(--accent-cyan);  background: rgba(0,188,212,0.08); border-color: rgba(0,188,212,0.2); }

.article-content h2 {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 48px 0 20px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.article-content h2:first-of-type { border-top: none; padding-top: 0; }
.article-content h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}
.article-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}
.article-content ul, .article-content ol {
  margin: 0 0 18px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 24px;
  position: relative;
}
.article-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 12px;
}
/* ol usa counter — el color lo define cada página con una variable */
.article-content ol {
  counter-reset: item;
}
.article-content ol li {
  counter-increment: item;
  padding-left: 28px;
}
.article-content ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ol-accent, var(--accent-green));
}
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content em { color: var(--accent-cyan); font-style: normal; }

/* Callouts */
.callout {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  margin: 28px 0;
}
.callout-icon { font-size: 20px; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.callout-body { font-size: 14px; line-height: 1.7; }
.callout-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.callout.tip  { background: rgba(0,230,118,0.06);  border-color: rgba(0,230,118,0.2); }
.callout.tip  .callout-body strong { color: var(--accent-green); }
.callout.tip  .callout-body p { color: var(--text-secondary); }
.callout.warning { background: rgba(255,171,0,0.06); border-color: rgba(255,171,0,0.2); }
.callout.warning .callout-body strong { color: var(--accent-amber); }
.callout.warning .callout-body p { color: var(--text-secondary); }
.callout.info { background: rgba(0,188,212,0.06); border-color: rgba(0,188,212,0.2); }
.callout.info .callout-body strong { color: var(--accent-cyan); }
.callout.info .callout-body p { color: var(--text-secondary); }

/* ============================================================
   SIMULADOR VISUAL (canvas)
============================================================ */
.simulator-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 36px 0;
}
.simulator-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.simulator-header h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}
.sim-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sim-control { display: flex; flex-direction: column; gap: 4px; }
.sim-control label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sim-control input[type="range"] {
  width: 100px;
  accent-color: var(--accent-green);
  cursor: pointer;
}
.sim-control .val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
  text-align: center;
}
#grid-canvas, #bull-canvas, #dca-canvas, #bear-canvas, #infinity-canvas, #futures-canvas {
  display: block;
  width: 100%;
  height: 320px;
}

/* ============================================================
   TABLA PARÁMETROS
============================================================ */
.params-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 28px 0;
}
.params-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.params-table td {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.params-table tr:last-child td { border-bottom: none; }
.params-table td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.params-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================================
   SIDEBAR (artículos)
============================================================ */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar-widget h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-list a {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: block;
  transition: color var(--transition), background var(--transition);
}
.toc-list a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.toc-list a.active {
  color: var(--accent-green);
  background: rgba(0,230,118,0.06);
}

/* Platform card (comparativas) */
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
.platform-card:hover { border-color: var(--border-light); }
.pc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pc-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
}
.pc-name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.pc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.badge-free     { background: rgba(0,230,118,0.1); color: var(--accent-green); border: 1px solid rgba(0,230,118,0.2); }
.badge-freemium { background: rgba(255,171,0,0.1); color: var(--accent-amber); border: 1px solid rgba(255,171,0,0.2); }
.badge-paid     { background: rgba(255,68,68,0.1); color: var(--accent-red);   border: 1px solid rgba(255,68,68,0.2); }
.pc-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.pc-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
}
.pc-stat { display: flex; flex-direction: column; gap: 4px; }
.sv { font-family: var(--font-mono); font-size: 18px; font-weight: 700; }
.sl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.pc-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 600px) { .pc-pros-cons { grid-template-columns: 1fr; } }
.pc-pros-title, .pc-cons-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pc-pros-title { color: var(--accent-green); }
.pc-cons-title { color: var(--accent-red); }
.pc-pros ul, .pc-cons ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pc-pros ul li, .pc-cons ul li { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green);
  color: var(--text-on-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
}
.pc-cta:hover { opacity: 0.88; }

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border-light); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}
.faq-q span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-green);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-a-inner p { margin-bottom: 10px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   STEPPER (tutoriales)
============================================================ */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
}
.step-item {
  display: flex;
  gap: 20px;
  position: relative;
}
.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  z-index: 1;
}
.step-item.active .step-num {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(0,230,118,0.08);
}
.step-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 4px 0;
  min-height: 20px;
}
.step-item:last-child .step-line { display: none; }
.step-body {
  padding-bottom: 32px;
  flex: 1;
  min-width: 0;
}
.step-item:last-child .step-body { padding-bottom: 0; }
.step-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-top: 6px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.step-content p:last-child { margin-bottom: 0; }

/* ============================================================
   SEÑALES / SIGNALS
============================================================ */
.sig {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.sig:hover { border-color: var(--border-light); }
.sig-icon { font-size: 22px; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.sig-body strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.sig-body span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Strategy cards (estrategias pages) */
.strategy-cards { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.sc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: border-color var(--transition);
}
.sc:hover { border-color: var(--border-light); }
.sc.primary { border-color: rgba(0,230,118,0.2); background: rgba(0,230,118,0.03); }
.sc-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-green);
  flex-shrink: 0;
  width: 36px;
}
.sc-body h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.sc-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 12px;
  margin-bottom: 20px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.footer-bottom p a {
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-bottom p a:hover { color: var(--text-primary); }
.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 0;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE GLOBAL
============================================================ */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .bots-grid { grid-template-columns: 1fr; }
  .strategies-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .cta-inner { flex-direction: column; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-layout { padding: 32px 16px 60px; }
}

/* ============================================================
   ANIMACIONES
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeUp 0.5s ease forwards;
}
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.1s; }
.d3 { transition-delay: 0.15s; }
