/* ==========================================================================
   CSS DEFINITIVO - CANSINOS CUSTOM (FONDO GRIS CLARO CANSINOS.ORG)
   ========================================================================== */

/* 1. CABECERA (SITE HEADER) */
.site-header {
    background-color: #00457e !important;
}
.site-header__title a {
    color: #ffffff !important;
}

/* 2. BOTÓN VOLVER A CANSINOS.ORG */
.primary-nav__menu-item:last-child .primary-nav__menu-link--level-1 .primary-nav__menu-link-inner {
    background-color: #006fcb; /* antes estaba #00457e  */
    color: white !important;
    border-radius: 4px;
    padding: 5px 12px !important;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 100;
    line-height: 1;
    margin-top: 15px;
    display: inline-block !important;
}

/* 3. TIPOGRAFÍA GENERAL */
h1.page-title {
    font-size: 2rem !important;
}

/* 4. FOOTER (RESETEO INTEGRAL) */

/* Atacamos la etiqueta principal de Olivero y sus variables */
footer.site-footer, 
.site-footer {
    background-color: rgb(248, 249, 250) !important; /* El gris de cansinos.org */
    background: #dae7f1 !important;
    color: #222222 !important;
    border-top: 1px solid #e1e1e1 !important;
    --footer-bg-color: rgb(248, 249, 250); /* Forzamos la variable interna de Olivero */
}

/* Contenedor del Grid */
.site-footer .footer-container {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

@media (min-width: 992px) {
    .site-footer .footer-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Forzar que todos los textos dentro del footer sean oscuros */
.site-footer .footer-column p,
.site-footer .footer-column div,
.site-footer .footer-column span,
.site-footer .footer-column {
    color: #222222 !important;
    font-size: 14px;      /* Tamaño de letra */
    line-height: 1.5;     /* 1.5 veces el tamaño de la fuente */
    margin-top: 0;       /* Elimina espacio superior */
    margin-bottom: 0.0em; /* Reduce espacio inferior (puedes poner 0) */
}

/* Títulos */
.site-footer .footer-column strong {
    display: block;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #000000 !important;
    border-bottom: 2px solid #00457e; /* Línea azul elegante */
    padding-bottom: 8px;
    text-transform: uppercase;
}

/* Enlaces */
.site-footer .footer-column a.text-reset {
    color: #444444 !important;
    text-decoration: none !important;
    display: block;
    margin-bottom: 10px;
}

.site-footer .footer-column a.text-reset:hover {
    color: #00457e !important;
    text-decoration: underline !important;
}

/* Logo: Si el logo es blanco, ahora no se verá sobre el fondo gris claro. 
   Si necesitas darle un fondo oscuro solo al logo para que resalte, avísame. */
.site-footer .footer-column img {
    max-width: 100%;
    height: auto;
}