/**
 * Pie de index: cargar ÚLTIMO en <head>. Usa #afs-pie + !important para ganar a caché u otros CSS.
 */

/* Bloque "Rigor…": asegurar que no quede oculto por extensiones o reglas ajenas */
html body.afs-integral main.wrap #por-que-afs.diferencial {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 3rem !important;
    position: relative !important;
    z-index: 2 !important;
}

html body.afs-integral main.wrap #por-que-afs .afs-rigor-bullets {
    display: grid !important;
    visibility: visible !important;
}

html body.afs-integral main.wrap #por-que-afs .afs-rigor-bullet,
html body.afs-integral main.wrap #por-que-afs .afs-rigor-action {
    visibility: visible !important;
}

html body.afs-integral main.wrap #por-que-afs .afs-rigor-bullet {
    display: block !important;
}

html body.afs-integral main.wrap #por-que-afs .afs-rigor-action.btn {
    display: inline-flex !important;
}

/* Respaldo si quedara HTML antiguo con .trust (y refuerzo frente a display:none agresivo) */
html body.afs-integral main.wrap #por-que-afs .trust {
    display: grid !important;
    visibility: visible !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

html body.afs-integral main.wrap #por-que-afs .trust-item {
    display: block !important;
    visibility: visible !important;
}

html body.afs-integral footer#afs-pie.footer {
    box-sizing: border-box !important;
    padding: 0.65rem 1rem 0.4rem !important;
    margin-top: 0.85rem !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
}

html body.afs-integral footer#afs-pie .contenedor-footer {
    max-width: 980px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) auto auto !important;
    gap: 0.5rem 1.25rem !important;
    align-items: start !important;
}

html body.afs-integral footer#afs-pie .info-footer h3 {
    font-family: "DM Sans", system-ui, sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin: 0 0 0.2rem !important;
    line-height: 1.25 !important;
    color: var(--afs-green, #4caf50) !important;
}

html body.afs-integral footer#afs-pie .info-footer p {
    font-family: "DM Sans", system-ui, sans-serif !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin: 0 0 0.28rem !important;
}

html body.afs-integral footer#afs-pie .enlaces-footer {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body.afs-integral footer#afs-pie .enlaces-footer li {
    margin: 0 0 0.14rem !important;
}

html body.afs-integral footer#afs-pie .enlaces-footer a {
    font-family: "DM Sans", system-ui, sans-serif !important;
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
}

html body.afs-integral footer#afs-pie .copyright {
    margin-top: 0.45rem !important;
    padding-top: 0.4rem !important;
    font-size: 0.72rem !important;
}

html body.afs-integral footer#afs-pie .copyright p {
    margin: 0 !important;
}

@media (min-width: 700px) {
    html body.afs-integral footer#afs-pie .contenedor-footer .info-footer:nth-child(3) .enlaces-footer {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.2rem 1rem !important;
        columns: unset !important;
        max-width: none !important;
    }
    html body.afs-integral footer#afs-pie .contenedor-footer .info-footer:nth-child(3) .enlaces-footer li {
        margin: 0 !important;
    }
}

@media (max-width: 640px) {
    html body.afs-integral footer#afs-pie .contenedor-footer {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 0.45rem !important;
    }
    html body.afs-integral footer#afs-pie .contenedor-footer .info-footer:nth-child(3) .enlaces-footer {
        display: block !important;
        columns: unset !important;
    }
}
