/* ==========================================================================
   landing-flat.css — la landing con el mismo estilo del panel y el login
   --------------------------------------------------------------------------
   Se carga DESPUES de landing.css en views/landing.ejs. Mismo contenido de
   siempre; cambia el look: fondo casi negro y liso, tarjetas con borde de
   1px sin brillos ni vidrio, rojo de marca (--accent) como acento, barra de
   navegacion plana a todo el ancho y titulos en Plus Jakarta Sans.

   Casi todo sale de redefinir los tokens --g-* que usa landing.css (los
   mismos de glass.css); abajo van los retoques puntuales. Siempre oscura,
   como el login (aunque el panel este en tema claro).
   ========================================================================== */

html body.wave-body.landing-body,
html[data-theme="light"] body.wave-body.landing-body {
  color-scheme: dark;
  --lf-bg: #060505;
  --lf-surface: #0b0a0a;
  --lf-surface-2: #100f0f;
  --lf-border: #1c1b1b;
  --lf-border-strong: #2b2929;
  --lf-line: #161515;
  --lf-text: #e4e4e7;
  --lf-title: #f4f4f5;
  --lf-text-2: #a1a1aa;
  --lf-muted: #71717a;
  --lf-accent-ink: #ff5a66;
  --lf-accent-bg: rgba(255, 57, 71, 0.11);
  --lf-accent-border: rgba(255, 57, 71, 0.3);

  /* style.css */
  --bg: var(--lf-bg);
  --surface: var(--lf-surface);
  --surface-alt: var(--lf-surface-2);
  --border: var(--lf-border);
  --border-soft: #151414;
  --border-strong: var(--lf-border-strong);
  --text: var(--lf-text);
  --muted: var(--lf-text-2);
  --muted-2: var(--lf-muted);

  /* glass.css / landing.css */
  --font-display: var(--font-body);
  --g-blur: 0px;
  --g-blur-strong: 0px;
  --g-sat: 100%;
  --g-card: var(--lf-surface);
  --g-card-hover: var(--lf-surface);
  --g-elevated: #0e0d0d;
  --g-bar: rgba(6, 5, 5, 0.86);
  --g-solid: #0e0d0d;
  --g-subtle: rgba(255, 255, 255, 0.025);
  --g-subtle-2: rgba(255, 255, 255, 0.06);
  --g-input: var(--lf-surface);
  --g-input-focus: var(--lf-surface);
  --g-border: var(--lf-border);
  --g-border-strong: var(--lf-border);
  --g-border-bright: var(--lf-border-strong);
  --g-divider: #151414;
  --g-hl: 0 0 #0000;
  --g-hl-strong: 0 0 #0000;
  --g-shadow: 0 0 #0000;
  --g-shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, 0.85);
  --g-spec: none;
  --g-accent-grad: linear-gradient(var(--accent), var(--accent));
  --g-accent-grad-hover: linear-gradient(#ff4e5b, #ff4e5b);
  --g-wine-grad: linear-gradient(var(--accent), var(--accent));
  --g-glow: 0 0 #0000;
  --g-glow-strong: 0 0 #0000;
  --g-accent-ink: var(--lf-accent-ink);
  --g-radius: 14px;
  --g-radius-lg: 16px;

  background:
    radial-gradient(70% 40% at 50% 0%, rgba(255, 57, 71, 0.07) 0%, transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(255, 57, 71, 0.05) 0%, transparent 70%),
    var(--lf-bg);
  background-attachment: fixed;
  color: var(--lf-text);
}
.landing-body .wave-ambient { display: none; }
.landing-body h1, .landing-body h2, .landing-body h3 { font-family: var(--font-body); }
.landing-body ::selection { background: rgba(255, 57, 71, 0.4); color: #fff; }

/* ---------- Barra de navegacion: plana, a todo el ancho ---------- */
.landing-body .landing-nav {
  top: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Fondo de la barra a todo el ancho con un pseudo-elemento: antes se hacia
   con box-shadow + clip-path, y el clip-path recortaba todo lo que baja de la
   barra (menu de idioma, menu de login, menu del celular) y se veia vacio. */
.landing-body .landing-nav::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--g-bar);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.landing-body .landing-nav::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 100vw; height: 1px;
  transform: translateX(-50%);
  background: var(--lf-line);
  pointer-events: none;
}
.landing-body .landing-brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--lf-surface-2);
  border: 1px solid var(--lf-border);
  color: var(--lf-accent-ink);
  box-shadow: none;
}
.landing-body .landing-brand-mark svg { width: 17px; height: 17px; }
.landing-body .landing-brand-mark-img { width: 34px; height: 34px; border-radius: 50%; }
.landing-body .landing-brand .wave-logo { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.landing-body .landing-nav-link {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--lf-text-2);
  font-size: 13px; font-weight: 500;
}
.landing-body .landing-nav-link:hover { color: var(--lf-title); background: rgba(255, 255, 255, 0.04); }
.landing-body .landing-nav-right .btn,
.landing-body .landing-login-select > summary { border-radius: 999px; }
.landing-body .landing-login-select > summary {
  background: var(--lf-surface-2);
  border: 1px solid var(--lf-border);
  box-shadow: none;
}
.landing-body .landing-login-menu {
  background: #0e0d0d;
  border: 1px solid var(--lf-border);
  border-radius: 12px;
  box-shadow: var(--g-shadow-lg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.landing-body .landing-login-menu a { border-radius: 8px; }
.landing-body .landing-login-menu a:hover,
.landing-body .landing-login-menu a:focus-visible { background: var(--lf-accent-bg); }
.landing-body .landing-login-icon { background: var(--lf-accent-bg); border: 1px solid var(--lf-accent-border); color: var(--lf-accent-ink); box-shadow: none; }
.landing-body .landing-icon-btn { background: var(--lf-surface-2); border: 1px solid var(--lf-border); box-shadow: none; }

/* ---------- Botones ---------- */
.landing-body .btn {
  border-radius: 10px;
  box-shadow: none;
  text-shadow: none;
  font-weight: 600;
}
.landing-body .btn:hover { transform: none; }
.landing-body .btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.landing-body .btn-primary:hover { background: #ff4e5b; box-shadow: none; }
.landing-body .btn-ghost,
.landing-body .btn-secondary { background: var(--lf-surface-2); border: 1px solid var(--lf-border); color: var(--lf-text); }
.landing-body .btn-ghost:hover,
.landing-body .btn-secondary:hover { background: #181717; border-color: var(--lf-border-strong); }
.landing-body .btn-outline { background: var(--lf-accent-bg); border: 1px solid var(--lf-accent-border); color: var(--lf-accent-ink); }
.landing-body .btn-outline:hover { background: rgba(255, 57, 71, 0.17); box-shadow: none; }
.landing-body .btn-lg { border-radius: 12px; padding: 13px 22px; }

/* ---------- Hero ---------- */
.landing-body .landing-hero { padding-top: 104px; }
.landing-body .landing-kicker {
  background: var(--lf-accent-bg);
  border: 1px solid var(--lf-accent-border);
  box-shadow: none;
  color: var(--lf-accent-ink);
}
.landing-body .landing-kicker .dot { box-shadow: none; }
.landing-body .landing-hero h1 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--lf-title);
}
.landing-body .landing-hero h1 em {
  font-weight: inherit;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--accent);
}
.landing-body .landing-hero p { color: var(--lf-text-2); }

/* ---------- Tarjetas ---------- */
.landing-body .landing-card,
.landing-body .module-cat-card,
.landing-body .pricing-card,
.landing-body .demo-console,
.landing-body .compare-table-wrap {
  background: var(--lf-surface);
  border: 1px solid var(--lf-border);
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.landing-body .landing-card::before,
.landing-body .module-cat-card::before,
.landing-body .pricing-card::before { content: none; }
.landing-body .landing-card:hover,
.landing-body .module-cat-card:hover {
  transform: none;
  background: var(--lf-surface);
  border-color: var(--lf-border-strong);
  box-shadow: none;
}
.landing-body .landing-card h3,
.landing-body .module-cat-card h3,
.landing-body .pricing-card h3,
.landing-body .demo-cta h3 { font-family: var(--font-body); color: var(--lf-title); letter-spacing: -0.02em; }
.landing-body .landing-card p { color: var(--lf-muted); }

/* Chips de icono: como en el panel */
.landing-body .landing-card-icon,
.landing-body .module-cat-icon,
.landing-body .pricing-card-icon {
  border-radius: 10px;
  background: var(--lf-accent-bg);
  border: 1px solid rgba(255, 57, 71, 0.2);
  color: var(--lf-accent-ink);
  box-shadow: none;
}
.landing-body .landing-card-icon.blue,
.landing-body .pricing-card-icon:not(.pink):not(.gold) { background: var(--lf-surface-2); border-color: var(--lf-border); color: var(--lf-text-2); }
.landing-body .pricing-card-icon.gold { background: rgba(255, 177, 59, 0.1); border-color: rgba(255, 177, 59, 0.22); color: var(--warning); }
.landing-body .landing-card-icon.online { background: rgba(53, 210, 138, 0.1); border-color: rgba(53, 210, 138, 0.22); color: var(--success); }

/* ---------- Secciones ---------- */
.landing-body .landing-eyebrow { background: var(--lf-surface-2); border: 1px solid var(--lf-border); color: var(--lf-muted); }
.landing-body .landing-section-head h2 { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.03em; color: var(--lf-title); }
.landing-body .landing-section-head p { color: var(--lf-muted); }
.landing-body .module-pill { background: var(--lf-surface-2); border: 1px solid var(--lf-border); border-radius: 8px; color: var(--lf-text-2); }

/* Consola de ejemplo */
.landing-body .demo-console-head { border-bottom-color: var(--lf-line); }
.landing-body .demo-console-body { background: var(--lf-bg); }

/* Precios */
.landing-body .pricing-toggle { border-radius: 12px; background: var(--lf-surface); border: 1px solid var(--lf-border); box-shadow: none; }
.landing-body .pricing-toggle-btn { border-radius: 9px; }
.landing-body .pricing-toggle-btn.active { background: var(--accent); box-shadow: none; }
.landing-body .pricing-card.featured {
  border-color: rgba(255, 57, 71, 0.5);
  background: linear-gradient(180deg, rgba(255, 57, 71, 0.07) 0%, transparent 55%), var(--lf-surface);
  box-shadow: none;
}
.landing-body .pricing-badge { background: var(--accent); box-shadow: none; }
.landing-body .pricing-amount { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.03em; color: var(--lf-title); }

/* Tabla comparativa y FAQ */
.landing-body .compare-table thead th { background: transparent; color: var(--lf-muted); }
.landing-body .compare-table th,
.landing-body .compare-table td { border-bottom-color: #151414; }
.landing-body .compare-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.landing-body .landing-faq-item { background: var(--lf-surface); border: 1px solid var(--lf-border); border-radius: 12px; }
.landing-body .landing-faq-item[open] { border-color: var(--lf-border-strong); }

/* Pie */
.landing-body .landing-footer-full { background: none; border-top-color: var(--lf-line); }
.landing-body .landing-footer-bottom { border-top-color: var(--lf-line); }

/* Celular: la barra sigue a todo el ancho */
@media (max-width: 960px) {
  .landing-body .landing-nav { width: calc(100% - 24px); padding: 10px 0; }
}

/* Tabla comparativa: check como icono SVG propio (antes era el caracter de texto). */
.landing-body td.yes .ld-check { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
