﻿/* Card de mantenimiento global */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 46, 29, 0.95) 0%, rgba(13, 64, 38, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    overflow: hidden;
    animation: overlayFadeIn 0.5s ease-out;
}

    .maintenance-overlay.hidden {
        display: none;
    }

.maintenance-card {
    background: linear-gradient(145deg, #1b5e20 0%, #2e7d32 100%);
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(76, 175, 80, 0.2), 0 0 0 4px rgba(56, 142, 60, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.8s ease-out;
    z-index: 10;
}

/* Fondo con textura de hojas */
.leaf-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: radial-gradient(circle at 20% 30%, #4caf50 2px, transparent 2px), radial-gradient(circle at 40% 70%, #388e3c 3px, transparent 3px), radial-gradient(circle at 60% 20%, #2e7d32 2px, transparent 2px), radial-gradient(circle at 80% 50%, #1b5e20 3px, transparent 3px), radial-gradient(circle at 30% 80%, #4caf50 2px, transparent 2px);
    background-size: 100px 100px;
    animation: leafBackground 20s linear infinite;
}

@keyframes leafBackground {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(100px) rotate(5deg);
    }
}

/* Hojas cayendo */
.leaf-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    border-radius: 50% 0 50% 0;
    opacity: 0.8;
    animation: leafFall linear infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes leafFall {
    0% {
        top: -50px;
        transform: rotate(0deg) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 120%;
        transform: rotate(720deg) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

/* Icono de mantenimiento */
.maintenance-icon {
    font-size: 6rem;
    color: #e8f5e9;
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: wrenchSpin 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes wrenchSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-20deg) scale(1.1);
    }

    50% {
        transform: rotate(0deg) scale(1);
    }

    75% {
        transform: rotate(20deg) scale(1.1);
    }
}

/* Contenido del card */
.card-content {
    position: relative;
    z-index: 2;
}

.maintenance-card h1 {
    color: #e8f5e9;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 1px;
}

.maintenance-message {
    color: #c8e6c9;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 35px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0 10px;
}

/* Botón de aceptar */
.accept-button {
    background: linear-gradient(to bottom, #4caf50, #388e3c);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

    .accept-button:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, #66bb6a, #43a047);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .accept-button:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.15);
    }

        .accept-button:hover:before {
            opacity: 1;
        }

    .accept-button:active {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.1);
    }

/* Animaciones */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto de brillo sutil */
.maintenance-card:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shine 8s infinite linear;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .maintenance-card {
        padding: 40px 25px;
        border-radius: 20px;
    }

        .maintenance-card h1 {
            font-size: 2rem;
        }

    .maintenance-message {
        font-size: 1.1rem;
    }

    .maintenance-icon {
        font-size: 5rem;
    }

    .accept-button {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
}
