/* 4G Press · estilo público copiado de Ringover 4Geeks (tokens.css + app.css + landing.css, sin cambios)
   y, al final, los añadidos propios de 4G Press. Para actualizar, volver a copiar los tres ficheros. */
@font-face{font-family:"Inter Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/inter-latin-ext-wght.woff2) format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter Variable";font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/inter-latin-wght.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* ===== tokens.css (Ringover) ===== */
/* Tokens de diseño. La paleta de datos está validada para daltonismo (claro y oscuro). */
:root {
  color-scheme: light;
  --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #f6f6f3;
  --surface: #fdfdfc;
  --surface-2: #f2f1ee;
  --surface-3: #e9e8e3;
  --overlay: rgba(253, 253, 252, 0.82);
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #898781;
  --line: rgba(11, 11, 11, 0.08);
  --line-strong: rgba(11, 11, 11, 0.14);
  --grid: #e9e8e2;
  --axis: #c3c2b7;

  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-wash: rgba(42, 120, 214, 0.09);
  --focus: 0 0 0 3px rgba(42, 120, 214, 0.32);

  --nueva: #2a78d6;
  --antigua: #eb6834;
  --z-corta: #86b6ef;
  --z-media: #3987e5;
  --z-larga: #1c5cab;
  --wash: rgba(11, 11, 11, 0.045);
  --hatch: rgba(11, 11, 11, 0.16);

  --good: #006300;
  --bad: #b42318;
  --good-wash: rgba(12, 163, 12, 0.1);
  --bad-wash: rgba(208, 59, 59, 0.09);
  --neutral-wash: rgba(11, 11, 11, 0.05);

  --st-ok: #0ca30c;
  --st-call: #2a78d6;
  --st-dnd: #fab219;
  --st-off: #c3c2b7;

  --shadow-1: 0 1px 2px rgba(11, 11, 11, 0.04), 0 0 0 1px var(--line);
  --shadow-2: 0 12px 32px -8px rgba(11, 11, 11, 0.18), 0 0 0 1px var(--line-strong);
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #171716;
    --surface-2: #1f1f1d;
    --surface-3: #2a2a27;
    --overlay: rgba(23, 23, 22, 0.82);
    --ink: #f5f5f2;
    --ink-2: #c3c2b7;
    --ink-3: #8f8d86;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --grid: #262624;
    --axis: #3a3a37;
    --accent: #3987e5;
    --accent-ink: #86b6ef;
    --accent-wash: rgba(57, 135, 229, 0.14);
    --focus: 0 0 0 3px rgba(57, 135, 229, 0.42);
    --nueva: #3987e5;
    --antigua: #d95926;
    --z-corta: #1c5cab;
    --z-media: #3987e5;
    --z-larga: #86b6ef;
    --wash: rgba(255, 255, 255, 0.055);
    --hatch: rgba(255, 255, 255, 0.18);
    --good: #2fbf2f;
    --bad: #ef7a7a;
    --good-wash: rgba(12, 163, 12, 0.16);
    --bad-wash: rgba(230, 103, 103, 0.14);
    --neutral-wash: rgba(255, 255, 255, 0.06);
    --st-call: #3987e5;
    --st-off: #4a4a46;
    --shadow-1: 0 0 0 1px var(--line);
    --shadow-2: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-strong);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #171716;
  --surface-2: #1f1f1d;
  --surface-3: #2a2a27;
  --overlay: rgba(23, 23, 22, 0.82);
  --ink: #f5f5f2;
  --ink-2: #c3c2b7;
  --ink-3: #8f8d86;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --grid: #262624;
  --axis: #3a3a37;
  --accent: #3987e5;
  --accent-ink: #86b6ef;
  --accent-wash: rgba(57, 135, 229, 0.14);
  --focus: 0 0 0 3px rgba(57, 135, 229, 0.42);
  --nueva: #3987e5;
  --antigua: #d95926;
  --z-corta: #1c5cab;
  --z-media: #3987e5;
  --z-larga: #86b6ef;
  --wash: rgba(255, 255, 255, 0.055);
  --hatch: rgba(255, 255, 255, 0.18);
  --good: #2fbf2f;
  --bad: #ef7a7a;
  --good-wash: rgba(12, 163, 12, 0.16);
  --bad-wash: rgba(230, 103, 103, 0.14);
  --neutral-wash: rgba(255, 255, 255, 0.06);
  --st-call: #3987e5;
  --st-off: #4a4a46;
  --shadow-1: 0 0 0 1px var(--line);
  --shadow-2: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-strong);
}
/* ===== app.css (Ringover) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--ink-3);
}

/* ── Estructura ─────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--overlay);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: auto;
  color: var(--ink);
  flex: none;
}

.brand-full,
.brand-compact {
  display: flex;
  align-items: center;
}

.brand-compact {
  display: none;
}

.brand-scope {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--line-strong);
  line-height: 20px;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}

.nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.nav a:hover {
  background: var(--wash);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.icon-btn:hover {
  background: var(--wash);
  color: var(--ink);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.spin svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fresh {
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  margin-right: 2px;
}

.fresh.warn {
  color: var(--bad);
}

main {
  padding: 24px 0 72px;
}

/* ── Píldora "en vivo" ──────────────────────────────────────────────────── */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 0;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.live-pill:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.live-pill strong {
  color: var(--ink);
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--st-off);
  position: relative;
}

.dot.ok {
  background: var(--st-ok);
}

.dot.call {
  background: var(--st-call);
}

.dot.dnd {
  background: var(--st-dnd);
}

