/* Custom Tailwind classes for modern features */
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.10); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.40); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.20); }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.20); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.20); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.30); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.30); }
.border-green-500\/30 { border-color: rgba(34, 197, 94, 0.30); }
.text-white\/60 { color: rgba(255, 255, 255, 0.60); }
.placeholder-white\/60::placeholder { color: rgba(255, 255, 255, 0.60); }
.focus\:ring-white\/50:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.50); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

/* App background styles */
.app-background {
    display: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Bubble sizes */
.bubble-small { width: 45px; height: 45px; }
.bubble-medium { width: 60px; height: 60px; }
.bubble-large { width: 80px; height: 80px; }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.rounded-2xl { border-radius: 1rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.text-blue-100 { color: #dbeafe; }
.text-red-100 { color: #fee2e2; }
.text-green-100 { color: #dcfce7; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.focus\:border-transparent:focus { border-color: transparent; }
.transform { transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Animation utilities */
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading screen styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 35%, #0f0f23 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    animation: aurora 8s ease-in-out infinite alternate;
}

@keyframes aurora {
    0% { transform: rotate(0deg) scale(1); opacity: 0.7; }
    100% { transform: rotate(5deg) scale(1.1); opacity: 0.9; }
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loading-icon {
    position: relative;
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    }
}

.loading-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.loading-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.loading-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation: loading-pulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.loading-dot:nth-child(1) { animation-delay: 0s; }
.loading-dot:nth-child(2) { animation-delay: 0.3s; }
.loading-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes loading-pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
}

.loading-progress {
    margin-top: 24px;
    text-align: center;
}

.progress-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: progress-fill 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

@keyframes progress-fill {
    0% { width: 20%; transform: translateX(-100%); }
    50% { width: 80%; transform: translateX(0%); }
    100% { width: 100%; transform: translateX(25%); }
}

/* Burbujas flotantes */
.bubble {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.1s linear;
}

/* Primary colors */
.bg-primary-50 { background-color: #eff6ff; }
.bg-primary-500 { background-color: #3b82f6; }
.bg-primary-600 { background-color: #2563eb; }
.bg-primary-700 { background-color: #1d4ed8; }
.bg-primary-900 { background-color: #1e3a8a; }
.text-primary-50 { color: #eff6ff; }
.text-primary-500 { color: #3b82f6; }
.text-primary-600 { color: #2563eb; }
.text-primary-700 { color: #1d4ed8; }
.text-primary-900 { color: #1e3a8a; }
