/* Estilos del intro con fondo animado */
#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1000;
    transition: opacity 1s ease-out;
}

/* Fondo animado */
.intro-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.2);
    animation: zoomInOut 20s infinite linear;
}

.bg-1 {
    background-image: url('https://images.unsplash.com/photo-1613977257363-707ba9348227?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 0s;
}

.bg-2 {
    background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 5s;
}

.bg-3 {
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 10s;
}

.bg-4 {
    background-image: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 15s;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 102, 204, 0.85) 0%, 
        rgba(0, 77, 153, 0.9) 100%
    );
}

/* Contenido del intro */
.intro-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    color: white;
}

/* Logo */
.logo-container {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s forwards 0.5s;
}

.logo-image {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
}

/* Texto del intro */
.intro-text {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s forwards 1s;
}

.intro-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.intro-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Barra de progreso estilizada */
.progress-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.progress-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #b3e0ff);
    border-radius: 4px;
    animation: fillProgress 4s forwards 1.5s;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.stat:nth-child(1) {
    animation: fadeInUp 1s forwards 2s;
}

.stat:nth-child(2) {
    animation: fadeInUp 1s forwards 2.2s;
}

.stat i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animaciones */
@keyframes zoomInOut {
    0%, 100% {
        opacity: 0;
        transform: scale(1.2);
    }
    10%, 30% {
        opacity: 1;
        transform: scale(1);
    }
    40% {
        opacity: 0;
        transform: scale(0.9);
    }
}

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

@keyframes fillProgress {
    0% {
        width: 0%;
    }
    20% {
        width: 20%;
    }
    40% {
        width: 45%;
    }
    60% {
        width: 70%;
    }
    80% {
        width: 85%;
    }
    100% {
        width: 90%;
    }
}

/* Efecto de partículas o puntos flotantes */
.intro-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 300px 300px;
    animation: float 20s infinite linear;
    z-index: -1;
}

@keyframes float {
    0% {
        background-position: 0 0, 100px 100px, 200px 200px;
    }
    100% {
        background-position: 300px 300px, 400px 400px, 500px 500px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .intro-title {
        font-size: 2.5rem;
    }
    
    .intro-subtitle {
        font-size: 1.2rem;
    }
    
    .logo-image {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
    }
    
    .logo-image {
        max-width: 120px;
        padding: 10px;
    }
    
    .progress-container {
        padding: 20px;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 1.5rem;
    }
    
    .intro-subtitle {
        font-size: 0.9rem;
    }
    
    .logo-image {
        max-width: 100px;
    }
    
    .stat i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
}