* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  perspective: 1000px;
}

.container {
  width: 100%;
  max-width: 800px;
  text-align: center;
  z-index: 1;
}

.logo-container {
  position: relative;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.logo {
  max-width: 80%;
  max-height: 250px;
  position: absolute;
  transition: all 0.5s ease;
}

.hidden {
  opacity: 0;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

button {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #2c3e50;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #34495e;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 20px;
  background-color: rgba(44, 62, 80, 0.7);
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-block;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer a:hover {
  background-color: rgba(52, 152, 219, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Efectos para los logos */
.rotate {
  animation: rotate 5s infinite linear;
}

.pulse {
  animation: pulse 2s infinite ease-in-out;
}

.shake {
  animation: shake 0.5s infinite;
}

.neon {
  filter: drop-shadow(0 0 5px #3498db) drop-shadow(0 0 10px #3498db)
    drop-shadow(0 0 15px #3498db);
}

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.particle {
  position: absolute;
  background-color: rgba(52, 152, 219, 0.7);
  border-radius: 50%;
  pointer-events: none;
}

.glitch {
  animation: glitch 0.5s infinite;
}

.scale {
  animation: scale 3s infinite alternate;
}

.split {
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.split-bottom {
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

/* Animaciones */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-5px, 5px);
  }
  40% {
    transform: translate(-5px, -5px);
  }
  60% {
    transform: translate(5px, 5px);
  }
  80% {
    transform: translate(5px, -5px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes scale {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.3);
  }
}

.crazy-rotation {
  animation: crazyRotate 3s infinite ease-in-out;
}

@keyframes crazyRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(45deg) scale(1.1);
  }
  50% {
    transform: rotate(-45deg) scale(0.9);
  }
  75% {
    transform: rotate(20deg) scale(1.2);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

.floating {
  animation: floating 3s infinite ease-in-out;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Efecto de fondo */
.color-shift {
  animation: colorShift 10s infinite alternate;
}

@keyframes colorShift {
  0% {
    background-color: #121212;
  }
  25% {
    background-color: #1a237e;
  }
  50% {
    background-color: #311b92;
  }
  75% {
    background-color: #4a148c;
  }
  100% {
    background-color: #121212;
  }
}

/* Estilos para el efecto 4 (B - 3D) */
.perspective-rotate {
  animation: perspective-rotate 8s infinite ease-in-out;
  transform-style: preserve-3d;
}

@keyframes perspective-rotate {
  0% {
    transform: rotateY(0deg) rotateX(0deg) translateZ(20px);
  }
  25% {
    transform: rotateY(20deg) rotateX(10deg) translateZ(30px);
  }
  50% {
    transform: rotateY(-15deg) rotateX(-15deg) translateZ(40px);
  }
  75% {
    transform: rotateY(-20deg) rotateX(5deg) translateZ(30px);
  }
  100% {
    transform: rotateY(0deg) rotateX(0deg) translateZ(20px);
  }
}

.shadow-clone {
  filter: blur(2px);
  opacity: 0.2;
  transform-style: preserve-3d;
}

.particle-3d {
  background-color: #ffffff;
  box-shadow: 0 0 10px 2px rgba(0, 150, 255, 0.8);
  transform-style: preserve-3d;
}

/* Estilos para el efecto 5 (I - Matrix) */
.matrix-bg {
  background-color: #000;
  animation: none;
}

.matrix-drop {
  position: absolute;
  color: #0f0;
  font-family: monospace;
  font-size: 14px;
  text-shadow: 0 0 5px #0f0;
  white-space: nowrap;
  opacity: 0.8;
}

.matrix-glow {
  filter: drop-shadow(0 0 5px #0f0) drop-shadow(0 0 10px #0f0)
    drop-shadow(0 0 15px #0f0);
  animation: matrix-pulse 2s infinite ease-in-out;
}

@keyframes matrix-pulse {
  0%,
  100% {
    opacity: 0.9;
    filter: drop-shadow(0 0 5px #0f0) drop-shadow(0 0 10px #0f0);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px #0f0) drop-shadow(0 0 20px #0f0)
      drop-shadow(0 0 30px #0f0);
  }
}

/* Estilos para el efecto 6 (N - Explosión) */
.logo-fragment {
  position: absolute;
  transition: all 0.5s ease;
}

.zoom-in {
  animation: zoom-in 1s ease-in-out;
}

@keyframes zoom-in {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
