:root {
  --ink: #1b2440;
  --muted: #5b6478;
  --bg: #ffffff;
  --soft: #f5f6fa;
  --line: #e6e8ef;
  --yellow: #fcd116;
  --blue: #003893;
  --red: #ce1126;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Franja tricolor */
.stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue) 50% 75%, var(--red) 75% 100%);
}

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

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

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

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

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

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}

nav a:hover { color: var(--ink); }

main { flex: 1; }

/* Landing */
.hero {
  text-align: center;
  padding: 56px 0 72px;
}

.hero img {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 18px 30px rgba(27, 36, 64, 0.12));
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.15;
  margin: 28px 0 12px;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 72px;
}

.feature {
  background: var(--soft);
  border-radius: 16px;
  padding: 22px;
}

.feature .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  nav a { margin-left: 12px; }
}

/* Páginas legales */
.doc { padding: 32px 0 72px; }
.doc h1 { font-size: 2rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.doc p, .doc li { color: #2c3550; }
.doc ul { padding-left: 20px; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

footer a { color: var(--muted); }
