/* ═══════════════════════════════════════════════════════════
   radar.css — MARQUIA Radar (oportunidades comerciales en LinkedIn)
   Se carga DESPUÉS de base.css. Usa los tokens de tema de
   base.css (:root y :root[data-theme="dark"]).
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #0b1228;
  --navy2: #0f172a;
  --blue: #0ea5e9;
  --cyan: #38bdf8;
  --light: #f0f6ff;
  --muted: #94a3b8;
  --slate: #475569;
  --border: rgba(14, 165, 233, 0.15);
  --shadow-sm: 0 4px 14px rgba(11, 18, 40, 0.06);
  --shadow-md: 0 12px 40px rgba(14, 165, 233, 0.12);
  --shadow-lg: 0 20px 60px rgba(11, 18, 40, 0.08);
  /* Estados del tablero. Pasan AA en ambos temas sobre --surface Y sobre
     --chip-bg, que es el fondo mas oscuro donde se usan (las pildoras
     "En vivo" y "Nueva"): #15803d daba 4.20:1 sobre #e2ecf7 y no llegaba. */
  --estado-ok: #15703a;
  --estado-espera: #b45309;
  --estado-off: #64748b;
}
:root[data-theme="dark"] {
  --estado-ok: #4ade80;
  --estado-espera: #fbbf24;
  --estado-off: #94a3b8;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(56, 189, 248, 0.1), transparent 50%), var(--band-bg);
  color: var(--text);
  padding: 140px 32px 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(14, 165, 233, 0.08) 0, transparent 25%),
    radial-gradient(circle at 82% 72%, rgba(56, 189, 248, 0.08) 0, transparent 30%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  color: var(--kicker);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--estado-ok);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.18);
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 .grad {
  color: var(--kicker);
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 58ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blue-btn);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.btn-primary:hover {
  background: var(--blue-btn-hover);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--outline-border);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 10px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--blue);
  background: var(--chip-bg);
}

/* ===== HERO VISUAL — mock del panel de búsqueda en vivo ===== */
.hero-visual {
  position: relative;
  /* Aire arriba y abajo para que el badge flotante solape el borde de la
     tarjeta y no el contenido de adentro. */
  padding: 44px 0;
}
.live-mock {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.live-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--estado-ok);
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  padding: 5px 11px;
  border-radius: 999px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--estado-ok);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot {
    animation: radar-pulso 1.6s ease-in-out infinite;
  }
}
@keyframes radar-pulso {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.78);
  }
}
.live-query {
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
}
.lq-term {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 13px;
}
.lq-term svg {
  color: var(--kicker);
  flex-shrink: 0;
}
.lq-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}
.lq-op {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 5px 11px 5px 6px;
}
.lq-op b {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--kicker);
  background: var(--surface);
  border-radius: 999px;
  padding: 2px 7px;
}
.lq-op.op-no b {
  color: var(--estado-espera);
}
.lq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.lq-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lq-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--estado-off);
  flex-shrink: 0;
}
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--hairline);
}
.ls-cell {
  padding: 14px 18px;
  border-right: 1px solid var(--hairline);
}
.ls-cell:last-child {
  border-right: 0;
}
.ls-num {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.ls-cell.nuevos .ls-num {
  color: var(--estado-ok);
}
.ls-num.ls-costo {
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--kicker);
  padding-top: 4px;
}
.ls-lab {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-top: 3px;
}
.live-bar {
  height: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.live-bar i {
  display: block;
  height: 100%;
  background: var(--blue);
}
.live-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--hairline);
}
.live-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 12px;
}
.live-controls .live-nota {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}
.live-results {
  padding: 14px 20px 18px;
}
.lr-group {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 11px;
}
.lr-card {
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 14px;
  background: var(--surface);
}
.lr-card + .lr-card {
  margin-top: 10px;
}
.lr-top {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  align-items: center;
}
.lr-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  color: var(--kicker);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: -0.2px;
}
.lr-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}
.lr-head {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}
.lr-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--estado-ok);
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px 9px;
}
.lr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.lr-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--kicker);
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 2px 8px;
}
.lr-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
}
.lr-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.lr-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px 5px 4px 11px;
}
.lr-chip > svg {
  color: var(--kicker);
  flex-shrink: 0;
}
.lr-copiar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--kicker);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.lr-copiar:hover {
  background: var(--blue-btn);
  color: #fff;
}
.lr-copiar.copiado {
  color: var(--estado-ok);
}
.lr-sincontacto {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 11px;
}
.copiar-aviso {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.float-badge.top {
  top: 0;
  left: -24px;
}
.float-badge.bot {
  bottom: 0;
  right: -20px;
}
.float-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--kicker);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-text .t1 {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}
.float-text .t2 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

