

html, body {
  margin: 0;
  padding: 0;
  background: #0b0b0b; /* o #111 si prefieres */
  color: #fff;
  font-family: 'Open Sans', sans-serif;
}

.graph-box img {
  border: 1px solid #2a2a2a; /* en vez de blanco puro */
  
}


/* ====== NAVBAR (global) ====== */
nav {
  background-color: #000;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.1);
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
nav a {
  color: #00b7ff;
  text-decoration: none;
  font-weight: bold;
  transition: color .3s ease, text-shadow .3s ease;
}
nav a:hover {
  color: #66ffff;
  text-shadow: 0 0 8px rgba(102, 255, 255, .5);
}

/* ====== TICKER ====== */
@keyframes scrollText {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.ticker {
  margin-top: 25px;
  padding: 20px;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(51, 255, 153, .2);
  overflow: hidden;
}
.ticker-row {
  white-space: nowrap;
  overflow: hidden;
}
.ticker-row + .ticker-row { margin-top: 12px; }
.ticker-line {
  animation: scrollText 15s linear 2;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: #33ff99;
  text-shadow: 0 0 1px #33ff99, 0 0 2px #33ff99;
  width: max-content;
}
.ticker-slow { animation-duration: 20s; }

/* ====== MACRO DASHBOARD (scoped) ====== */
.macro-dashboard {
  background-color: #111;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  padding: 20px;
}

.macro-dashboard .main-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  min-height: 100vh;
}
.macro-dashboard .left-panel {
  width: 24%;
  min-width: 260px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.macro-dashboard .graph-box {
  width: 72%;
  padding: 15px;
  box-sizing: border-box;

  display: flex;              /* 🔥 CLAVE */
  flex-direction: column;     /* 🔥 CLAVE */
}

.insights-section {
  width: 100%;
}

/* Form */
.macro-dashboard .form-box {
  background-color: #1c1c1c;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}
.macro-dashboard .form-box label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}
.macro-dashboard input[type="month"],
.macro-dashboard input[type="date"],
.macro-dashboard input[type="number"],
.macro-dashboard select {
  width: 100%;
  padding: 6px;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
  margin-top: 5px;
  font-weight: 500;
}
.macro-dashboard input[type="number"] {
  width: 75px;
  background-color: #222;
  border: 1px solid #444;
  margin-left: 10px;
  margin-bottom: 6px;
}
.macro-dashboard input[type="month"]:hover,
.macro-dashboard input[type="date"]:hover { border-color: #fff; }

.macro-dashboard .checkbox-group { margin-top: 12px; }
.macro-dashboard .checkbox-group div {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.macro-dashboard .checkbox-group input[type="checkbox"] { margin-right: 6px; }

.macro-dashboard input[type="submit"],
.macro-dashboard button {
  width: 100%;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px;
  margin-top: 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
}
.macro-dashboard input[type="submit"]:hover { background-color: #005bb5; }

/* Imagen del gráfico */
.macro-dashboard .graph-box img {
  width: 100%;
  height: auto;
  border: 1px solid #2a2a2a; /* en vez de blanco */
  border-radius: 10px;
  display: block;
  margin: auto;
  box-shadow: 0 0 20px rgba(255,255,255,.05);
  transition: transform .4s ease;
}
.macro-dashboard .graph-box img:hover { transform: scale(1.02); }

/* Leyenda */
.macro-dashboard .legend-box {
  background-color: #1c1c1c;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}
.macro-dashboard .legend-title {
  font-weight: bold;
  font-size: 15px;
  color: #ccc;
  margin-bottom: 10px;
}
.macro-dashboard .legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  color: #fff;
}
.macro-dashboard .legend-color {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

/* Tablas */
.macro-dashboard table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
  color: #fff;
}
.macro-dashboard table th,
.macro-dashboard table td {
  padding: 6px;
  text-align: left;
  border-bottom: 1px solid #333;
}
.macro-dashboard table thead { background-color: #222; }

.macro-dashboard .table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
.macro-dashboard .table-compact th,
.macro-dashboard .table-compact td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #333;
}
.macro-dashboard .table-compact thead { background-color: #222; }
.macro-dashboard .table-compact .num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.macro-dashboard .table-compact .nowrap { white-space: nowrap; }

/* Info box */
.macro-dashboard .info-title {
  margin-bottom: 10px;
  color: #66ccff;
}
.macro-dashboard .info-subtitle {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 20px;
}
.macro-dashboard .info-list {
  color: #ddd;
  font-size: 14px;
}
.macro-dashboard .info-variable { margin-bottom: 12px; }

/* News / Widgets */
.macro-dashboard .news-widget-box {
  margin-top: 40px;
  padding: 20px;
  background-color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(102, 204, 255, 0.15);
}
.macro-dashboard .news-widget-box h2 {
  color: #66ccff;
  margin-bottom: 15px;
}
.macro-dashboard .news-source {
  color: #888;
  font-size: 12px;
  margin-top: 10px;
  text-align: right;
}

/* Reuters feed layout */
.macro-dashboard #reuters-feed { width: 100%; }
.macro-dashboard .reuters-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.macro-dashboard .reuters-item {
  display: flex;
  align-items: flex-start;
  background-color: #111;
  border-radius: 6px;
  padding: 15px;
}
.macro-dashboard .reuters-item img {
  width: 110px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 15px;
}
.macro-dashboard .reuters-title {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
.macro-dashboard .reuters-title:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #66ccff;
}
.macro-dashboard .reuters-date {
  color: #ccc;
  font-size: 13px;
  margin: 6px 0;
}
.macro-dashboard .reuters-text {
  color: #ccc;
  font-size: 13px;
}
.macro-dashboard .reuters-content { flex: 1; }
.macro-dashboard .reuters-fallback { color: #aaa; }

/* Footer */
.macro-dashboard .footer-note {
  margin: 40px auto 20px;
  color: #aaa;
  font-size: 13px;
  background: #111;
  padding: 10px 30px;
  max-width: 72%;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .macro-dashboard .main-container { flex-direction: column; }
  .macro-dashboard .left-panel,
  .macro-dashboard .graph-box { width: 100%; }

  .macro-dashboard table { font-size: 12px; }

  .macro-dashboard .reuters-item {
    flex-direction: column;
    gap: 10px;
  }
  .macro-dashboard .reuters-item img {
    width: 100%;
    height: auto;
    margin: 0 0 10px 0;
  }
  .macro-dashboard .news-widget-box h2 {
    font-size: 16px;
    text-align: center;
  }
}

.macro-dashboard .graph-box img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 35px rgba(0, 190, 255, 0.25);
}

.macro-dashboard .graph-box {
  transition: opacity .5s ease;
}

/* Elimina bordes claros residuales en elementos embebidos */
img, iframe, canvas {
  border: 0;
}

/* TradingView a veces mete bordes internos */
.tradingview-widget-container, 
.tradingview-widget-container * {
  border: 0 !important;
  background: transparent !important;
}

/* Si usas <hr>, controlado a oscuro */
hr {
  border: 0;
  height: 1px;
  background: #1a1a1a;
  margin: 24px 0;
}


.macro-dashboard .info-list a {
  color: #18d1ff;             /* Azul acero suave */
  text-decoration: none;
  font-weight: 500;
}

.macro-dashboard .info-list a:hover {
  color: #2da7f3;             /* Hover leve, no brillante */
  text-shadow: 0 0 4px rgba(32, 146, 218, 0.836);
}

.leer-mas {
  color: #4da3ff;
  font-weight: bold;
  margin-left: 6px;
}
.leer-mas:hover {
  text-decoration: underline;
}

.leer-mas {
  color: #4da3ff;
  font-weight: bold;
  margin-left: 6px;
}
.leer-mas:hover {
  text-decoration: underline;
}


/* =============================== */
/* QPRO MARKET INTELLIGENCE PANEL */
/* =============================== */

.insights-section{

margin-top:60px;
padding:24px;

background:#020617;
border:1px solid #1e293b;

font-family: "Segoe UI", Arial, sans-serif;

}

/* header */

.bloomberg-header{

display:flex;
align-items:center;
gap:10px;

border-bottom:1px solid #1e293b;
padding-bottom:10px;
margin-bottom:14px;

}

.bb-tag{

background:#3b82f6;
color:#ffffff;

font-weight:700;
font-size:12px;

padding:3px 8px;

}

.bb-title{

font-size:18px;
letter-spacing:1.5px;
font-weight:700;

color:#e2e8f0;

}


.bb-update{
font-size:12px;
color:#f2f5ffc5;

}



/* overview */

.bb-overview{

font-size:14px;
line-height:1.6;

margin-bottom:16px;

}

/* línea mercado */

.bb-market-line{

margin-top:6px;
margin-bottom:16px;

font-size:14px;

color:#cbd5f5;

}

.bb-market-value{

margin-left:6px;

font-weight:600;

color:#00ff7f;

font-family:"Courier New", monospace;

text-shadow:
0 0 5px #00ff7f,
0 0 10px #00ff7f;

}


.bb-label{

color:#22d3ee;
font-weight:600;
margin-right:8px;

}

.bb-text{

color:#cbd5f5;

}

/* signals */

.bb-signals{

font-size:13.5px;

}

.bb-row{

display:grid;
grid-template-columns:18px 80px 160px minmax(0,1fr) 90px;

gap:10px;

padding:10px 6px;

border-bottom:1px solid #111;

align-items:flex-start;

}

.bb-company-block {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}


/* ticker */


.bb-ticker{
  font-weight:600;
  font-size:16px; 
  color:#38bdf8;
}

/* empresa */

.bb-company{

color:#94a3b8;
font-size:12.5px;

}

/* comentario */

.bb-comment{

color:#ddd;
line-height:1.35;
max-width:100%;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;

}

/* precio accion */

.bb-price{

grid-column:5;       /* fuerza última columna del grid */

text-align:right;

align-self:start;    /* lo pega arriba */

font-weight:600;

color:#00ff7f;

font-family:"Courier New", monospace;

text-shadow:
0 0 5px #00ff7f,
0 0 10px #00ff7f;

}


.bb-pos {
  color:#34d399;
}

.bb-neg {
  color:#f87171;
}

.bb-signal {
  display: inline-flex;
  gap: 1px;
}

/* =============================== */
/* TOOLTIP PROFESIONAL QPRO */
/* =============================== */

.bb-company {
  position: relative;
  cursor: pointer;
}



/* =============================== */
/* QPRO MARKET PANEL - MOBILE */
/* =============================== */
@media (max-width:768px){

  .bb-market-line{
    font-size:13px;
  }

  .bb-market-value{
    font-size:14px;
  }

  .bb-company::after {
    display: none;
  }


  .bb-company-block {
    grid-area: company;
  }

  .bb-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
  } 

  
  .bb-row{

    display:grid;

    grid-template-columns:18px 1fr 80px;

    grid-template-areas:
      "signal ticker price"
      ". company price"
      "comment comment comment";

    row-gap:6px;

  }

  .bb-signal{
    grid-area:signal;
  }

  .bb-ticker{
    grid-area:ticker;
    font-size:12px;
  }

  .bb-company{
    grid-area:company;
    font-size:11.0px;
  }

  .bb-comment{
    grid-area:comment;
    color:#ddd;
    line-height:1.35;
  }

  .bb-price{
    grid-area:price;
    text-align:right;
    align-self:start;
  }

  .bb-overview{
    font-size:13px;
  }

  .bb-title{
    font-size:16px;
  }

}


/* =============================== */
/* MARKET vs EQUITIES (JERARQUÍA) */
/* =============================== */

/* EQUITIES (default) */
.bb-news-title {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;

  color: #32eaf08a;/* gris azulado limpio */
  text-decoration: none;

  margin-top: 4px;
  transition: all 0.2s ease;
}

/* flecha */
.bb-news-title::after {
  content: " ↗";
  font-size: 13px;
  color: #32e9f0; /* azul ticker SOLO en la flecha */
  opacity: 0.85;
  margin-left: 3px;
  transition: all 0.2s ease;
}

/* hover limpio */
.bb-news-title:hover {
  color: #32c4f0;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.25);
}

.bb-news-title:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

.bb-news-block {
  border-left: 2px solid rgba(125, 211, 252, 0.2);
  padding-left: 8px;
  margin-top: 6px;
}

/* MARKET (más importante) */
.bb-market-card .bb-news-title {
  color: #32eaf08a;  /* más visible que equities */
  font-weight: 500;
}

.bb-market-card .bb-news-title:hover {
  color: #32c4f0;
}

/* =============================== */
/* DESCRIPCION CLICK (NUEVO) */
/* =============================== */



.bb-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.2;
}

.hidden {
  display: none;
}

.bb-analysis {
  font-size: 12px;          /* 🔥 antes muy grande */
  line-height: 1.4;
  color: #cbd5f5;

  margin-top: 6px;
  margin-bottom: 10px;

  max-width: 95%;
  opacity: 0.9;             /* 🔥 baja peso visual */
}

.bb-news-block {
  border-left: 2px solid rgba(125, 211, 252, 0.2);
  padding-left: 8px;
  margin-top: 6px;

  transition: all 0.2s ease;
}

.bb-news-block:hover {
  border-left: 2px solid #32eaf08a;
  background: rgba(56, 189, 248, 0.04);
}