.dot.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: inherit;
  opacity: 0;
  animation: pulse 2.2s var(--ease) infinite;
}

.dot.ok.pulse::after {
  color: var(--st-ok);
}

.dot.call.pulse::after {
  color: var(--st-call);
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ── Popover / menú ─────────────────────────────────────────────────────── */
.pop-anchor {
  position: relative;
}

.mobile-only {
  display: none;
}

@media (max-width: 720px) {
  .mobile-only {
    display: flex;
  }

  .brand-compact {
    display: flex;
  }
}

.popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 280px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 6px;
  z-index: 40;
  animation: pop-in 0.14s var(--ease);
}

.popover.left {
  left: 0;
  right: auto;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

.pop-head {
  padding: 8px 10px 6px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.pop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
}

a.pop-row:hover,
button.pop-row:hover {
  background: var(--wash);
}

.pop-row .grow {
  flex: 1;
  min-width: 0;
}

.pop-row .sub {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}

.pop-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

/* ── Barra de periodo ───────────────────────────────────────────────────── */
.period-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 22px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 11px;
  gap: 2px;
}

.segmented button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition:
    color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--line);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.stepper .label {
  min-width: 200px;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.stepper .icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
  background: none;
}

.compare-note {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: var(--surface-2);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition:
    background 0.15s var(--ease),
    transform 0.08s var(--ease);
}

.btn:hover {
  background: var(--surface-3);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.range-pop {
  padding: 14px;
  min-width: 300px;
}

.range-pop .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.input,
.select {
  height: 36px;
  border-radius: 9px;
  border: 0;
  background: var(--surface-2);
  padding: 0 10px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23898781' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 14px;
  cursor: pointer;
}

.input:focus,
.select:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px var(--accent),
    var(--focus);
}

/* ── Resumen en una frase ───────────────────────────────────────────────── */
.headline {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 900px;
  margin: 0 0 22px;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.headline b {
  color: var(--ink);
  font-weight: 600;
}

/* ── Tarjetas ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 20px 0;
}

.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.card-head .hint {
  font-size: 12.5px;
  color: var(--ink-3);
}

.card-head .right {
  margin-left: auto;
}

.card-body {
  padding: 14px 20px 18px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 34px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-title .hint {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ── KPI ────────────────────────────────────────────────────────────────── */
.kpi-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kpi-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.kpi-group > h3 {
  margin: 0 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.kpi {
  position: relative;
  padding: 15px 16px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label delta"
    "value value"
    "sub sub"
    "spark spark";
  column-gap: 10px;
  transition: box-shadow 0.15s var(--ease);
}

.kpi:hover {
  box-shadow:
    var(--shadow-1),
    0 4px 18px -6px rgba(0, 0, 0, 0.08);
}

.kpi-label {
  grid-area: label;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  min-width: 0;
}

.kpi-value {
  grid-area: value;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value .unit {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  margin: 0 4px 0 2px;
}

.kpi-value.na {
  color: var(--ink-3);
}

.kpi-sub {
  grid-area: sub;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
  min-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-spark {
  grid-area: spark;
  margin-top: 10px;
  height: 30px;
}

.kpi .delta {
  grid-area: delta;
  align-self: start;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--neutral-wash);
  color: var(--ink-2);
  white-space: nowrap;
}

.delta.good {
  background: var(--good-wash);
  color: var(--good);
}

.delta.bad {
  background: var(--bad-wash);
  color: var(--bad);
}

.delta svg {
  width: 10px;
  height: 10px;
}

.delta.flat {
  color: var(--ink-3);
}

.info {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink-3);
  border-radius: 50%;
  flex: none;
}

.info:hover {
  color: var(--ink);
}

.info svg {
  width: 14px;
  height: 14px;
}

/* ── Tooltip ────────────────────────────────────────────────────────────── */
.tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-2);
  padding: 10px 12px;
  font-size: 12.5px;
  min-width: 140px;
  max-width: 300px;
  transition: opacity 0.1s var(--ease);
}

.tooltip .t-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.tooltip .t-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  color: var(--ink-2);
}

.tooltip .t-row b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  padding-left: 12px;
}

.tooltip .key {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  flex: none;
}

.tooltip p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ── Tabla del equipo ───────────────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

table.data th {
  text-align: right;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
}

table.data th.group {
  text-align: center;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 0;
  padding: 14px 12px 0;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

table.data th.group span {
  display: block;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
}

table.data th button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

table.data th button:hover,
table.data th[aria-sort] button {
  color: var(--ink);
}

table.data th svg {
  width: 10px;
  height: 10px;
}

table.data th:first-child,
table.data td:first-child {
  text-align: left;
  padding-left: 20px;
}

table.data th:last-child,
table.data td:last-child {
  padding-right: 20px;
}

table.data td {
  padding: 11px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  vertical-align: middle;
}

table.data tbody tr {
  transition: background 0.12s var(--ease);
}

table.data tbody tr.clickable {
  cursor: pointer;
}

table.data tbody tr.clickable:hover {
  background: var(--wash);
}

table.data tfoot td {
  font-weight: 600;
  border-bottom: 0;
  padding-top: 13px;
  padding-bottom: 15px;
}

table.data .divider {
  border-left: 1px solid var(--line);
}

.cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 56px;
}

.cell .bar {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}

.cell .bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--ink-3);
  opacity: 0.55;
}

.cell .d {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1;
}

.cell .d.good {
  color: var(--good);
}

.cell .d.bad {
  color: var(--bad);
}

.who {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}

.who .name {
  font-weight: 600;
  letter-spacing: -0.005em;
}

