:root {
  --bg-main: #f8f8f8;
  --bg-soft: #ffffff;  
  --border: #e5e5e5;  
  --text-main: #000;
  --text-muted: rgb(68, 68, 68);
  --accent: rgb(0, 200, 150);
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }


/* ================= NAV ================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header strong {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
}

nav a {
  margin-left: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

nav a:hover {
  color: var(--text-main);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 28px;
}

.logo strong {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
}
/* ================= LAYOUT ================= */
.section {
  padding: 40px 0;
}

.alt-bg {
  background: var(--bg-alt);
}

.container {
  max-width: 1300px;
  margin: auto;
  padding: 0 32px;
}

/* ================= TITLES ================= */
.category-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
}

/* ================= STATS ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.95) 0%,
    rgba(240,255,250,0.85) 100%
  );
  border-radius: 20px;
  border: 1.5px solid rgba(0, 200, 150, 0.35);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,200,150,0.08),
    0 4px 20px rgba(0,200,150,0.08),
    0 8px 28px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00c896, #00e8b0);
  border-radius: 20px 20px 0 0;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 200, 150, 0.6);
  box-shadow:
    0 0 0 1px rgba(0,200,150,0.15),
    0 8px 30px rgba(0,200,150,0.15),
    0 12px 40px rgba(0,0,0,0.07);
}
.stat-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-card p {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;   /* negro sólido */
}


/* ================= DESCRIPTION ================= */
.description p {
  max-width: 1300px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.key-points {
  padding-left: 20px;
  margin-bottom: 20px;
}

.key-points li {
  margin-bottom: 8px;
}

.figures {
  font-size: 0.8rem;
  color: #777;
}

/* ================= BOT ================= */
.bot-block {
  background: #fff;
  border-radius: 28px;
  border: 2px solid #dcdcdc; 
  padding: 10px;
  box-shadow: 0 0px 30px rgba(0,0,0,0.06);
}

.bot-title {
  font-size: 2.2rem;      /* ⬅️ tamaño grande */
  font-weight: 800;       /* ⬅️ bien contundente */
  margin-bottom: 6px;
  letter-spacing: -0.5px; /* ⬅️ look premium */
}

.bot-description p {
  text-align: justify;
}
/* ================= BOT HEADER IMAGE ================= */

.bot-header {
  width: 100%;
  height: 130px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
}

/* ====== IMAGES PER BOT ====== */

.bot-header.sp500 {
  background-image: url("Fotos/sp500ok.webp");
}

.bot-header.nasdaq {
  background-image: url("Fotos/nasok.webp");
}

.bot-header.dax {
  background-image: url("Fotos/daxok.png");
}

.bot-header.fr40 {
  background-image: url("Fotos/frok.png");
}

.bot-header.eth {
  background-image: url("Fotos/ethok.webp");
}

.bot-tagline {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
  font-weight: 500;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.bot-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: #f3f3f3;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.metric-card span {
  font-size: 1rem;
  text-transform: uppercase;
  color: #666;
}

.metric-card strong {
  font-size: 1.1rem;
}

/* ================= DETAILS ================= */
.bot-details summary {
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1.5px solid #d0d0d0;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #333;
  list-style: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-bottom: 24px;
  user-select: none;
}

.bot-details summary::-webkit-details-marker { display: none; }
.bot-details summary::marker { display: none; }

.bot-details summary::after {
  content: "↓";
  font-size: 0.8rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.bot-details[open] summary::after {
  transform: rotate(180deg);
}

.bot-details summary:hover {
  border-color: #888;
  background: #fafafa;
}

.bot-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

/* ================= CTA ================= */
.bot-cta {
  margin-top: 24px;
}
.license-select {
  margin-right: 50px;  /* ajusta 20–40px a gusto */
}

.launch-badge {
  display: inline-block;
  background: #fff8e1;
  color: #92610a;
  border: 1px solid #f5c842;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.license-label {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 6px;
  color: #666;
}

.license-select {
  width: 100%;
  max-width: 180px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
}

/* ================= FOOTER ================= */
.footer { width: 100%; font-size: 0.9rem; }

.footer-top {
  background: #2f3a44;
  color: #eaeaea;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  color: #d6dbe0;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 0.7; }

.footer-tagline {
  font-size: 0.8rem;
  color: #8a9ba8;
  margin: 0;
}

.footer-email {
  font-size: 0.82rem;
  color: #00c896;
  text-decoration: none;
}

.footer-email:hover { text-decoration: underline; }

.footer-bottom {
  background: #f5f5f5;
  padding: 24px 20px;
  border-top: 1px solid #ddd;
}

.footer-legal {
  max-width: 1200px;
  margin: auto;
}

.footer-legal .copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.footer-legal .legal-text p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
  text-align: justify;
}


/* ================= BOT SEPARATION ================= */

.bot-block {
  margin-bottom: 64px;
}

.bot-block:not(:last-child)::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  margin-top: 64px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.15),
    transparent
  );
}

