/* ===================================================
   Novaxy Digital — Shared Styles
   Theme: Light Universe
   Font: Sora (ExtraBold 800 · SemiBold 600 · Regular 400)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;800&display=swap');

/* ── Variables ──────────────────────────────────── */
:root {
  /* Brand gradient — diagonal 45° (bottom-left → top-right) */
  --g1: #4F8BFF;   /* Azul órbita   */
  --g2: #7A5CFF;   /* Violeta órbita */
  --g3: #D07CFF;   /* Rosa órbita   */
  --orbit:      #7B6AE0;  /* Órbita sólido — impresión y acentos */
  --orbit-deep: #4B3D9E;  /* Órbita profunda — sombras y detalles */
  --dark:       #0D0C22;  /* Noche */

  /* Light theme */
  --bg:        #F9F8FF;
  --bg-white:  #FFFFFF;
  --bg-soft:   #EEE9FF;
  --bg-card:   #FFFFFF;

  /* Text */
  --txt:      #0D0C22;
  --txt-mid:  rgba(13,12,34,.58);
  --txt-soft: rgba(13,12,34,.36);

  /* Borders */
  --border:   rgba(13,12,34,.07);
  --bord-p:   rgba(122,92,255,.22);

  /* Shadows */
  --sh-xs: 0 1px 4px rgba(13,12,34,.04);
  --sh-sm: 0 2px 16px rgba(13,12,34,.06);
  --sh-md: 0 8px 32px rgba(13,12,34,.09);
  --sh-lg: 0 20px 64px rgba(13,12,34,.11);
  --sh-purple: 0 8px 40px rgba(122,92,255,.22);

  /* Radii */
  --r: 20px;
  --r-sm: 12px;
  --r-xs: 8px;

  /* Gradients */
  --grad:     linear-gradient(45deg, var(--g1), var(--g2), var(--g3));
  --grad-135: linear-gradient(45deg, var(--g1), var(--g2), var(--g3));

  --nav-h: 72px;
}

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: linear-gradient(to bottom, #4F8BFF, #7A5CFF, #D07CFF); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover  { background: linear-gradient(to bottom, #7A5CFF, #D07CFF); }
* { scrollbar-width: thin; scrollbar-color: #7A5CFF transparent; }

/* ── Resets ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Sora', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ── Typography ─────────────────────────────────── */
h1, h2, h3 { font-family: 'Sora', sans-serif; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Utilities ──────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--txt);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--txt-mid);
  line-height: 1.8;
  max-width: 540px;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 50px;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .22s, opacity .22s, box-shadow .22s, border-color .22s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
}
.btn-primary:hover { opacity: .86; box-shadow: var(--sh-purple); }

.btn-outline {
  background: transparent;
  color: var(--txt);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--bord-p); box-shadow: var(--sh-sm); }

.btn-ghost {
  background: transparent;
  color: var(--g2);
  padding: 0;
  font-size: .92rem;
  gap: 6px;
}
.btn-ghost .arr { transition: transform .22s; }
.btn-ghost:hover .arr { transform: translateX(4px); }
.btn-ghost:hover { transform: none; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Cards ──────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: var(--bord-p);
}

/* ── Navigation ─────────────────────────────────── */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: background .3s, box-shadow .3s;
}

#navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border), var(--sh-xs);
}

.nav-logo { height: 30px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--txt-mid);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--txt); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.nav-cta-link {
  background: var(--grad) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: .86rem !important;
  transition: opacity .2s, transform .2s !important;
}
.nav-cta-link:hover {
  opacity: .85 !important;
  color: #fff !important;
  transform: translateY(-2px);
}
.nav-cta-link::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: .28s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ─────────────────────────────────────── */
#footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 64px 48px 36px;
}

.footer-wrap { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 52px;
}

.footer-logo { height: 38px; margin-bottom: 18px; }

.footer-desc {
  font-size: .88rem;
  color: var(--txt-mid);
  line-height: 1.75;
  max-width: 240px;
}

.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--txt-soft);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: .88rem;
  color: var(--txt-mid);
  transition: color .2s;
}
.footer-col a:hover { color: var(--g2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: .8rem; color: var(--txt-soft); }

.footer-legal {
  font-size: .8rem;
  color: var(--txt-soft);
  transition: color .2s;
  white-space: nowrap;
}
.footer-legal:hover { color: var(--g2); }

.footer-socials { display: flex; gap: 16px; }

.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-mid);
  font-size: .85rem;
  transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover {
  border-color: var(--bord-p);
  color: var(--g2);
  background: var(--bg-soft);
}

