/* === IMPORTAR GOOGLE SANS === */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;700&display=swap');



/* CONFIGURACIÓN DEL FONDO LOCAL */
body {
    margin: 0;
    padding: 0;
    min-height: 300vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../img3.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #000;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* LA SOMBRA SOBRE EL FONDO (Vignette) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 95%);
    pointer-events: none;
    z-index: 1;
}

/* Glass Card Container */
.glass-card {
  --bg-color: rgba(255, 255, 255, 0.25);
  --highlight: rgba(255, 255, 255, 0.75);
  --text: #ffffff;
  
  position: relative;
  width: 300px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(1, 0, 51, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* --- BASE DE POSICIÓN PARA TODAS LAS CAPAS --- */
.glass-filter, .glass-filter2,
.glass-overlay, .glass-overlay2,
.glass-specular, .glass-specular2,
.glass-distortion-overlay, .glass-distortion-overlay2 {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Capa 1: El efecto de distorsión */
.glass-filter {
  z-index: 1;
  backdrop-filter: blur(1px);
  filter: url(#glass-distortion) saturate(100%) brightness(1.5);
  will-change: filter;
}

.glass-filter2 {
  z-index: 1;
  backdrop-filter: blur(1px);
  filter: url(#glass-distortion2) saturate(100%) brightness(1.5);
  will-change: filter; /* ⬅️ ESTO ACTIVA LA ACELERACIÓN */
}

/* Capa 2: Color de fondo */
.glass-overlay {
  z-index: 2;
  background: var(--bg-color);
}

.glass-overlay2 {
  z-index: 2;
  background: var(--bg-color);
}

/* Capa 3: Efecto de distorsión flotante */
.glass-distortion-overlay,
.glass-distortion-overlay2 {
  z-index: 3; 
  background: radial-gradient(circle at 20% 30%, rgba(94, 0, 0, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(94, 0, 0, 0.05) 0%, transparent 40%);
  background-size: 300% 300%;
  animation: floatDistort 10s infinite ease-in-out;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Capa 4: El brillo del borde (Specular) */
.glass-specular {
  z-index: 4;
  box-shadow: inset 1px 1px 1px var(--highlight);
  pointer-events: none;
}

.glass-specular2 {
  z-index: 4;
  box-shadow: inset 1px 1px 1px var(--highlight);
  pointer-events: none;
}

/* Capa 5: Contenido */
.glass-content {
  position: relative;
  z-index: 5;
  padding: 20px;
  color: var(--text);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* === JERARQUÍA TIPOGRÁFICA === */
.glass-content h1 {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.98);
}

.glass-content h2 {
  font-family: 'Google Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.96);
}

.glass-content h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.95);
}

.glass-content h4 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.93);
}

.glass-content p {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.glass-content .subtitle {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.5;
  margin: 0.5rem 0 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.glass-content .caption {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin: 0.25rem 0 0 0;
  color: rgba(255, 255, 255, 0.7);
}

/* === NAVBAR CON OPACIDAD CORREGIDA === */
.glassnavbar {
  --bg-color: rgba(255, 255, 255, 0.12); /* ⬅️ REDUCIDO de 0.25 a 0.12 */
  --highlight: rgba(255, 255, 255, 0.75);
  --text: #ffffff;

  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 2000px;
  height: 60px;
  border-radius: 15px;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(1, 0, 51, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-content {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 100%;
  color: var(--text);
  font-family: 'Google Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.logo {
  display: flex;
  align-items: center; /* Ya está centrado verticalmente ✅ */
  gap: 15px;
  height: 100%; /* ⬅️ OCUPA TODO EL ALTO DE LA NAVBAR */
}

.logo img {
  height: 100%; /* ⬅️ SE AJUSTA AL CONTENEDOR */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.logo-text .nebula {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.98);
  text-transform: uppercase;
}

.logo-text .systems {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Google Sans', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
}

/* Animación de distorsión flotante */
@keyframes floatDistort {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  .glass-card {
    --bg-color: rgba(0, 0, 0, 0.25);
    --highlight: rgba(255, 255, 255, 0.15);
  }
  
  .glassnavbar {
    --bg-color: rgba(0, 0, 0, 0.12); /* También ajustado para modo oscuro */
  }
}

/* === RESPONSIVE DESIGN === */

/* 📱 MÓVILES (hasta 768px) */
@media (max-width: 768px) {
  .glassnavbar {
    width: 98%;
    height: 55px;
    top: 10px;
    border-radius: 12px;
  }
  
  .logo {
    height: 40px; /* Logo más pequeño */
  }
  
  .nav-content {
    padding: 0 15px; /* Menos padding */
  }
  
  .nav-links {
    gap: 15px; /* Menos espacio entre links */
  }
  
  .nav-links a {
    font-size: 0.8rem; /* Texto más chico */
  }
  
  /* Card más pequeña */
  .glass-card {
    width: 90%;
    max-width: 350px;
    height: 180px;
  }
  
  .glass-content h3 {
    font-size: 1.2rem;
  }
  
  .glass-content p {
    font-size: 0.85rem;
  }
}

/* 📱 MÓVILES MUY PEQUEÑOS (hasta 480px) */
@media (max-width: 480px) {
  .glassnavbar {
    height: 50px;
    width: 100%;
    top: 0;
    border-radius: 0 0 15px 15px; /* Solo bordes abajo */
  }
  
  .logo {
    height: 35px;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .nav-links a {
    font-size: 0.75rem;
  }
  
  .glass-card {
    width: 95%;
    height: 160px;
  }
}

/* 💻 TABLETS (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .logo {
    height: 50px;
  }
  
  .nav-links a {
    font-size: 0.85rem;
  }
}