/* Animaciones */
.page-transition {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-transition.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes shine {
    from {
        box-shadow: 0 0 10px rgba(134, 255, 245, 0.7);
    }
    to {
        box-shadow: 0 0 20px rgba(134, 255, 245, 1);
    }
}

/* Botón volver arriba */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 99999;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
}

/* ========================
   🎬 ANIMACIONES CARRITO JS
======================== */

/* Animación de entrada */
@keyframes carritoSlideInDesktop {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes carritoSlideInMobile {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animación de salida */
@keyframes carritoSlideOutDesktop {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes carritoSlideOutMobile {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Select cambiado */
.select-metodo-animado.changed {
    animation: selectPulse 0.4s ease;
}

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