@font-face {
  font-family: "Onest";
  src: url("../fonts/onest.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --azul: #0F1897;
  --azul-profundo: #070B4A;
  --naranja: #FF5A00;
  --violeta: #6A38FF;
  --cielo: #4FC3FF;
  --carbon: #111318;
  --gris: #ECEFF4;
  --nieve: #F7F8FC;
  --font-display: "Onest", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100svh;
  background: var(--azul-profundo);
  color: var(--nieve);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(15, 24, 151, .95) 0%, rgba(15, 24, 151, 0) 60%),
    linear-gradient(160deg, var(--azul-profundo) 0%, #0A1070 55%, var(--azul) 100%);
  isolation: isolate;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  position: relative;
  z-index: 2;
}
.logo { display: block; line-height: 0; }
.logo img { display: block; height: 26px; width: auto; }

/* Botones en cápsula */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-ghost {
  padding: 10px 22px;
  color: #fff;
  border: 1px solid rgba(247, 248, 252, .35);
}
.btn-ghost:hover { border-color: #fff; background: rgba(247, 248, 252, .08); }
.btn-solid {
  padding: 16px 30px;
  background: var(--nieve);
  color: var(--azul);
}
.btn-solid:hover { background: #fff; transform: translateY(-2px); }
.btn:focus-visible, .link:focus-visible, .logo:focus-visible {
  outline: 2px solid var(--cielo);
  outline-offset: 4px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 24px 0 48px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 248, 252, .2);
  background: rgba(247, 248, 252, .06);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(247, 248, 252, .85);
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cielo);
}
.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: .98;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}
.lead {
  margin: 32px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: rgba(247, 248, 252, .82);
}
.lead strong { color: #fff; font-weight: 700; }
.promise {
  margin: 14px 0 0;
  max-width: 470px;
  font-size: 15px;
  color: rgba(247, 248, 252, .6);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}
.link {
  color: rgba(247, 248, 252, .8);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 248, 252, .3);
  padding-bottom: 2px;
}
.link:hover { color: #fff; border-color: #fff; }

/* Trayectoria de la chispa: fuera del texto */
.trail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(56vw, 900px);
  height: 88%;
  z-index: 1;
  pointer-events: none;
}
.trail-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.trail-light { opacity: 0; }

/* Pie */
.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 24px var(--gutter) 28px;
  border-top: 1px solid rgba(247, 248, 252, .1);
  font-size: 13px;
  color: rgba(247, 248, 252, .55);
}
.foot p { margin: 0; }

/* Pantallas medianas: la trayectoria baja y se hace más discreta */
@media (max-width: 1100px) {
  .trail { width: 50vw; height: 60%; }
}

/* Móvil: la trayectoria va arriba, en su propio espacio, nunca detrás del texto */
@media (max-width: 760px) {
  .top { padding-top: 20px; padding-bottom: 8px; }
  .logo img { height: 22px; }
  .btn-ghost { padding: 8px 18px; font-size: 14px; }
  .hero { flex-direction: column-reverse; align-items: stretch; }
  .trail {
    position: relative;
    width: 100%;
    height: 28svh;
    min-height: 170px;
    margin-top: 8px;
  }
  .hero-copy { padding-top: 0; }
  .chip { margin-bottom: 20px; }
  .lead { margin-top: 22px; }
  .actions { margin-top: 30px; }
  .btn-solid { width: 100%; }
  .foot { flex-direction: column; }
}
