/* ============================================================
   Nextorion — landing page
   Design tokens and layout transcribed from the Claude Design
   source (Nextorion Landing.dc.html).
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #04060a;
  --panel-a:       rgba(13, 20, 36, .62);
  --panel-b:       rgba(7, 11, 19, .42);
  --panel-hi-a:    rgba(14, 32, 62, .78);
  --panel-hi-b:    rgba(9, 18, 34, .6);

  /* Text */
  --ink:           #e9eff7;
  --title:         #f2f7ff;
  --title-bright:  #f6faff;
  --heading:       #eef4ff;
  --subheading:    #eaf1fb;
  --body:          #8494ac;
  --body-alt:      #94a4bc;
  --muted:         #8ba0bd;
  --dim:           #7d8ea6;

  /* Accents */
  --accent:        #5aa6ff;
  --accent-soft:   #8fc6ff;
  --accent-pale:   #7fb2f2;
  --line:          rgba(140, 180, 240, .14);
  --line-soft:     rgba(140, 180, 240, .12);
  --line-strong:   rgba(140, 180, 240, .18);

  /* Buttons */
  --btn-face:      #f2f7ff;
  --btn-ink:       #07101d;

  /* Rhythm */
  --wrap:          1240px;
  --gutter:        clamp(20px, 5vw, 44px);

  /* Type */
  --sans:          'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --display:       'Quicksand', var(--sans);
  --mono:          'ShareTech', ui-monospace, SFMono-Regular, monospace;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: #9cc8ff; text-decoration: none; }
a:hover { color: #e2eeff; }

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

h1, h2, h3, p, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--btn-face);
  color: var(--btn-ink);
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ---------- Shell ---------- */

#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 8vw, 100px) var(--gutter);
}

/* Each band paints its own vertical fade so the starfield shows through
   at the seams. Values match the design one-for-one. */
.section--about {
  padding-block: clamp(70px, 9vw, 110px);
  background: linear-gradient(180deg, rgba(6,10,19,0) 0%, rgba(9,15,28,.6) 32%, rgba(9,15,28,.58) 68%, rgba(4,6,10,0) 100%);
}
.section--services,
.section--compliance {
  background: linear-gradient(180deg, rgba(4,6,10,0) 0%, rgba(9,15,28,.62) 34%, rgba(9,15,28,.58) 70%, rgba(4,6,10,0) 100%);
}
.section--method {
  background: linear-gradient(180deg, rgba(4,6,10,0) 0%, rgba(10,19,36,.66) 36%, rgba(10,19,36,.6) 68%, rgba(4,6,10,0) 100%);
}
.section--clients {
  padding-block: clamp(60px, 7vw, 90px);
  background: linear-gradient(180deg, rgba(4,6,10,0) 0%, rgba(8,13,24,.6) 36%, rgba(8,13,24,.55) 70%, rgba(4,6,10,0) 100%);
}
.section--cta {
  padding-block: 0 clamp(60px, 7vw, 90px);
  background: linear-gradient(180deg, rgba(4,6,10,0) 0%, rgba(7,12,22,.6) 45%, rgba(4,6,10,0) 100%);
}

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .62em;
  color: var(--accent-pale);
  text-transform: uppercase;
}

.kicker {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
}

.h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: .04em;
  margin: 18px 0 20px;
  color: var(--title);
  text-transform: uppercase;
  text-wrap: balance;
}
.section__head .h2,
.h2--method,
.compliance .h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: .06em;
  line-height: 1.14;
  margin: 0;
}
.h2--method { margin-bottom: clamp(30px, 4vw, 44px); max-width: 620px; }
.compliance .h2 { margin-bottom: 22px; }
.h2--sm { font-size: clamp(26px, 3.4vw, 38px); }

.h3 {
  font-family: var(--display);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: .03em;
  line-height: 1.25;
}

.lead {
  font-size: 14px;
  line-height: 1.8;
  color: var(--body-alt);
  max-width: 520px;
  text-wrap: pretty;
}
.lead--tight { font-size: 13.5px; color: var(--body); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 44px);
}
.section__note {
  max-width: 400px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease;
}

