/* estilos.css */

/* Colores personalizados de Sallecoin */
:root {
    --sallecoin-blue: #3B82F6;
    --sallecoin-green: #34D399;
    --sallecoin-yellow: #FBBF24;
    --sallecoin-dark: #1F2937;
    --sallecoin-light: #F1F5F9;
    --sallecoin-orange: #F97316;
}

/* Clases de colores personalizadas */
.bg-sallecoin-blue {
    background-color: var(--sallecoin-blue) !important;
}

.bg-sallecoin-green {
    background-color: var(--sallecoin-green) !important;
}

.bg-sallecoin-yellow {
    background-color: var(--sallecoin-yellow) !important;
}

.bg-sallecoin-dark {
    background-color: var(--sallecoin-dark) !important;
}

.text-sallecoin-blue {
    color: var(--sallecoin-blue) !important;
}

.text-sallecoin-green {
    color: var(--sallecoin-green) !important;
}

.text-sallecoin-yellow {
    color: var(--sallecoin-yellow) !important;
}

.text-sallecoin-dark {
    color: var(--sallecoin-dark) !important;
}

.border-sallecoin-blue {
    border-color: var(--sallecoin-blue) !important;
}

.border-sallecoin-yellow {
    border-color: var(--sallecoin-yellow) !important;
}

/* Focus states */
.focus\:ring-sallecoin-blue:focus {
    --tw-ring-color: var(--sallecoin-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.focus\:border-transparent:focus {
    border-color: transparent;
}

/* Hover effects */
.hover\:bg-blue-600:hover {
    background-color: #2563EB;
}

.hover\:text-blue-600:hover {
    color: #2563EB;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Animaciones personalizadas */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { 
        transform: translateY(20px); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes bounce-slow {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Clases de animación */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite;
}

/* Configuración de fuente para Tailwind */
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Estilos adicionales para compatibilidad */
.transition-all {
    transition: all 0.3s ease;
}

.transform {
    transform: translateZ(0);
}

.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-body { font-family: 'DM Sans', sans-serif; }

.animated-bg {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

.input-glow:focus {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--sallecoin-blue) 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before { left: 100%; }

.fade-in-up { animation: fadeInUp 0.8s ease-out; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.ripple { position: relative; overflow: hidden; }
.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.ripple:active::after { width: 300px; height: 300px; }

.icon-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.geometric-bg {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: rotate(270deg);
    }
}
