/* ==========================
ESTILOS GLOBALES
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

body.bg-purple {
background-color: #0b0033;
color: white;
font-family: 'Poppins', sans-serif;
overflow-x: hidden;
position: relative;
}

/* ==========================
PRELOADER
========================== */
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: black;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
z-index: 9999;
overflow: hidden;
}

#preloader canvas#stars {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

#preloader .preloader-content {
position: relative;
z-index: 10;
}

#preloader-text {
position: relative;
font-size: 3rem;
color: white;
z-index: 2;
opacity: 0;
animation: fadeIn 2s forwards;
letter-spacing: 3px;
text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

#preloader-text.warp {
animation: warpText 2s ease-in-out forwards;
}

.fade-out {
animation: fadeOut 1s forwards;
}

/* Animaciones del preloader */
@keyframes fadeIn {
0% { opacity: 0; transform: scale(0.5); }
100% { opacity: 1; transform: scale(1); }
}

@keyframes warpText {
0% { letter-spacing: 3px; transform: scale(1); opacity: 1; }
50% { letter-spacing: 20px; transform: scale(1.3); opacity: 0.8; }
100% { letter-spacing: 100px; transform: scale(3); opacity: 0; }
}

@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; visibility: hidden; }
}

/* ==========================
NAVBAR / ENCABEZADO
========================== */
.custom-navbar {
position: absolute;
top: 20px;
left: 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 50px;
z-index: 100;
}

.brand-logo img {
width: 160px;
}

.eslogan h2 {
font-size: 1.2rem;
color: #00ffff;
font-weight: bold;
letter-spacing: 2px;
text-align: right;
}

/* ==========================
MENÚ RESPONSIVO
========================== */
.menu-toggle {
display: none;
cursor: pointer;
color: white;
text-align: center;
}

.navbar-links ul {
list-style: none;
display: flex;
gap: 20px;
}

.navbar-links a {
text-decoration: none;
color: white;
transition: color 0.3s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
color: #00bfff;
}

.btn-request {
background: #00bfff;
color: white;
padding: 10px 20px;
border-radius: 30px;
text-decoration: none;
transition: background 0.3s;
}

.btn-request:hover {
background: #0088cc;
}

/* Responsive */
@media (max-width: 768px) {
.navbar-links {
display: none;
flex-direction: column;
align-items: center;
background: rgba(0, 0, 0, 0.9);
position: absolute;
top: 100%;
left: 0;
width: 100%;
z-index: 101;
}

.navbar-links.show {
display: flex;
}

.menu-toggle {
display: block;
}

.navbar-links ul {
flex-direction: column;
gap: 15px;
}
}

/* ==========================
SECCIÓN SERVICIOS / PLANES
========================== */
section.services {
padding: 80px 20px;
background-color: rgba(15, 19, 42, 0.65);
color: #E0E0E0;
text-align: center;
border-top: 2px solid #00FFAB;
border-bottom: 2px solid #00FFAB;
position: relative;
z-index: 110;
}

.section-title h2 {
color: #00FFAB;
font-size: 32px;
margin-bottom: 10px;
}

.section-title p {
color: #00C2FF;
font-size: 18px;
margin-bottom: 50px;
font-weight: 400;
}

.row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
}

.plan-container {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 15px;
padding: 25px;
width: 300px;
color: white;
transition: transform 0.3s ease, background 0.3s ease;
}

.plan-container:hover {
transform: translateY(-10px);
background: rgba(0, 0, 0, 0.5);
}

.plan-title {
font-size: 1.8em;
margin-bottom: 10px;
color: #00bfff;
}

.plan-price {
font-size: 1.5em;
font-weight: bold;
margin-bottom: 15px;
}

.plan-subtitle {
font-size: 0.9em;
color: #ccc;
margin-bottom: 20px;
}

.plan-features {
text-align: left;
margin-bottom: 20px;
padding-left: 20px;
}

.plan-features li {
margin-bottom: 8px;
}

/* ==========================
OBJETOS ANIMADOS
========================== */
.nave-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
}

.nave {
position: absolute;
top: 5%;
left: 320%;
width: 320px;
transform: rotate(25deg);
animation: nave-warp 30s linear infinite;
pointer-events: none;
z-index: 105;
}