/* ===== SECTIONS BASE ===== */
.section {
  padding: 96px 32px;
  position: relative;
  background: var(--section-bg-alt);
}
.section.bg-light {
  background: var(--section-bg);
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-kicker {
  display: inline-block;
  color: var(--kicker);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
  text-wrap: pretty;
}
.section-desc b,
.flow-step p b {
  color: var(--text);
  font-weight: 700;
}

/* ===== EL PROBLEMA ===== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: balance;
}
.intro-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 62ch;
}
.intro-text strong {
  color: var(--text);
  font-weight: 700;
}
.pain-list {
  list-style: none;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.pain-list li {
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.pain-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.pain-list li:last-child {
  padding-bottom: 0;
}
.pain-list li b {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 2px;
}
/* ===== CÓMO FUNCIONA ===== */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.flow-step {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.flow-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-btn);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}
.flow-step:hover .flow-num {
  transform: scale(1.08);
}
.flow-step h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 9px;
}
.flow-step p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== LAS DOS HERRAMIENTAS ===== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.tool-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--kicker);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
.tool-card:hover .tool-icon {
  transform: scale(1.07);
}
.tool-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--kicker);
}
.tool-head h3 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--text);
  line-height: 1.2;
}
.tool-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.tool-list {
  list-style: none;
  display: grid;
  gap: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.tool-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.tool-list li svg {
  margin-top: 4px;
  color: var(--estado-ok);
}
.tool-list li b {
  color: var(--text);
  font-weight: 700;
}
.tool-nota {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.tool-nota b {
  color: var(--text);
  font-weight: 700;
}

/* ===== EL TABLERO ===== */
.tablero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
/* En desktop el mock va a la izquierda; en el DOM va después del texto para
   que en móvil se lea primero el título. */
.tablero-grid .board-mock {
  order: -1;
}
.tablero-lista {
  margin-top: 8px;
}
.tablero-lista > div {
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.tablero-lista dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.tablero-lista dd {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.board-mock {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  min-width: 0;
}
.bm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.tab-mock {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 13px;
}
.tab-mock.activa {
  color: #fff;
  background: var(--blue-btn);
  border-color: var(--blue-btn);
}
.bm-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.bm-sel {
  font-weight: 700;
  color: var(--text);
  margin-right: 4px;
}
.bm-pend {
  margin-left: auto;
}
.bm-pend b {
  color: var(--estado-ok);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bm-check {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid var(--outline-border);
  flex-shrink: 0;
  position: relative;
}
.bm-check.on {
  background: var(--blue-btn);
  border-color: var(--blue-btn);
}
.bm-check.on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.bm-group {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--surface-2);
  border-radius: 10px;
}
.bm-card .lr-top {
  grid-template-columns: 34px 1fr auto;
}
.bm-link {
  color: var(--kicker);
}
.bm-more {
  font-weight: 700;
  font-style: normal;
  color: var(--kicker);
}
.bm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.bm-orig {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--kicker);
}
.bm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  border-radius: 11px;
  font-size: 12.5px;
}
.bm-row-name {
  font-weight: 700;
  color: var(--text);
  margin-right: auto;
}

/* ===== CONTROL DEL GASTO ===== */
.gasto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.gasto-panel {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.gasto-panel-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.gasto-row {
  padding: 15px 0;
  border-top: 1px solid var(--hairline);
}
.gasto-panel-label + .gasto-row {
  border-top: 0;
  padding-top: 0;
}
.gasto-row:last-child {
  padding-bottom: 0;
}
.gasto-row h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}
.gasto-row p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== AISLAMIENTO Y ROLES ===== */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 24px;
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.role-name {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--kicker);
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  border-radius: 7px;
  padding: 3px 9px;
  margin-bottom: 12px;
}
.role-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.role-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.aisla-nota {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.aisla-nota p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}
.aisla-nota b {
  color: var(--text);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--kicker);
  border-bottom: 2px solid var(--kicker);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}
