/* ========== SPLASH SCREEN CSS ========== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease-out;
}

/* Partículas doradas de fondo */
#splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(176, 138, 87, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(176, 138, 87, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(176, 138, 87, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(176, 138, 87, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(176, 138, 87, 0.2), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(176, 138, 87, 0.3), transparent);
    background-size: 200% 200%;
    animation: particlesFloat 20s ease-in-out infinite, particlesFadeIn 2s ease forwards;
}

@keyframes particlesFloat {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%, 90% 60%, 33% 80%;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 80% 20%, 20% 90%, 10% 40%, 67% 20%;
    }
}

@keyframes particlesFadeIn {
    to { opacity: 1; }
}

/* Círculos decorativos */
.circle-decoration {
    position: absolute;
    border: 1px solid rgba(176, 138, 87, 0.1);
    border-radius: 50%;
    animation: circleExpand 3s ease-out infinite;
}

.circle-decoration:nth-child(1) {
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.circle-decoration:nth-child(2) {
    width: 500px;
    height: 500px;
    animation-delay: 1s;
}

.circle-decoration:nth-child(3) {
    width: 700px;
    height: 700px;
    animation-delay: 2s;
}

@keyframes circleExpand {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Logo SIN fondo - Solo imagen */
.splash-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 3rem;
    position: relative;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: logoEntrance 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Resplandor dorado detrás del logo */
.splash-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(176, 138, 87, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* Imagen del logo SIN FONDO */
.splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(176, 138, 87, 1))
            drop-shadow(0 0 50px rgba(176, 138, 87, 0.6))
            drop-shadow(0 0 75px rgba(176, 138, 87, 0.4));
    animation: logoFloat 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.2) rotate(15deg);
    }
    80% {
        transform: scale(0.9) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(3deg);
    }
    75% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

/* Partículas de oro orbitando */
.gold-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: linear-gradient(135deg, #E6C89C, #B08A57);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(176, 138, 87, 1);
    opacity: 0;
    animation: particleOrbit 4s ease-in-out infinite;
}

.gold-particle:nth-child(1) {
    top: -10px;
    left: 50%;
    animation-delay: 2s;
}

.gold-particle:nth-child(2) {
    top: 50%;
    right: -10px;
    animation-delay: 2.5s;
}

.gold-particle:nth-child(3) {
    bottom: -10px;
    left: 50%;
    animation-delay: 3s;
}

.gold-particle:nth-child(4) {
    top: 50%;
    left: -10px;
    animation-delay: 3.5s;
}

@keyframes particleOrbit {
    0%, 100% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) translateY(-40px);
    }
}

/* Título con degradado */
.splash-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #E6C89C 0%, #B08A57 50%, #8C6A3B 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 20px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    animation: titleEntrance 1.5s ease forwards;
    animation-delay: 1.2s;
    position: relative;
}

/* Brillo deslizante */
.splash-title::before {
    content: 'LUXURY BARBERS';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineEffect 3s ease-in-out infinite;
    animation-delay: 2.5s;
}

@keyframes shineEffect {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px);
        letter-spacing: 35px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 20px;
    }
}

/* Subtítulo */
.splash-subtitle {
    font-size: 1.3rem;
    color: #D4AF7A;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 4rem;
    opacity: 0;
    font-weight: 300;
    animation: subtitleEntrance 1.2s ease forwards;
    animation-delay: 1.8s;
    position: relative;
}

/* Líneas decorativas */
.splash-subtitle::before,
.splash-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #B08A57, transparent);
}

.splash-subtitle::before {
    right: 100%;
    margin-right: 20px;
}

.splash-subtitle::after {
    left: 100%;
    margin-left: 20px;
}

@keyframes subtitleEntrance {
    0% {
        opacity: 0;
        letter-spacing: 15px;
    }
    100% {
        opacity: 1;
        letter-spacing: 8px;
    }
}

/* Barra de carga */
.loading-container {
    width: 450px;
    margin: 0 auto;
}

.loading-bar {
    width: 100%;
    height: 2px;
    background: rgba(176, 138, 87, 0.15);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    animation: barEntrance 0.8s ease forwards;
    animation-delay: 2.2s;
    position: relative;
    box-shadow: 0 0 15px rgba(176, 138, 87, 0.3);
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: barShine 2s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes barShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes barEntrance {
    to { opacity: 1; }
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #8C6A3B 0%, #B08A57 25%, #E6C89C 50%, #B08A57 75%, #8C6A3B 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: 
        loadingProgress 3.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        gradientMove 2s linear infinite;
    animation-delay: 2.2s, 2.2s;
    box-shadow: 
        0 0 25px rgba(176, 138, 87, 0.9),
        0 0 50px rgba(176, 138, 87, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Porcentaje */
.loading-percentage {
    margin-top: 1.2rem;
    font-size: 1.3rem;
    color: #B08A57;
    letter-spacing: 5px;
    opacity: 0;
    animation: percentageEntrance 0.5s ease forwards;
    animation-delay: 2.5s;
    font-weight: 300;
}

@keyframes percentageEntrance {
    to { opacity: 1; }
}

/* Texto de carga */
.loading-text {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: #8C6A3B;
    letter-spacing: 5px;
    opacity: 0;
    animation: textBlink 2s ease-in-out infinite;
    animation-delay: 3s;
    font-weight: 300;
}

@keyframes textBlink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Ocultar contenido principal */
#main-website {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .splash-logo {
        width: 150px;
        height: 150px;
        margin-bottom: 2.5rem;
    }

    .splash-logo::before {
        width: 200px;
        height: 200px;
    }

    .splash-title {
        font-size: 2.8rem;
        letter-spacing: 12px;
    }

    @keyframes titleEntrance {
        0% {
            opacity: 0;
            transform: translateY(50px);
            letter-spacing: 25px;
        }
        100% {
            opacity: 1;
            transform: translateY(0);
            letter-spacing: 12px;
        }
    }

    .splash-subtitle {
        font-size: 1rem;
        letter-spacing: 5px;
    }

    .splash-subtitle::before,
    .splash-subtitle::after {
        width: 50px;
    }

    .loading-container {
        width: 320px;
    }

    .circle-decoration:nth-child(1) { width: 200px; height: 200px; }
    .circle-decoration:nth-child(2) { width: 350px; height: 350px; }
    .circle-decoration:nth-child(3) { width: 500px; height: 500px; }
}

@media (max-width: 480px) {
    .splash-logo {
        width: 120px;
        height: 120px;
    }

    .splash-logo::before {
        width: 160px;
        height: 160px;
    }

    .splash-title {
        font-size: 2rem;
        letter-spacing: 8px;
    }

    @keyframes titleEntrance {
        0% {
            opacity: 0;
            transform: translateY(50px);
            letter-spacing: 18px;
        }
        100% {
            opacity: 1;
            transform: translateY(0);
            letter-spacing: 8px;
        }
    }

    .splash-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .splash-subtitle::before,
    .splash-subtitle::after {
        width: 35px;
        margin: 0 12px;
    }

    .loading-container {
        width: 260px;
    }

    .loading-percentage {
        font-size: 1.1rem;
    }

    .loading-text {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }
}