.who .state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 1px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--ink-3);
  flex: none;
  letter-spacing: 0.02em;
  position: relative;
}

.avatar.me {
  background: var(--surface-3);
  color: var(--ink);
  width: 30px;
  height: 30px;
  font-size: 11.5px;
}

.avatar.lg {
  width: 52px;
  height: 52px;
  font-size: 17px;
}

.avatar .dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 2.5px var(--surface);
}

/* ── Gráficos ───────────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.chart {
  position: relative;
  width: 100%;
}

.chart svg {
  display: block;
  overflow: visible;
}

.chart .tick {
  font-size: 11px;
  fill: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.chart .gridline {
  stroke: var(--grid);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.chart .baseline {
  stroke: var(--axis);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.chart .hit {
  fill: transparent;
  cursor: default;
}

.chart .hit:hover + .col,
.chart .col.active {
  filter: brightness(1.08);
}

.legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-2);
  flex-wrap: wrap;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.legend i.line {
  height: 3px;
  border-radius: 2px;
}

.legend i.hatch {
  background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 5px), var(--wash);
}

.loading-frame {
  transition: opacity 0.2s var(--ease);
}

.loading-frame.stale {
  opacity: 0.55;
}

.zone-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
}

.zone-labels div {
  border-top: 2px solid;
  padding-top: 6px;
  color: var(--ink-2);
}

.zone-labels b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── En vivo (tarjeta) ──────────────────────────────────────────────────── */
.live-list {
  display: flex;
  flex-direction: column;
}

.live-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
}

.live-row:first-child {
  border-top: 0;
}

a.live-row:hover {
  background: var(--wash);
}

.live-row .grow {
  flex: 1;
  min-width: 0;
}

.live-row .name {
  font-weight: 600;
}

.live-row .sub {
  font-size: 12px;
  color: var(--ink-3);
}

.live-row .right {
  text-align: right;
  font-size: 12px;
  color: var(--ink-3);
}

.live-row .right b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

/* ── Jornada ────────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  user-select: none;
}

.timeline .lane-label {
  font-size: 11.5px;
  fill: var(--ink-3);
}

/* ── Ficha comercial ────────────────────────────────────────────────────── */
.agent-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 22px;
}

.agent-head h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.agent-head .sub {
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 14px;
}

.back:hover {
  color: var(--ink);
}

.back svg {
  width: 16px;
  height: 16px;
}

/* ── Listado de llamadas ────────────────────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.filters .search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}

.filters .search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--ink-3);
}

.filters .search .input {
  width: 100%;
  padding-left: 32px;
}

.filters .count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-3);
}

table.calls td {
  text-align: left;
}

table.calls td.r,
table.calls th.r {
  text-align: right;
}

table.calls th {
  text-align: left;
}

.contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact button {
  border: 0;
  background: none;
  padding: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.contact button:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact .flag {
  width: 18px;
  text-align: center;
}

.dir {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.dir svg {
  width: 14px;
  height: 14px;
}

.dir.missed {
  color: var(--bad);
  background: var(--bad-wash);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}

.chip i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.chip.long {
  background: var(--accent-wash);
  color: var(--accent-ink);
}

.load-more {
  display: flex;
  justify-content: center;
  padding: 16px;
}

/* ── Panel lateral ──────────────────────────────────────────────────────── */
.drawer-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 50;
  animation: fade 0.15s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  z-index: 51;
  display: flex;
  flex-direction: column;
  animation: slide 0.2s var(--ease);
}

@keyframes slide {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}

.drawer header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.drawer header h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.drawer header p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}

.drawer .body {
  overflow-y: auto;
  padding: 8px 0 20px;
}

.hist-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}

.hist-row .when {
  font-weight: 500;
}

.hist-row .sub {
  font-size: 12px;
  color: var(--ink-3);
}

/* ── Estados ────────────────────────────────────────────────────────────── */
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-3);
}

.empty strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}

.skel {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  margin-bottom: 18px;
}

.notice svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}

.notice.warn {
  background: rgba(250, 178, 25, 0.12);
}

/* ── Login ──────────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.login-page::before {
  background: var(--nueva);
  top: -260px;
  left: -180px;
}

.login-page::after {
  background: var(--antigua);
  bottom: -300px;
  right: -200px;
  opacity: 0.1;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 32px 28px 28px;
  z-index: 1;
}

.login-card h1 {
  margin: 20px 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.login-card p.lead {
  margin: 0 0 24px;
  color: var(--ink-2);
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-card .input {
  height: 42px;
  font-size: 15px;
}

.login-card .btn {
  height: 42px;
  font-size: 15px;
  margin-top: 4px;
}

.form-error {
  color: var(--bad);
  font-size: 13px;
  background: var(--bad-wash);
  padding: 10px 12px;
  border-radius: 9px;
}

.login-foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .kpi-groups {
    grid-template-columns: 1fr;
  }

  .kpi-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .kpi-group > h3 {
    grid-column: 1 / -1;
  }

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

  .compare-note {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }

  .topbar .wrap {
    gap: 8px;
  }

  .brand-full,
  .brand-scope,
  .fresh,
  .live-pill .label-long {
    display: none;
  }

  .nav {
    margin-left: 0;
  }

  .nav a {
    padding: 7px 8px;
    font-size: 13.5px;
    white-space: nowrap;
  }

  /* Si no caben las secciones (admin en móviles estrechos), se desplazan dentro de la barra. */
  .nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .topbar-right {
    flex: none;
    margin-left: 0;
  }

  .kpi-group {
    grid-template-columns: 1fr 1fr;
  }

  /* En el móvil, la primera métrica de cada grupo ocupa todo el ancho. */
  .kpi-group > .kpi:first-of-type {
    grid-column: 1 / -1;
  }

  .kpi {
    grid-template-areas:
      "label label"
      "value value"
      "delta delta"
      "sub sub"
      "spark spark";
    padding: 13px 14px 10px;
  }

  .kpi .delta {
    justify-self: start;
    margin-top: 6px;
  }

  .kpi-group > .kpi:first-of-type {
    grid-template-areas:
      "label delta"
      "value value"
      "sub sub"
      "spark spark";
  }

  .kpi-group > .kpi:first-of-type .delta {
    margin-top: 0;
  }

  .kpi-value {
    font-size: 25px;
  }

  .kpi-sub {
    white-space: normal;
  }

  .desktop-only {
    display: none !important;
  }

  .topbar-right {
    gap: 2px;
  }

  .live-pill {
    padding: 0 10px 0 9px;
  }

  .headline {
    font-size: 15.5px;
  }

  .stepper .label {
    min-width: 0;
    font-size: 14px;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segmented button {
    flex: 1;
    padding: 6px 8px;
  }

  .period-bar {
    gap: 10px;
  }

  .filters .search {
    max-width: none;
  }

  /* La columna del comercial se queda fija al desplazar la tabla en horizontal. */
  table.team th:first-child,
  table.team td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--line);
  }

  .who {
    min-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .legend i,
  .tooltip .key {
    forced-color-adjust: none;
  }
}

