:root {
  --bg-0: #05070d;
  --bg-1: #0a0f1c;
  --bg-2: #0f1626;
  --card: #111a2e;
  --card-border: rgba(212, 175, 55, 0.14);
  --gold: #d4af37;
  --gold-bright: #f0c75e;
  --text-hi: #eef1f8;
  --text-mid: #aab2c5;
  --text-low: #6d7690;
  --green: #22c07a;
  --red: #ff4d5e;
  --crimson: #e13a4b;
  --crimson-bright: #ff5468;
  --blue: #4f8cff;
  --blue-bright: #7aa8ff;
  --radius: 10px;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(circle at 20% 0%, #101c34 0%, var(--bg-0) 55%);
  color: var(--text-hi);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }

/* Ticker */
.ticker-bar {
  background: #04070f;
  border-bottom: 1px solid var(--card-border);
  padding: 6px 0;
}

/* Header */
.site-header {
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--text-hi);
}
.logo span { color: var(--gold); }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a.nav-premium { color: var(--gold-bright); font-weight: 700; }
.main-nav a#authBtn {
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
}
.main-nav a#authBtn:hover { border-color: var(--gold); }

/* Contenido premium bloqueado */
.premium-lock {
  position: relative;
  overflow: hidden;
}
.premium-lock .broker-card-inner-blur {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
.premium-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,7,13,0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  z-index: 2;
}
.premium-lock-overlay .lock-icon { font-size: 1.6rem; }
.premium-lock-overlay p { color: var(--text-mid); font-size: 0.82rem; max-width: 220px; }
.badge-premium {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #16130a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-hi);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow.small { margin-bottom: 10px; }
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.gold { color: var(--gold-bright); }
.hero-text p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-widget {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16130a;
  box-shadow: 0 8px 24px rgba(212,175,55,0.25);
}
.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text-hi);
}
.btn-outline:hover { border-color: var(--gold); }
.btn-block { display: block; text-align: center; width: 100%; margin-top: 16px; }

/* Risk strip */
.risk-strip {
  background: #120d05;
  border-top: 1px solid rgba(212,175,55,0.2);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  color: var(--text-mid);
  font-size: 0.82rem;
  padding: 10px 0;
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: rgba(255,255,255,0.015); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-head h2 { font-size: 1.5rem; font-weight: 700; }
.badge-demo {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-low);
  border: 1px solid var(--card-border);
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
  text-transform: uppercase;
}
.see-all { color: var(--gold-bright); font-size: 0.9rem; font-weight: 600; }

/* Featured broker (sponsored) */
.featured-broker {
  position: relative;
  background: linear-gradient(135deg, #12192c 0%, #171025 60%, #23131b 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(212,175,55,0.06);
  overflow: hidden;
}
.featured-broker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(225, 58, 75, 0.18), transparent 55%);
  pointer-events: none;
}
.featured-ribbon {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #16130a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  position: relative;
}
.featured-brand {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.featured-desc { color: var(--text-mid); font-size: 0.95rem; max-width: 560px; margin-bottom: 18px; }
.featured-facts { list-style: none; }
.featured-facts li {
  display: flex;
  justify-content: space-between;
  max-width: 480px;
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
}
.featured-facts strong { color: var(--text-hi); font-family: var(--mono); font-weight: 500; }
.why-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
}
.why-box h4 { font-size: 1rem; margin-bottom: 14px; }
.why-box ul { list-style: none; margin-bottom: 18px; }
.why-box li { font-size: 0.86rem; color: var(--text-mid); padding: 6px 0; }

