/* ══════════════════════════════════════════════════════════════════════════
   Ticket vBot — Landing
   ──────────────────────────────────────────────────────────────────────────
   El landing y el panel se sirven desde el mismo dominio, así que también
   comparten lenguaje visual: los tokens de aquí abajo son los mismos de
   `dashboard/css/base.css` (y el bloque claro, los de `dashboard/css/theme.css`).

   Están copiados y no importados a propósito. Un `@import '/css/base.css'`
   arrastraría además el layout del panel —sidebar, tablas, formularios— sobre
   un HTML que no lo usa, y dejaría el landing a merced de cualquier retoque
   interno del dashboard. Copiados, lo único compartido es lo que de verdad
   define el aspecto.

   >>> Si cambias la paleta del panel, actualiza los dos bloques de tokens. <<<

   Reglas de la casa, heredadas del dashboard:
     · un solo acento (azul); nada de cian, menta o ámbar decorativos
     · sin glows, sin backdrop-filter, sin degradados de adorno
     · bordes de 1px y sombras negras muy suaves; la jerarquía la da el fondo
     · radios pequeños (6/10/14) y transiciones de 160ms
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens: tema oscuro (por defecto) ─────────────────────────────────── */
:root {
  --bg: #0b0b0d;
  --bg-elev-1: #141417;
  --bg-elev-2: #1c1c20;
  --bg-elev-3: #232328;
  --bg-hover: #232328;

  --accent: #4f8cff;
  --accent-hover: #6a9fff;
  --accent-fg: #ffffff;
  --accent-rgb: 79, 140, 255;
  --accent-success: #22c55e;
  --accent-danger: #ef4444;
  --accent-warn: #eab308;

  --fg: #ededee;
  --fg-muted: #a1a1aa;
  --fg-subtle: #6b6b73;

  --border: #26262b;
  --border-light: #34343a;
  --border-strong: #34343a;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --t: 160ms ease;
  --t-slow: 220ms ease;

  --max: 1160px;
}

/* ── Tokens: tema claro ────────────────────────────────────────────────── */
/* `data-style` lo pone /js/theme-init.js, el mismo script que usa el panel:
   quien tenga el dashboard en claro entra al landing en claro. */
html[data-style='light'] {
  --bg: #f2f2f5;
  --bg-elev-1: #ffffff;
  --bg-elev-2: #eaeaee;
  --bg-elev-3: #e0e0e5;
  --bg-hover: #e6e6eb;

  --accent: #4f8cff;
  --accent-hover: #3a7aee;
  --accent-success: #16a34a;
  --accent-danger: #dc2626;
  --accent-warn: #ca8a04;

  --fg: #111113;
  --fg-muted: #5c5c66;
  --fg-subtle: #9898a5;

  --border: #d8d8e0;
  --border-light: #e4e4ec;
  --border-strong: #c8c8d2;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.07);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* El panel prohíbe el desenfoque en todas partes; el landing, igual. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(var(--accent-rgb), 0.28);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Botones ───────────────────────────────────────────────────────────── */
/* Copiados de components.css del panel: mismo tamaño, mismo radio, mismas
   transiciones. Los del landing sólo añaden la variante `-lg`. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition:
    background var(--t),
    border-color var(--t),
    color var(--t);
}
.btn:active {
  transform: translateY(0.5px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* El panel no tiene "outline"; su equivalente exacto es `.btn-secondary`. */
.btn-outline {
  background: var(--bg-elev-1);
  color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--fg);
}

.btn-lg {
  padding: 11px 18px;
  font-size: 15px;
}

/* ── Chips ─────────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.chip-live {
  color: var(--fg);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  flex: none;
}
.brand strong {
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--fg);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  transition:
    background var(--t),
    color var(--t);
}
.nav-links a:hover {
  background: var(--bg-hover);
  color: var(--fg);
}

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

/* ── Selector de idioma ────────────────────────────────────────────────── */
.lp-lang-switcher {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.lp-lang-btn {
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--fg-subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition:
    background var(--t),
    color var(--t);
}
.lp-lang-btn:hover {
  color: var(--fg);
}
.lp-lang-btn.is-active {
  background: var(--accent);
  color: var(--accent-fg);
}

/* ── Hamburguesa y menú móvil ──────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 72px 24px 32px;
  background: var(--bg);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform var(--t-slow),
    visibility var(--t-slow);
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
}
.mobile-menu .lp-lang-switcher {
  align-self: flex-start;
  margin-top: 20px;
}
.mobile-menu .btn {
  margin-top: 12px;
}

.mobile-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  color: var(--fg-muted);
}
.mobile-close:hover {
  color: var(--fg);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Retícula de puntos: el mismo recurso que usa el fondo del panel. */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
html[data-style='light'] .grid-overlay {
  background-image: radial-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px);
}