@keyframes nave-warp {
0%   { top: 5%; left: 50%; transform: rotate(25deg) scale(1); opacity: 0.8; }
25%  { transform: rotate(25deg) scale(1.2); opacity: 0.9; }
50%  { transform: rotate(25deg) scale(1.4); opacity: 1; }
75%  { transform: rotate(25deg) scale(1.2); opacity: 0.9; }
100% { top: 90%; left: -100px; transform: rotate(25deg) scale(1); opacity: 0.8; }
}

.object_earth {
position: absolute;
top: 20%;
left: 15%;
z-index: 90;
animation: spin-earth 60s linear infinite;
pointer-events: none;
}

.object_moon {
position: absolute;
top: 10%;
left: 23%;
z-index: 95;
animation: orbit-moon 40s linear infinite;
pointer-events: none;
}

@keyframes spin-earth {
0% { transform: rotate(0deg); }
100% { transform: rotate(-360deg); }
}

@keyframes orbit-moon {
0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

/* ==========================
ASTRONAUTA / CONTACTO
========================== */
.box_astronaut {
position: absolute;
top: 85%;
right: 20%;
z-index: 110;
animation: move-astronaut 50s infinite linear both alternate;
}

.object_astronaut {
animation: rotate-astronaut 200s infinite linear both alternate;
}

@keyframes move-astronaut {
0% { transform: translate(0,0); }
100% { transform: translate(-160px,-160px); }
}

@keyframes rotate-astronaut {
0% { transform: rotate(0deg); }
100% { transform: rotate(-720deg); }
}

.btn-contacto {
display: inline-block;
margin-top: 10px;
padding: 8px 18px;
border: 2px solid #00FFAB;
background-color: transparent;
color: #00FFAB;
font-weight: bold;
font-size: 14px;
border-radius: 25px;
text-transform: uppercase;
text-decoration: none;
transition: all 0.3s ease;
}

.btn-contacto:hover {
background-color: rgba(0, 255, 171, 0.1);
box-shadow: 0 0 10px rgba(0, 255, 171, 0.3);
transform: scale(1.05);
}

/* ===== ESTRELLAS BRILLANTES (versión final: fondo detrás del logo y contenido) ===== */

.glowing_stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0; /* 🔹 detrás de todo el contenido visible */
}

.star {
  position: absolute;
  display: block;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: glow 2s infinite ease-in-out;
}

/* Distribución sobre toda la pantalla */
.star:nth-child(1)  { top: 5vh;  left: 10vw; animation-delay: 0s; }
.star:nth-child(2)  { top: 15vh; left: 25vw; animation-delay: 0.2s; }
.star:nth-child(3)  { top: 20vh; left: 80vw; animation-delay: 0.4s; }
.star:nth-child(4)  { top: 35vh; left: 45vw; animation-delay: 0.6s; }
.star:nth-child(5)  { top: 50vh; left: 70vw; animation-delay: 0.8s; }
.star:nth-child(6)  { top: 60vh; left: 15vw; animation-delay: 1s; }
.star:nth-child(7)  { top: 75vh; left: 30vw; animation-delay: 1.2s; }
.star:nth-child(8)  { top: 85vh; left: 60vw; animation-delay: 1.4s; }
.star:nth-child(9)  { top: 90vh; left: 85vw; animation-delay: 1.6s; }
.star:nth-child(10) { top: 40vh; left: 90vw; animation-delay: 1.8s; }
.star:nth-child(11) { top: 10vh; left: 55vw; animation-delay: 2s; }
.star:nth-child(12) { top: 25vh; left: 5vw;  animation-delay: 2.2s; }
.star:nth-child(13) { top: 30vh; left: 65vw; animation-delay: 2.4s; }
.star:nth-child(14) { top: 55vh; left: 35vw; animation-delay: 2.6s; }
.star:nth-child(15) { top: 65vh; left: 50vw; animation-delay: 2.8s; }
.star:nth-child(16) { top: 75vh; left: 80vw; animation-delay: 3s; }
.star:nth-child(17) { top: 85vh; left: 25vw; animation-delay: 3.2s; }
.star:nth-child(18) { top: 95vh; left: 40vw; animation-delay: 3.4s; }
.star:nth-child(19) { top: 45vh; left: 10vw; animation-delay: 3.6s; }
.star:nth-child(20) { top: 20vh; left: 90vw; animation-delay: 3.8s; }

@keyframes glow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}


/* ==========================
FOOTER
========================== */
.footer-copyright {
margin-top: 40px;
font-size: 0.8em;
color: #ccc;
text-align: center;
padding-bottom: 20px;
}


