/* Tokens copiados de constants/colors.ts de la app, para que la web y la
   aplicación se vean como lo mismo. Si allí cambia la paleta, cambiarla aquí. */
:root {
  --navy: #0a1628;
  --blue: #3b82f6;
  --blue-deep: #1e4fbe;
  --blue-soft: #60a5fa;
  --bg: #f4f7fb;
  --card: #ffffff;
  --muted: #eef2f7;
  --muted-fg: #64748b;
  --secondary: #e8f0fe;
  --secondary-fg: #1e4fbe;
  --border: #e2e8f0;
  --success: #10b981;

  --radius: 14px;
  --radius-lg: 20px;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

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

/* ── Cabecera ─────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand span {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 18px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  margin: 8px 0 44px;
  padding: 64px 28px 72px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 18px 40px rgba(30, 79, 190, 0.28);
}

/* Ornamentos circulares, como el GradientHero de la app */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.hero::before {
  width: 240px;
  height: 240px;
  top: -90px;
  right: -60px;
}

.hero::after {
  width: 180px;
  height: 180px;
  bottom: -80px;
  left: -50px;
}

.hero-inner {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(10, 22, 40, 0.18);
}

.hero-logo img {
  width: 76px;
  height: 76px;
}

.hero h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.18;
  font-weight: 800;
}

.hero p {
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Secciones ────────────────────────────────────────────────────────── */
section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 800;
  margin: 0;
}

.section-sub {
  text-align: center;
  color: var(--muted-fg);
  margin: 8px 0 0;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--secondary);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.card h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-fg);
  font-size: 12px;
  font-weight: 700;
}

.card h2 {
  font-size: 21px;
  margin: 14px 0 16px;
}

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

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted-fg);
  font-size: 15px;
}

.checks svg {
  flex: none;
  margin-top: 3px;
  color: var(--success);
}

.tinted {
  background: var(--muted);
  border-radius: 28px;
  padding: 44px 20px;
}

/* ── Pie ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 36px 0 44px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  align-items: center;
  margin: 14px 0 12px;
}

.footer-links a {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .sep {
  color: var(--border);
}

.copy {
  color: var(--muted-fg);
  font-size: 13px;
  margin: 0;
}

/* ── Documentos legales ───────────────────────────────────────────────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.legal h1 {
  font-size: 30px;
  margin: 0 0 4px;
}

.legal .updated {
  color: var(--muted-fg);
  font-size: 13px;
  margin: 0 0 26px;
}

.legal h2 {
  font-size: 18px;
  margin: 30px 0 10px;
}

.legal p,
.legal li {
  color: #475569;
  font-size: 15.5px;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 7px;
}

.back {
  display: inline-block;
  margin: 24px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

/* ── Preguntas frecuentes ─────────────────────────────────────────────── */
/* Acordeón con <details>/<summary>: comportamiento nativo, sin JavaScript. */
.faq {
  max-width: 780px;
  margin: 30px auto 0;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 48px 17px 20px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Chevron dibujado con dos bordes, para no depender de un SVG por pregunta */
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 27px;
}

.faq summary:hover {
  background: var(--muted);
}

.faq details p {
  margin: 0;
  padding: 0 20px 19px;
  color: var(--muted-fg);
  font-size: 15px;
}

/* ── 404 ──────────────────────────────────────────────────────────────── */
.notfound {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 0 72px;
}

.notfound-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.notfound-logo img {
  width: 70px;
  height: 70px;
}

.notfound .code {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--blue);
}

.notfound h1 {
  margin: 6px 0 12px;
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.25;
}

.notfound .lead {
  margin: 0;
  color: var(--muted-fg);
  font-size: 16px;
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--blue);
}

.btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--muted);
  border-color: var(--border);
}
