/* ------------------- Animaciones generales ------------------- */

/* Fade Up */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeUp {
  animation: fadeUp 0.8s ease forwards;
}

/* Fade In */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

/* Scale In */
@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scaleIn {
  animation: scaleIn 0.8s ease forwards;
}

/* ------------------- Login/Register ------------------- */

/* Shake en errores */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.4s;
}

/* Pulse al click */
@keyframes pulse-click {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

.button-click:active {
  animation: pulse-click 0.2s;
}

/* Toasts */
@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Bottom Toasts */
@keyframes toastInBottom {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOutBottom {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.toast-show {
  animation: toastIn 0.4s forwards;
}

.toast-hide {
  animation: toastOut 0.4s forwards;
}

.toast-bottom-show {
  animation: toastInBottom 0.4s forwards;
}

.toast-bottom-hide {
  animation: toastOutBottom 0.4s forwards;
}

/* ------------------- Index especiales ------------------- */

/* Shine para hero text */
@keyframes shine {
  0% {
    background-position: 100% 0%;
  }

  50% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 100% 0%;
  }
}

.animate-shine {
  background: linear-gradient(-60deg, #22d3ee 0%, #3b82f6 30%, #a855f7 60%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: shine 6s ease-in-out infinite;
  padding-right: 4px;
  padding-bottom: 8px;
  display: inline-block;
}

/* ------------------- Estrellas ------------------- */

/* Animación para el clic en las estrellas */
@keyframes starClick {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3) rotate(15deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.star-clicked {
  animation: starClick 0.4s ease-in-out;
}

/* ------------------- Clases de visibilidad inicial ------------------- */
.fade-up,
.fade-in,
.scale-in {
  opacity: 0;
}

.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: all 0.8s ease;
}

/* ------------------- Animaciones para Reseñas ------------------- */

/* Hover en tarjetas de reseñas */
.review-card {
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.3);
}

/* Animación de like (corazón que late) */
@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  10%,
  30% {
    transform: scale(1.3);
  }

  20%,
  40% {
    transform: scale(1.1);
  }
}

.like-animation {
  animation: heartBeat 0.6s ease;
}

/* Fade in para modal de comentarios */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-show {
  animation: modalFadeIn 0.3s ease forwards;
}

/* Animación de pulso para botones */
@keyframes commentPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.btn-comment:hover {
  animation: commentPulse 0.6s ease infinite;
}

.btn-like:hover {
  animation: commentPulse 0.6s ease infinite;
}

/* ------------------- Scrollbar Personalizado ------------------- */

/* Scrollbar para descripciones de rese�as y comentarios */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #4B5563 #1F2937;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #1F2937;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #4B5563;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #6B7280;
}

/* ------------------- Carrusel de Reseñas ------------------- */

/* Animación de fade para transiciones del carrusel */
@keyframes carouselFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes carouselFadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.carousel-fade-in {
  animation: carouselFadeIn 0.3s ease forwards;
}

.carousel-fade-out {
  animation: carouselFadeOut 0.15s ease forwards;
}

/* Indicadores del carrusel */
.carousel-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  transform: scale(1.2);
}