:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --card: #141926;
  --border: #232b3d;
  --text: #e8ecf3;
  --muted: #97a3b8;
  --accent: #35c98e;
  --accent-2: #4f8cff;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 14, 20, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: .8rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .15s; }
.nav-links > a:hover { color: var(--text); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }
.nav-mobile { display: none; flex-direction: column; gap: .4rem; padding: .8rem 1.4rem 1.2rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { text-decoration: none; color: var(--muted); padding: .5rem 0; border-bottom: 1px solid var(--border); }

/* ── Language dropdown ── */
.lang-dropdown { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: .35rem;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: 9px; padding: .42rem .7rem;
  cursor: pointer; font-size: .85rem;
}
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 190px; max-height: 320px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: .4rem; z-index: 200;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .6rem; border-radius: 8px;
  text-decoration: none; font-size: .88rem; color: var(--muted);
}
.lang-menu a:hover { background: var(--bg-alt); color: var(--text); }
.lang-menu a.active { color: var(--accent); }
.lang-flag { display: inline-block; width: 22px; text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-block; text-decoration: none; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; border-radius: 12px;
  padding: .7rem 1.5rem; font-size: .95rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(53, 201, 142, .3); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.btn-sm { padding: .42rem 1rem; font-size: .88rem; }
.btn-lg { padding: .95rem 2.2rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ── Hero ── */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 5.5rem 1.4rem 4rem;
  text-align: center;
}
.hero-badge {
  display: inline-block; font-size: .82rem; color: var(--accent);
  border: 1px solid rgba(53, 201, 142, .4); border-radius: 999px;
  padding: .3rem .9rem; margin-bottom: 1.6rem; background: rgba(53, 201, 142, .08);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1.3rem;
}
.hero p { max-width: 640px; margin: 0 auto 2.2rem; color: var(--muted); font-size: 1.12rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Sections ── */
.section { max-width: 1120px; margin: 0 auto; padding: 4rem 1.4rem; }
.section h2 { font-size: 1.9rem; text-align: center; margin-bottom: .6rem; }
.section .sub { text-align: center; color: var(--muted); margin-bottom: 2.6rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.panel-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  transition: border-color .15s, transform .15s;
}
.panel-card:hover { border-color: rgba(53, 201, 142, .45); transform: translateY(-2px); }
.panel-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.panel-card p { color: var(--muted); font-size: .92rem; }
.panel-card .ico { font-size: 1.5rem; margin-bottom: .8rem; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding-top: 2.8rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}

/* ── Platforms ── */
.plat-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: .55rem 1.15rem;
  font-size: .92rem; font-weight: 500;
}

/* ── Pricing ── */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; max-width: 720px; margin: 0 auto; }
.price { text-align: center; padding: 2.2rem 1.6rem; }
.price .amount { font-size: 2rem; font-weight: 800; color: var(--accent); margin: .5rem 0 .8rem; }

/* ── Download ── */
.dl-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.dl-btn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  min-width: 150px; padding: 1.3rem 1.6rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.dl-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl-btn .os { font-size: 1.6rem; }
.dl-btn .lbl { font-weight: 600; }
.dl-btn .ver { font-size: .78rem; color: var(--muted); }

/* ── Support form ── */
.form-card {
  max-width: 620px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }

/* Regla de estética uniforme: cubre TODOS los types por exclusión —
   cualquier input nuevo hereda el tema oscuro automáticamente. */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
textarea {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: .65rem .9rem;
  font: inherit; font-size: .92rem; outline: none;
  transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus { border-color: var(--accent); }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input::-webkit-search-cancel-button, input::-webkit-search-decoration { -webkit-appearance: none; }
input::-webkit-calendar-picker-indicator { display: none; }
textarea { min-height: 130px; resize: vertical; }

/* Selector de asunto: chips propios (nunca <select> nativo) */
.topic-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.topic-chip {
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: .45rem 1rem; font-size: .85rem; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.topic-chip:hover { border-color: var(--accent); color: var(--text); }
.topic-chip.active {
  background: rgba(53, 201, 142, .12); border-color: var(--accent); color: var(--accent);
}

/* ── Modal propio (prohibido alert/confirm/prompt nativos) ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 8, 12, .7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1.4rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.modal h3 { margin-bottom: .6rem; font-size: 1.15rem; }
.modal p { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); margin-top: 3rem;
  padding: 2.4rem 1.4rem; text-align: center; color: var(--muted); font-size: .88rem;
}
footer .links { display: flex; gap: 1.4rem; justify-content: center; margin-bottom: .8rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Páginas legales ── */
.legal { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.4rem; }
.legal h1 { font-size: 1.9rem; margin-bottom: 1.8rem; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; color: var(--accent); }
.legal p { color: var(--muted); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

/* Consentimiento RGPD newsletter */
.consent-row { display: flex; align-items: flex-start; gap: .55rem; font-size: .82rem; color: var(--muted); cursor: pointer; }
.consent-row input[type="checkbox"] { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.consent-row a { color: var(--accent); }
