@import url('https://fonts.googleapis.com/css2?family=DynaPuff&display=swap');

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes fall {
  0% {
    transform: translateX(0) translateY(-10vh) rotate(0deg);
  }
  50% {
    transform: translateX(20px) translateY(50vh) rotate(180deg);
  }
  100% {
    transform: translateX(-20px) translateY(110vh) rotate(360deg);
  }
}

.logos {
  overflow: hidden;
  background: #EBEBEB;
  white-space: nowrap;
  position: relative;
  
}
.logos:before,
.logos:after {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  content: "";
  z-index: 2;
}
.logos:before {
  left: 0;
  background: linear-gradient(to left, rgba(255,255,255,0), #EBEBEB);
}
.logos:after {
  right: 0;
  background: linear-gradient(to right, rgba(255,255,255,0), #EBEBEB);
}

.logos:hover .logos-slider {
  animation-play-state: paused;
}

.logos-slider {
  display: inline-block;
  animation: 25s slide infinite linear;
}

.logos-slider img{
  height: 50px;
  margin: 0 10px 10px 0;
  border-radius: 5px;
}

.snowflake {
  position: absolute;
  top: -100px;
  opacity: 0.8;
  overflow: hidden;
}

#contenedor-texto {
  text-align: center;
  /* Animación de flotar */
  animation: flotar 3s ease-in-out infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  pointer-events: none;
}

#texto-navidad {
  font-family: 'DynaPuff';
  font-size: 5rem;
  color: #2C3740; /* Dorado */
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
  border-right: 3px solid #2C3740; /* Cursor de escritura */
  padding-right: 5px;
}

@keyframes flotar {
    0%, 100% { 
        /* Mantenemos el centrado del transform y sumamos el movimiento */
        transform: translate(-50%, -50%) translateY(0); 
    }
    50% { 
        transform: translate(-50%, -50%) translateY(-25px); 
    }
}

/* Efecto de parpadeo del cursor */
.cursor-animado {
  animation: parpadeo 0.7s infinite;
}

@keyframes parpadeo {
  50% { border-color: transparent; }
}