/* Los orbes de luz venían del diseño anterior. El panel no tiene glows: fuera.
   Se ocultan en vez de borrarlos del HTML para no tocar el marcado por algo
   puramente decorativo. */
.glow-orb,
.cta-glow {
  display: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero-title em {
  font-style: normal;
}

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

.hero-sub {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--fg-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.avatars {
  display: flex;
}
.av {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -8px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  font-size: 13px;
}

.proof-copy {
  color: var(--fg-subtle);
  font-size: 13px;
}
.proof-copy strong {
  color: var(--fg-muted);
  font-weight: 600;
}

/* ── Maqueta del panel ─────────────────────────────────────────────────── */
.hero-visual {
  position: relative;
}

.mock-window {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
}

.wdots {
  display: flex;
  gap: 5px;
}
.wd {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  /* Sin semáforo de colores: el panel es monocromo salvo por el acento. */
  background: var(--border-light);
}

.mock-url {
  overflow: hidden;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body {
  padding: 16px;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.ms {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ms-val {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ms-val.cyan {
  color: var(--accent);
}
.ms-val.mint {
  color: var(--accent-success);
}
.ms-lbl {
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
}

.mock-section-lbl {
  margin-bottom: 10px;
  color: var(--fg-subtle);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mock-tickets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.mt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--fg-subtle);
}
.mt-dot.open {
  background: var(--accent);
}
.mt-dot.warn {
  background: var(--accent-warn);
}
.mt-dot.done {
  background: var(--accent-success);
}
.mt-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.mt-id {
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  flex: none;
}
.mt-name {
  overflow: hidden;
  color: var(--fg-muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mt-time {
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 10.5px;
  flex: none;
}

/* ── Píldoras flotantes ────────────────────────────────────────────────── */
.float-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Apoyadas en el borde inferior de la ventana, no flotando sobre sus costados.
   Colgando de los lados tapaban contenido —la primera métrica y dos filas de
   tickets— y no había forma de sacarlas más afuera: el hueco entre columnas es
   de 56px y una píldora mide ~160px, así que cualquier desplazamiento que las
   librara del panel las metía en la columna de texto.
   Los 46px de salida dejan sólo 10px dentro, que caen en el padding de
   `.mock-body`: se ven apoyadas en el borde sin comerse nada. */
.pill-a {
  bottom: -46px;
  left: 20px;
}
.pill-b {
  bottom: -46px;
  right: 20px;
}

.pill-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  font-size: 13px;
  flex: none;
}

.pill-title {
  font-size: 12.5px;
  font-weight: 500;
}
.pill-sub {
  color: var(--fg-subtle);
  font-size: 11px;
}

/* ── Ritmo de secciones ────────────────────────────────────────────────── */
.section {
  padding: 88px 0;
}

.sec-divider {
  height: 1px;
  max-width: var(--max);
  margin-inline: auto;
  background: var(--border);
}

.sec-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.sec-title {
  margin: 16px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.sec-sub {
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Capacidades ───────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feat-card {
  position: relative;
  padding: 22px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t);
}
.feat-card:hover {
  border-color: var(--border-strong);
}

.feat-num {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
}

.feat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--accent);
}

.feat-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}
.feat-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Cómo funciona ─────────────────────────────────────────────────────── */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.step-card {
  position: relative;
  padding: 26px 22px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t);
}
.step-card:hover {
  border-color: var(--border-strong);
}

.step-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--accent);
}

.step-card h3 {
  margin-bottom: 9px;
  font-size: 1.02rem;
}
.step-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-arrow {
  display: grid;
  place-items: center;
  color: var(--fg-subtle);
}

/* ── Resultados: cifras y testimonios ──────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}

.stat-item {
  padding: 22px 20px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-val {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-lbl {
  margin-top: 7px;
  color: var(--fg-subtle);
  font-size: 12.5px;
}

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

.tcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stars {
  color: var(--accent-warn);
  font-size: 12px;
  letter-spacing: 2px;
}

.tcard p {
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.tcard footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  font-size: 15px;
  flex: none;
}

.t-name {
  font-size: 13.5px;
  font-weight: 500;
}
.t-role {
  color: var(--fg-subtle);
  font-size: 12px;
}

/* ── Precios ───────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t);
}
.price-card:hover {
  border-color: var(--border-strong);
}

/* El recomendado se marca con el acento en el borde, no con escala ni sombra:
   el panel nunca levanta una tarjeta del plano. */
.price-featured {
  border-color: var(--accent);
}
.price-featured:hover {
  border-color: var(--accent);
}

.featured-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  padding: 3px 10px;
  background: var(--accent);
  border-radius: 999px;
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 500;
}

