/* =========================================================
   LAB CROMÁTICO · Resistencias
   Paleta: #950753  #e35342  #ffb11e  #ff4966  #9e2997
   ========================================================= */

:root {
  --c-magenta: #950753;
  --c-coral:   #e35342;
  --c-amber:   #ffb11e;
  --c-pink:    #ff4966;
  --c-purple:  #9e2997;

  --c-bg:      #0f0a18;
  --c-bg-alt:  #15102a;
  --c-card:    #1e1838;
  --c-card-2:  #261e44;
  --c-text:    #f4f0ff;
  --c-muted:   #b9b1d6;

  --grad-hero: linear-gradient(135deg, var(--c-magenta) 0%, var(--c-purple) 40%, var(--c-pink) 75%, var(--c-coral) 100%);
  --grad-warm: linear-gradient(135deg, var(--c-pink) 0%, var(--c-coral) 50%, var(--c-amber) 100%);
  --grad-cool: linear-gradient(135deg, var(--c-purple) 0%, var(--c-magenta) 100%);

  --shadow-soft: 0 10px 40px rgba(149, 7, 83, 0.18);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  margin: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

code, .mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- NAVBAR ---------- */
.navbar-glass {
  background: rgba(15, 10, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
}
.navbar-glass.scrolled {
  background: rgba(15, 10, 24, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.navbar-brand { color: var(--c-text) !important; font-size: 1.15rem; }
.brand-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-warm);
  display: inline-block;
  box-shadow: 0 0 12px var(--c-pink);
}
.brand-logo {
  height: 36px; width: auto;
  filter: drop-shadow(0 2px 6px rgba(255, 177, 30, 0.4));
}
.footer-logo {
  height: 28px; width: auto;
}
.footer-credit {
  color: var(--c-text);
  font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-credit i {
  color: var(--c-amber);
  font-size: 1.05rem;
}
.footer-credit strong { color: var(--c-amber); }
.footer-gr58 {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .footer-credit { justify-content: flex-start; }
}
.navbar-glass .nav-link {
  color: var(--c-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 10px;
  transition: all 0.25s ease;
}
.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
  color: #fff !important;
  background: rgba(255, 73, 102, 0.12);
}
.navbar-glass .nav-link i { margin-right: 4px; }

/* ---------- HERO ---------- */
.hero-section {
  position: relative;
  padding: 140px 0 80px;
  background: radial-gradient(ellipse at top left, rgba(149,7,83,0.4), transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(158,41,151,0.35), transparent 55%),
              var(--c-bg);
  overflow: hidden;
  min-height: 90vh;
  display: flex; align-items: center;
}
.hero-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  pointer-events: none;
}
.orb-1 { width: 380px; height: 380px; background: var(--c-pink);   top: -120px; left: -80px; }
.orb-2 { width: 460px; height: 460px; background: var(--c-purple); bottom: -180px; right: -120px; }
.orb-3 { width: 280px; height: 280px; background: var(--c-amber);  top: 40%; left: 45%; opacity: 0.3; }

.hero-container { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--c-amber);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.grad-text {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--c-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-hero {
  padding: 14px 26px; border-radius: 14px;
  font-weight: 600; font-size: 1rem;
  border: none; display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-hero-primary {
  background: var(--grad-warm); color: white;
  box-shadow: 0 8px 24px rgba(227, 83, 66, 0.45);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255, 73, 102, 0.55);
  color: white;
}
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white; transform: translateY(-3px);
}

.hero-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.stat-pill {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px; border-radius: 14px;
}
.stat-pill i { font-size: 1.6rem; color: var(--c-amber); }
.stat-pill strong { font-size: 1.35rem; font-weight: 800; display: block; line-height: 1; }
.stat-pill span { font-size: 0.78rem; color: var(--c-muted); }

/* Hero resistor SVG */
.hero-resistor-wrap {
  position: relative; width: 100%; max-width: 540px;
  padding: 30px;
}
.hero-resistor {
  width: 100%; height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.hero-band { transition: opacity 0.4s ease; }
.hero-value-badge {
  position: absolute; bottom: -10px; right: 10px;
  background: var(--c-card);
  border: 2px solid var(--c-pink);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 12px 30px rgba(255, 73, 102, 0.35);
}
.badge-label {
  display: block; font-size: 0.7rem;
  color: var(--c-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.badge-value {
  display: block; font-size: 1.4rem;
  font-weight: 800; color: var(--c-amber);
  font-family: 'JetBrains Mono', monospace;
}
.badge-value small { color: var(--c-muted); font-size: 0.7em; }

.hero-scroll {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: var(--c-muted); font-size: 1.5rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}
.hero-scroll:hover { color: white; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(10px); }
}

/* ---------- SECCIONES ---------- */
.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--c-bg-alt); }
.section-lab {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
}

.section-head { text-align: center; margin-bottom: 3rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 177, 30, 0.12);
  color: var(--c-amber);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.section-sub {
  color: var(--c-muted);
  max-width: 700px; margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- META CARDS ---------- */
.meta-card {
  background: var(--c-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.meta-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-warm);
  opacity: 0; transition: opacity 0.4s ease;
  z-index: 0;
}
.meta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--c-pink);
}
.meta-card > * { position: relative; z-index: 1; }
.meta-icon {
  width: 52px; height: 52px;
  background: var(--grad-warm);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white;
  margin-bottom: 1rem;
}
.meta-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.meta-card p { font-size: 0.92rem; color: var(--c-muted); margin: 0; }

/* ---------- ACTIVACION ---------- */
.activacion-card {
  background: linear-gradient(135deg, rgba(149, 7, 83, 0.25), rgba(158, 41, 151, 0.18));
  border: 1px solid rgba(255, 73, 102, 0.25);
  border-radius: var(--radius);
  padding: 2rem;
}
.activacion-icon {
  font-size: 3.5rem;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- TABLA DE COLORES ---------- */
.table-colors {
  color: var(--c-text);
  background: var(--c-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-colors thead th {
  background: var(--c-card-2);
  color: var(--c-amber);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  padding: 1rem;
}
.table-colors tbody td {
  padding: 0.9rem 1rem;
  border-color: rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.table-colors tbody tr { transition: background 0.2s ease; }
.table-colors tbody tr:hover { background: rgba(255, 73, 102, 0.05); }

.color-cell {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
}
.color-swatch {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* ---------- INFO CARDS ---------- */
.info-card {
  background: var(--c-card);
  border-left: 4px solid var(--c-amber);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
}
.info-card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1rem;
}
.info-card-head i {
  font-size: 1.8rem;
  color: var(--c-pink);
}
.info-card-head h4 { margin: 0; font-weight: 700; }

/* ---------- EXAMPLE CARDS ---------- */
.example-card {
  background: var(--c-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.example-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.3rem; }
.example-num {
  display: inline-block;
  background: var(--grad-warm);
  color: white;
  width: 38px; height: 38px;
  border-radius: 10px;
  text-align: center; line-height: 38px;
  font-weight: 800;
  margin-right: 10px;
  font-size: 1rem;
}
.resistor-svg {
  width: 100%; max-width: 480px;
  margin-top: 1rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

.step-list {
  list-style: none; padding: 0; margin: 0;
}
.step-list li {
  display: flex; align-items: center; gap: 14px;
  background: var(--c-card-2);
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.step-color {
  width: 24px; height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.result-banner {
  margin-top: 1.2rem;
  background: var(--grad-warm);
  color: white;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(227, 83, 66, 0.35);
}
.result-banner code {
  background: rgba(0,0,0,0.2);
  padding: 4px 10px; border-radius: 8px;
  color: white; font-weight: 700;
}
.result-final { margin-left: auto; font-size: 1.1rem; }

/* ---------- LABORATORIO ---------- */
.lab-tabs {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 2rem;
}
.lab-tab {
  background: var(--c-card);
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lab-tab:hover { background: var(--c-card-2); transform: translateY(-2px); }
.lab-tab.active {
  background: var(--grad-warm);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255, 73, 102, 0.4);
}
.lab-tab-action {
  background: rgba(255, 177, 30, 0.12);
  color: var(--c-amber);
  border-color: rgba(255, 177, 30, 0.3);
}

.lab-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
@media (max-width: 991px) { .lab-grid { grid-template-columns: 1fr; } }

.lab-resistor-area { display: flex; flex-direction: column; gap: 1.5rem; }
.lab-resistor {
  width: 100%; height: auto;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.5));
}

.lab-result {
  text-align: center;
  background: linear-gradient(135deg, var(--c-bg-alt), var(--c-card-2));
  border: 2px solid var(--c-pink);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 0 0 4px rgba(255, 73, 102, 0.1);
}
.lab-result-label {
  font-size: 0.78rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.lab-result-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-amber);
  line-height: 1.1;
}
.lab-result-extra {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-top: 0.4rem;
}

.lab-controls-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-amber);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}

.band-selector {
  margin-bottom: 0.9rem;
  background: var(--c-card-2);
  padding: 0.9rem;
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: border-color 0.3s ease;
}
.band-selector.active { border-left-color: var(--c-amber); }
.band-selector-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}
.band-name { font-weight: 700; font-size: 0.95rem; }
.band-current {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem;
  color: var(--c-muted);
}
.band-current-swatch {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.band-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 6px;
}
.swatch-btn {
  width: 100%; aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.swatch-btn:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.5);
  z-index: 2;
}
.swatch-btn.selected {
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(255, 177, 30, 0.3);
  transform: scale(1.08);
}
.swatch-btn[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
}

/* ---------- STEP TRACE ---------- */
.step-trace {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-top: 2rem;
  border-top: 4px solid var(--c-amber);
}
.step-trace-title {
  font-size: 1rem;
  color: var(--c-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.step-trace-list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: trace;
}
.step-trace-list li {
  background: var(--c-card-2);
  padding: 0.9rem 1rem 0.9rem 3rem;
  margin-bottom: 0.6rem;
  border-radius: 10px;
  position: relative;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.step-trace-list li:not(.placeholder)::before {
  counter-increment: trace;
  content: counter(trace);
  position: absolute; left: 0.9rem; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--grad-warm);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.step-trace-list li.placeholder {
  padding-left: 1rem;
  color: var(--c-muted);
  text-align: center;
  font-style: italic;
}
.trace-swatch {
  width: 20px; height: 20px; border-radius: 5px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.trace-formula { font-family: 'JetBrains Mono', monospace; color: var(--c-amber); font-weight: 700; }

/* ---------- MISSION (LAB EN CASA) ---------- */
.mission-card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 100%;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
}
.mission-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-pink);
  box-shadow: var(--shadow-soft);
}
.mission-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.mission-tag {
  background: var(--grad-cool);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.mission-bands {
  display: flex; gap: 4px;
  background: linear-gradient(180deg, #f4d6a8, #c89559);
  border-radius: 10px;
  padding: 0.8rem;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}
.mission-bands::before,
.mission-bands::after {
  content: ''; position: absolute; top: 50%;
  width: 20px; height: 4px;
  background: #b0bec5; border-radius: 2px;
  transform: translateY(-50%);
}
.mission-bands::before { left: -16px; }
.mission-bands::after  { right: -16px; }
.mission-band {
  width: 12px; height: 50px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.15);
}
.mission-question {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}
.mission-answer {
  background: var(--c-card-2);
  border-radius: 10px;
  padding: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  font-weight: 700;
  color: var(--c-amber);
  border: 1px dashed rgba(255, 177, 30, 0.4);
  cursor: pointer;
  user-select: none;
}
.mission-answer.locked::before {
  content: '🔒 Pulsa para revelar';
  color: var(--c-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.mission-answer.locked .answer-value { display: none; }
.mission-answer:not(.locked) { border-style: solid; border-color: var(--c-pink); }

/* ---------- APP CARDS ---------- */
.app-card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s ease;
}
.app-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 20px 40px rgba(149, 7, 83, 0.25);
}
.app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: white;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.app-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.app-card p { color: var(--c-muted); font-size: 0.92rem; margin-bottom: 0.8rem; }
.app-card code { background: rgba(255, 177, 30, 0.12); color: var(--c-amber); padding: 1px 6px; border-radius: 4px; }
.app-tag {
  display: inline-block;
  background: rgba(255, 73, 102, 0.12);
  color: var(--c-pink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- CHALLENGES ---------- */
.challenge-card {
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}
.challenge-silver {
  background: linear-gradient(135deg, var(--c-card), #2d2654);
  border-color: #c0c0c0;
}
.challenge-gold {
  background: linear-gradient(135deg, #3d2810, #5a3a1f);
  border-color: var(--c-amber);
}
.challenge-medal {
  position: absolute; top: -15px; right: -15px;
  font-size: 6rem;
  opacity: 0.15;
  transform: rotate(15deg);
}
.challenge-silver .challenge-medal { color: #c0c0c0; }
.challenge-gold .challenge-medal { color: var(--c-amber); }

.challenge-rank {
  display: inline-block;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}
.challenge-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.challenge-card p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.2rem; }
.challenge-card strong { color: var(--c-amber); }

.btn-challenge {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-challenge:hover {
  background: var(--c-pink);
  color: white;
  border-color: var(--c-pink);
}

.hint-box {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--c-amber);
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.hint-box strong { color: var(--c-amber); }
.hint-locked { border-left-color: var(--c-pink); }
.hint-locked i { color: var(--c-pink); margin-right: 6px; }

/* ---------- CIERRE ---------- */
.close-card {
  background: var(--grad-hero);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(149, 7, 83, 0.35);
}
.close-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.85);
}
.close-card h2 { font-weight: 800; color: white; }
.close-card .kicker { background: rgba(255, 255, 255, 0.18); color: white; }
.close-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.close-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0;
}
.close-list i { font-size: 1.2rem; flex-shrink: 0; color: var(--c-amber); padding-top: 4px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--c-bg-alt);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .navbar-glass .navbar-collapse {
    background: var(--c-card);
    padding: 1rem;
    border-radius: 14px;
    margin-top: 1rem;
  }
  .hero-section { padding: 110px 0 60px; min-height: auto; }
  .hero-cta .btn-hero { width: 100%; justify-content: center; }
  .hero-stats { justify-content: center; }
  .section { padding: 60px 0; }
  .lab-grid { padding: 1.2rem; }
  .example-card, .close-card { padding: 1.5rem; }
  .result-banner { font-size: 0.85rem; }
  .result-final { margin-left: 0; width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .stat-pill { padding: 8px 12px; }
  .lab-result-value { font-size: 1.6rem; }
  .lab-tabs { gap: 6px; }
  .lab-tab { padding: 8px 14px; font-size: 0.85rem; }
}
