:root {
  --dark-bg: #090c12;
  --dark-surface: #111622;
  --light-bg: #f4f6fa;
  --white: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --border-light: #e2e8f0;
  --emerald: #059669;
  --emerald-bright: #10b981;
  --amber: #d97706;
  --amber-bright: #f59e0b;
  --indigo: #4f46e5;
  --cyan-bright: #38bdf8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-bg);
  color: #f8fafc;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Navbar con presencia real */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 25, 54, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.nav-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.22);
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.brand-accent {
  color: var(--cyan-bright);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  text-decoration: none;
  background: var(--white);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.18);
}

/* Bandas de ancho completo */
.band-hero,
.band-light,
.band-dark-nl {
  scroll-margin-top: 90px;
}

.band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}

/* BANDA 1: HERO CON DEGRADADO DE AZUL OSCURO A AZUL MEDIO-CLARO */
.band-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.24) 0%, transparent 46%),
    radial-gradient(circle at 14% 82%, rgba(16, 185, 129, 0.16) 0%, transparent 44%),
    linear-gradient(135deg, #0b1936 0%, #143266 52%, #1e528e 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 76px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--white);
}

.gradient-text {
  background: linear-gradient(90deg, #34d399 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: #cbd5e1;
  font-size: 1.08rem;
  max-width: 530px;
  margin-bottom: 28px;
}

.nl-inline-form .input-wrap {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  max-width: 500px;
}

.nl-inline-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--white);
  padding: 11px 14px;
  font-size: 0.96rem;
  font-family: inherit;
}

.nl-inline-form input::placeholder {
  color: #94a3b8;
}

.nl-inline-form input:focus {
  outline: none;
}

.btn-glow {
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  color: #052e16;
  background: linear-gradient(95deg, #34d399, #10b981);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.42);
}

.nl-feedback {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #34d399;
  min-height: 1.3em;
}

.trust-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.stat-item strong {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  color: var(--white);
}

.stat-item span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.14);
}

/* TARJETA BLANCA ELEVADA: LABORATORIO EN VIVO */
.lab-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.lab-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.lab-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lab-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 1.2rem;
}

.lab-title-row h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.18rem;
  color: var(--ink);
}

.lab-title-row p {
  font-size: 0.83rem;
  color: var(--ink-muted);
}

.lab-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
}

.lab-tab {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.lab-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.lab-panel {
  display: none;
}

.lab-panel.active {
  display: block;
}

.control-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 600;
}

.chip-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s;
}

.chip.active {
  background: #ecfdf5;
  border-color: var(--emerald);
  color: var(--emerald);
}

.sliders-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.slider-row {
  margin-bottom: 16px;
}

.sliders-stack .slider-row {
  margin-bottom: 0;
}

.slider-row label {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.slider-row strong {
  color: var(--ink);
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.slider-head label {
  margin-bottom: 0;
}

.num-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  transition: border-color 0.14s, box-shadow 0.14s;
}

.num-pill:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.num-pill input[type="number"] {
  width: 66px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  outline: none;
}

.num-pill span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--emerald);
  cursor: pointer;
}

.kpi-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.kpi-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
}

.kpi-box span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.kpi-box strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.5rem;
}

.kpi-emerald strong { color: var(--emerald); }
.kpi-indigo strong { color: var(--indigo); }
.kpi-amber strong { color: var(--amber); }

.split-bar-wrap {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 12px;
}

.split-bar-neto {
  background: linear-gradient(90deg, #059669, #10b981);
  transition: width 0.25s ease;
}

.split-bar-tax {
  background: var(--indigo);
  transition: width 0.25s ease;
}

.split-bar-amber {
  background: var(--amber-bright);
  transition: width 0.25s ease;
}

.svg-chart-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 10px 12px 6px;
  margin-bottom: 10px;
}

.svg-chart-box svg {
  width: 100%;
  height: 125px;
  display: block;
}

.panel-footnote {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* BANDA 2: SECCIÓN CLARA EDITORIAL (FUENTES OFICIALES) */
.band-light {
  background: var(--light-bg);
  color: var(--ink);
  border-bottom: 1px solid var(--border-light);
}

.eyebrow-light {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 6px;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section-top h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  color: var(--ink);
  margin-bottom: 4px;
}

.section-sub-light {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.search-box-light {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--ink-muted);
  min-width: 300px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.search-box-light input {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  width: 100%;
}

.search-box-light input:focus {
  outline: none;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  border-color: #94a3b8;
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

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

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.video-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--emerald));
}

.video-card[data-cat="Lotería"] { --card-accent: var(--amber); }
.video-card[data-cat="Ayudas"] { --card-accent: var(--indigo); }
.video-card[data-cat="Impuestos"] { --card-accent: var(--emerald); }

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.badge-cat {
  color: var(--card-accent, var(--emerald));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-date {
  color: var(--ink-muted);
  font-weight: 600;
}

.card-kpi {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.58rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.15;
}

.video-card h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
}

.video-card p {
  font-size: 0.87rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex: 1;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.14s;
}

.source-link:hover {
  background: #ecfdf5;
  border-color: var(--emerald);
  color: var(--emerald);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-muted);
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  border: 1px dashed var(--border-light);
}

.preview-banner {
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #0369a1;
  font-size: 0.85rem;
  font-weight: 600;
}

.video-card.is-scheduled {
  border-style: dashed;
  border-color: #94a3b8;
}

/* BANDA 3: NEWSLETTER SEMANAL CENTRADA EN DEGRADADO AZUL PROFUNDO A AZUL LUMINOSO */
.band-dark-nl {
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.22) 0%, transparent 46%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.14) 0%, transparent 44%),
    linear-gradient(135deg, #0b1936 0%, #143266 52%, #1e528e 100%);
}

.newsletter-centered {
  max-width: 820px;
  text-align: center;
}

.eyebrow-dark {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #34d399;
  margin-bottom: 10px;
}

.newsletter-centered h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 2.9vw, 2.35rem);
  line-height: 1.16;
  max-width: 680px;
  margin: 0 auto 14px;
  color: var(--white);
}

.nl-sub {
  color: #cbd5e1;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 28px;
}

.nl-perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
  text-align: left;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.nl-perks li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.45;
}

.nl-perks span {
  color: #34d399;
  font-weight: 800;
  margin-right: 4px;
}

.nl-perks strong {
  color: var(--white);
}

.newsletter-centered .nl-inline-form {
  margin: 0 auto;
  max-width: 520px;
}

/* Footer claro limpio */
.footer {
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 620px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-meta a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .nl-perks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .band-inner {
    padding: 48px 18px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .nl-inline-form .input-wrap {
    flex-direction: column;
    padding: 8px;
  }
  .search-box-light {
    width: 100%;
    min-width: 0;
  }
  .footer-meta {
    text-align: left;
  }
  .nav-avatar {
    width: 44px;
    height: 44px;
  }
  .brand-name {
    font-size: 1.4rem;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.video-btn {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
}

.video-btn:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 24, 0.82);
  backdrop-filter: blur(8px);
}

.video-modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.video-modal-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 74vh;
  background: #000000;
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-modal-foot {
  padding: 10px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-foot a {
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.video-modal-foot a:hover {
  text-decoration: underline;
}