.btn--solid {
  padding: 13px 28px;
  background: var(--btn-face);
  color: var(--btn-ink);
  font-size: 12px;
  letter-spacing: .12em;
}
.btn--solid:hover { background: #ffffff; color: var(--btn-ink); }

.btn--sm {
  padding: 10px 22px;
  font-size: 12.5px;
  letter-spacing: .1em;
}

.btn--ghost {
  padding: 13px 28px;
  border: 1px solid rgba(160, 200, 255, .3);
  color: #cfe0f7;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
}
.btn--ghost:hover { border-color: var(--accent); color: #ffffff; }

.btn--hero {
  padding: 16px 40px;
  background: linear-gradient(180deg, #ffffff, #dbe8fa);
  color: var(--btn-ink);
  font-size: 13px;
  letter-spacing: .2em;
  box-shadow: 0 14px 44px rgba(80, 150, 255, .3);
}
.btn--hero:hover {
  color: var(--btn-ink);
  box-shadow: 0 16px 56px rgba(120, 180, 255, .55);
}

.btn--hero-ghost {
  padding: 16px 40px;
  border: 1px solid rgba(160, 200, 255, .32);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  backdrop-filter: blur(4px);
}
.btn--hero-ghost:hover { border-color: rgba(140, 190, 255, .7); color: #ffffff; }

.btn--cta {
  padding: 15px 34px;
  font-size: 12.5px;
  letter-spacing: .18em;
}

.link-arrow {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  color: #a9c8ee;
  border-bottom: 1px solid rgba(169, 200, 238, .35);
  padding-bottom: 3px;
  transition: color .3s ease, border-color .3s ease;
}
.link-arrow:hover { color: #ffffff; border-bottom-color: rgba(200, 224, 255, .8); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: radial-gradient(115% 85% at 50% 0%, rgba(15,28,54,.62) 0%, rgba(7,12,22,.4) 52%, rgba(4,6,10,0) 100%);
}

.header {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px var(--gutter) 0;
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand__mark { display: block; filter: drop-shadow(0 0 12px rgba(90, 166, 255, .45)); }
.brand__word {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .16em;
  color: #f4f8ff;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav > a:not(.btn) {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: #a9b9d0;
  transition: color .25s ease;
}
.nav > a:not(.btn):hover { color: #ffffff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(12, 20, 36, .6);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: #cfe0f7;
  border-radius: 2px;
}

.hero__body {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
  text-align: center;
}

/* The whole hero lockup is one <h1>; its parts are blocks so they stack
   exactly as they did when they were separate elements. */
.hero__heading {
  margin: 0;
  font-weight: 400;
}
.hero__heading .eyebrow { display: block; }

.hero__title {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(50px, 9vw, 120px);
  line-height: 1;
  letter-spacing: .06em;
  margin: 22px 0 0;
  color: var(--title-bright);
  text-shadow: 0 0 70px rgba(80, 150, 255, .4);
}

.hero__rule {
  display: block;
  width: 190px;
  height: 1px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, rgba(90,166,255,0), rgba(150,200,255,.55) 50%, rgba(90,166,255,0));
}

.hero__tagline {
  display: block;
  max-width: 560px;
  margin: 26px auto 0;
  font-family: var(--sans);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .03em;
  color: #a9bcd6;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

/* ---------- Quiénes somos ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.frame {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--about { height: 420px; }
.frame--method { min-height: 400px; height: 100%; }

.stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat__k {
  font-family: var(--display);
  font-size: 30px;
  color: var(--title);
  letter-spacing: .04em;
}
.stat__v {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: .06em;
}

.about__actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- Servicios ---------- */

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

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 300px;
  padding: 34px 28px 26px;
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  backdrop-filter: blur(3px);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover {
  border-color: rgba(90, 166, 255, .32);
  background: linear-gradient(180deg, var(--panel-hi-a), var(--panel-hi-b));
  box-shadow: inset 0 0 40px rgba(24, 62, 124, .28);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(120, 170, 240, .32);
  background: rgba(20, 40, 75, .5);
  box-shadow: 0 0 22px rgba(70, 140, 240, .16);
}

.card__title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--heading);
  letter-spacing: .03em;
}

.card__body {
  font-size: 12.8px;
  line-height: 1.8;
  color: var(--body);
  max-width: 300px;
  text-wrap: pretty;
}

/* margin-top:auto keeps the rule on the card floor, so it lines up across
   a row of unequal copy lengths. */
.card__tool {
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(140, 180, 240, .1);
  font-size: 11.5px;
  letter-spacing: .01em;
  color: #93a6c0;
}

/* ---------- Método ---------- */

.method {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(300px, 1fr) minmax(260px, 340px);
  gap: 34px;
  align-items: stretch;
}

.phases {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  align-self: start;
  background: rgba(120, 165, 225, .16);
  border-radius: 10px;
  overflow: hidden;
}
.phase {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(12,18,32,.6), rgba(7,11,19,.45));
  transition: background .3s ease;
}
.phase:hover { background: rgba(18, 29, 50, .72); }
.phase__when { font-size: 11.5px; color: var(--muted); }
.phase__title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--subheading);
  margin-top: 7px;
  letter-spacing: .03em;
}
.phase__body {
  font-size: 12px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 6px;
}

