/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #081f3d, #020b1a);
  color: #ffffff;
  overflow-x: hidden;
}
/* ================= INTRO ================= */
#intro {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: radial-gradient(circle at top, #081f3d, #020b1a);
}
body.ready #intro {
  display: none;
}

.logo-system {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* PLANETA */
.planet-wrapper {
  width: 320px;
  height: 320px;
  position: relative;
}

.planet {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset -40px -40px 80px rgba(0,0,0,.6),
    0 0 80px rgba(0,255,170,.25);
}

.earth-texture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shadow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, transparent 45%, rgba(0,0,0,.65));
}

/* GPS */
.gps-lines {
  position: absolute;
  right: 90px;
  top: 70%;
  width: 90px;
  height: 48px;
  background: repeating-linear-gradient(
    to bottom,
    #00ff7b 0 6px,
    transparent 6px 14px
  );
  opacity: .4;
}

.gps-lines.pulse {
  animation: pulse .8s ease;
}

@keyframes pulse {
  50% {
    opacity: 1;
    box-shadow: 0 0 22px #00ff7b;
  }
}

/* FLASH */
.flash {
  position: absolute;
  right: 80px;
  top: 70%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,170,.8), transparent 65%);
  opacity: 0;
}

.flash.active {
  animation: flash .6s ease;
}

@keyframes flash {
  40% { opacity: 1; }
}

/* ORBIT */
.orbit {
  position: absolute;
  inset: 0;
  animation: orbitMove 4.6s cubic-bezier(.4,0,.2,1) forwards;
}

.bird {
  position: absolute;
  width: 300px;
  top: 50%;
  left: 50%;
  transform:
    translate(-50%, -50%)
    rotate(-180deg)
    translateX(170px)
    rotate(180deg);
}

@keyframes orbitMove {
  from { transform: rotate(-260deg); opacity: 0; }
  15% { opacity: 1; }
  to { transform: rotate(360deg); }
}

/* TEXTO INTRO */
.brand-text {
  margin-top: 24px;
  text-align: center;
}

.brand-text span {
  font-size: 46px;
  letter-spacing: 4px;
  font-weight: 700;
}

.brand-text small {
  color: #00ff7b;
}

.brand-text p {
  margin-top: 6px;
  font-size: 14px;
  opacity: .8;
}

/* ================= HEADER STICKY PREMIUM ================= */
#header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 96px;
  z-index: 1000;

  background: rgba(4, 22, 45, 0.65);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,.08);
}

#header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0,255,123,.12),
      transparent 30%,
      transparent 70%,
      rgba(0,255,123,.12)
    );
  opacity: .25;
  pointer-events: none;
}

/* ================= HEADER INNER ================= */
.header-inner {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= LOGO PREMIUM ================= */
.header-logo {
  display: flex;
  align-items: center;
  margin-left: -200px;
}

.header-logo img {
  height: 300px;
  width: auto;
  filter:
    drop-shadow(0 4px 10px rgba(0,0,0,.45))
    drop-shadow(0 0 14px rgba(0,255,123,.25));
}

/* ================= NAV DESKTOP ================= */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: #e9f1fb;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  opacity: .9;
  transition: color .25s ease, opacity .25s ease;
}

.nav a:hover {
  color: #00ff7b;
  opacity: 1;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ff7b, #7dffb1);
  transition: width .3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* ================= MENU MOBILE ================= */
.burger {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
}

/* PANEL */
.nav.open {
  position: fixed;
  inset: 0;
  background: rgba(2, 11, 26, .96);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  z-index: 1500;
  animation: mobileMenu .4s ease;
}

@keyframes mobileMenu {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ================= BURGER ================= */
.burger{display:none;flex-direction:column;gap:5px;cursor:pointer;}
.burger span{width:25px;height:3px;background:white;}

/* ================= SECTIONS ================= */
main{padding-top:120px;}
.section{
  position:relative;
  min-height:100vh;
  padding:120px 12%;
  overflow:hidden;
}

/* Fondo GPS dinámico */
.section::before{
  content:"";
  position:absolute;
  width:200%;
  height:200%;
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(0,255,123,.05) 0px,
      rgba(0,255,123,.05) 1px,
      transparent 1px,
      transparent 90px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(0,255,123,.04) 0px,
      rgba(0,255,123,.04) 1px,
      transparent 1px,
      transparent 90px
    );
  animation:gridMove 30s linear infinite;
}
@keyframes gridMove{
  from{transform:translate(0,0);}
  to{transform:translate(-90px,-90px);}
}

/* ================= HERO REFINADO ================= */

.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:100px;
  padding-top:60px;
}

