:root {
        --bg: #f7f9fb;
        --card: #fff;
        --muted: #6b7280;
        --accent: #004d99;
    }

    body {
        font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
        line-height: 1.5;
        background: var(--bg);
        color: #6b7280;
        margin: 0;
        padding: 24px;
    }

    /* Estilos para el selector de idioma */
    .lang-switcher {
        display: flex;
        justify-content: flex-end; /* Alinea a la derecha */
        margin-bottom: 16px; /* Espacio debajo del selector */
        gap: 0; /* Elimina el espacio entre los elementos para que los bordes se toquen */
    }

    .lang-switcher a {
        text-decoration: none;
        padding: 8px 12px;
        border: 1px solid var(--muted);
        color: var(--muted);
        background-color: var(--card);
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .lang-switcher a:first-child {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }
    .lang-switcher a:last-child {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }

    .lang-switcher a:hover,
    .lang-switcher a.active {
        background-color: var(--accent);
        color: var(--card);
        border-color: var(--accent);
        z-index: 1; /* Asegura que el borde activo no sea cubierto por el siguiente */
    }

    .lang-switcher a:not(:last-child) {
        border-right: none; /* Elimina el borde derecho para que se fusionen */
    }

    .wrap {
        max-width: 1140px;
        margin: 0 auto;
    }

    .main-title {
        text-align: center;
        padding: 24px 12px;
        background: var(--card);
        margin-bottom: 24px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
    }

    .main-title .days {
        font-size: 4rem;
        font-weight: bold;
        color: var(--accent);
        display: block;
        line-height: 1.1;
    }

    .main-title p {
        font-size: 1.25rem;
        color: #6b7280;
        margin: 8px 0 0 0;
        line-height: 1.4;
    }

    .main-title .days-inline {
        font-size: 24px;
        font-weight: bold;
        color: var(--accent);
    }

    p.grande {
        font-size: 20px;
        font-weight: bold;
        padding: 30px;
        text-align: left;
    }

    h1 {
        margin: 0;
        font-size: 1.6rem;
    }

    /* Unificamos el color de los títulos al gris oscuro principal */
    h3, h4 {
        color: #374151; /* Un gris un poco más oscuro para los títulos, pero no negro */
        font-weight: 600;
    }

    .card {
        background: var(--card);
        padding: 18px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
        margin-top: 16px;
    }

    .muted {
        color: var(--muted);
    }

    /* Nos aseguramos que el texto dentro de las tarjetas herede el color base */
    .card ul {
        color: var(--muted);
    }

    .articles-grid {
        position: relative;
    }

    /* Necesario para el posicionamiento absoluto de los hijos */
    .articles-grid .card {
        box-sizing: border-box;
        /* Asegura que el padding no aumente el ancho total */
        margin-bottom: 24px;
        /* Espacio vertical entre tarjetas en modo masonry o móvil */
    }

    .counter {
        font-family: monospace;
        font-size: 1.05rem;
        background: #f1f5f9;
        padding: 12px;
        border-radius: 8px;
        text-align: center;
    }

    .sources a {
        color: var(--accent);
        text-decoration: none;
    }

    .timeline {
        margin: 12px 0;
        padding-left: 18px;
    }

    .timeline li {
        margin: 8px 0;
    }

    footer {
        margin-top: 18px;
        color: var(--muted);
        font-size: .9rem;
        text-align: center;
    }

    pre.code {
        background: #0b1220;
        color: #fff;
        padding: 12px;
        border-radius: 8px;
        overflow: auto;
    }

    .kpi {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 24px;
    }

    .kpi .item {
        padding: 12px;
        border-radius: 8px;
        background: #f8fafc;
        min-width: 160px;
        text-align: center;
    }

    .kpi .item strong {
        font-size: 1.2rem;
        color: var(--accent);
    }

    .nobreak {
        white-space: nowrap;
    }

    .farsagate-logo {
        width: 100%;
        display: block;
        align-self: center;
        margin: 0 auto;
    }

    /* Estilos para dispositivos móviles */
    @media (max-width: 900px) {
        .main-title {
            padding-left: 0;
            padding-right: 0;
        }

        p.grande {
            font-size: 16px;
            padding: 0 12px;
        }

        .main-title .days-inline {
            font-size: 22px;
        }

        .farsagate-logo {
            width: 150vw;
            /* Hacemos la imagen un 30% más ancha que la pantalla para recortar los lados */
            max-width: 150vw;
            /* Límite para que no se exceda */
            margin-left: calc(50% - 75vw);
            /* Centramos la imagen (la mitad de 130vw es 65vw) */
        }
    }