/* ================= PREMIUM CARD BASE ================= */

.premium-card {
  background: linear-gradient(
    135deg,
    #f5f5f5 0%,
    #e6e6e6 40%,
    #fdfdfd 50%,
    #ececec 60%,
    #f0f0f0 100%
  );
  border: 1px solid #cccccc;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.05),
    0 6px 18px rgba(0,0,0,0.06);
}

.stat-card {
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.98) 0%,
    rgba(240,255,250,0.9) 100%
  );
  border: 1.5px solid rgba(0, 200, 150, 0.35);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(0,200,150,0.08),
    0 4px 20px rgba(0,200,150,0.08),
    0 8px 28px rgba(0,0,0,0.05);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 200, 150, 0.6);
  box-shadow:
    0 0 0 1px rgba(0,200,150,0.15),
    0 8px 30px rgba(0,200,150,0.15),
    0 12px 40px rgba(0,0,0,0.07);
}

.metric-card {
  background: linear-gradient(
    135deg,
    #f5f5f5 0%,
    #e6e6e6 40%,
    #fdfdfd 50%,
    #ececec 60%,
    #f0f0f0 100%
  );
  border: 1px solid #ccc;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.05),
    0 6px 18px rgba(0,0,0,0.06);
}

.metric-card strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin-top: 4px;
}

/* ================= BACKGROUND FULL ================= */

/* Base común */
.bot-bg-combo,
.bot-bg-sp500,
.bot-bg-nasdaq,
.bot-bg-dax,
.bot-bg-fr40,
.bot-bg-eth {
  position: relative;
  overflow: hidden;
}

/* Fondo real (impacto visual) */
.bot-bg-combo::before,
.bot-bg-sp500::before,
.bot-bg-nasdaq::before,
.bot-bg-dax::before,
.bot-bg-fr40::before,
.bot-bg-eth::before {
  content: "";
  position: absolute;
  inset: 0;

  background-repeat: no-repeat;
  background-size: 100%;          /* ⬅️ ZOOM OUT REAL */
  background-position: right bottom;
 

  filter: saturate(0.9) contrast(0.95) brightness(1.05);
  z-index: 0;
}

/* Overlay elegante (clave) */

.bot-bg-sp500::after,
.bot-bg-nasdaq::after,
.bot-bg-dax::after,
.bot-bg-fr40::after,
.bot-bg-eth::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,1) 35%,
      rgba(255,255,255,0) 55%
    ),
    linear-gradient(
      to right,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.90) 45%,
      rgba(255,255,255,0.70) 70%,
      rgba(255,255,255,0.55) 100%
    );

  z-index: 1;
}

/* Contenido por encima */
.bot-bg-combo > *,
.bot-bg-sp500 > *,
.bot-bg-nasdaq > *,
.bot-bg-dax > *,
.bot-bg-fr40 > *,
.bot-bg-eth > * {
  position: relative;
  z-index: 2;
}

/* Imágenes */
.bot-bg-combo::before { background-image: url("Fotos/fondocombo.png"); }
.bot-bg-sp500::before { background-image: url("Fotos/fondosp2.png"); }
.bot-bg-nasdaq::before { background-image: url("Fotos/fondons2.png"); }
.bot-bg-dax::before { background-image: url("Fotos/fondojp.png"); }
.bot-bg-fr40::before { background-image: url("Fotos/fondouk.png"); }
.bot-bg-eth::before { background-image: url("Fotos/fondoeth2.png"); }

