

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;
}

/* 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;
}
