/* ------------------------------------------------------------------
   Chaco Internacional — página de mantenimiento
   Paleta tomada del sitio real: azul #264284 / rojo #bf0811
   ------------------------------------------------------------------ */

@font-face {
    font-family: "Inter";
    src: url("/assets_front/fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/assets_front/fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/assets_front/fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colores tomados de las opciones del sitio de Chaco Internacional */
    --color-marca-azul: #264284;
    --color-marca-azul-osc: #0f204b;
    --color-marca-rojo: #bf0811;
    --color-texto: #1f2a37;
    --color-texto-suave: #5a6673;
    --color-fondo: #ffffff;
    --color-fondo-alt: #f3f6fc;
    --color-facebook: #1877f2;
    --color-instagram: #c13584;
}

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

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: var(--color-texto);
    background-color: var(--color-fondo);
    /* Degradado muy sutil para que el fondo no quede plano */
    background-image:
        /* halo suave con los dos colores de la marca */
        radial-gradient(60rem 30rem at 50% -8%, rgba(38, 66, 132, 0.08) 0%, transparent 70%),
        radial-gradient(40rem 24rem at 50% 108%, rgba(191, 8, 17, 0.06) 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 con los dos 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-azul) 0%,
        var(--color-marca-azul) 45%,
        var(--color-marca-rojo) 55%,
        var(--color-marca-rojo) 100%
    );
    z-index: 1;
}

.mantenimiento {
    /* svh y no vh: en mobile la barra de direcciones no corta el contenido */
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

/* Fallback para navegadores sin soporte de unidades dinámicas */
@supports not (height: 100svh) {
    .mantenimiento {
        min-height: 100vh;
    }
}

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

.logo {
    display: block;
    width: min(340px, 80vw);
    height: auto;
    margin: 0 auto 2.75rem;
}

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

/* Subrayado corto con el degradado de la marca */
h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 1.25rem auto 0;
    background-image: linear-gradient(
        90deg,
        var(--color-marca-azul) 0%,
        var(--color-marca-rojo) 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: 48ch;
    margin: 1.75rem auto 2.5rem;
    text-wrap: pretty;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 1.9rem;
    background-color: var(--color-marca-azul);
    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(38, 66, 132, 0.25);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp:hover {
    background-color: var(--color-marca-azul-osc);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(38, 66, 132, 0.32);
}

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

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

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

.telefono {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-texto-suave);
    margin-top: 1.5rem;
}

.telefono a {
    color: var(--color-marca-azul);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.telefono a:hover {
    text-decoration: underline;
}

.telefono a:focus-visible {
    outline: 2px solid var(--color-marca-azul);
    outline-offset: 2px;
    border-radius: 3px;
}

/* --- Redes sociales --- */

.redes {
    margin-top: 2.75rem;
    padding-top: 2rem;
    /* Separador sutil respecto del bloque de contacto */
    border-top: 1px solid rgba(38, 66, 132, 0.12);
}

.redes__titulo {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-texto-suave);
    margin-bottom: 1.125rem;
}

.redes__lista {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    list-style: none;
}

.red {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    color: var(--color-texto);
    background-color: #fff;
    border: 1px solid rgba(38, 66, 132, 0.15);
    border-radius: 999px;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease,
        box-shadow 0.25s ease;
}

.red svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    /* El icono ya nace con el color de cada red; el texto vira solo en hover */
    color: var(--color-texto-suave);
    transition: color 0.25s ease;
}

.red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 42, 55, 0.1);
}

.red--facebook:hover,
.red--facebook:focus-visible {
    color: var(--color-facebook);
    border-color: rgba(24, 119, 242, 0.4);
}

.red--facebook:hover svg,
.red--facebook:focus-visible svg {
    color: var(--color-facebook);
}

.red--instagram:hover,
.red--instagram:focus-visible {
    color: var(--color-instagram);
    border-color: rgba(193, 53, 132, 0.4);
}

.red--instagram:hover svg,
.red--instagram:focus-visible svg {
    color: var(--color-instagram);
}

.red:focus-visible {
    outline: 3px solid var(--color-marca-azul);
    outline-offset: 3px;
}

@media screen and (max-width: 500px) {
    .mantenimiento {
        padding: 2.5rem 1.25rem;
    }
    .logo {
        margin-bottom: 2.25rem;
    }
    .btn-whatsapp {
        display: flex;
        width: 100%;
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    .redes__lista {
        gap: 0.625rem;
    }
    .red {
        font-size: 0.875rem;
        padding: 0.5625rem 1rem;
    }
}

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