:root {
  color-scheme: light;
  --background: #f3f7fc;
  --surface: #ffffff;
  --surface-strong: #edf5ff;
  --text: #111827;
  --muted: #647084;
  --primary: #006bec;
  --primary-strong: #0051b8;
  --accent: #0094a3;
  --success: #198c4d;
  --border: #d7e1ef;
  --shadow: 0 18px 45px rgba(28, 55, 90, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 148, 163, 0.16), transparent 34rem),
    linear-gradient(180deg, #edf5ff 0%, #f8fbff 36%, #ffffff 100%);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.site-header,
.site-footer,
.hero,
.content,
.legal-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.08rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(0, 107, 236, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: rgba(0, 107, 236, 0.08);
  color: var(--primary);
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid #b8d2f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(28, 55, 90, 0.1);
}

.language-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0 6px 0 8px;
  white-space: nowrap;
}

.lang-button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  padding: 9px 11px;
}

.lang-button:hover,
.lang-button.is-active {
  background: var(--primary);
  color: #ffffff;
}

body:not([data-language="es"]) [data-lang="es"],
body[data-language="es"] [data-lang="en"] {
  display: none !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: center;
  padding: 68px 0 54px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.55rem, 7vw, 5rem);
  margin: 12px 0 18px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0 0 18px;
}

h3 {
  font-size: 1.14rem;
  margin: 0 0 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2.6vw, 1.36rem);
  max-width: 690px;
  margin: 0 0 26px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 800;
  color: var(--text);
  background: var(--surface);
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 12px 25px rgba(0, 107, 236, 0.24);
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 225, 239, 0.9);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.app-mark {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.app-mark img {
  width: 74px;
  height: 74px;
  border-radius: 16px;
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.status-list li > span:first-child {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(25, 140, 77, 0.12);
  color: var(--success);
  font-weight: 900;
  line-height: 1;
}

.status-list li > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.content {
  padding: 28px 0 72px;
}

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

.card,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(28, 55, 90, 0.08);
}

.card p,
.legal-card p,
.legal-card li,
.support-list li {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 800;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
  padding: 54px 0 78px;
}

.legal-intro {
  position: sticky;
  top: 20px;
}

.legal-intro p {
  color: var(--muted);
}

.legal-intro h1 {
  font-size: clamp(2.45rem, 3.8vw, 3.7rem);
  overflow-wrap: break-word;
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-card h2 {
  font-size: 1.42rem;
  margin-top: 0;
}

.legal-card ul,
.support-list {
  padding-left: 1.15rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 700;
}

.notice {
  background: var(--surface-strong);
  border: 1px solid #c5ddfb;
  border-radius: 8px;
  padding: 18px;
  color: #23496f;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .language-switch {
    margin-top: 2px;
  }

  .hero,
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 38px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .legal-intro {
    position: static;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .hero,
  .content,
  .legal-layout {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 2.45rem;
  }

  .nav {
    width: 100%;
  }

  .header-actions,
  .language-switch {
    width: 100%;
  }

  .language-switch {
    justify-content: space-between;
  }

  .nav a {
    padding-left: 0;
    padding-right: 14px;
  }

  .app-mark {
    align-items: flex-start;
  }

  .app-mark h2 {
    font-size: 1.72rem;
  }

  .hero-panel,
  .card,
  .legal-card {
    padding: 20px;
  }

  .button {
    width: 100%;
  }
}
