/* ============================================
   PÁGINA DE MANTENIMIENTO
   ============================================ */

.maintenance-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(135deg, #0A1A2F 0%, #1a2f4f 50%, #0A1A2F 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    position: relative;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.maintenance-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 193, 124, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 206, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Partículas de fondo */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 193, 124, 0.6);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 193, 124, 0.8);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 30%; animation-delay: 1s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 50%; animation-delay: 2s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 3s; }
.particle:nth-child(8) { left: 80%; animation-delay: 3.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 4s; }
.particle:nth-child(10) { left: 15%; animation-delay: 4.5s; }

@keyframes floatParticle {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(50px) scale(0);
    }
}

/* Contenedor principal */
.maintenance-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 8rem;
    text-align: center;
}

.maintenance-content {
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

/* Icono de engranaje animado */
.maintenance-icon {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear {
    position: absolute;
    width: 150px;
    height: 150px;
    color: var(--color-secondary);
    filter: drop-shadow(0 0 20px rgba(0, 193, 124, 0.6));
    animation: rotate 4s linear infinite;
}

.gear-1 {
    animation: rotate 4s linear infinite;
}

.gear-2 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 55%;
    color: var(--color-accent);
    filter: drop-shadow(0 0 15px rgba(255, 206, 87, 0.6));
    animation: rotateReverse 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Título */
.maintenance-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.title-word {
    background: linear-gradient(135deg, #FFFFFF 0%, #00C17C 50%, #00E694 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite, fadeInUp 1s ease-out;
    animation-delay: calc(var(--i) * 0.1s);
    text-shadow: 0 0 30px rgba(0, 193, 124, 0.3);
}

.title-word:nth-child(1) { --i: 0; }
.title-word:nth-child(2) { --i: 1; }
.title-word:nth-child(3) { --i: 2; }

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Descripción */
.maintenance-description {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Barra de progreso */
.progress-container {
    margin: 3rem 0;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), var(--color-secondary));
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressMove 2s ease-in-out infinite, progressGrow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 193, 124, 0.6);
}

@keyframes progressMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

@keyframes progressGrow {
    0%, 100% { width: 30%; }
    50% { width: 70%; }
}

.progress-text {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Tarjetas de información */
.maintenance-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 193, 124, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 193, 124, 0.3);
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.info-card:nth-child(2) .info-icon {
    animation-delay: 0.5s;
}

.info-card:nth-child(3) .info-icon {
    animation-delay: 1s;
}

.info-card h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--color-text-dark);
    margin: 0;
}

.discord-link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.discord-link:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

/* Botón principal */
.btn-maintenance {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #00C17C 0%, #00E694 100%);
    color: var(--color-white);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 193, 124, 0.4);
    transition: all 0.3s ease;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn-maintenance::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-maintenance:hover::before {
    width: 300px;
    height: 300px;
}

.btn-maintenance:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 193, 124, 0.6);
}

.btn-maintenance span {
    position: relative;
    z-index: 1;
}

.btn-maintenance span:first-child {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Aviso de actualización */
.refresh-notice {
    margin-top: 3rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 193, 124, 0.2);
    animation: fadeInUp 1s ease-out 1.1s both;
}

.refresh-notice p {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    margin: 0;
}

/* Logo */
.maintenance-logo {
    position: relative;
    margin-top: 4rem;
    margin-bottom: 2rem;
    left: auto;
    transform: none;
    animation: fadeIn 1s ease-out 1.3s both;
}

.logo-text-maintenance {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00C17C 0%, #00E694 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .maintenance-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .maintenance-container {
        padding: 2rem 1rem;
        padding-bottom: 4rem;
        min-height: auto;
        justify-content: flex-start;
    }
    
    .maintenance-content {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .maintenance-title {
        font-size: 2.5rem;
    }
    
    .maintenance-description {
        font-size: 1rem;
    }
    
    .maintenance-icon {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
    }
    
    .gear {
        width: 120px;
        height: 120px;
    }
    
    .gear-2 {
        width: 80px;
        height: 80px;
    }
    
    .maintenance-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .btn-maintenance {
        padding: 1rem 2rem;
        font-size: 1rem;
        margin: 2rem 0;
    }
    
    .refresh-notice {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .maintenance-logo {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .progress-container {
        margin: 2rem 0;
    }
}