.vision-bg{
  position: relative;
  overflow: hidden;
  isolation: isolate;

  /* full width real */
  width: 100vw;
  margin-left: calc(50% - 50vw);

  background: #fff; /* por si acaso */
}
.bot-bg-combo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,1) 35%,
      rgba(255,255,255,0) 55%
    ),
    linear-gradient(
      to right,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.90) 45%,
      rgba(255,255,255,0.70) 70%,
      rgba(255,255,255,0.55) 100%
    );
  z-index: 1;
}
/* FONDO: que cubra todo, pero con zoom-out mediante transform */
.vision-bg::before{
  content: "";
  position: absolute;

  /* inset negativo para que al hacer scale no aparezcan bordes */
  inset: -80px;

  background-image: url("Fotos/fondo.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover; /* ✅ llena todo el bloque */

  /* ✅ zoom out real */
  transform: scale(1);
  transform-origin: right center;

  z-index: 0;
  filter: saturate(0.9) contrast(0.95) brightness(1.05);
}



/* Contenido encima */
.vision-bg > .container{
  position: relative;
  z-index: 2;
}

.bot-bg-combo::before,
.bot-bg-sp500::before,
.bot-bg-nasdaq::before,
.bot-bg-dax::before,
.bot-bg-fr40::before,
.bot-bg-eth::before,
.bot-bg-sp500::after,
.bot-bg-nasdaq::after,
.bot-bg-dax::after,
.bot-bg-fr40::after,
.bot-bg-eth::after {
  pointer-events: none;
}

/* ================= AUTH MODAL PREMIUM ================= */

.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.auth-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 22px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: fadeInScale 0.25s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.auth-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-box input {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.auth-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-buttons button {
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-buttons button:hover {
  opacity: 0.85;
}

.auth-toggle-text {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 8px;
}

.register-pill {
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 6px;
}

.close-btn {
  background: transparent;
  border: none;
  color: #666;
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
}
.auth-message {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.auth-message.success {
  color: #2ecc71;
}

.auth-message.error {
  color: #e74c3c;
}

/* ================= MOBILE FIXES ================= */

@media (max-width: 768px) {

  /* NAVBAR */
  nav {
    display: none;
  }

  header {
    padding: 14px 16px;
  }

  /* CONTAINER */
  .container {
    padding: 0 16px;
  }

  /* TITULOS */
  .category-title {
    font-size: 2rem;
  }

  /* BOT HEADER (IMPORTANTE, ahora está roto con width:1000%) */
  .bot-header {
    width: 100%;
    height: 100px;
    background-size: contain;
  }

  /* BOT CONTENT (2 columnas → 1 columna) */
  .bot-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* CTA */
  .license-select {
    max-width: 100%;
    margin-right: 0;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  /* STATS */
  .stat-card {
    padding: 20px 16px;
  }

  /* METRICS */
  .metric-card {
    padding: 14px;
  }

  /* BOT BLOCK */
  .bot-block {
    padding: 16px;
    border-radius: 20px;
  }

  /* TAGLINE */
  .bot-tagline {
    font-size: 0.9rem;
  }

  /* TITLE */
  .bot-title {
    font-size: 1.7rem;
  }

  /* FONDO (evitar cortes raros en móvil) */
  .bot-bg-combo::before,
  .bot-bg-sp500::before,
  .bot-bg-nasdaq::before,
  .bot-bg-dax::before,
  .bot-bg-fr40::before,
  .bot-bg-eth::before {
    background-size: cover;
    background-position: center;
  }

  /* FOOTER */
  .footer .legal-text {
    padding: 0 16px;
  }

  /* TEXTO GLOBAL */
  body {
    font-size: 14px;
  }
}

/* AUTH MODAL SMALL SCREENS */
@media (max-width: 480px) {
  .auth-box {
    width: 90%;
    padding: 24px;
  }
}
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.auth-box {
  background: #f5f5f5;
  padding: 30px;
  border-radius: 20px;
  width: 320px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.auth-box h3 {
  margin-bottom: 20px;
  text-align: left;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  margin-bottom: 10px;
}

.auth-actions button {
  background: #00c896;
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.forgot-link {
  font-size: 13px;
  color: #777;
  cursor: pointer;
}

.forgot-link:hover {
  text-decoration: underline;
  color: black;
}

.auth-toggle-text {
  margin-top: 15px;
  font-size: 14px;
}

.register-pill {
  background: black;
  color: rgb(255, 255, 255);
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-left: 5px;
}

.close-btn {
  margin-top: 15px;
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
}
.recover-btn {
  width: 100%;
  background: black;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
}

/* ================= KONDOR PERFORMANCE DASHBOARD ================= */

.perf-dashboard {
  background: rgba(255,255,255,0.92);
  border: 1.5px solid rgba(0, 200, 150, 0.25);
  border-radius: 24px;
  padding: 36px 40px;
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 4px rgba(0, 200, 150, 0.06),
    0 8px 40px rgba(0,0,0,0.07);
}

.perf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.perf-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 5px;
}

.perf-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111;
}

.perf-sub {
  font-size: 0.76rem;
  color: #aaa;
  margin-top: 5px;
}

.perf-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 7px 15px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Stats row */
.perf-stats-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 24px;
}

.perf-stat-item {
  flex: 1;
  padding: 20px 24px;
  background: linear-gradient(160deg, #ffffff 0%, rgba(240,255,250,0.6) 100%);
  border: 1.5px solid rgba(0, 200, 150, 0.18);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.perf-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.perf-stat-divider {
  display: none;
}

.perf-stat-label {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #999;
  margin-bottom: 6px;
}

.perf-stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111;
  line-height: 1;
}

.perf-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #888;
  margin-left: 1px;
}

.perf-stat-desc {
  font-size: 0.72rem;
  color: #bbb;
  margin-top: 6px;
}

/* Monitoring */
.perf-monitoring {
  border-top: 1px solid #ebebeb;
  padding-top: 22px;
}

.perf-monitor-title {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  margin-bottom: 12px;
}

.perf-monitor-top-row {
  margin-bottom: 14px;
}

.perf-monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.perf-monitor-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f9f9;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.perf-monitor-icon {
  display: block;
  width: 4px;
  height: 20px;
  background: rgb(0, 200, 150);
  border-radius: 3px;
  flex-shrink: 0;
}

.perf-monitor-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #333;
  flex: 1;
  line-height: 1.2;
}

.perf-monitor-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.perf-monitor-pill.active {
  background: #dcfce7;
  color: #15803d;
}

/* Bot quick navigation */
.perf-bot-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-top: 14px;
}

.perf-bot-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #bbb;
  flex-shrink: 0;
}

.perf-bot-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.perf-bot-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  background: #f4f4f4;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  padding: 5px 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.perf-bot-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

@media (max-width: 768px) {
  .perf-dashboard { padding: 22px 18px; }
  .perf-stats-row { flex-direction: column; }
  .perf-stat-divider { width: 100%; height: 1px; }
  .perf-stat-item { padding: 14px 16px; }
  .perf-monitor-grid { grid-template-columns: 1fr; }
  .perf-title { font-size: 1.5rem; }
  .perf-stat-number { font-size: 1.6rem; }
  .perf-bot-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ================= SP500 DASHBOARD STYLE ================= */

.sp500-dash {
  padding: 28px 30px;
}

/* --- Header --- */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dash-market-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 5px;
}

.dash-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #111;
}