/* Broker cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid.two-up { grid-template-columns: repeat(2, 1fr); }

/* Pros / cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 18px;
}
.pros-cons h5 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-family: var(--mono);
}
.pros-cons .pros h5 { color: var(--green); }
.pros-cons .cons h5 { color: var(--crimson-bright); }
.pros-cons ul { list-style: none; }
.pros-cons li {
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 4px 0;
  line-height: 1.4;
}
.pros-cons .pros li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.pros-cons .cons li::before { content: "✕ "; color: var(--crimson-bright); font-weight: 700; }
.broker-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.broker-rank {
  font-family: var(--mono);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.broker-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.stars { color: var(--gold-bright); font-size: 0.95rem; margin-bottom: 16px; }
.stars span { color: var(--text-mid); font-family: var(--mono); margin-left: 6px; }
.broker-facts { list-style: none; }
.broker-facts li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.broker-facts strong { color: var(--text-hi); font-family: var(--mono); font-weight: 500; }

/* Two column promo */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.promo-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
}
.promo-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.promo-card p { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 20px; }

/* News */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.news-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--card-border);
  padding: 2px 8px;
  border-radius: 20px;
}
.news-item h4 { font-size: 1.02rem; margin: 10px 0 6px; }
.news-item p { color: var(--text-mid); font-size: 0.88rem; margin-bottom: 10px; }
.news-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--text-low); }

/* Article body (Psicotrading) */
.article-body {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
}
.article-body p { margin-bottom: 16px; }
.article-body strong { color: var(--text-hi); }
.article-body h3 { color: var(--text-hi); }

/* Calendar */
.calendar-embed {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px;
}

/* Card hover lift */
.broker-card, .news-item, .promo-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.broker-card:hover, .news-item:hover, .promo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Promo / urgency banner (IronFX-style bonus strip) */
.promo-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #1a1030 0%, #241535 45%, #3a1620 100%);
  border: 1px solid rgba(255, 84, 104, 0.3);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.25), transparent 55%);
  pointer-events: none;
}
.promo-banner-text h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.promo-banner-text p {
  color: var(--text-mid);
  font-size: 0.9rem;
}
.btn-crimson {
  background: linear-gradient(135deg, var(--crimson-bright), var(--crimson));
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 58, 75, 0.35);
}

/* Badges */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--crimson-bright);
  border: 1px solid rgba(225, 58, 75, 0.35);
  background: rgba(225, 58, 75, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 8px var(--crimson-bright);
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.badge-impact {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge-impact.high { background: rgba(225, 58, 75, 0.15); color: var(--crimson-bright); border: 1px solid rgba(225, 58, 75, 0.35); }
.badge-impact.medium { background: rgba(212, 175, 55, 0.15); color: var(--gold-bright); border: 1px solid rgba(212, 175, 55, 0.35); }
.badge-impact.low { background: rgba(139, 147, 167, 0.15); color: var(--text-mid); border: 1px solid rgba(139, 147, 167, 0.3); }

/* Filter chips */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.filter-chip {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--gold); color: var(--text-hi); }
.filter-chip.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16130a;
  border-color: transparent;
  font-weight: 700;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--card-border);
  background: radial-gradient(circle at 15% 0%, rgba(212, 175, 55, 0.08), transparent 60%);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-mid); max-width: 640px; font-size: 1rem; }
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-low);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-mid); }
.breadcrumb a:hover { color: var(--gold-bright); }

/* Highlight event strip (calendar) */
.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.highlight-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--crimson);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.highlight-card .h-time { font-family: var(--mono); font-size: 0.75rem; color: var(--text-low); }
.highlight-card h4 { font-size: 0.98rem; margin: 8px 0 6px; }
.highlight-card p { font-size: 0.82rem; color: var(--text-mid); }

