/* Adaptación del Catálogo de Botones Interactivos: iconos, relieve y respuesta táctil. */
.fa-vinculo {
    --enlace-tinta: var(--fa-acento); --enlace-fondo: var(--fa-acento-suave);
    position: relative; border-radius: .65rem; text-underline-offset: .2em;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.fa-vinculo:focus-visible { outline: 3px solid var(--fa-acento); outline-offset: 3px; }
.fa-vinculo--linea, .fa-vinculo--boton {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; vertical-align: middle;
    border: 1px solid var(--fa-acento-borde); background: linear-gradient(135deg, var(--enlace-fondo), var(--fa-papel));
    color: var(--enlace-tinta); text-decoration: none; overflow: hidden; text-align: start;
    box-shadow: 0 2px 6px rgb(15 23 42 / 5%);
}
.fa-vinculo--linea { padding: .15rem .45rem; margin-block: .1rem; font-size: .92em; font-weight: 600; line-height: 1.4; }
.fa-vinculo--boton { padding: .65rem .85rem; font-weight: 650; gap: .65rem; }
.fa-vinculo-texto { min-width: 0; overflow-wrap: anywhere; }
.fa-vinculo-icono { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; transition: transform .2s ease; }
.fa-vinculo svg { display: block; width: 1em; height: 1em; }
.fa-vinculo--boton > .fa-vinculo-icono { width: 1.8rem; height: 1.8rem; border-radius: .45rem; background: var(--enlace-tinta); color: var(--fa-papel); }
.fa-vinculo-badge { display: inline-flex; align-items: center; gap: .3rem; margin-inline-start: auto; flex: 0 0 auto; font-size: .73rem; }
.fa-vinculo--boton .fa-vinculo-badge { padding: .2rem .4rem; border: 1px solid var(--fa-acento-borde); border-radius: .4rem; background: var(--fa-papel); color: var(--enlace-tinta); }
.fa-vinculo--linea .fa-vinculo-verbo { display: none; }
.fa-vinculo-flecha { display: inline-flex; transition: transform .2s ease; }
.fa-vinculo[data-fa-vinculo-tipo="volver"] .fa-vinculo-flecha { transform: rotate(180deg); }
.fa-vinculo--boton.btn-acento { background: linear-gradient(135deg, #2563eb, #1d4ed8 60%, #1e40af); border-color: #1e40af; color: #fff; box-shadow: 0 5px 14px -6px rgb(29 78 216 / 50%); }
.fa-vinculo--boton.btn-acento .fa-vinculo-badge, .fa-vinculo--boton.btn-acento > .fa-vinculo-icono { color: #fff; background: rgb(255 255 255 / 16%); border-color: rgb(255 255 255 / 28%); }
.fa-vinculo--boton[data-fa-vinculo-tipo="descarga"] { --enlace-tinta: var(--fa-verde); --enlace-fondo: var(--fa-verde-suave); border-color: var(--fa-verde); }
.fa-vinculo--boton.btn-acento[data-fa-vinculo-tipo="descarga"] { background: linear-gradient(135deg, #047857, #065f46); border-color: #065f46; }
.fa-vinculo--tarjeta { border: 1px solid var(--fa-borde); background: var(--fa-papel-2); padding: .9rem; box-shadow: var(--fa-sombra); }
.fa-vinculo--compacto { overflow: hidden; }
.fa-vinculo--compacto.page-link { border-radius: .4rem; }
.fa-vinculo--boton.btn-sm { padding: .4rem .55rem; gap: .4rem; font-size: .85rem; }
.fa-vinculo--boton.btn-sm > .fa-vinculo-icono { width: 1.4rem; height: 1.4rem; }
.fa-vinculo--boton.btn-sm .fa-vinculo-verbo { display: none; }
@media (hover: hover) {
    .fa-vinculo--linea:hover, .fa-vinculo--boton:hover { color: var(--enlace-tinta); border-color: var(--enlace-tinta); box-shadow: 0 6px 16px -7px rgb(29 78 216 / 40%); transform: translateY(-2px); }
    .fa-vinculo--boton.btn-acento:hover { color: #fff; filter: brightness(1.08); }
    .fa-vinculo--tarjeta:hover { border-color: var(--fa-acento); background: var(--fa-acento-suave); transform: translateY(-2px); }
    .fa-vinculo:hover > .fa-vinculo-icono { transform: scale(1.06) rotate(-3deg); }
    .fa-vinculo:hover .fa-vinculo-flecha { translate: 2px 0; }
}
.fa-vinculo:active { transform: translateY(1px) scale(.985); }
/* El texto corrido y las tablas necesitan enlaces compactos, sin etiquetas repetidas. */
@media (max-width: 575.98px) {
    .fa-vinculo--boton .fa-vinculo-verbo { display: none; }
    .fa-vinculo--boton { gap: .5rem; padding: .6rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .fa-vinculo, .fa-vinculo * { transition: none !important; animation: none !important; }
    .fa-vinculo:hover, .fa-vinculo:active { transform: none !important; }
    .fa-vinculo .fa-vinculo-flecha { translate: none !important; }
    .fa-vinculo:hover > .fa-vinculo-icono { transform: none; }
}