/* ── Login con Center ───────────────────────────────────────────────────── */
.sso-btn {
  width: 100%;
  height: 46px;
  font-size: 15px;
  gap: 10px;
}

.center-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.link-btn {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--ink);
}

.or-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 12px;
}

.or-sep::before,
.or-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Login (como AI Growth OS: email + contraseña, "o", Google) ────────────── */
.login-brand {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}

.login-card p.lead {
  text-align: center;
}

.login-card p.lead {
  margin: 14px 0 22px;
  font-size: 13.5px;
}

.btn.login-primary {
  height: 44px;
  font-size: 15px;
  background: linear-gradient(135deg, #2a78d6, #4a5bd8);
  color: #fff;
}

.btn.login-primary:hover {
  opacity: 0.94;
  background: linear-gradient(135deg, #2a78d6, #4a5bd8);
}

.google-btn {
  width: 100%;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.12);
}

.google-btn:hover {
  background: #f6f7f9;
}

.login-card .or-sep {
  margin: 18px 0;
}

.login-card .login-foot {
  line-height: 1.6;
}

/* ── Usuarios ───────────────────────────────────────────────────────────── */
.users-add {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.users-add .input {
  flex: 1;
  min-width: 220px;
}

.role-select {
  height: 32px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
}

.tag.admin {
  background: var(--accent-wash);
  color: var(--accent-ink);
}

/* ── IA / MCP ───────────────────────────────────────────────────────────── */
.ia-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ia-head h1 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.ia-head p {
  margin: 0;
  color: var(--ink-2);
  max-width: 560px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  max-width: 100%;
  min-width: 0;
}

.endpoint code {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

code,
pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

code {
  font-size: 12.5px;
}

.ia-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.copy-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  flex: none;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.connect-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.connect-card h2 {
  margin: 4px 0 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.connect-card .tag {
  align-self: flex-start;
}

.connect-card ol {
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.connect-card li b {
  color: var(--ink);
}

.small {
  font-size: 12.5px;
  margin: 0;
}

.code {
  position: relative;
  margin-top: 8px;
  background: var(--surface-2);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.code pre {
  margin: 0;
  padding: 12px 84px 12px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--ink);
}

.code .copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example {
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink-2);
  font-size: 13.5px;
  text-align: left;
  transition:
    color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.example:hover {
  color: var(--ink);
  box-shadow:
    var(--shadow-1),
    0 0 0 2px var(--accent-wash);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.tool {
  padding: 14px 16px;
}

.tool-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tool-name code {
  color: var(--ink-3);
  font-size: 11.5px;
}

.tool p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.tool {
  display: flex;
  flex-direction: column;
}

.tool-params {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.tool-param {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* Lo nuevo (varios comerciales a la vez) se distingue del resto. */
.tool-param.group {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 600;
}

.tool-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--neutral-wash);
  color: var(--ink-2);
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-chip.ok {
  background: var(--good-wash);
  color: var(--good);
}

.status-chip.bad {
  background: var(--bad-wash);
  color: var(--bad);
}

.status-chip.warn {
  background: rgba(250, 178, 25, 0.16);
  color: #8a5a00;
}

:root[data-theme="dark"] .status-chip.warn {
  color: #fab219;
}

tr.dim td {
  opacity: 0.55;
}

.bad-text {
  color: var(--bad);
}

.modal {
  position: fixed;
  z-index: 52;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 22px;
  box-shadow: var(--shadow-2);
  animation: pop-in 0.16s var(--ease);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.modal .segmented {
  margin-top: 4px;
}

.token-ready h3 {
  font-size: 13px;
  margin: 18px 0 0;
  color: var(--ink-2);
}

.detail {
  padding: 16px 20px 24px !important;
}

.detail dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 12px;
  margin: 0 0 16px;
  font-size: 13.5px;
}

.detail dt {
  color: var(--ink-3);
}

.detail dd {
  margin: 0;
}

.detail h3 {
  font-size: 13px;
  margin: 16px 0 8px;
  color: var(--ink-2);
}

pre.json {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 12.5px;
  overflow-x: auto;
}

.usage-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

.stat-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat-sub {
  font-size: 12px;
  color: var(--ink-3);
}

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

.bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  font-size: 13px;
}

.bar-row i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.8;
}

.inline-bar {
  display: block;
  height: 3px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--surface-2);
  max-width: 160px;
}

.inline-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.7;
}

.login-notice {
  background: var(--accent-wash);
  color: var(--accent-ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 0 0 16px;
  text-align: center;
}

@media (max-width: 1080px) {
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .usage-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .endpoint {
    width: 100%;
  }

  .ia-tabs .segmented {
    width: 100%;
  }

  .detail dl {
    grid-template-columns: 1fr;
  }
}

/* ── Insignia "Destroy this website" (landing) ──────────────────────── */
.destroy-badge {
  display: inline-flex;
  flex: none;
  border-radius: 6px;
  transition:
    transform 0.15s var(--ease),
    opacity 0.15s var(--ease);
}

.destroy-badge:hover {
  transform: translateY(-1px);
}

.destroy-badge img {
  display: block;
}

/* Insignia clara en tema claro, oscura en tema oscuro (también si el tema es el del sistema). */
.badge-for-dark {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .badge-for-light {
    display: none !important;
  }

  :root:where(:not([data-theme="light"])) .badge-for-dark {
    display: block !important;
  }
}

:root[data-theme="dark"] .badge-for-light {
  display: none !important;
}

:root[data-theme="dark"] .badge-for-dark {
  display: block !important;
}

@media (max-width: 720px) {
}

.login-legal {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

.login-legal a {
  color: var(--ink-3);
}

.login-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── Selección de comerciales ───────────────────────────────────────────── */
.agent-btn {
  max-width: 260px;
}

.agent-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-stack {
  display: inline-flex;
  flex: none;
}

.avatar-stack .avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
  box-shadow: 0 0 0 2px var(--surface-2);
}

.agent-btn[aria-pressed="true"] .avatar-stack .avatar {
  box-shadow: 0 0 0 2px var(--surface);
}

.avatar-stack .avatar + .avatar {
  margin-left: -7px;
}

.agent-pop {
  width: 360px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-search {
  position: relative;
  display: block;
}

.agent-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.agent-search .input {
  width: 100%;
  padding-left: 34px;
}

.agent-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.agent-tools .link-btn {
  margin: 0;
  font-size: 12.5px;
}

.agent-tools .link-btn:disabled {
  opacity: 0.4;
}

.agent-list {
  max-height: min(380px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -4px;
  padding: 0 4px;
}

.agent-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.agent-group + .agent-group {
  margin-top: 8px;
}

.agent-group legend {
  padding: 6px 6px 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.agent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 8px;
  border-radius: 9px;
  cursor: pointer;
}

.agent-row:hover {
  background: var(--wash);
}

.agent-row input {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--accent);
}

.agent-row .avatar {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
}

.agent-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.agent-name b {
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-name span {
  font-size: 12px;
  color: var(--ink-3);
}

.agent-empty {
  margin: 0;
  padding: 18px 8px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

.agent-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* En el móvil, el selector sale como hoja inferior a todo el ancho. */
@media (max-width: 720px) {
  .agent-btn {
    max-width: 100%;
  }

  .popover.agent-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    max-height: calc(100dvh - 90px);
    z-index: 60;
    /* El resto de la pantalla se oscurece para que la hoja destaque. */
    box-shadow:
      0 24px 60px -12px rgba(0, 0, 0, 0.45),
      0 0 0 1px var(--line),
      0 0 0 100vmax rgba(0, 0, 0, 0.4);
  }

  .agent-list {
    max-height: none;
    flex: 1;
    min-height: 0;
  }

  .agent-row {
    min-height: 52px;
  }
}
/* ===== landing.css (Ringover) ===== */
/* ── Landing pública (Ringover 4Geeks) ──────────────────────────────────── */
.lp {
  --lp-dot: rgba(11, 11, 11, 0.09);
  --lp-glow-a: rgba(42, 120, 214, 0.22);
  --lp-glow-b: rgba(235, 104, 52, 0.16);
  --lp-spot: rgba(42, 120, 214, 0.1);
  --lp-alt: color-mix(in srgb, var(--surface-2) 55%, var(--bg));
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

:root[data-theme="dark"] .lp {
  --lp-dot: rgba(255, 255, 255, 0.07);
  --lp-glow-a: rgba(57, 135, 229, 0.26);
  --lp-glow-b: rgba(217, 89, 38, 0.18);
  --lp-spot: rgba(57, 135, 229, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .lp {
    --lp-dot: rgba(255, 255, 255, 0.07);
    --lp-glow-a: rgba(57, 135, 229, 0.26);
    --lp-glow-b: rgba(217, 89, 38, 0.18);
    --lp-spot: rgba(57, 135, 229, 0.14);
  }
}

.lp-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Cabecera */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--overlay);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.lp-header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.lp-brand {
  display: flex;
  align-items: center;
}

.lp-nav {
  display: flex;
  gap: 4px;
}

.lp-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
  transition:
    color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.lp-nav a:hover {
  color: var(--ink);
  background: var(--wash);
}

.lp-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-login {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.12s var(--ease),
    opacity 0.15s var(--ease);
}

.lp-login:hover {
  opacity: 0.88;
}

.lp-login:active {
  transform: translateY(1px);
}

/* Hero */
.lp-hero {
  position: relative;
  padding: 76px 0 104px;
  overflow: hidden;
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), var(--lp-spot), transparent 70%),
    radial-gradient(var(--lp-dot) 1px, transparent 1.2px) 0 0 / 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 40%, transparent 80%);
}

/* Resplandores: degradados que se apagan antes de los bordes (sin cortes rectos). */
.lp-hero::before,
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lp-hero::before {
  background: radial-gradient(ellipse 42% 40% at 14% 28%, var(--lp-glow-a), transparent 70%);
}

.lp-hero::after {
  background: radial-gradient(ellipse 36% 40% at 90% 68%, var(--lp-glow-b), transparent 70%);
}

.lp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
}

.lp-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.038em;
  font-weight: 750;
  text-wrap: balance;
}

.lp-grad {
  background: linear-gradient(100deg, #2a78d6 0%, #5b5bd8 48%, #eb6834 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-sub {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.lp-cta.center {
  justify-content: center;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: 0;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.2s var(--ease),
    opacity 0.15s var(--ease);
}

.lp-btn:active {
  transform: translateY(1px);
}

.lp-btn.primary {
  background: linear-gradient(135deg, #2a78d6, #4a5bd8);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(42, 120, 214, 0.7);
}

.lp-btn.primary:hover {
  box-shadow: 0 14px 34px -10px rgba(42, 120, 214, 0.85);
}

.lp-btn.google {
  background: #fff;
  color: #1f1f1f;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.12);
}

.lp-btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.lp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  color: var(--ink-3);
  font-size: 13.5px;
}

.lp-proof b {
  color: var(--ink);
  font-weight: 700;
  margin-right: 4px;
}

/* La ventana del panel de ejemplo */
.lp-hero-visual {
  position: relative;
}

.lp-window {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 80px -30px rgba(11, 11, 11, 0.35),
    0 12px 30px -12px rgba(11, 11, 11, 0.2);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}

.lp-hero-visual:hover .lp-window {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}

.lp-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-3);
}

.lp-window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}

