/* =========================================================
   CONFIGURACIÓN GENERAL
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-dark: #0082c9;
    --blue: #008bd2;
    --blue-light: #00a9e8;

    --background: #f3f8fc;
    --card: #ffffff;

    --text: #263238;
    --text-light: #607d8b;

    --border: #e3edf4;

    --shadow:
        0 20px 60px rgba(0, 100, 160, 0.12);
}


/* =========================================================
   BODY
   ========================================================= */

body {
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(0, 169, 232, 0.12),
            transparent 35%
        ),

        radial-gradient(
            circle at 85% 85%,
            rgba(0, 130, 201, 0.10),
            transparent 35%
        ),

        var(--background);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.maintenance-container {
    width: 100%;
    max-width: 760px;
}


/* =========================================================
   TARJETA
   ========================================================= */

.maintenance-card {
    position: relative;

    background: var(--card);

    border: 1px solid rgba(0, 130, 201, 0.08);

    border-radius: 24px;

    padding: 55px 60px 35px;

    text-align: center;

    box-shadow: var(--shadow);

    overflow: hidden;
}


/* Línea azul superior */

.maintenance-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--blue-dark),
            var(--blue-light)
        );
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-container {
    display: flex;
    justify-content: center;

    margin-bottom: 28px;
}

.logo-circle {
    width: 76px;
    height: 76px;

    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;

    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            var(--blue-light)
        );

    box-shadow:
        0 12px 30px rgba(0, 139, 210, 0.28);

    transform: rotate(-2deg);
}


/* =========================================================
   ESTADO
   ========================================================= */

.status {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    padding: 8px 14px;

    border-radius: 30px;

    background: #eef8fd;

    color: #0079b8;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 22px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #00a9e8;

    box-shadow:
        0 0 0 5px rgba(0, 169, 232, 0.12);

    animation: pulse 2s infinite;
}


/* =========================================================
   TITULO
   ========================================================= */

h1 {
    font-size: clamp(34px, 5vw, 48px);

    line-height: 1.12;

    letter-spacing: -1.5px;

    font-weight: 700;

    margin-bottom: 22px;
}

h1 span {
    background:
        linear-gradient(
            90deg,
            var(--blue-dark),
            var(--blue-light)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.description {
    max-width: 580px;

    margin: 0 auto 12px;

    color: var(--text-light);

    font-size: 16px;

    line-height: 1.7;
}

.description.secondary {
    font-size: 14px;

    margin-bottom: 32px;
}


/* =========================================================
   PROGRESO
   ========================================================= */

.progress-container {
    text-align: left;

    padding: 20px;

    border-radius: 15px;

    background: #f7fbfd;

    border: 1px solid var(--border);

    margin-bottom: 22px;
}

.progress-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 11px;

    font-size: 13px;

    color: var(--text-light);
}

.loading-text {
    color: var(--blue-dark);

    font-weight: 600;
}

.progress-bar {
    height: 7px;

    width: 100%;

    background: #e4f0f6;

    border-radius: 10px;

    overflow: hidden;
}

.progress-animation {
    width: 45%;
    height: 100%;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--blue-dark),
            var(--blue-light)
        );

    animation: loading 2.2s ease-in-out infinite;
}


/* =========================================================
   MENSAJE DE REGRESO
   ========================================================= */

.return-message {
    display: flex;

    align-items: center;

    text-align: left;

    gap: 14px;

    padding: 17px;

    border-radius: 15px;

    background: #f5fbfe;

    border: 1px solid #e2f1f8;

    margin-bottom: 30px;
}

.return-icon {
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            var(--blue-light)
        );
}

.return-message strong {
    display: block;

    font-size: 14px;

    margin-bottom: 3px;
}

.return-message p {
    color: var(--text-light);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 9px;

    color: #90a4ae;

    font-size: 12px;
}

.separator {
    color: #c5d4dc;
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes loading {

    0% {
        transform: translateX(-120%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(220%);
    }
}


@keyframes pulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(0, 169, 232, 0.35);
    }

    70% {
        box-shadow:
            0 0 0 8px rgba(0, 169, 232, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(0, 169, 232, 0);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

    body {
        padding: 15px;
    }

    .maintenance-card {
        padding: 45px 25px 28px;

        border-radius: 20px;
    }

    h1 {
        font-size: 34px;
    }

    .description {
        font-size: 15px;
    }

    .progress-header {
        flex-direction: column;
        gap: 5px;
    }

    .return-message {
        align-items: flex-start;
    }

    footer {
        flex-direction: column;
        gap: 5px;
    }

    .separator {
        display: none;
    }
}