/* ============================
   NASA Web 2025 - Global Styles
   Autor: Luis Jerónimo Loera Moreno
   Descripción: Hoja de estilo base para todas las páginas.
===============================*/

/* --- Variables globales --- */
:root {
  --color-bg: #030b1a;
  --color-primary: #1f6feb;
  --color-accent: #7ed6df;
  --color-light: #eaf6ff;
  --color-text: #ffffff;
  --color-shadow: rgba(0, 0, 0, 0.4);

  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* --- Reset general --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

/* --- Estructura general --- */
main {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Encabezados y textos --- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  color: var(--color-accent);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  color: var(--color-light);
}

/* --- Botones universales --- */
button, .btn {
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

button:hover, .btn:hover {
  background-color: var(--color-accent);
  transform: scale(1.05);
}

/* --- Enlaces --- */
a {
  text-decoration: none;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

/* --- Imágenes --- */
img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
}

/* --- Fondo animado (si se usa stage) --- */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-bg);
  background-size: cover;
  background-position: center;
}

/* --- Tarjetas, contenedores generales --- */
.card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 25px var(--color-shadow);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

/* --- Efectos de aparición --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsividad --- */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
