/* Overlay de Mantenimiento - UX Mejorada con Catarina */
#maintenanceOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#maintenanceOverlay.hidden {
    animation: fadeOut 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(30px) saturate(180%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.maintenance-content {
    text-align: center;
    color: #333;
    padding: 60px 50px;
    max-width: 900px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    background: white;
    border-radius: 32px;
    border: 2px solid #e0e0e0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.maintenance-content:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    border-color: #ad060e;
}

.maintenance-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.maintenance-mascot {
    width: 100%;
    max-width: 350px;
    height: auto;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

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

.maintenance-right {
    text-align: left;
}

.maintenance-content .logo {
    width: 180px;
    height: auto;
    margin-bottom: 24px;
}

.maintenance-content h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #ad060e;
}

.maintenance-content h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.5;
    color: #666;
}

.maintenance-content .feature {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.maintenance-content .status {
    font-size: 14px;
    color: #888;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
    font-style: italic;
}

.click-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.click-counter.show {
    opacity: 0.6;
}

.maintenance-icon {
    font-size: 60px;
    margin-bottom: 16px;
    color: #ffc107;
    animation: spin 4s linear infinite;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .maintenance-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 30px;
        max-width: 600px;
    }
    
    .maintenance-right {
        text-align: center;
    }
    
    .maintenance-content .feature {
        justify-content: center;
    }
    
    .maintenance-mascot {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .maintenance-content {
        padding: 40px 25px;
        border-radius: 24px;
    }
    
    .maintenance-content h1 {
        font-size: 28px;
    }
    
    .maintenance-content h2 {
        font-size: 16px;
    }
    
    .maintenance-content .logo {
        width: 140px;
    }
    
    .maintenance-mascot {
        max-width: 200px;
    }
    
    .maintenance-content .feature {
        font-size: 14px;
    }
}