.lp-window-bar span {
  margin-left: 10px;
  font-family: ui-monospace, Menlo, monospace;
}

.lp-window-bar em,
.lp-card-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--accent-ink);
}

.lp-window-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lp-kpi {
  padding: 12px 12px 8px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}

.lp-kpi-label {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}

.lp-kpi {
  container-type: inline-size;
}

.lp-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 20px;
}

/* La cifra se adapta al ancho de la tarjeta: "5 h 54 min" cabe también en tablet. */
.lp-kpi-value {
  display: block;
  margin: 4px 0 6px;
  font-size: clamp(16px, 14.5cqi, 22px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lp-kpi .delta {
  height: 20px;
  font-size: 11px;
  padding: 0 6px;
}

.lp-chart {
  padding: 12px 14px 6px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lp-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.lp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  max-width: 300px;
  animation: lp-float 6s ease-in-out infinite;
}

.lp-float b {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.lp-float span {
  color: var(--ink-3);
  font-size: 11.5px;
}

.lp-float-a {
  left: -36px;
  bottom: -34px;
}

.lp-float-b {
  right: -30px;
  top: 46%;
  animation-delay: -3s;
}

.lp-float-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
  color: #fff;
}

.lp-float-ico.warn {
  background: #e9a100;
}

.lp-float-ico.ai {
  background: linear-gradient(135deg, #2a78d6, #8a5bd8);
}

@keyframes lp-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Franja de integraciones */
.lp-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.lp-strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--ink-3);
  font-size: 13px;
}

.lp-strip-row b {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

/* Secciones */
.lp-section {
  padding: 104px 0;
}

.lp-section.alt {
  background: var(--lp-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lp-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.lp-section h2,
.lp-final h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 720;
  max-width: 760px;
  text-wrap: balance;
}

.lp-lead {
  margin: 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.lp-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.lp-metric-group {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  padding: 22px 22px 8px;
}

.lp-metric-group h3 {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.lp-metric {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.lp-metric:first-of-type {
  border-top: 0;
}

.lp-metric b {
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.lp-metric p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.lp-split.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.lp-checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.lp-checks li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
}

.lp-checks li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
    center / 12px no-repeat,
    var(--accent);
}

.lp-card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow:
    var(--shadow-1),
    0 30px 60px -30px rgba(11, 11, 11, 0.25);
  padding: 18px 18px 8px;
}

.lp-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.lp-card-head b {
  display: block;
}

.lp-card-head span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.lp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid !important;
  place-items: center;
  background: #2a78d6;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px !important;
}

/* La IA de ejemplo */
.lp-chat {
  background: var(--surface);
  border-radius: 20px;
  box-shadow:
    var(--shadow-1),
    0 30px 60px -30px rgba(11, 11, 11, 0.3);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}

.lp-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.lp-chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97757, #eb6834);
}

.lp-msg {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.lp-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.lp-msg.ai {
  align-self: flex-start;
  background: var(--surface-2);
  border-bottom-left-radius: 4px;
  min-height: 48px;
}

.lp-tool {
  align-self: flex-start;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-family: ui-monospace, Menlo, monospace;
  background: var(--accent-wash);
  color: var(--accent-ink);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.lp-tool.on {
  opacity: 1;
  transform: none;
}

.lp-tool code {
  color: var(--ink-2);
}

.lp-tool-ok {
  color: var(--good);
  font-family: var(--font);
  font-weight: 600;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--ink);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* Señales */
.lp-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.lp-signal {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  padding: 22px;
}

.lp-signal b {
  display: block;
  margin-top: 14px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.lp-signal p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.lp-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.lp-level::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.lp-level.alta {
  background: var(--bad-wash);
  color: var(--bad);
}

.lp-level.media {
  background: rgba(250, 178, 25, 0.16);
  color: #8a5a00;
}

:root[data-theme="dark"] .lp-level.media {
  color: #fab219;
}

.lp-level.positiva {
  background: var(--good-wash);
  color: var(--good);
}

/* Seguridad */
.lp-security {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.lp-sec {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.lp-sec b {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.lp-sec p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

/* Llamada final */
.lp-final {
  position: relative;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 55% at 50% 62%, var(--lp-glow-a), transparent 70%),
    radial-gradient(ellipse 30% 50% at 84% 45%, var(--lp-glow-b), transparent 70%);
}

.lp-final .brand-logo {
  margin: 0 auto 22px;
}

.lp-final h2 {
  margin: 0 auto 8px;
}

/* Pie */
.lp-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
}

.lp-footer .lp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.lp-made {
  font-size: 13px;
  color: var(--ink-3);
}

.lp-made b {
  color: var(--ink);
}

.lp-dare {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}

/* Aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Login en ventana */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.login-overlay-back {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.18s var(--ease);
}

.login-dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 30px 26px 24px;
  box-shadow: var(--shadow-2);
  animation: pop-in 0.18s var(--ease);
}

.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.login-title {
  margin: 18px 0 4px;
  text-align: center;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.login-dialog .login-card {
  padding: 0;
  max-width: none;
}

.login-dialog .login-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-dialog .login-card .input {
  height: 42px;
  font-size: 15px;
}

.login-dialog .lead {
  margin: 0 0 20px;
  text-align: center;
  color: var(--ink-2);
  font-size: 13.5px;
}

/* Responsive */
@media (max-width: 1000px) {
  /* minmax(0, …): sin él, el gráfico de la jornada (que se mide a sí mismo) fija el ancho
     de la columna y el contenido se sale por la derecha en el móvil. */
  .lp-split,
  .lp-split.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .lp-metrics,
  .lp-signals {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-security {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* El hero se apila antes que el resto: a dos columnas, por debajo de ~1100 px, el panel de
   ejemplo no cabe (las cifras se pisan) y las tarjetas flotantes tapan el gráfico. */
@media (max-width: 1100px) {
  .lp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .lp-window {
    transform: none;
    grid-column: 1 / -1;
  }

  .lp-hero-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lp-float {
    position: static;
    max-width: none;
    animation: none;
  }
}

@media (max-width: 720px) {
  .lp-wrap {
    padding: 0 16px;
  }

  .lp-header-row {
    height: 60px;
  }

  .lp-hero {
    padding: 44px 0 72px;
  }

  .lp-sub {
    font-size: 16.5px;
  }

  .lp-cta .lp-btn {
    flex: 1 1 100%;
  }

  .lp-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-section {
    padding: 72px 0;
  }

  .lp-security {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-chat {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .lp-float,
  .caret {
    animation: none;
  }

  .lp-window {
    transform: none;
  }
}

/* ── Añadidos: producto para equipos con Ringover ───────────────────────── */
.lp-h1-kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.lp-login.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

a.lp-login {
  display: inline-flex;
  align-items: center;
}

.lp-steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}

.lp-step {
  height: 100%;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.lp-step-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2a78d6, #5b5bd8);
  color: #fff;
  font-weight: 800;
}

.lp-step h3,
.lp-signal h3,
.lp-sec h3 {
  margin: 16px 0 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.lp-sec h3 {
  margin-top: 0;
}

.lp-step p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Formulario */
.lp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow:
    var(--shadow-1),
    0 30px 60px -30px rgba(11, 11, 11, 0.3);
}

.lp-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lp-form .input {
  height: 44px;
  font-size: 15px;
  width: 100%;
}

.lp-form .textarea {
  height: auto;
  padding: 10px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.lp-form .opt {
  font-weight: 400;
  color: var(--ink-3);
}

.lp-form .lp-btn {
  width: 100%;
  margin-top: 4px;
}

.lp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lp-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

.lp-consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}

.lp-form-done {
  align-items: center;
  text-align: center;
  padding: 40px 26px;
}

.lp-form-done h3 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.lp-form-done p {
  margin: 0;
  color: var(--ink-2);
}

.lp-done-ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0ca30c, #1baf7a);
}

/* Preguntas frecuentes */
.lp-faq-wrap {
  max-width: 880px;
}

.lp-faq {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-faq details {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  padding: 0 20px;
}

.lp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform 0.2s var(--ease);
}

.lp-faq details[open] summary::after {
  transform: rotate(45deg);
}

.lp-faq summary h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.lp-faq details p {
  margin: 0 0 18px;
  color: var(--ink-2);
  line-height: 1.6;
}

.lp-legal {
  margin: 4px 0 0;
  max-width: 640px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .lp-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .lp-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-form {
    padding: 20px;
  }
}

/* ── LOPD y cookies ──────────────────────────────────────────────────────── */
.lp-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-size: 13px;
}

.lp-legal-links a {
  color: var(--ink-2);
}

.lp-legal-links a:hover,
.lp-legal-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-consent a,
.lp-privacy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-privacy {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}

.lp-privacy b {
  font-weight: 600;
  color: var(--ink-2);
}

/* Aviso de cookies: informativo, discreto, abajo a la izquierda */
.cookie-notice {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  width: min(380px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow:
    0 18px 50px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--line);
  animation: cookie-in 0.45s var(--ease) both;
}

.cookie-notice p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.cookie-notice b {
  color: var(--ink);
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
}

.cookie-actions a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.cookie-actions a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.cookie-actions .lp-login {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    animation: none;
  }
}

@media (max-width: 720px) {
  .cookie-notice {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}

/* Páginas legales */
.lg {
  max-width: 820px;
  padding-top: 40px;
  padding-bottom: 88px;
}

.lg-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  margin-bottom: 30px;
  border-radius: 12px;
  background: var(--wash);
}

.lg-tabs a {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition:
    color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.lg-tabs a:hover {
  color: var(--ink);
}

.lg-tabs a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.lg h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 740;
}

.lg-date {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.lg-body {
  margin-top: 34px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.lg-body h2 {
  margin: 44px 0 12px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lg-body p {
  margin: 0 0 14px;
  text-wrap: pretty;
}

.lg-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.lg-body li {
  margin-bottom: 6px;
}

.lg-body li::marker {
  color: var(--ink-3);
}

.lg-body b {
  color: var(--ink);
  font-weight: 600;
}

.lg-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lg-intro {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--lp-alt);
  box-shadow: var(--shadow-1);
}

.lg-dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 22px;
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.lg-dl dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  padding-top: 2px;
}

.lg-dl dd {
  margin: 0;
  color: var(--ink);
}

.lg-row {
  display: contents;
}

.lg-cards {
  display: grid;
  gap: 14px;
}

.lg-card {
  padding: 20px 22px 6px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.lg-card h3 {
  margin: 0 0 12px;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lg-card .lg-dl {
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: 14.5px;
  line-height: 1.6;
}

.lg-card .lg-dl dd {
  color: var(--ink-2);
}

.lg-table {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: var(--surface);
}

.lg-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--wash);
}

.lg-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.lg-table code {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .lg {
    padding-top: 28px;
  }

  .lg-tabs {
    display: flex;
  }

  .lg-tabs a {
    flex: 1;
    text-align: center;
    padding: 7px 8px;
  }

  .lg-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .lg-dl dd {
    margin-bottom: 10px;
  }

  .lg-table,
  .lg-table tbody,
  .lg-table tr,
  .lg-table td {
    display: block;
  }

  .lg-table thead {
    display: none;
  }

  .lg-table tr {
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .lg-table tr:first-child {
    border-top: 0;
  }

  .lg-table td {
    border: 0;
    padding: 3px 16px;
  }

  .lg-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
}

/* ── Responsive: cabecera con menú y ajustes finos ───────────────────────── */
.lp-nav a,
.lp-login {
  white-space: nowrap;
}

.lp-menu {
  border-top: 1px solid var(--line);
}

.lp-menu[hidden] {
  display: none;
}

.lp-menu nav {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  padding-bottom: 18px;
}

.lp-menu nav > a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lp-menu-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.lp-menu-actions .lp-btn {
  height: 46px;
  font-size: 15px;
}

.lp-menu-actions svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .lp-header .lp-nav,
  .lp-header .lp-wide {
    display: none;
  }

  .lp-header-row {
    gap: 12px;
  }

  .lp-actions {
    gap: 6px;
  }

  .lp-strip-row {
    gap: 10px 26px;
  }
}

@media (min-width: 901px) {
  .lp-menu {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .lp-hero-visual {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .lp-header .lp-login {
    padding: 0 12px;
    font-size: 13px;
  }

  .lp-brand .brand-logo {
    height: 28px;
    width: auto;
  }
}

.lp-menu-btn {
  width: 40px;
  height: 40px;
  color: var(--ink);
}

@media (min-width: 901px) {
  .lp-menu-btn {
    display: none;
  }
}

/* ===== Añadidos de 4G Press (lo que en Ringover hace React) ===== */
[hidden] { display: none !important; }
.no-js .reveal { opacity: 1; transform: none; }

/* Mini tendencia de las KPI de ejemplo */
.gp-spark { display: block; width: 100%; height: 26px; }

/* Columnas apiladas del ejemplo (sustituyen al gráfico <Columns> de Ringover) */
.gp-cols { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 8px 2px 0; }
.gp-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.gp-col-bar { width: 100%; max-width: 34px; display: flex; flex-direction: column; border-radius: 5px 5px 2px 2px; overflow: hidden; gap: 2px; }
.gp-col-bar i { display: block; min-height: 4px; }
.gp-col span { font-size: 11px; color: var(--ink-3); }

/* Tabla de enlaces de la tarjeta de ejemplo */
.gp-mini { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; }
.gp-mini th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.gp-mini td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.gp-mini tr:last-child td { border-bottom: 0; }
.gp-rel { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--neutral-wash); color: var(--ink-2); }
.gp-rel.ok { background: var(--good-wash); color: var(--good); }

/* Acceso dentro de la página (sección #acceso) */
.gp-login-inline { display: flex; justify-content: center; }
.gp-login-inline .login-card { padding: 4px 4px 0; max-width: none; }
.gp-login-inline .login-title { margin: 18px 0 4px; font-size: 20px; text-align: center; letter-spacing: -0.02em; }
.gp-login-inline .login-card .input { height: 42px; font-size: 15px; }
.gp-login-inline .login-card form { display: flex; flex-direction: column; gap: 14px; }

/* /ia pública: la página «Conecta tu IA» del panel de Ringover, dentro de la web */
.gp-ia { padding-top: 48px; padding-bottom: 80px; }
.gp-ia .ia-head h1 { font-size: clamp(26px, 3.4vw, 34px); }
.example.copied { box-shadow: 0 0 0 1px var(--accent), var(--shadow-1); }
.lp-brand .brand-logo, .side .brand-logo { display: block; color: var(--ink); }
.gp-ia .ia-head p a, .gp-ia .connect-card a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
