:root {
  --ink: #102033;
  --muted: #4d6278;
  --line: #d7e3ef;
  --paper: #f4f8fc;
  --card: #ffffff;
  --blue: #1d6fbe;
  --blue-deep: #123a66;
  --sky: #d7ecff;
  --gold: #c9892d;
  --shadow: 0 18px 50px rgba(16, 42, 74, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, #e7f4ff 0%, transparent 60%),
    radial-gradient(700px 380px at 100% 0%, #fff4df 0%, transparent 55%),
    var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a, .lang button {
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

nav a:hover, .lang button:hover { background: white; }

.lang {
  display: flex;
  background: white;
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 1px 0 rgba(16, 42, 74, 0.06);
}

.lang button[aria-pressed="true"] {
  background: var(--blue-deep);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  padding: 42px 0 20px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 38rem;
}

.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--blue-deep);
  color: white;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
}

.button.secondary {
  background: white;
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

.icon-stage {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.icon-stage img {
  width: min(280px, 70vw);
  height: auto;
  border-radius: 64px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px 0 56px;
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(16, 42, 74, 0.04);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.page {
  padding: 18px 0 64px;
}

.page h1 {
  margin: 10px 0 8px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.updated { color: var(--muted); margin-top: 0; }

article section {
  background: white;
  border-radius: 22px;
  padding: 22px 24px;
  margin: 14px 0;
}

article h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

article ul { margin: 8px 0 0; padding-left: 18px; }

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

html[data-lang="es"] .en, html[data-lang="en"] .es { display: none; }

@media (max-width: 800px) {
  .hero, .grid { grid-template-columns: 1fr; }
  header { align-items: flex-start; gap: 12px; }
  .icon-stage { min-height: 0; }
}
