/* Custom animations */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #312E81;
}

::-webkit-scrollbar-thumb {
    background: #EC4899;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FCD34D;
}

/* Card hover effect */
.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
}

/* Category button active state */
.cat-btn.active {
    background: #312E81;
    color: #FCD34D;
    border: 2px solid #EC4899;
    box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.35);
}

.cat-btn.active i {
    color: white !important;
}

/* FAQ animation */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content:not(.hidden) {
    max-height: 200px;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

/* Toast animation */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.toast-enter {
    animation: slideIn 0.3s ease forwards;
}

.toast-exit {
    animation: slideOut 0.3s ease forwards;
}

/* Radio button styling for checkout */
input[type="radio"]:checked + div + div p:first-child {
    color: #FCD34D;
}


/* Password strength colors */
.strength-weak { background-color: #ef4444; }
.strength-fair { background-color: #f59e0b; }
.strength-good { background-color: #3b82f6; }
.strength-strong { background-color: #22c55e; }

/* Payment method labels */
label:has(input[type="radio"]:checked) {
    border-color: #EC4899 !important;
    background-color: rgba(49, 46, 129, 0.15) !important;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Pulse animation for payment processing */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.pulse-ring {
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Image loading placeholder */
.course-img {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid #EC4899;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Badge pulse */
.badge-new::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #FCD34D;
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-out infinite;
}
#btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: block;
}

#btn-whatsapp img,
#btn-whatsapp svg {
    border: 2px solid #EC4899;
    border-radius: 9999px;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}
body {
    background-color: #312E81;
    color: #FFFFFF;
}
/* ====================================
   LOGO SUPERIOR IZQUIERDO
==================================== */

.logo-fixed{
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

.logo-fixed img{
    width: 170px;
    height: auto;
    display: block;
    object-fit: contain;
}