.dash-updated {
  font-size: 0.76rem;
  color: #aaa;
  margin-top: 5px;
}

.dash-live-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 7px 15px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dash-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dash-pulse 1.6s ease-in-out infinite;
}

@keyframes dash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* --- Metric cards 2×2 --- */
.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.dash-metrics--combo {
  grid-template-columns: repeat(6, 1fr);
}

.dash-metrics--combo .dash-metric-card:nth-child(1),
.dash-metrics--combo .dash-metric-card:nth-child(2) {
  grid-column: span 3;
}

.dash-metrics--combo .dash-metric-card:nth-child(3),
.dash-metrics--combo .dash-metric-card:nth-child(4),
.dash-metrics--combo .dash-metric-card:nth-child(5) {
  grid-column: span 2;
}

.dash-metric-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  padding: 18px 20px;
  backdrop-filter: blur(6px);
}

.dash-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dash-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dash-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.dash-green  { background: #dcfce7; color: #15803d; }
.dash-orange { background: #fff7ed; color: #c2410c; }
.dash-amber  { background: #fef9c3; color: #a16207; }

.dash-metric-value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: #111;
  margin-bottom: 14px;
}

.dash-metric-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: #888;
  margin-left: 1px;
}

.dash-bar-track {
  height: 5px;
  background: #efefef;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 9px;
}

.dash-bar-fill {
  height: 100%;
  width: 0;                          /* starts at 0 — JS animates to target */
  background: var(--accent);
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-bar-amber {
  background: #f59e0b;
}

.dash-fill-orange {
  background: #f97316;
}

.dash-metric-sub {
  font-size: 0.73rem;
  color: #b0b0b0;
}

/* Quality dots (Profit Factor) */
.dash-quality {
  display: flex;
  gap: 5px;
  margin-bottom: 9px;
}
.dash-quality-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8e8e8;
}
.dash-quality-dot.on {
  background: var(--accent);
}

/* Protection segments (Max Drawdown) */
.dash-protect {
  display: flex;
  gap: 3px;
  margin-bottom: 5px;
}
.dash-protect-seg {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  background: #e8e8e8;
}
.dash-protect-seg.on {
  background: #22c55e;
}
.dash-protect-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Equalizer bars (Avg Trades/Month) */
.dash-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-bottom: 9px;
}
.dash-eq-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.75;
}

