/**
 * Pagina publica de mantenimiento — mismo universo visual que el home.
 */

:root {
    --ink: #010103;
    --deep: #0049f6;
    --blue: #016bfa;
    --sky: #00a1fe;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.7);
    --faint: rgba(255, 255, 255, 0.1);
    --font: "DM Sans", system-ui, sans-serif;
    --font-display: "Outfit", var(--font);
    --max: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.maint-body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vw, 48px) clamp(20px, 4vw, 40px);
    font-family: var(--font);
    color: rgba(255, 255, 255, 0.92);
    background-color: var(--ink);
    background-image:
        radial-gradient(800px 500px at 50% -20%, rgba(0, 161, 254, 0.2), transparent 55%),
        radial-gradient(600px 400px at 100% 100%, rgba(0, 73, 246, 0.15), transparent 50%);
    background-attachment: fixed;
}

.maint-wrap {
    width: min(640px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo grande, fuera de la tarjeta (sin marco cuadrado) */
.maint-brandblock {
    margin-bottom: clamp(20px, 4vw, 32px);
}

.maint-logo {
    display: block;
    width: clamp(180px, 42vw, 280px);
    height: auto;
    max-height: min(42vh, 300px);
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.55));
}

.maint-brand {
    margin: 20px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.8vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--sky);
}

.maint-card {
    width: 100%;
    padding: clamp(28px, 5vw, 40px) clamp(22px, 4vw, 36px);
    border-radius: 20px;
    border: 1px solid var(--faint);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.maint-title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 4.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--white);
}

.maint-msg {
    margin: 0;
    text-align: left;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
}

.maint-msg p {
    margin: 0 0 12px;
}

.maint-msg p:last-child {
    margin-bottom: 0;
}

.maint-msg--richtext h1,
.maint-msg--richtext h2,
.maint-msg--richtext h3,
.maint-msg--richtext h4 {
    margin: 1.1em 0 0.5em;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
}

.maint-msg--richtext h1:first-child,
.maint-msg--richtext h2:first-child,
.maint-msg--richtext h3:first-child,
.maint-msg--richtext h4:first-child {
    margin-top: 0;
}

.maint-msg--richtext strong,
.maint-msg--richtext b {
    color: var(--white);
    font-weight: 700;
}

.maint-msg--richtext em,
.maint-msg--richtext i {
    font-style: italic;
}

/*
 * TinyMCE a veces envuelve lineas en span con text-align; en flujo en linea no centra.
 * Forzar bloque solo cuando el span trae alineacion (style lo deja el saneador).
 */
.maint-msg--richtext span[style*="text-align"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.maint-msg--richtext ul,
.maint-msg--richtext ol {
    margin: 0 0 12px;
    padding-left: 1.35em;
}

.maint-msg--richtext blockquote {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-left: 3px solid var(--sky);
    background: rgba(0, 161, 254, 0.08);
    color: rgba(255, 255, 255, 0.88);
}

.maint-msg--richtext a {
    color: var(--sky);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.maint-msg--richtext table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 12px;
    font-size: 0.92rem;
}

.maint-msg--richtext th,
.maint-msg--richtext td {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    vertical-align: top;
}

.maint-msg--richtext th {
    background: rgba(0, 161, 254, 0.12);
    color: var(--white);
    font-weight: 600;
}

.maint-msg--richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.maint-msg--richtext pre,
.maint-msg--richtext code {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.88em;
}

.maint-msg--richtext pre {
    margin: 0 0 12px;
    padding: 12px 14px;
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--faint);
}

.maint-bar {
    height: 3px;
    margin: 28px auto 0;
    max-width: 160px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--sky), var(--deep));
}

.maint-footer {
    margin-top: clamp(22px, 4vw, 32px);
    width: 100%;
    text-align: center;
}

.maint-copy {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.02em;
}

/* Pie legal + linea azul (misma idea que la web publica) */
.maint-legal-wrap {
    width: 100%;
    max-width: min(640px, 100%);
    margin-top: clamp(8px, 2vw, 16px);
}

.maint-body .site-footer__blue-line {
    width: 100%;
    height: 3px;
    margin: clamp(12px, 3vw, 20px) auto 0;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, #0078ff 18%, #00c6ff 50%, #0078ff 82%, transparent 100%);
    box-shadow:
        0 0 12px rgba(0, 161, 254, 0.55),
        0 0 28px rgba(0, 120, 255, 0.35);
}

.maint-body .site-footer__legal-below {
    margin: clamp(12px, 2vw, 18px) auto 0;
    padding: 0;
    text-align: center;
}

.maint-body .site-footer__legal-below-k {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sky);
}

.maint-body .site-footer__legal-below-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
}

.maint-body .site-footer__legal-below-list .site-footer__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.18s ease;
}

.maint-body .site-footer__legal-below-list .site-footer__link:hover {
    color: var(--sky);
}
