/* === Global & Reset === */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Corbert', sans-serif;
  color: #fff;
  background: #0a0a0a;
}

/* === Background GIF Blur === */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://media.giphy.com/media/iZXKuPtlTiCOJpeVMX/giphy.gif') center center / cover no-repeat;
  z-index: 0;
  filter: blur(6px) brightness(0.8);
}

/* === Overlay Blur (corregido) === */
#blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  z-index: 1;
  /* Solución clave: permite que los clicks pasen a través */
  pointer-events: none;
}

/* === Spinner === */
#spinner-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.spinner {
  position: relative;
  width: 40px;
  height: 40px;
}
.spinner div {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: spinner-4t3wzl 1.875s infinite backwards;
}
.spinner div:nth-child(1) { animation-delay: 0.15s; background-color: rgba(38,181,183,0.9); }
.spinner div:nth-child(2) { animation-delay: 0.30s; background-color: rgba(38,181,183,0.8); }
.spinner div:nth-child(3) { animation-delay: 0.45s; background-color: rgba(38,181,183,0.7); }
.spinner div:nth-child(4) { animation-delay: 0.60s; background-color: rgba(38,181,183,0.6); }
.spinner div:nth-child(5) { animation-delay: 0.75s; background-color: rgba(38,181,183,0.5); }

@keyframes spinner-4t3wzl {
  0%   { transform: rotate(0deg)   translateY(-200%); }
  60%,100% { transform: rotate(360deg) translateY(-200%); }
}

/* === Hidden helper === */
.hidden {
  display: none;
}

/* === Main Content & Welcome Container === */
#main-content {
  z-index: 3;
}
#welcome-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 90%;
}

/* === Links & Buttons === */
#links-container {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.btn {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 1rem;
  text-decoration: none;
  font-size: 1rem;
  background: rgba(0,0,0,0.4);
  transition: background 0.3s ease;
  color: #fff;
  cursor: pointer; /* Mejor feedback visual */
}
.btn:hover {
  background: rgba(0,0,0,0.6);
}
.btn img {
  height: 1.5rem;
  margin-right: 0.5rem;
}

/* === “Escritura” Animada === */
@keyframes write {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50%      { border-color: #26b5b7; }
}
.animate-write {
  overflow: hidden;
  white-space: nowrap;
  border-right: .15em solid #26b5b7;
  animation: write 2s steps(30, end), blink-caret .75s step-end infinite;
}