body {
  margin: 0;
  background: #020617;
  color: #e5e7eb;
  font-family: system-ui, sans-serif;
}

.icono {
  height: 5%;
  width: 5%;
}

.app {
  max-width: 30%;
  margin: auto;
  padding: 16px;
}

.Contenedor {
  display: flex;
  width: 90%;
  justify-content: center;
  margin: auto;
}

.Estados {
  width: 30%;
}

.Panel {
  width: 30%;
}

.header {
  text-align: center;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 0.8rem;
  opacity: 0.6;
}

.controls {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
}

.primary {
  background: #2563eb;
  border: none;
}

.secondary {
  border: 1px dashed #334155;
}

.card {
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.price {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.confidence {
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.vol-alto {
  color: #22c55e; /* verde */
}

.vol-normal {
  color: #eab308; /* amarillo */
}

.vol-bajo {
  color: #ef4444; /* rojo */
}

/* ───────── BADGES ESTRUCTURA ───────── */

.structure-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Tipos de estructura */
.badge-pullback {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid #22c55e;
}

.badge-breakout {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.badge-range {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid #eab308;
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid #94a3b8;
}

/* ───────── TOOLTIP EDUCATIVO ───────── */

.info {
  cursor: pointer;
  font-size: 0.7rem;
  margin-left: 4px;
  opacity: 0.7;
}

.tooltip {
  position: absolute;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px;
  max-width: 240px;
  font-size: 0.75rem;
  line-height: 1.3;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.state-strong {
  color: #22c55e;
}
.state-neutral {
  color: #eab308;
}
.state-weak {
  color: #ef4444;
}

/* ───────── CAMBIOS DE VALOR ───────── */

.value {
  transition: color 0.6s ease;
  color: #e5e7eb; /* blanco base */
}

.value-up {
  color: #22c55e; /* verde */
}

.value-down {
  color: #ef4444; /* rojo */
}

.value-same {
  color: #e5e7eb; /* blanco */
}

/* ───────── INDICADORES GRID ───────── */

.indicators-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px 12px;
  align-items: center;
  margin-top: 10px;
}

.indicator-name {
  font-size: 0.85rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 4px;
}

.indicator-value {
  font-weight: 600;
  text-align: right;
}

.indicator-state {
  font-size: 0.75rem;
  opacity: 0.75;
  text-align: right;
}

.market-state p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ───────── ESTADO DEL MERCADO ───────── */

.market-state-text {
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* Estados */
.market-bullish {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.market-bearish {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.market-range {
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
}

.market-volatile {
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
}

/* ───────── CONDICIÓN PARA OPERAR ───────── */

.trade-condition {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
}

.trade-favorable {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.trade-neutral {
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
}

.trade-unfavorable {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.trade-condition-text {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* ───────── CALIDAD DE LA VELA ───────── */

.candle-quality {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
}

.candle-expansive {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.candle-indecision {
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
}

.candle-reject-max {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.candle-reject-min {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

.candle-neutral {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.15);
}

.candle-quality-text {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* ───────── CONTEXTO DE PRECIO ───────── */

.price-context {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
}

.context-support {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.context-resistance {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.context-range {
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
}

.context-breakout {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

.context-neutral {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.15);
}

.price-context-text {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
}

.market-summary {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.95;
}

.alert {
  position: fixed;
  right: 16px;
  top: -100px;
  background: #1f2933;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.alert.show {
  top: 16px;
  opacity: 1;
}

.alert-success {
  border-left: 5px solid #22c55e;
}
.alert-warning {
  border-left: 5px solid #eab308;
}
.alert-danger {
  border-left: 5px solid #ef4444;
}
.alert-info {
  border-left: 5px solid #38bdf8;
}

.alert strong {
  display: block;
  margin-bottom: 4px;
}

#chart {
  width: 80%;
  height: 500px;
  margin-left: 10px;
  margin-right: 10px;
  display: block;
  position: relative;
}

/* ===========================
   🏠 HOME / LANDING PAGE
=========================== */

.home-container {
  width: 100%;
  padding: 20px;
}

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  max-width: 1200px;
  padding: 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  font-size: 26px;
  background: rgba(240, 185, 11, 0.15);
  border: 1px solid rgba(240, 185, 11, 0.4);
  padding: 10px 14px;
  border-radius: 12px;
  color: #f0b90b;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #f0b90b;
}

.brand-text p {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* HERO */

.hero {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 10px;
  align-items: center;
}

.hero-left {
  flex: 1;
}

.hero-left h2 {
  font-size: 34px;
  margin: 0;
  color: #e5e7eb;
  font-weight: 900;
}

.hero-desc {
  margin-top: 12px;
  font-size: 15px;
  opacity: 0.8;
  max-width: 520px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0px 10px 35px rgba(0, 0, 0, 0.45);
  max-width: 450px;
}

.hero-image {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.hero-stats {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-crypto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.stat-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.7);
  padding: 10px 14px;
  border-radius: 12px;
  min-width: 120px;
}

.stat-value {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #f0b90b;
}

.stat-label {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

/* MODOS */

.modes {
  max-width: 1200px;
  margin: auto;
  padding: 20px 10px;
}

.modes h3 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mode-card {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  transition: all 0.2s ease;
  color: #e5e7eb;
}

.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 185, 11, 0.4);
}

.mode-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.mode-card p {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

.mode-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #f0b90b;
}

.mode-card.highlight {
  border: 1px solid rgba(240, 185, 11, 0.35);
  background: rgba(240, 185, 11, 0.06);
}

/* BOTONES HOME */

.btn {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

.btn-secondary:hover {
  border-color: rgba(240, 185, 11, 0.4);
}

.btn-outline {
  border: 1px solid rgba(240, 185, 11, 0.35);
  background: transparent;
  color: #f0b90b;
}

.btn-outline:hover {
  background: rgba(240, 185, 11, 0.12);
}

.btn-binance {
  background: #f0b90b;
  color: #111827;
}

.btn-binance:hover {
  background: #d9a30a;
}

/* ===========================
   🦶 FOOTER
=========================== */
.footer {
  margin-top: 25px;
  padding: 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.8);
}

.footer .disclaimer {
  font-size: 13px;
  color: rgba(183, 189, 198, 0.85);
  margin: 0;
  line-height: 1.4;
}

.footer .rights {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(183, 189, 198, 0.6);
}

/* 📱 Botón flotante SOLO móvil */
.btn-toggle-chart {
  display: none;
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;

  background: linear-gradient(135deg, #2962ff, #1e40af);
  color: white;

  border: none;
  border-radius: 50px;
  padding: 12px 18px;

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

  cursor: pointer;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.45);

  transition: all 0.25s ease;
}

.btn-toggle-chart:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* ===========================
   🟡 NAVBAR BINANCE STYLE
=========================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 20px;
  background: rgba(2, 6, 23, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(10px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 12px;

  background: rgba(240, 185, 11, 0.12);
  border: 1px solid rgba(240, 185, 11, 0.35);
  color: #f0b90b;
}

.nav-title {
  font-weight: 900;
  font-size: 16px;
  color: #f0b90b;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: rgba(229, 231, 235, 0.85);
  transition: 0.2s ease;
}

.nav-link:hover {
  color: #f0b90b;
}

.nav-link.active {
  color: #f0b90b;
}

.nav-link.highlight {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(240, 185, 11, 0.12);
  border: 1px solid rgba(240, 185, 11, 0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f0b90b;
  color: #111827;
  transition: 0.2s ease;
}

.nav-btn:hover {
  background: #d9a30a;
}

.menu-btn {
  display: none;
  font-size: 18px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===========================
   🏠 HERO BINANCE STYLE
=========================== */

.hero {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.hero-left {
  flex: 1;
}

.hero-left h1 {
  font-size: 40px;
  font-weight: 900;
  margin: 0;
  line-height: 1.15;
}

.hero-desc {
  margin-top: 14px;
  font-size: 15px;
  opacity: 0.8;
  max-width: 520px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* BOTONES */
.btn {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  border: 1px solid rgba(240, 185, 11, 0.4);
  color: #f0b90b;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(240, 185, 11, 0.12);
}

.btn-binance {
  background: #f0b90b;
  color: #111827;
}

.btn-binance:hover {
  background: #d9a30a;
}

/* STATS */

.hero-stats {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 16px;
  border-radius: 14px;
  min-width: 120px;
}

.stat-value {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #f0b90b;
}

.stat-label {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0px 10px 35px rgba(0, 0, 0, 0.45);
  max-width: 460px;
}

.hero-image {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* ===========================
   🚀 MODES SECTION
=========================== */

.modes {
  max-width: 1200px;
  margin: auto;
  padding: 20px 20px 60px;
}

.modes h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mode-card {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.65);
  transition: all 0.2s ease;
  color: #e5e7eb;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 185, 11, 0.35);
}

.mode-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.mode-card p {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

.mode-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
  color: #f0b90b;
}

.mode-card.highlight {
  border: 1px solid rgba(240, 185, 11, 0.35);
  background: rgba(240, 185, 11, 0.06);
}

/* ===========================
   📚 CRYPTO ACADEMY PAGE
=========================== */

.page-hero {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 34px;
  margin: 0;
  font-weight: 900;
  color: #f0b90b;
}

.page-hero p {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.academy-search {
  max-width: 700px;
  margin: auto;
  padding: 10px 20px 25px;
}

.academy-search input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.75);
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
}

.academy-search input:focus {
  border-color: rgba(240, 185, 11, 0.45);
}

.academy-grid {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px 60px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.academy-card {
  text-decoration: none;
  border-radius: 16px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  color: #e5e7eb;
}

.academy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 185, 11, 0.35);
}

.academy-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.academy-card p {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

.academy-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;

  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.academy-tag.danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ===========================
   ⚙️ TRADING LAB PAGE
=========================== */

.lab-grid {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px 70px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lab-card {
  border-radius: 16px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.lab-card.highlight {
  border: 1px solid rgba(240, 185, 11, 0.35);
  background: rgba(240, 185, 11, 0.06);
}

.lab-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.lab-desc {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

.lab-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lab-form label {
  font-size: 12px;
  opacity: 0.75;
  font-weight: 800;
}

.lab-form input {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.85);
  color: #e5e7eb;
  outline: none;
}

.lab-form input:focus {
  border-color: rgba(240, 185, 11, 0.4);
}

.lab-result {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-result.success {
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.lab-result.warning {
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #eab308;
}

.lab-result.danger {
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.lab-list {
  margin-top: 12px;
  padding-left: 18px;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.7;
}

.checklist {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  opacity: 0.85;
}

.checklist label {
  cursor: pointer;
}

.checklist input {
  margin-right: 8px;
}

.tip-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}

.tip-box.warning {
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.hero-image {
  width: 100%;
  border-radius: 14px;
  display: block;
  transition: opacity 1.5s ease-in-out;
}

/* ===========================
   📚 LESSON PAGE (BITCOIN)
=========================== */

.lesson-hero {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px 20px;
  text-align: center;
}

.lesson-hero h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  color: #f0b90b;
}

.lesson-hero p {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.lesson-meta {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-lesson {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
}

.badge-lesson.basic {
  border-color: rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.badge-lesson.time {
  border-color: rgba(59, 130, 246, 0.25);
  color: #3b82f6;
}

.badge-lesson.category {
  border-color: rgba(240, 185, 11, 0.3);
  color: #f0b90b;
}

.lesson-container {
  max-width: 1000px;
  margin: auto;
  padding: 10px 20px 70px;
}

.lesson-card {
  margin-bottom: 14px;
  border-radius: 16px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lesson-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.lesson-card p {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
}

.lesson-card ul {
  margin-top: 10px;
  padding-left: 20px;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.7;
}

.highlight-text {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 900;
  color: #f0b90b;
}

.tip-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}

.tip-box.warning {
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.tip-box.danger {
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.lesson-summary {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lesson-summary p {
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-card {
  border: 1px solid rgba(240, 185, 11, 0.3);
  background: rgba(240, 185, 11, 0.06);
}

.quiz-btn {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  background: #f0b90b;
  color: #111827;
  transition: 0.2s ease;
}

.quiz-btn:hover {
  background: #d9a30a;
}

.quiz-answer {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 900;
  color: #22c55e;
}

.lesson-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ===========================
   TRADING LAB TABS
=========================== */
.tabs-container {
  width: 90%;
  margin: auto;
  margin-top: 20px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;

  padding: 10px 16px;
  border-radius: 14px;

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

  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 185, 11, 0.35);
  background: rgba(240, 185, 11, 0.05);
}

.tab-btn.active {
  background: #f0b90b;
  color: #0b0e11;
  border-color: #f0b90b;
}

.tab-content-container {
  width: 50%;
  margin: auto;
  margin-top: 18px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===========================
   HERO TAGS
=========================== */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.hero-tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;

  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.9;
}

/* ===========================
   CHECKLIST
=========================== */
.checklist-card {
  text-align: left;
}

.checklist-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.checklist-grid label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  opacity: 0.9;
}

.checklist-grid input {
  width: 18px;
  height: 18px;
}

.checklist-result {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  margin-top: 10px;
}

.btn-binance {
  background: #f0b90b;
  color: #0b0e11;
}

.btn-binance:hover {
  opacity: 0.9;
}

/* Responsive  */
@media (max-width: 900px) {
}

/* ===========================
   📱 RESPONSIVE PARA TABLETS Y MÓVILES
=========================== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .app {
    max-width: 100%;
  }

  .Contenedor {
    flex-direction: column;
    gap: 12px;
  }

  .Estados,
  .Panel {
    width: 100%;
  }

  #chart {
    display: none;
    width: 100% !important;
    height: 420px !important;
    margin: 0 0;
  }

  select,
  input {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    border-radius: 10px;
  }

  .header {
    text-align: center;
    font-size: 18px;
    padding: 10px;
  }
  .btn-toggle-chart {
    display: block;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 28px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;

    flex-direction: column;
    gap: 14px;
    padding: 16px;

    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .nav-btn {
    display: none;
  }

  .academy-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .lesson-hero h1 {
    font-size: 26px;
  }

  .lesson-summary {
    grid-template-columns: 1fr;
  }

  .hero-crypto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-content-container {
    width: 90%;
  }
}

/* ===========================
   📱📱 EXTRA PARA PANTALLAS MUY PEQUEÑAS
=========================== */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  #chart {
    height: 360px !important;
  }

  .btn-toggle-chart {
    display: block;
  }

  .header {
    font-size: 16px;
  }

  .btn-toggle-chart {
    display: block;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 28px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;

    flex-direction: column;
    gap: 14px;
    padding: 16px;

    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .nav-btn {
    display: none;
  }

  .academy-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .lesson-hero h1 {
    font-size: 26px;
  }

  .lesson-summary {
    grid-template-columns: 1fr;
  }

  .hero-crypto-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