.faq-item summary:hover {
  color: var(--kicker);
}
.faq-answer {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 70ch;
}

/* ===== CTA FINAL ===== */
.cta-final {
  background: var(--band-bg-deep);
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.16), transparent 62%);
  pointer-events: none;
}
.cta-final-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 18px;
  text-wrap: balance;
}
.cta-final p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 34px;
  text-wrap: pretty;
}
.cta-final-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SEAMS (transiciones de fondo entre secciones) ===== */
.seam {
  height: 120px;
  pointer-events: none;
}
.seam-dark-light {
  background: linear-gradient(to bottom, var(--band-bg), var(--section-bg-alt));
}
.seam-light-dark {
  background: linear-gradient(to bottom, var(--section-bg), var(--band-bg));
}
.seam-light-contact {
  background: linear-gradient(to bottom, var(--section-bg-alt), var(--band-bg-deep));
}
.section,
.seam,
.cta-final {
  transition: background-color 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .hero-inner {
    gap: 48px;
  }
}
@media (max-width: 980px) {
  .hero {
    padding: 120px 24px 80px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero p.lead {
    max-width: none;
  }
  .float-badge.top {
    left: 0;
  }
  .float-badge.bot {
    right: 0;
  }
  .section {
    padding: 80px 24px;
  }
  .intro-grid,
  .gasto-grid,
  .tablero-grid,
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tools-grid {
    gap: 24px;
  }
  .tablero-grid .board-mock {
    order: 0;
  }
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .hero {
    padding: 110px 20px 70px;
  }
  .section {
    padding: 64px 20px;
  }
  .section-head {
    margin-bottom: 44px;
  }
  .flow-grid,
  .roles-grid {
    grid-template-columns: 1fr;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline,
  .cta-final-btns .btn-primary,
  .cta-final-btns .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .hero-visual {
    padding: 0;
  }
  .float-badge {
    position: static;
    margin: 0 0 14px;
    display: inline-flex;
  }
  .float-badge.bot {
    margin: 14px 0 0;
  }
  .live-stats {
    grid-template-columns: 1fr 1fr;
  }
  .ls-cell:nth-child(2) {
    border-right: 0;
  }
  .ls-cell:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--hairline);
  }
  .live-query,
  .live-results {
    padding-left: 16px;
    padding-right: 16px;
  }
  .live-controls .live-nota {
    display: none;
  }
  .tool-card {
    padding: 26px 22px;
  }
  .aisla-nota {
    padding: 18px 20px;
  }
  .cta-final {
    padding: 72px 20px;
  }
  .faq-item summary {
    padding: 17px 18px;
    font-size: 14.5px;
  }
  .faq-answer {
    padding: 0 18px 18px;
  }
}
@media (max-width: 420px) {
  .lr-top {
    grid-template-columns: 34px 1fr;
  }
  .lr-tag {
    grid-column: 2;
    justify-self: start;
  }
  .lq-meta {
    gap: 4px 10px;
  }
  .board-mock {
    padding: 14px;
  }
  .bm-pend {
    margin-left: 0;
    flex-basis: 100%;
  }
  .bm-orig {
    margin-left: 0;
  }
}
