/* ============================================================
   SOARX – Connectivity & Infrastructure
   style.css
   ============================================================ */

:root {
  --soarx-blue:   #1a5f8a;
  --soarx-cyan:   #2e9fd6;
  --soarx-dark:   #040d18;
  --soarx-mid:    #071a2e;
  --soarx-light:  #0a2540;
  --soarx-accent: #00d4ff;
  --soarx-glow:   rgba(0,212,255,0.15);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Exo 2', sans-serif;
  background: var(--soarx-dark);
  color: #c8dff0;
  overflow-x: hidden;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Scanlines */
.scanline {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: background 0.4s, backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(4,13,24,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,212,255,0.15);
}
.nav-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--soarx-accent) !important;
  letter-spacing: 3px;
  text-decoration: none;
}
.nav-brand img {
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.5));
}
.navbar-toggler         { border-color: rgba(0,212,255,0.4); }
.navbar-toggler-icon    { filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg); }
.nav-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: #8ab4cc !important;
  padding: 8px 16px !important;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-link:hover { color: var(--soarx-accent) !important; }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #0a2540 0%, var(--soarx-dark) 70%);
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  background: var(--soarx-accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) translateX(var(--drift)); opacity: 0; }
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.08);
  animation: pulse-ring 4s ease-in-out infinite;
}
.hero-ring:nth-child(1) { width: 500px;  height: 500px;  top: 50%; left: 60%; transform: translate(-50%,-50%); animation-delay: 0s; }
.hero-ring:nth-child(2) { width: 750px;  height: 750px;  top: 50%; left: 60%; transform: translate(-50%,-50%); animation-delay: 1s; }
.hero-ring:nth-child(3) { width: 1000px; height: 1000px; top: 50%; left: 60%; transform: translate(-50%,-50%); animation-delay: 2s; }
@keyframes pulse-ring {
  0%, 100% { opacity: 0.3; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 0.7; transform: translate(-50%,-50%) scale(1.03); }
}

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

.hero-eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 5px;
  color: var(--soarx-cyan);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fade-up 0.8s 0.3s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--soarx-cyan);
  vertical-align: middle;
  margin-right: 10px;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #e8f4ff;
  margin-bottom: 0.4rem;
  opacity: 0;
  animation: fade-up 0.8s 0.5s forwards;
}
.hero-title .accent-x {
  color: var(--soarx-accent);
  text-shadow: 0 0 30px rgba(0,212,255,0.6), 0 0 60px rgba(0,212,255,0.3);
}

.hero-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 4px;
  color: var(--soarx-cyan);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 0.8s 0.7s forwards;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.85;
  color: #7aa3be;
  max-width: 540px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-up 0.8s 0.9s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fade-up 0.8s 1.1s forwards;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 6px 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 2px;
  color: var(--soarx-cyan);
  margin-top: 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s 1.3s forwards;
}
.status-dot {
  width: 6px; height: 6px;
  background: #00ff88;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.hero-logo-img {
  max-width: 360px;
  width: 100%;
  opacity: 0;
  animation: fade-in-logo 1.2s 0.4s forwards;
  filter: drop-shadow(0 0 40px rgba(0,212,255,0.3));
}
@keyframes fade-in-logo {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-soarx {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  padding: 14px 36px;
  border: 1px solid var(--soarx-accent);
  color: var(--soarx-accent);
  background: transparent;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
  cursor: pointer;
}
.btn-soarx::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--soarx-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  z-index: -1;
}
.btn-soarx:hover           { color: var(--soarx-dark); }
.btn-soarx:hover::before   { transform: scaleX(1); }

.btn-soarx-outline {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  padding: 14px 36px;
  border: 1px solid rgba(138,180,204,0.4);
  color: #8ab4cc;
  background: transparent;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.3s, color 0.3s;
}
.btn-soarx-outline:hover { border-color: var(--soarx-accent); color: var(--soarx-accent); }

/* ── SCROLL INDICATOR ─────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fade-up 1s 1.8s forwards;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--soarx-cyan));
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 3px;
  color: rgba(0,212,255,0.4);
  writing-mode: vertical-lr;
}

/* ── SECTION COMMON ───────────────────────────────────────── */
section { position: relative; z-index: 1; }

.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 5px;
  color: var(--soarx-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--soarx-cyan);
  vertical-align: middle;
  margin-right: 10px;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #daeaf8;
  margin-bottom: 1rem;
}

/* ── SERVICES ─────────────────────────────────────────────── */
#servicios {
  padding: 100px 0;
  background: var(--soarx-mid);
}
#servicios::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), transparent);
}

.service-card {
  background: rgba(10,37,64,0.6);
  border: 1px solid rgba(0,212,255,0.1);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--soarx-accent);
  transition: height 0.4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.08);
}
.service-card:hover::after { height: 100%; }

