/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Contenedor de partículas para el fondo animado */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Loader de página */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Lado de la imagen */
.image-side {
    position: relative;
    padding: 2rem;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-image {
    transition: transform 0.8s ease;
    transform-origin: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.image-container:hover .hero-image {
    transform: scale(1.05);
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Lado del texto */
.text-side {
    padding: 2rem;
}

.text-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Estilos del logo */
.logo-container {
    margin-bottom: 2rem;
}

.logo {
    max-width: 180px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Estilos para el título */
h1 {
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

.typed-cursor {
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
    50% {
        opacity: 0.0;
    }
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

/* Estilos para el contador */
.countdown-container {
    margin: 2rem 0;
}

#sync-status {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#sync-status i {
    animation: pulse 2s infinite;
}

.countdown-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.countdown-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Botón de scroll */
.scroll-btn {
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-3px);
}

.scroll-btn i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Sección de pasos */
.steps-section {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5rem 0;
}

.steps-container {
    margin-top: 3rem;
}

.step-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.step-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 5rem;
    font-weight: 800;
    opacity: 0.1;
    color: #fff;
    line-height: 1;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.step-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

/* Botón de participación */
.btn-participate {
    position: relative;
    padding: 1.2rem 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    background: linear-gradient(45deg, #fff 0%, #f5f5f5 100%);
    border: none;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: 1;
}

.btn-participate:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: -1;
}

@keyframes shine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.footer-logo {
    max-width: 120px;
}

/* Estilos para los iconos sociales */
.social-icons {
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-5px);
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .image-side {
        margin-bottom: 2rem;
    }
    
    .text-container {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
    
    .btn-participate {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
}

/* Animaciones de entrada */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}