.method__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/* ---------- Cumplimiento ---------- */

.compliance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(34px, 4.5vw, 56px);
}
.compliance .lead { max-width: 440px; font-size: 13.5px; color: var(--body); }

.norms {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.norm {
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(12,18,32,.6), rgba(7,11,19,.4));
}
.norm__code {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  color: var(--heading);
  letter-spacing: .06em;
}
.norm__desc {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--dim);
}

.gains { display: flex; flex-direction: column; gap: 14px; }
.gain {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  backdrop-filter: blur(3px);
  transition: border-color .3s ease;
}
.gain:hover { border-color: rgba(90, 166, 255, .4); }
.gain__dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: #4a7fc4;
}
.gain__title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--subheading);
  letter-spacing: .03em;
}
.gain__body {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.7;
}

/* ---------- Clientes ---------- */

.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.client {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  padding: 22px 26px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #eef3fa);
  transition: box-shadow .3s ease;
}
.client:hover {
  box-shadow: 0 0 0 1px rgba(90, 166, 255, .6), 0 10px 34px rgba(90, 166, 255, .22);
}
.client img {
  width: auto;
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  min-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(140, 180, 240, .16);
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,8,16,.94) 0%, rgba(4,8,16,.78) 48%, rgba(6,16,34,.62) 100%);
}
.cta__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: end;
  min-height: 400px;
  padding: clamp(34px, 5vw, 56px) clamp(24px, 4vw, 48px);
}
.cta__kicker { font-size: 13px; color: #a9bcd6; }
.cta__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: .05em;
  line-height: 1.06;
  margin-top: 18px;
  color: var(--title-bright);
  text-transform: uppercase;
}
.cta__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.cta__body {
  font-size: 13.5px;
  line-height: 1.8;
  color: #a9b8ce;
  max-width: 400px;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  padding: 34px var(--gutter);
  background: linear-gradient(180deg, rgba(5,8,15,0) 0%, rgba(5,8,15,.7) 55%, rgba(4,6,10,.9) 100%);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #6d7f99;
  letter-spacing: .04em;
}
.footer__row a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__row a:hover { color: #c3d4ea; }
.footer__brand {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: #c3d4ea;
}

/* ---------- WhatsApp fallback ---------- */

.wa-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
/* Author `display` would otherwise win over the UA rule for [hidden]. */
.wa-note[hidden] { display: none; }
.wa-note__card {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 14px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(180deg, rgba(14,26,48,.97), rgba(7,12,22,.97));
  border: 1px solid rgba(140, 180, 240, .28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  pointer-events: auto;
}
.wa-note__text { flex: none; }
.wa-note__label { font-size: 12.5px; color: #a9bcd6; white-space: nowrap; }
.wa-note__phone {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--title);
  letter-spacing: .06em;
  margin-top: 4px;
  white-space: nowrap;
}
.wa-note__copy {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(160, 200, 255, .3);
  background: transparent;
  color: #cfe0f7;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease;
}
.wa-note__copy:hover { border-color: var(--accent); color: #ffffff; }
.wa-note__close {
  padding: 4px 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.wa-note__close:hover { color: #ffffff; }

/* ============================================================
   Responsive — the source design was authored desktop-only.
   ============================================================ */

@media (max-width: 1080px) {
  .method {
    grid-template-columns: minmax(180px, 260px) minmax(280px, 1fr);
  }
  .method__aside { grid-column: 1 / -1; }
  .frame--method { min-height: 340px; }
}

@media (max-width: 880px) {
  .header__bar { flex-wrap: wrap; position: relative; }
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(12,20,36,.96), rgba(7,12,22,.96));
    backdrop-filter: blur(6px);
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 12px 10px; font-size: 14px; }
  .nav > .btn { margin-top: 8px; }

  .frame--about { height: 300px; }
  .method { grid-template-columns: 1fr; }
  .stats { gap: 28px; }

  /* The CTA copy stacks here, so the scrim has to darken top-to-bottom
     instead of left-to-right. */
  .cta__grid { align-items: start; }
  .cta__scrim {
    background: linear-gradient(180deg, rgba(4,8,16,.94) 0%, rgba(4,8,16,.82) 50%, rgba(6,16,34,.72) 100%);
  }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client { height: 108px; padding: 16px 18px; }
  .about { grid-template-columns: 1fr; }
  .compliance { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .footer__row { justify-content: flex-start; }
  .wa-note__card { gap: 12px; padding: 14px 16px; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
