/* Splash Screen Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b1b 50%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in;
}

.splash-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;
}

.logo-container {
    position: relative;
    margin-bottom: 30px;
    animation: logoEntrance 1s ease-out;
}

.splash-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    object-fit: cover;
    position: relative;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite alternate;
}

.splash-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate, textShimmer 3s ease-in-out infinite;
}

.splash-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
    animation: subtitleFade 1s ease-in 0.5s both;
}

.loading-container {
    margin-bottom: 30px;
    animation: loadingFade 1s ease-in 1s both;
}

.loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 0 auto 15px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8B0000, #FFD700, #8B0000);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: progressShimmer 1.5s ease-in-out infinite;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 1.1rem;
    color: #FFD700;
    font-weight: 600;
}

.wine-animation {
    margin-top: 30px;
    animation: wineFloat 1s ease-in 1.5s both;
}

.wine-icon {
    font-size: 2.5rem;
    color: #8B0000;
    animation: wineRotate 2s ease-in-out infinite;
}

.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0.7;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation: particleFloat 3s ease-in-out infinite 0.5s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation: particleFloat 5s ease-in-out infinite 1s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation: particleFloat 3.5s ease-in-out infinite 1.5s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 50%;
    animation: particleFloat 4.5s ease-in-out infinite 2s;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes logoEntrance {
    from { 
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    to { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

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

@keyframes glowPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6); }
}

@keyframes textShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

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

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

@keyframes wineRotate {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    50% { 
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-30px) translateX(15px);
        opacity: 0.8;
    }
}

.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .splash-title {
        font-size: 2rem;
    }
    
    .splash-logo {
        width: 80px;
        height: 80px;
    }
    
    .loading-bar {
        width: 250px;
    }
}
