/* ------------------------------------------------------------------
   Hogartec — página de mantenimiento
   Paleta tomada del logo real: violeta #360398 + acentos
   (amarillo #F8C746 / magenta #B31883 / turquesa #00C5B5)
   ------------------------------------------------------------------ */

:root {
    --color-marca: #360398;
    --color-marca-osc: #26026c;
    --color-amarillo: #f8c746;
    --color-magenta: #b31883;
    --color-turquesa: #00c5b5;
    --color-texto: #1f2333;
    --color-texto-suave: #5a6073;
    --color-fondo: #ffffff;
    --color-fondo-alt: #f5f3fb;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    color: var(--color-texto);
    background-color: var(--color-fondo);
    background-image:
        radial-gradient(58rem 30rem at 50% -8%, rgba(54, 3, 152, 0.08) 0%, transparent 70%),
        radial-gradient(38rem 22rem at 12% 108%, rgba(0, 197, 181, 0.10) 0%, transparent 70%),
        radial-gradient(38rem 22rem at 88% 108%, rgba(248, 199, 70, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, var(--color-fondo) 0%, var(--color-fondo-alt) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Regla superior: los colores de la marca */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-image: linear-gradient(
        90deg,
        var(--color-marca) 0%,
        var(--color-magenta) 40%,
        var(--color-turquesa) 70%,
        var(--color-amarillo) 100%
    );
    z-index: 1;
}

.mantenimiento {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

@supports not (height: 100svh) {
    .mantenimiento {
        min-height: 100vh;
    }
}

.card {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.logo {
    display: block;
    width: min(180px, 46vw);
    height: auto;
    margin: 0 auto 2.5rem;
}

h1 {
    color: var(--color-marca);
    font-size: clamp(1.5rem, 5vw, 2.125rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 1.25rem auto 0;
    background-image: linear-gradient(90deg, var(--color-marca) 0%, var(--color-turquesa) 100%);
    border-radius: 2px;
}

.mensaje {
    font-size: clamp(1rem, 2.4vw, 1.125rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-texto-suave);
    max-width: 46ch;
    margin: 1.75rem auto 2.5rem;
    text-wrap: pretty;
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 1.9rem;
    background-color: var(--color-marca);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 0.625rem;
    box-shadow: 0 6px 18px rgba(54, 3, 152, 0.28);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    background-color: var(--color-marca-osc);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(54, 3, 152, 0.34);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 3px solid var(--color-amarillo);
    outline-offset: 3px;
}

.btn__icono {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@media screen and (max-width: 500px) {
    .mantenimiento {
        padding: 2.5rem 1.25rem;
    }
    .logo {
        margin-bottom: 2rem;
    }
    .btn {
        display: flex;
        width: 100%;
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
    .btn:hover {
        transform: none;
    }
}
