:root {
  --bg: #070d18;
  --bg-mid: #0f1728;
  --panel: rgba(17, 26, 46, 0.85);
  --text: #e8edf7;
  --muted: #8fa3c4;
  --accent: #3e83ff;
  --accent-2: #63b3ff;
  --success: #40c984;
  --danger: #f87171;
  --border: #2a3f66;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(62, 131, 255, 0.18), transparent),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(99, 179, 255, 0.08), transparent);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--accent-2); }
a:hover { color: #9dc8ff; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.container--with-nav {
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 48px;
}

.container--narrow {
  max-width: 640px;
  text-align: center;
}

/* Capçalera */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 13, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.site-logo__text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(62, 131, 255, 0.12);
}

.site-nav a.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(62, 131, 255, 0.28), rgba(99, 179, 255, 0.12));
  border: 1px solid rgba(62, 131, 255, 0.35);
}

/* Peu */
.site-footer {
  margin-top: auto;
  padding: 28px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-mid);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer__inner a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__inner a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 24px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 52ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__bullets {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__bullets li { margin-bottom: 8px; }

.hero__card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 20px 0 10px;
}

.price-row__val {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-row__unit { font-size: 0.95rem; color: var(--muted); }

.price-row__note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* Seccions */
.section {
  padding: 56px 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(15, 23, 40, 0.6), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-size: 1.65rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section__intro {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 28px;
}

.section__fineprint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 20px;
}

.section--cta {
  text-align: center;
  padding: 64px 0 80px;
}

.section--cta h2 { margin: 0 0 12px; }
.section--cta p { color: var(--muted); margin: 0 0 24px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.feature-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .download-cards { grid-template-columns: 1fr; }
}

.download-card {
  display: block;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.download-card:hover {
  border-color: rgba(62, 131, 255, 0.55);
  transform: translateY(-2px);
}

.download-card__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.download-card strong { display: block; margin-bottom: 6px; }

.download-card__file {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

/* Cards generiques */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.card--elevated {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 42%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand--compact { margin-bottom: 12px; }

.brand img {
  max-height: 52px;
  width: auto;
}

h1 { margin: 6px 0; font-size: 1.75rem; letter-spacing: -0.02em; }

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 8px;
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--muted);
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(13, 22, 41, 0.9);
  color: var(--text);
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(62, 131, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(62, 131, 255, 0.18);
}

.summary {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.summary--final { margin-top: 12px; }

.summary--success .code-box {
  font-size: 1.15rem;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(62, 131, 255, 0.12);
  border: 1px solid rgba(62, 131, 255, 0.35);
  margin: 16px 0;
}

.notice {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.row span:last-child {
  text-align: right;
  color: var(--text);
}

.row.total {
  font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
}

.row.total span:last-child {
  color: var(--accent-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: filter 0.15s, transform 0.1s;
}

.btn:hover { filter: brightness(1.06); color: white; }

.btn:active { transform: scale(0.98); }

.btn--lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(62, 131, 255, 0.5);
  color: var(--text);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(64, 201, 132, 0.12);
  color: var(--success);
  border: 1px solid rgba(64, 201, 132, 0.35);
  font-size: 0.8rem;
}

/* Passos compra */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}

.steps__item {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--muted);
  background: var(--bg-mid);
}

.steps__item.is-done {
  border-color: var(--success);
  color: var(--success);
}

.steps__item.is-current {
  border-color: var(--accent);
  color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(62, 131, 255, 0.2);
}

.steps__bar {
  width: 36px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
}

.steps__legend {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.actions--inline-start {
  margin-top: 0;
  margin-bottom: 16px;
}

.actions--stack {
  flex-direction: column;
  align-items: stretch;
}

.inline-form {
  display: inline;
  margin: 0;
}

.form-block { margin-top: 8px; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.alert--error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.muted { color: var(--muted); font-size: 0.9rem; }

.inline-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.download-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.download-table th,
.download-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.download-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-table__action { white-space: nowrap; width: 1%; }

.procedure {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.procedure li { margin-bottom: 8px; }

.page-home main { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); }

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
}