/* Info grid (how the calendar works) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
}
.info-card .info-num {
  font-family: var(--mono);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.info-card h4 { font-size: 1rem; margin-bottom: 8px; }
.info-card p { font-size: 0.86rem; color: var(--text-mid); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 32px;
}
.footer-text { color: var(--text-low); font-size: 0.85rem; margin-top: 10px; line-height: 1.6; }
.site-footer h5 { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer a { display: block; color: var(--text-mid); font-size: 0.88rem; padding: 4px 0; }
.site-footer a:hover { color: var(--gold-bright); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid.two-up, .highlight-strip, .info-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; align-items: flex-start; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-broker { padding: 28px 20px 24px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .chat-panel { width: calc(100vw - 32px); height: 70vh; right: 16px; bottom: 84px; }
  .chat-launcher-text { display: none; }
  .chat-launcher { padding: 0; width: 54px; justify-content: center; border-radius: 50%; }
  .chat-greeting { right: 16px; max-width: calc(100vw - 90px); }
}

/* Chatbot widget */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16130a;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.15s;
}
.chat-launcher:hover { transform: scale(1.04); }
.chat-launcher-icon { font-size: 1.2rem; }

.chat-greeting {
  position: fixed;
  bottom: 90px;
  right: 24px;
  max-width: 240px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  padding: 14px 34px 14px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  z-index: 199;
  font-size: 0.85rem;
  color: var(--text-hi);
  display: none;
  animation: greeting-pop 0.25s ease;
}
.chat-greeting.show { display: block; }
.chat-greeting-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-low);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
}
@keyframes greeting-pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  height: 480px;
  background: var(--bg-1);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}
.chat-panel.open { display: flex; }

.chat-header {
  padding: 14px 16px;
  background: linear-gradient(120deg, #171025, #23131b);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-title { font-weight: 700; font-size: 0.92rem; }
.chat-header-sub { font-size: 0.7rem; color: var(--text-low); font-family: var(--mono); }
.chat-close {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 1.1rem;
  cursor: pointer;
}

.chat-disclaimer {
  font-size: 0.7rem;
  color: var(--text-low);
  padding: 8px 14px;
  border-bottom: 1px dashed var(--card-border);
  line-height: 1.4;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.chat-msg.bot {
  background: var(--card);
  border: 1px solid var(--card-border);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.chat-msg.user {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16130a;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  font-weight: 500;
}
.chat-msg.error {
  background: rgba(225, 58, 75, 0.1);
  border: 1px solid rgba(225, 58, 75, 0.3);
  color: var(--crimson-bright);
  align-self: flex-start;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--card-border);
}
.chat-input-row input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-hi);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}
.chat-input-row input:focus { outline: none; border-color: var(--gold); }
.chat-input-row button {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16130a;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
}
.chat-input-row button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Ideas de Trading: aviso prominente */
.idea-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(120deg, rgba(225,58,75,0.1), rgba(212,175,55,0.06));
  border: 1px solid rgba(225, 58, 75, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.idea-warning .icon { font-size: 1.4rem; line-height: 1; }
.idea-warning strong { color: var(--crimson-bright); display: block; margin-bottom: 4px; font-size: 0.95rem; }
.idea-warning p { color: var(--text-mid); font-size: 0.86rem; margin: 0; }

/* Glosario rapido */
.glossary-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 6px 20px;
  margin-bottom: 28px;
}
.glossary-box summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-hi);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.glossary-box summary::-webkit-details-marker { display: none; }
.glossary-box summary::after { content: "+"; font-family: var(--mono); color: var(--gold); font-size: 1.1rem; }
.glossary-box[open] summary::after { content: "−"; }
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  padding-bottom: 18px;
}
.glossary-grid dt { color: var(--gold-bright); font-family: var(--mono); font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.glossary-grid dd { color: var(--text-mid); font-size: 0.82rem; margin: 0 0 10px; }

/* Instrument badge (tarjetas de ideas) */
.instrument-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 9px;
  border-radius: 6px;
  margin-left: 8px;
}

