:root {
  --bg: #050b24;
  --bg-raised: #0c1638;
  --bg-panel: #111d47;
  --border: #23336f;
  --text: #e8f1ff;
  --text-soft: #a9c1e8;
  --accent: #22d3ee;
  --accent-strong: #67e8f9;
  --accent-ink: #04121a;
  --teal: #2dd4bf;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 11, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .lang {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}

/* Portada */

.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.lead {
  margin: 0 0 24px;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.hero-art {
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.button-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.badge-soon {
  display: inline-block;
  padding: 12px 20px;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 700;
}

.fine {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Secciones */

section {
  padding: 48px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0 0 28px;
  max-width: 62ch;
  color: var(--text-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.privacy-band {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px 24px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 20px 20px 20px 64px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-align: center;
  line-height: 32px;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps span {
  color: var(--text-soft);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
}

.facts dt {
  color: var(--text-soft);
}

.facts dd {
  margin: 0;
}

.note {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--bg-panel);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text-soft);
}

/* Documento legal */

.doc {
  padding: 40px 0 56px;
}

.doc .wrap {
  max-width: 780px;
}

.doc h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  line-height: 1.15;
}

.doc .meta {
  margin: 0 0 28px;
  color: var(--text-soft);
}

.doc h2 {
  margin: 36px 0 10px;
  font-size: 1.3rem;
}

.doc p,
.doc li {
  color: #d4e1f7;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.summary {
  padding: 18px 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.summary p {
  margin: 0 0 8px;
}

.summary ul {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-raised);
  color: var(--text-soft);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

/* Pie */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-nav .optional {
    display: none;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .facts dd {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