/* CONTENIDO TEXTO */
.hero-content{
  max-width:600px;
}

.hero h1{
  font-size:58px;
  line-height:1.18;
  letter-spacing:-0.5px;
  margin-bottom:26px;
  font-weight:700;
}

.hero p{
  font-size:19px;
  opacity:.8;
  margin-bottom:38px;
  max-width:520px;
}

/* BOTÓN MÁS FINO */
.cta-btn{
  display:inline-block;
  padding:14px 30px;
  background:linear-gradient(90deg,#00ff7b,#00c46a);
  color:#001a11;
  font-weight:600;
  text-decoration:none;
  border-radius:50px;
  transition:.3s;
  box-shadow:0 0 18px rgba(0,255,123,.35);
}

.cta-btn:hover{
  transform:translateY(-4px);
  box-shadow:0 0 35px rgba(0,255,123,.6);
}

/* ================= IMAGEN ESTILO CARD TECNOLÓGICA ================= */

.hero-image{
  position:relative;
  width:420px;
  height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translateY(-20px); /* la subimos un poco */
}

/* marco cuadrado elegante */
.hero-image::before{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  border-radius:28px;
  background:linear-gradient(145deg,#0b2a4a,#061a2d);
  box-shadow:
    inset 0 0 60px rgba(0,255,123,.08),
    0 30px 60px rgba(0,0,0,.6);
  z-index:0;
}

/* glow verde controlado */
.hero-image::after{
  content:"";
  position:absolute;
  width:120%;
  height:120%;
  background:radial-gradient(circle, rgba(0,255,123,.25), transparent 60%);
  animation:glowPulse 4s ease-in-out infinite;
  z-index:-1;
}

/* imagen producto */
.hero-image img{
  width:65%;
  position:relative;
  z-index:2;
  animation:float 6s ease-in-out infinite;
}

/* flotación suave */
@keyframes float{
  0%{transform:translateY(0);}
  50%{transform:translateY(-14px);}
  100%{transform:translateY(0);}
}

/* glow animado más sutil */
@keyframes glowPulse{
  0%{opacity:.4;}
  50%{opacity:.8;}
  100%{opacity:.4;}
}
/* ================= RESPONSIVE ================= */
@media(max-width:992px){
  .nav{display:none;}
  .burger{display:flex;}
  .hero{flex-direction:column;text-align:center;}
  .hero-image img{width:85%;}
}

.nav.open{
  position:fixed;
  inset:0;
  background:rgba(2,11,26,.96);
  backdrop-filter:blur(20px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:30px;
}

/* ================= RESPONSIVE ================= */

/* LAPTOP */
@media (max-width: 1200px) {

  .header-logo {
    margin-left: -120px;
  }

  .header-logo img {
    height: 220px;
  }

  .header-inner {
    padding: 0 32px;
  }
}

/* TABLET */
@media (max-width: 992px) {

  #header {
    height: 88px;
  }

  .header-logo {
    margin-left: -60px;
  }

  .header-logo img {
    height: 160px;
  }

  .nav {
    gap: 22px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  #header {
    height: 72px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .header-logo {
    margin-left: 0;
  }

  .header-logo img {
    height: 52px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  main {
    padding-top: 96px;
  }

  .section {
    padding: 80px 24px;
  }

  .hero h1 {
    font-size: 38px;
  }
}