/* Plus Jakarta Sans (SIL OFL 1.1, ver fonts/OFL-plus-jakarta-sans.txt), alojada aquí: sin Google Fonts */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070d18;
  --amber: #fbbf24;
  --amber-strong: #f59e0b;
  --ink: #f1f5f9;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --green: #34d399;
  --card: rgba(16, 26, 46, 0.65);
  --card-hover: rgba(20, 32, 58, 0.85);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(148, 163, 184, 0.16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber-strong); color: #0b1220; }

a { color: inherit; }

svg { display: block; }

/* Fondo: brillos ámbar y azul, y una retícula de puntos */
.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245, 158, 11, 0.18), rgba(7, 13, 24, 0.95));
}

.glow { position: absolute; border-radius: 50%; }
.glow-top { top: -160px; left: 50%; width: 700px; height: 500px; margin-left: -350px; background: rgba(245, 158, 11, 0.15); filter: blur(140px); }
.glow-left { top: 600px; left: -160px; width: 450px; height: 450px; background: rgba(37, 99, 235, 0.15); filter: blur(140px); }
.glow-right { top: 900px; right: -160px; width: 550px; height: 550px; background: rgba(245, 158, 11, 0.1); filter: blur(150px); }

.dots {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1152px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
}

/* Encabezado */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b1220;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease;
}

.brand-mark svg { width: 24px; height: 24px; }
.brand:hover .brand-mark { transform: scale(1.05); }

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.brand:hover .brand-name { color: var(--amber); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse { 50% { opacity: 0.5; } }

/* Portada */
main { flex: 1; }

.hero { max-width: 896px; margin-bottom: 112px; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--amber);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
}

.accent { color: var(--amber); text-shadow: 0 0 25px rgba(245, 158, 11, 0.25); }

.lead {
  max-width: 768px;
  margin: 0 0 40px;
  color: rgba(203, 213, 225, 0.9);
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 12px;
  background: var(--amber);
  color: #0b1220;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 0 35px -5px rgba(245, 158, 11, 0.45);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button svg { width: 16px; height: 16px; }
.button:hover { background: #fcd34d; box-shadow: 0 0 50px 0 rgba(245, 158, 11, 0.35); }
.button:active { transform: scale(0.98); }
.button:focus-visible, .mail:focus-visible, .brand:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 12px; }

.mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mail svg { width: 16px; height: 16px; color: var(--faint); transition: color 0.2s ease; }
.mail:hover { color: #fcd34d; }
.mail:hover svg { color: var(--amber); }

/* Tres pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 96px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.card:hover { border-color: rgba(245, 158, 11, 0.35); background: var(--card-hover); transform: translateY(-2px); }

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--amber);
  font-size: 0.875rem;
  font-weight: 700;
}

.card h2 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.card p { margin: 0 0 24px; color: var(--body); font-size: 0.875rem; line-height: 1.65; }

.card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 0.75rem;
}

.chip { display: inline-flex; align-items: center; gap: 6px; color: var(--body); }
.chip svg { width: 14px; height: 14px; color: var(--amber); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.tag { color: var(--faint); font-size: 0.7rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tag-amber { color: rgba(251, 191, 36, 0.9); font-family: inherit; font-weight: 500; }
.tag-green { color: var(--green); }

/* Características */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
  padding: 64px 0 48px;
  border-top: 1px solid rgba(30, 41, 59, 0.7);
}

.feature { display: flex; align-items: flex-start; gap: 16px; }

.icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: var(--amber);
}

.icon svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.feature p { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.65; }

/* Pie */
.bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 0.75rem;
}

.bottom a { text-decoration: none; transition: color 0.2s ease; }
.bottom a:hover { color: var(--amber); }

/* Página 404 */
.notfound { max-width: 640px; margin: 15vh auto 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .page { padding: 32px 20px; }
  .top { margin-bottom: 56px; }
  .hero { margin-bottom: 80px; }
  .eyebrow { font-size: 0.75rem; margin-bottom: 16px; }
  .brand-name { font-size: 1.3rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .mail { justify-content: center; }
  .bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .badge { font-size: 0.65rem; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .card, .button, .brand-mark { transition: none; }
  .card:hover { transform: none; }
}