.service-icon   { font-size: 2rem; color: var(--soarx-cyan); margin-bottom: 1.2rem; display: block; }
.service-number {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(0,212,255,0.2);
}
.service-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #c8dff0;
  margin-bottom: 0.75rem;
}
.service-desc { font-size: 0.87rem; color: #5a82a0; line-height: 1.75; }

/* ── NOSOTROS ─────────────────────────────────────────────── */
#nosotros { padding: 100px 0; background: var(--soarx-dark); }

.feature-item  { display: flex; gap: 1rem; margin-bottom: 2rem; }
.feature-icon-box {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(0,212,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--soarx-accent);
  font-size: 1.1rem;
}
.feature-text h6 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.73rem;
  letter-spacing: 1.5px;
  color: #c8dff0;
  margin-bottom: 0.3rem;
}
.feature-text p { font-size: 0.85rem; color: #5a82a0; margin: 0; line-height: 1.7; }

.tech-stack-bar {
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.1);
  padding: 1.75rem;
}
.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.tech-item:last-child { margin-bottom: 0; }
.tech-label { font-family: 'Orbitron', sans-serif; font-size: 0.63rem; letter-spacing: 2px; color: #7aa3be; min-width: 140px; }
.tech-bar-track { flex: 1; height: 3px; background: rgba(0,212,255,0.1); margin: 0 14px; overflow: hidden; }
.tech-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--soarx-blue), var(--soarx-accent));
  width: 0;
  transition: width 1.4s ease-out;
}
.tech-bar-fill.animated { width: var(--w); }
.tech-val { font-family: 'Orbitron', sans-serif; font-size: 0.63rem; color: var(--soarx-accent); min-width: 32px; text-align: right; }

.stat-box {
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.1);
  padding: 1.25rem;
  text-align: center;
}
.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--soarx-accent);
}
.stat-label { font-size: 0.68rem; color: #3a6480; margin-top: 4px; }

/* ── EN CONSTRUCCIÓN ──────────────────────────────────────── */
#construccion {
  padding: 90px 0;
  background: var(--soarx-mid);
  text-align: center;
  overflow: hidden;
}
#construccion::before, #construccion::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}
#construccion::before { top: 0; }
#construccion::after  { bottom: 0; }

.scanner-wrap {
  position: relative;
  width: 180px; height: 180px;
  margin: 0 auto 2.5rem;
}
.scanner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.3);
  animation: spin-ring 6s linear infinite;
}
.scanner-ring:nth-child(2) { inset: 22px; animation-direction: reverse; animation-duration: 4s; }
.scanner-ring::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 7px; height: 7px;
  background: var(--soarx-accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--soarx-accent);
}
@keyframes spin-ring { to { transform: rotate(360deg); } }
.scanner-core {
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.scanner-core i { font-size: 1.8rem; color: var(--soarx-accent); animation: blink 2s ease-in-out infinite; }

.construction-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 700;
  color: #c8dff0;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.construction-desc {
  font-size: 0.95rem;
  color: #5a82a0;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.85;
}

/* ── CONTACTO ─────────────────────────────────────────────── */
#contacto { padding: 100px 0; background: var(--soarx-dark); }

.contact-card {
  background: rgba(7,26,46,0.8);
  border: 1px solid rgba(0,212,255,0.12);
  padding: 2.5rem;
  height: 100%;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon-box {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border: 1px solid rgba(0,212,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--soarx-accent);
}
.contact-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 3px;
  color: var(--soarx-cyan);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.contact-value          { font-size: 0.95rem; color: #c8dff0; }
.contact-value a        { color: #c8dff0; text-decoration: none; transition: color 0.3s; }
.contact-value a:hover  { color: var(--soarx-accent); }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.35);
  color: #25d366;
  padding: 13px 30px;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 2px;
  transition: background 0.3s, box-shadow 0.3s;
  margin-top: 1rem;
}
.whatsapp-btn:hover {
  background: rgba(37,211,102,0.18);
  box-shadow: 0 0 24px rgba(37,211,102,0.18);
  color: #25d366;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: rgba(4,13,24,0.98);
  border-top: 1px solid rgba(0,212,255,0.1);
  padding: 2.5rem 0;
}
.footer-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--soarx-accent);
  letter-spacing: 4px;
}
.footer-copy  { font-size: 0.76rem; color: #2e5068; margin-top: 5px; }
.footer-links a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #2e5068;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--soarx-accent); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.aos-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.aos-item.visible        { opacity: 1; transform: none; }
.aos-delay-1 { transition-delay: 0.1s; }
.aos-delay-2 { transition-delay: 0.2s; }
.aos-delay-3 { transition-delay: 0.3s; }
.aos-delay-4 { transition-delay: 0.4s; }

/* ── HERO GRAPHIC ─────────────────────────────────────────── */
.hero-graphic {
  opacity: 0;
  animation: fade-in-logo 1.2s 0.4s forwards;
}
.hero-svg {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 0 28px rgba(0,212,255,0.25));
}

/* Spinning ring */
.spin-cw {
  transform-origin: 160px 160px;
  animation: spin-cw 18s linear infinite;
}
@keyframes spin-cw { to { transform: rotate(360deg); } }

/* Draw-on lines */
.draw-line {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: draw 1.2s 0.6s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Orbiting dot */
.orbit-dot {
  transform-origin: 160px 160px;
  animation: orbit 6s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-ring { display: none; }
}
@media (max-width: 576px) {
  .tech-label { min-width: 110px; font-size: 0.55rem; }
  .footer-links { margin-top: 1rem; }
  .footer-links a { margin-left: 12px; margin-right: 0; }
}
