:root {
    --c-primary: #232B60;
    --c-blue: #172ba3;
    --c-yellow: #FED304;
    --c-teal: #49B8B1;
    --c-orange: #F9A51B;
    --c-dark: #141a38;
    --c-light: #f4f6fb;
    --c-white: #ffffff;
    --shadow-sm: 0 2px 12px rgba(35,43,96,.10);
    --shadow-md: 0 6px 28px rgba(35,43,96,.16);
    --radius: 24px;
    --font: 'Segoe UI', system-ui, sans-serif;
    --body-img: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--c-white);
    overflow-x: hidden;

    background-image:
        linear-gradient(
            135deg,
            rgba(35, 43, 96, .84),
            rgba(35, 73, 120, .74),
            rgba(20, 26, 56, .88)
        ),
        var(--body-img);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(73, 184, 177, .28), transparent 34%),
        radial-gradient(circle at bottom right, rgba(254, 211, 4, .16), transparent 30%),
        radial-gradient(circle at center, rgba(255, 255, 255, .05), transparent 45%);
    pointer-events: none;
    animation: fondoMovimiento 12s ease-in-out infinite alternate;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
}

.maintenance-wrapper {
    width: min(980px, 100%);
    min-height: 560px;
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
}

.maintenance-card {
    width: min(760px, 100%);
    padding: 46px 34px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: entradaCard .9s ease both;
}

.maintenance-card::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(73, 184, 177, .14);
    top: -170px;
    right: -130px;
    filter: blur(2px);
}

.maintenance-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(254, 211, 4, .12);
    bottom: -140px;
    left: -90px;
    filter: blur(2px);
}

.logo-zone {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            var(--c-yellow),
            var(--c-teal),
            var(--c-orange),
            #ffffff,
            var(--c-blue),
            var(--c-yellow)
        );
    animation: girarColores 3.8s linear infinite;
    box-shadow:
        0 0 28px rgba(254, 211, 4, .35),
        0 0 38px rgba(73, 184, 177, .26);
}

.logo-ring::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: rgba(244, 246, 251, .96);
    box-shadow: inset 0 0 0 1px rgba(35, 43, 96, .08);
}

.logo-ring::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .25);
    animation: pulso 2.4s ease-in-out infinite;
}

.logo-img {
    position: relative;
    width: 178px;
    height: 178px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--c-white);
    padding: 8px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .20);
    z-index: 3;
    animation: flotarLogo 4s ease-in-out infinite;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(254, 211, 4, .16);
    color: #fff7bf;
    border: 1px solid rgba(254, 211, 4, .35);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c-yellow);
    box-shadow: 0 0 14px rgba(254, 211, 4, .9);
    animation: parpadeo 1.2s ease-in-out infinite;
}

h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.02;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

h1 span {
    display: block;
    color: var(--c-teal);
}

.subtitle {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 0 auto;
    font-size: clamp(16px, 2.4vw, 21px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .90);
}

.loader {
    position: relative;
    z-index: 2;
    width: min(360px, 100%);
    height: 10px;
    margin: 32px auto 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.loader span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--c-yellow), var(--c-teal), var(--c-orange));
    animation: cargar 2.4s ease-in-out infinite;
}

.footer-text {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
}

.footer-text strong {
    color: var(--c-white);
}

.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particles span {
    position: absolute;
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, .30);
    border-radius: 50%;
    animation: particulas 12s linear infinite;
}

.particles span:nth-child(1) {
    left: 8%;
    animation-delay: 0s;
    animation-duration: 13s;
}

.particles span:nth-child(2) {
    left: 22%;
    animation-delay: 2s;
    animation-duration: 11s;
}

.particles span:nth-child(3) {
    left: 42%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particles span:nth-child(4) {
    left: 61%;
    animation-delay: 1s;
    animation-duration: 12s;
}

.particles span:nth-child(5) {
    left: 76%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.particles span:nth-child(6) {
    left: 91%;
    animation-delay: 5s;
    animation-duration: 10s;
}

@keyframes girarColores {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulso {
    0%, 100% {
        transform: scale(.96);
        opacity: .40;
    }
    50% {
        transform: scale(1.08);
        opacity: .85;
    }
}

@keyframes flotarLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes cargar {
    0% {
        transform: translateX(-110%);
    }
    50% {
        transform: translateX(90%);
    }
    100% {
        transform: translateX(260%);
    }
}

@keyframes parpadeo {
    0%, 100% {
        opacity: .45;
        transform: scale(.85);
    }
    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

@keyframes entradaCard {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fondoMovimiento {
    from {
        transform: scale(1);
        opacity: .86;
    }
    to {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes particulas {
    0% {
        top: 105%;
        transform: translateX(0) scale(.8);
        opacity: 0;
    }
    12% {
        opacity: .8;
    }
    100% {
        top: -10%;
        transform: translateX(70px) scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding: 18px;
        background-attachment: scroll;
    }

    .maintenance-card {
        padding: 36px 22px;
        border-radius: 20px;
    }

    .logo-zone {
        width: 178px;
        height: 178px;
        margin-bottom: 24px;
    }

    .logo-img {
        width: 142px;
        height: 142px;
    }

    .badge {
        font-size: 12px;
        padding: 8px 13px;
    }

    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .maintenance-card {
        padding: 30px 18px;
    }

    .logo-zone {
        width: 154px;
        height: 154px;
    }

    .logo-img {
        width: 124px;
        height: 124px;
    }

    h1 {
        font-size: 32px;
    }
}