/* =====================================================================
 * Chunk Kreator — Identidad visual base (heredada del landing v3)
 * Paleta dark + morado, tipografías Outfit / DM Sans / JetBrains Mono
 * ===================================================================== */

:root {
  --bg: #07070A;
  --surface: #0E0E13;
  --surface-raised: #16161E;
  --ink: #F2F2F9;
  --ink-soft: #A0A0B8;
  --muted: #585870;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.10);
  --purple: #7C4DFF;
  --purple-deep: #5E35B1;
  --purple-soft: rgba(124, 77, 255, 0.12);
  --purple-glow: rgba(124, 77, 255, 0.18);
  --blue: #4988FF;
  --blue-soft: rgba(73, 136, 255, 0.10);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --display: 'Outfit', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --body: 'DM Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', ui-monospace, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 36px; }
@media (max-width: 720px) { .wrap { padding: 0 18px; } }

h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; }
a { color: var(--purple); }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------- header / nav ---------------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; position: sticky; top: 0; z-index: 100;
  background: rgba(7, 7, 10, 0.84);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.logo-group { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 32px; height: 32px; border-radius: 7px; object-fit: contain; filter: drop-shadow(0 0 10px var(--purple-glow)); }
.logo-text { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); }
.logo-text .tld { color: var(--muted); font-weight: 500; }
.site-nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 180ms ease; }
.site-nav a:hover { color: var(--ink); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 6px 12px; border: 1px solid var(--border-strong);
  border-radius: 999px; color: var(--ink-soft); background: var(--surface);
  white-space: nowrap;
}
.badge.ok { border-color: rgba(52, 211, 153, 0.35); color: var(--ok); background: rgba(52, 211, 153, 0.08); }

/* ---------------- botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); cursor: pointer;
  padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent;
  transition: all 220ms var(--ease-out-quint);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 36px var(--purple-glow), 0 8px 32px rgba(0, 0, 0, 0.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface); border-color: rgba(255, 255, 255, 0.18); }
.btn-danger { background: #8B0000; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #A52A2A; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------------- formularios ---------------- */
input[type="text"], select {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--body);
  font-size: 14px;
}
input[type="text"]:focus, select:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px var(--purple-soft); }
select { cursor: pointer; }
label { color: var(--ink-soft); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.check input { accent-color: var(--purple); width: 16px; height: 16px; cursor: pointer; }
.radio { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 14px; color: var(--ink-soft); padding: 4px 0; }
.radio input { accent-color: var(--purple); margin-top: 3px; cursor: pointer; }

/* ---------------- tarjetas ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.card-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--purple); font-weight: 500;
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 13.5px;
}
.site-footer .footer-cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------------- modal paywall ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 4, 8, 0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  max-width: 480px; width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  max-height: 92vh; overflow-y: auto;
}
.modal h3 { font-size: 24px; margin-bottom: 6px; }
.modal .close-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.modal .close-x:hover { color: var(--ink); }
.price-line { font-family: var(--display); font-size: 40px; font-weight: 800; margin: 10px 0 2px; }
.price-line span { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--border-strong); flex: 1; }
.device-box {
  font-family: var(--mono); font-size: 13px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 10px 12px; word-break: break-all;
}
.muted-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