/* ── Page Hero (inner pages) ────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

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

.page-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 18px;
  line-height: 1.08;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--txt-mid);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.78;
}

/* ── Starfield ──────────────────────────────────── */
.star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star-field span {
  position: absolute;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite ease-in-out;
}

/* ── Orbit decorations ──────────────────────────── */
.orbit-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(122,92,255,.07);
  top: 50%; left: 50%;
}

.orbit-ring-1 {
  width: 700px; height: 300px;
  margin-top: -150px; margin-left: -350px;
  transform: rotate(-50.46deg);
}

.orbit-ring-2 {
  width: 700px; height: 300px;
  margin-top: -150px; margin-left: -350px;
  transform: rotate(50.46deg);
}

.orbit-ring-sm-1 {
  width: 400px; height: 170px;
  margin-top: -85px; margin-left: -200px;
  transform: rotate(-50.46deg);
  border-color: rgba(122,92,255,.05);
}

.orbit-ring-sm-2 {
  width: 400px; height: 170px;
  margin-top: -85px; margin-left: -200px;
  transform: rotate(50.46deg);
  border-color: rgba(122,92,255,.05);
}

/* ── Animations ─────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(.8deg); }
  66%       { transform: translateY(-16px) rotate(-.5deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: .06; transform: scale(1); }
  50%       { opacity: .55; transform: scale(1.4); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.12); }
}

.fade-up { animation: fadeUp .65s ease both; }
.fade-up-2 { animation: fadeUp .65s .12s ease both; }
.fade-up-3 { animation: fadeUp .65s .24s ease both; }

/* ── Mobile overlay menu — premium dark edition ─── */
#mob-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 36px 48px;
  background: var(--dark);
  background-image:
    radial-gradient(ellipse at 10% 50%, rgba(122,92,255,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(79,139,255,.10) 0%, transparent 50%);
  /* hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(.98);
  transition:
    opacity .32s cubic-bezier(.4,0,.2,1),
    visibility .32s,
    transform .32s cubic-bezier(.4,0,.2,1);
}
#mob-overlay.mob-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header: logo + close button */
.mob-hdr {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.mob-logo-link { display: flex; align-items: center; }
.mob-logo-link .nav-logo-dark  { display: block; }
.mob-logo-link .nav-logo-light { display: none; }

.mob-close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: background .2s;
}
.mob-close:hover { background: rgba(255,255,255,.14); }
.mob-close span {
  position: absolute;
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  top: 50%; left: 50%;
  margin-left: -9px;
  margin-top: -0.75px;
}
.mob-close span:first-child { transform: rotate(45deg); }
.mob-close span:last-child  { transform: rotate(-45deg); }

/* Numbered nav links */
.mob-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.mob-nav li {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .3s ease, transform .3s ease;
}
#mob-overlay.mob-open .mob-nav li          { opacity: 1; transform: translateX(0); }
#mob-overlay.mob-open .mob-nav li:nth-child(1) { transition-delay: .08s; }
#mob-overlay.mob-open .mob-nav li:nth-child(2) { transition-delay: .14s; }
#mob-overlay.mob-open .mob-nav li:nth-child(3) { transition-delay: .20s; }
#mob-overlay.mob-open .mob-nav li:nth-child(4) { transition-delay: .26s; }

.mob-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: gap .2s ease;
}
.mob-nav li:last-child a { border-bottom: none; }
.mob-nav a:hover { gap: 20px; }
.mob-nav a::after { display: none; }

.mob-num {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(122,92,255,.7);
  letter-spacing: .06em;
  flex-shrink: 0;
  margin-top: 3px;
}
.mob-label {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,.85);
  letter-spacing: -.03em;
  line-height: 1;
  transition: color .2s;
}
.mob-nav a:hover .mob-label,
.mob-nav a.active .mob-label {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CTA button */
.mob-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 50px;
  background: var(--grad);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.01em;
  box-shadow: 0 8px 32px rgba(122,92,255,.35);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease .32s, transform .3s ease .32s, box-shadow .2s, gap .2s;
}
#mob-overlay.mob-open .mob-cta-btn {
  opacity: 1;
  transform: translateY(0);
}
.mob-cta-btn:hover {
  gap: 14px;
  box-shadow: 0 12px 40px rgba(122,92,255,.5);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  #footer { padding: 48px 20px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col a { word-break: break-word; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-logo { height: 34px; }

  .orbit-ring-1, .orbit-ring-2 { width: 360px; height: 155px; margin-top: -77px; margin-left: -180px; }
}