/* El add-on no es un plan: el borde discontinuo lo separa a simple vista. */
.price-addon {
  border-style: dashed;
}

.addon-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 2px 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-subtle);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plan-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.plan-name-accent {
  color: var(--accent);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 8px;
}
.p-curr {
  color: var(--fg-muted);
  font-size: 1.1rem;
  font-weight: 500;
}
.p-num {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.p-per {
  color: var(--fg-subtle);
  font-size: 13px;
}

.plan-desc {
  margin-top: 12px;
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.plan-rule {
  height: 1px;
  margin: 20px 0;
  border: 0;
  background: var(--border);
}

.plan-feats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.pf {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.pf.on {
  color: var(--fg-muted);
}
.pf.off {
  color: var(--fg-subtle);
}

.pf-c,
.pf-x {
  flex: none;
  width: 15px;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.pf-c {
  color: var(--accent-success);
}
.pf-x {
  color: var(--fg-subtle);
  opacity: 0.7;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  transition: background var(--t);
}
.faq-q:hover {
  background: var(--bg-hover);
}

.faq-ico {
  flex: none;
  color: var(--fg-subtle);
  font-size: 18px;
  line-height: 1;
  transition:
    transform var(--t),
    color var(--t);
}
.faq-q[aria-expanded='true'] .faq-ico {
  transform: rotate(45deg);
  color: var(--accent);
}

/* Se abre con `grid-template-rows` y no con un `max-height` con tope: así la
   altura la decide el contenido y una respuesta larga nunca queda cortada
   —importa, porque las traducciones al inglés y al francés son más largas que
   el original—. Donde el navegador no sepa interpolar el `fr`, la respuesta
   abre de golpe pero con la altura correcta. */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow);
}
.faq-a.is-open {
  grid-template-rows: 1fr;
}
.faq-inner {
  /* `min-height: 0` es lo que deja al hijo encogerse por debajo de su
     contenido; sin él la fila de 0fr no colapsa. */
  min-height: 0;
  overflow: hidden;
  padding-inline: 20px;
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
/* El relleno inferior sólo cuando está abierta: la fila de 0fr anula la altura
   del contenido, pero no el padding, y cerrada dejaría un hueco de 18px. */
.faq-a.is-open .faq-inner {
  padding-bottom: 18px;
}

/* ── Banner de cierre ──────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-1);
}

.cta-inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}
.cta-inner p {
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--fg-subtle);
  font-size: 0.85rem;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.soc-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t);
}
.soc-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--fg);
}

.footer-col-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ── Indicador de estado ───────────────────────────────────────────────── */
/* El color NO es lo único que distingue los estados: el punto cambia además de
   forma —relleno, anillo, hueco—, para que se lea también sin percibir el rojo
   y el verde como distintos. */
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--fg-subtle);
}
.status-dot[data-state='checking'] {
  background: transparent;
  border: 2px solid var(--fg-subtle);
  border-top-color: transparent;
  animation: status-spin 0.7s linear infinite;
}
.status-dot[data-state='up'] {
  background: var(--accent-success);
}
.status-dot[data-state='degraded'] {
  background: transparent;
  border: 2px solid var(--accent-warn);
}
.status-dot[data-state='down'] {
  background: var(--accent-danger);
}

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

.status-text {
  color: var(--fg-muted);
  font-size: 0.8rem;
}

.status-detail {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 9px;
}
.status-svc {
  color: var(--fg-subtle);
  font-size: 0.78rem;
}
.status-svc::before {
  content: '·';
  margin-right: 6px;
}
.status-svc[data-state='down'] {
  color: var(--accent-danger);
}
.footer-col a {
  color: var(--fg-muted);
  font-size: 0.875rem;
  transition: color var(--t);
}
.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  color: var(--fg-subtle);
  font-size: 0.8rem;
}
.footer-bottom nav {
  display: flex;
  gap: 20px;
}
.footer-bottom a:hover {
  color: var(--fg);
}

/* ── Entrada al hacer scroll ───────────────────────────────────────────── */
/* Sin `.js-reveal` en <html> todo queda visible: si el JS no llega a correr,
   la página se lee igual en vez de quedarse en blanco. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.rv-d1 {
  transition-delay: 60ms;
}
.rv-d2 {
  transition-delay: 120ms;
}
.rv-d3 {
  transition-delay: 180ms;
}
.rv-d4 {
  transition-delay: 240ms;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    max-width: 560px;
  }
  .float-pill {
    display: none;
  }
  .features-grid,
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-layout {
    grid-template-columns: 1fr;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn,
  .nav-actions .lp-lang-switcher {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .cta-banner {
    padding-block: 64px;
  }
  .features-grid,
  .testimonials {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .mock-stats {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}
