/* Google Font Outfit now in header.html */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background: radial-gradient(circle at center, #0a1220 0%, #05070d 100%);
  overflow:hidden;
  /* font-family inherit from base.css */
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.5s ease;
}

/* Efecto de luz ambiental pulsante */
body::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(0, 162, 255, 0.05) 0%, transparent 60%);
  animation: pulseGlow 8s infinite alternate;
  pointer-events: none;
}

@keyframes pulseGlow {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1.1); opacity: 0.8; }
}

canvas{
  position:fixed;
  top:0;
  left:0;
  z-index: 1;
}

.content{
  position: relative;
  z-index: 10;
  max-width: 90vw;
  padding: 2px; /* Grosor del borde neón */
  border-radius: 30px;
  overflow: hidden;
  
  /* Mantener oculto hasta que las partículas formen el logo */
  opacity: 0;
  transition: opacity 2s ease;
  
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* EL EFECTO DE RAYO NEÓN / ENERGÍA */
.content::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(
    from 0deg,
    transparent 70%,
    #00cfff 90%,
    #00cfff 100%
  );
  animation: rotateNeon 4s linear infinite;
  z-index: 1;
}

@keyframes rotateNeon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.content-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  padding: 40px;
  border-radius: 28px;
  background: rgba(5, 7, 13, 0.9);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Brillo digital shimmer (ahora dentro de content-inner) */
.content-inner::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 55%
  );
  animation: shimmer 12s infinite linear;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translate(-30%, -30%); }
  100% { transform: translate(30%, 30%); }
}

#finalText{
  /* font-family inherit from base.css (Outfit via H1) */
  font-weight: 600;
  font-size: clamp(2.8rem, 12vw, 100px);
  line-height: 1;
  letter-spacing: clamp(4px, 2.5vw, 12px);
  color: #ffffff;
  /* Brillo multicapa */
  text-shadow: 0 0 10px rgba(0, 162, 255, 0.8),
               0 0 20px rgba(0, 162, 255, 0.4),
               0 0 40px rgba(0, 162, 255, 0.2);
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 15px;
}

.tagline {
  color: #94a3b8;
  /* font-family inherit from base.css */
  font-weight: 300;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: 2px;
  margin-top: 10px;
  padding: 15px 30px;
  display: inline-block;
  position: relative;
  
  /* Animación progresiva más fluida */
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 2s ease 0.5s, 
              transform 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
}

/* Líneas decorativas tecnológicas */
.tagline::before, .tagline::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00cfff, transparent);
  left: 50%;
  transform: translateX(-50%);
}

.tagline::before { top: 0; }
.tagline::after { bottom: 0; }

@media (min-width: 768px) {
  .content-inner {
    padding: 60px 80px;
  }
  .tagline {
    margin-top: 20px;
    letter-spacing: 4px;
  }
}

@media (min-width: 768px) {
  .tagline {
    margin-top: 40px;
    letter-spacing: 1.5px;
  }
}