/* Chart embed (detalle de idea) */
.idea-chart-wrap {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 24px;
}
.idea-chart-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.idea-chart-tabs button {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-mid);
  font-size: 0.78rem;
  font-family: var(--mono);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.idea-chart-tabs button.active { background: var(--gold); color: #16130a; border-color: transparent; font-weight: 700; }

@media (max-width: 700px) {
  .glossary-grid { grid-template-columns: 1fr; }
}

/* Portadas graficas financieras (foto real + overlay) */
.fin-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.fin-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(5,7,13,0.15) 0%, rgba(5,7,13,0.55) 55%, rgba(5,7,13,0.92) 100%);
}
.fin-hero.cat-forex .fin-hero-overlay { background: linear-gradient(190deg, rgba(36,29,10,0.2) 0%, rgba(10,8,3,0.6) 55%, rgba(6,5,2,0.94) 100%); }
.fin-hero.cat-latam .fin-hero-overlay { background: linear-gradient(190deg, rgba(14,36,24,0.2) 0%, rgba(6,15,10,0.6) 55%, rgba(4,10,7,0.94) 100%); }
.fin-hero.cat-commodities .fin-hero-overlay { background: linear-gradient(190deg, rgba(42,18,16,0.2) 0%, rgba(16,7,6,0.6) 55%, rgba(10,4,4,0.94) 100%); }
.fin-hero.cat-acciones .fin-hero-overlay { background: linear-gradient(190deg, rgba(16,25,44,0.2) 0%, rgba(7,11,20,0.6) 55%, rgba(4,7,13,0.94) 100%); }

.fin-hero-icon-chip {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: rgba(5,7,13,0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.fin-hero.cat-forex .fin-hero-icon-chip { color: var(--gold-bright); border: 1px solid rgba(240,199,94,0.4); }
.fin-hero.cat-latam .fin-hero-icon-chip { color: var(--green); border: 1px solid rgba(34,192,122,0.4); }
.fin-hero.cat-commodities .fin-hero-icon-chip { color: var(--crimson-bright); border: 1px solid rgba(255,84,104,0.4); }
.fin-hero.cat-acciones .fin-hero-icon-chip { color: var(--blue-bright); border: 1px solid rgba(122,168,255,0.4); }
.fin-hero-icon-chip.icon-gold { color: var(--gold-bright) !important; border-color: rgba(240,199,94,0.4) !important; }
.fin-hero-icon-chip.icon-oil { color: #d99568 !important; border-color: rgba(217,149,104,0.4) !important; }

.fin-hero-trend {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}
.fin-hero-trend.trend-up { background: rgba(34, 192, 122, 0.2); color: var(--green); border: 1px solid rgba(34,192,122,0.4); }
.fin-hero-trend.trend-down { background: rgba(225, 58, 75, 0.2); color: var(--crimson-bright); border: 1px solid rgba(225,58,75,0.4); }
.fin-hero-trend.trend-neutral { background: rgba(170, 178, 197, 0.18); color: var(--text-hi); border: 1px solid rgba(170,178,197,0.35); }

/* Tamano mini (tarjetas) */
.fin-hero.size-mini {
  border-radius: 8px 8px 0 0;
  height: 118px;
  margin: -24px -24px 16px;
  padding: 12px;
}
.fin-hero.size-mini .fin-hero-icon-chip { width: 34px; height: 34px; }
.fin-hero.size-mini .fin-hero-icon-chip svg { width: 18px; height: 18px; }
.fin-hero.size-mini .fin-hero-trend { font-size: 0.62rem; padding: 3px 9px; }

/* Tamano completo (pagina de detalle) */
.fin-hero.size-full {
  border-radius: var(--radius);
  height: 220px;
  margin-bottom: 24px;
  padding: 20px;
}
.fin-hero.size-full .fin-hero-icon-chip { width: 54px; height: 54px; }
.fin-hero.size-full .fin-hero-icon-chip svg { width: 28px; height: 28px; }
.fin-hero.size-full .fin-hero-trend { font-size: 0.8rem; padding: 6px 16px; }

.source-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.source-box a { color: var(--gold-bright); font-weight: 600; }

@media (max-width: 600px) {
  .fin-hero.size-full .fin-hero-icon svg { width: 60px; height: 60px; }
}
