@charset "UTF-8";

/* ==========================================================================
   1. FUENTES LOCALES Y VARIABLES DE TEMA
   ========================================================================== */
@font-face {
  font-family: 'Nasalization';
  src: url('../fonts/nasalization-rg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #040711;
  --bg-sky: #0b1536;
  --accent-blue: #3b82f6;
  --accent-cyan: #60a5fa;
  --warm-glow: #ffaa44;
  --text-white: #f8fafc;
  --text-muted: #e2e8f0;
}

/* ==========================================================================
   2. REINICIO Y ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-deep);
  font-family: 'Orbitron', 'Space Grotesk', -apple-system, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   3. MARCO PRINCIPAL Y CAPAS DE FONDO
   ========================================================================== */
.splash-frame {
  position: relative;
  width: 100vw;
  width: 100dvw;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-deep);
}

/* Fotografía principal: Observatorio bajo la Vía Láctea */
.splash-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   4. LIENZOS GRÁFICOS (ESTRELLAS 2D Y MODELO 3D DEL TRANSBORDADOR)
   ========================================================================== */
#cosmosCanvas,
#shuttleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#cosmosCanvas {
  z-index: 2;
}

#shuttleCanvas {
  z-index: 4;
}

/* ==========================================================================
   5. IDENTIDAD TIPOGRÁFICA REDFIVE AURORA
   ========================================================================== */
.brand-container {
  position: absolute;
  top: 25%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-white);
  opacity: 0;
  animation: fadeSlideIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  pointer-events: none;
}

.coming-soon-top {
  display: none;
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(-42%) scale(0.98); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

.brand-sub-top {
  font-family: 'Nasalization', 'Orbitron', sans-serif;
  font-size: clamp(0.9rem, 1.55vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.58em;
  margin-right: -0.58em;
  color: #ffffff;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.brand-title {
  font-family: 'Nasalization', 'Orbitron', sans-serif;
  font-size: clamp(3.2rem, 6.2vw, 6.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
  color: #ffffff;
  text-transform: uppercase;
  user-select: none;
}

.brand-sub-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104%;
  margin-left: -2%;
  margin-right: -2%;
  gap: clamp(10px, 1.3vw, 18px);
  margin-top: 1.05rem;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-sub-bottom::before,
.brand-sub-bottom::after {
  content: '';
  flex: 1 1 0;
  height: 1.5px;
  min-width: 18px;
  pointer-events: none;
}

/* Línea izquierda: se desvanece suavemente hacia el borde exterior */
.brand-sub-bottom::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
  box-shadow: 0 0 3px rgba(180, 220, 255, 0.3);
}

/* Línea derecha: se desvanece suavemente hacia el borde exterior */
.brand-sub-bottom::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 0 3px rgba(180, 220, 255, 0.3);
}

.brand-sub-text {
  font-family: 'Nasalization', 'Space Grotesk', sans-serif;
  font-size: clamp(0.52rem, 0.82vw, 0.76rem);
  font-weight: 400;
  letter-spacing: 0.38em;
  margin-right: -0.38em; /* Compensa la separación de la última letra para centrado óptico */
}

/* ==========================================================================
   6. PIE DE PÁGINA (PRÓXIMAMENTE Y CRÉDITOS REDFIVE AGENCY)
   ========================================================================== */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  padding-top: 48px;
  padding-left: clamp(28px, 5vw, 64px);
  padding-right: clamp(28px, 5vw, 64px);
  background: linear-gradient(to top, rgba(4, 7, 17, 0.90) 0%, rgba(4, 7, 17, 0.40) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  box-sizing: border-box;
}

.coming-soon {
  font-family: 'Nasalization', 'Orbitron', sans-serif;
  font-size: clamp(0.72rem, 1.05vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.45em;
  margin-right: -0.45em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInBottom 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  pointer-events: none;
  user-select: none;
}

.powered-by-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.75rem, 0.92vw, 0.9rem);
  text-decoration: none;
  pointer-events: auto;
  user-select: none;
  opacity: 0;
  animation: fadeInBottom 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
  line-height: 1;
}

.powered-by-brand:hover {
  transform: translateY(-1px);
}

.powered-text {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.powered-company {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
}

.powered-highlight {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  transition: text-shadow 0.25s ease;
}

.powered-sub {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.16em;
  margin-left: 0.04em;
  transition: color 0.25s ease;
}

.powered-by-brand:hover .powered-highlight {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.powered-by-brand:hover .powered-sub {
  color: rgba(255, 255, 255, 0.88);
}

@keyframes fadeInBottom {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. ADAPTACIÓN RESPONSIVA (MÓVILES Y PANTALLAS PEQUEÑAS)
   ========================================================================== */
@media (max-width: 900px) {
  .brand-container {
    top: 17%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
  }

  .coming-soon-top {
    display: block;
    font-family: 'Nasalization', 'Orbitron', sans-serif;
    font-size: clamp(0.68rem, 2.7vw, 0.92rem);
    font-weight: 400;
    letter-spacing: 0.52em;
    margin-right: -0.52em;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    text-align: center;
    user-select: none;
    text-shadow: 0 0 12px rgba(180, 220, 255, 0.35);
  }

  .coming-soon-footer {
    display: none;
  }

  .brand-title {
    font-size: clamp(2.4rem, 11vw, 4.2rem);
  }

  .brand-sub-top {
    font-size: clamp(0.75rem, 3.2vw, 1.1rem);
  }

  .brand-sub-text {
    font-size: clamp(0.48rem, 2.2vw, 0.72rem);
    letter-spacing: 0.32em;
    margin-right: -0.32em;
  }

  /* Posicionamiento y difuminado suave inferior para móviles */
  .site-footer {
    bottom: 0;
    padding-bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    padding-top: 54px;
    padding-left: clamp(20px, 5.5vw, 32px);
    padding-right: clamp(20px, 5.5vw, 32px);
    background: linear-gradient(to top, rgba(4, 7, 17, 0.95) 0%, rgba(4, 7, 17, 0.55) 60%, transparent 100%);
    justify-content: center;
    gap: 12px;
  }

  .coming-soon {
    font-size: clamp(0.68rem, 2.7vw, 0.9rem);
  }

  /* Tipografía limpia y ligera, sin cajas ni bordes pesados */
  .powered-by-brand {
    font-size: clamp(0.74rem, 3.1vw, 0.88rem);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.9);
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  @keyframes fadeSlideIn {
    0% { opacity: 0; transform: translate(-50%, -42%) scale(0.98); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }
}