/* --- Bottom: video + info --- */
.dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: start;
  border-top: 1px solid #ebebeb;
  padding-top: 26px;
}

/* Combo variant: no video, full width */
.dash-bottom--full {
  display: block;
}

.dash-info--row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 40px;
  width: 100%;
}

.dash-info-text {
  flex: 1;
  min-width: 0;
}

.dash-info--row .dash-cta {
  flex-shrink: 0;
  margin-top: 0;
  align-self: flex-end;
}

.dash-video {
  position: relative;
}

.dash-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: none;
  display: block;
  max-height: 260px;
}

.dash-info p {
  font-size: 0.87rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 10px;
  text-align: justify;
}

/* CTA: label encima del select, botón a su derecha, todo a la derecha */
.dash-cta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  justify-content: end;
}

.dash-cta .license-label {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: #666;
}

.dash-cta .license-select {
  grid-column: 1;
  grid-row: 2;
  width: 190px;
  max-width: 150px;
  margin-bottom: 0;
}

.dash-cta .btn-primary {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  white-space: nowrap;
  padding: 12px 28px;
}

.renewal-notice {
  grid-column: 1 / 3;
  grid-row: 3;
  font-size: 0.72rem;
  color: #888;
  margin: 6px 0 0;
  text-align: right;
}

/* --- Mobile dashboard --- */
@media (max-width: 768px) {
  .sp500-dash { padding: 18px 16px; }

  .dash-header { flex-wrap: wrap; gap: 10px; }

  .dash-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dash-metric-value { font-size: 1.7rem; }
  .dash-metric-card { padding: 14px 14px; }

  .dash-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dash-info--row {
    flex-direction: column;
    gap: 20px;
  }

  .dash-info--row .dash-cta {
    align-self: stretch;
  }

  .dash-video iframe { max-height: none; }

  .dash-cta {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-content: stretch;
    row-gap: 8px;
  }
  .dash-cta .license-label { grid-column: 1; grid-row: 1; }
  .dash-cta .license-select { grid-column: 1; grid-row: 2; width: 100%; max-width: 100%; }
  .dash-cta .btn-primary { grid-column: 1; grid-row: 3; align-self: auto; width: 100%; text-align: center; }
  .renewal-notice { grid-column: 1; grid-row: 4; text-align: center; }
}

@media (max-width: 420px) {
  .dash-metrics { grid-template-columns: 1fr; }
  .dash-metric-value { font-size: 1.9rem; }
}