/* Overrides globales propios (cargados después de styles.css). */

/* Estándar global: el título de todos los cards va centrado. */
.card > .card-header {
    text-align: center;
}

/* Cards con acciones (header flex con space-between): se centra el título y el
   bloque de botones se ancla a la derecha sin descentrar el título. */
.card-header-actions > .card-header {
    position: relative;
    justify-content: center;
}

.card-header-actions > .card-header > div {
    position: absolute;
    right: var(--bs-card-cap-padding-x, 1.35rem);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* Separación entre íconos (feather) y el texto dentro de botones, badges y enlaces.
   El ícono puede ir antes o después del texto; se margina por el lado interior y se
   recorta el borde exterior para no descuadrar botones de solo ícono. */
.btn .feather,
.badge .feather,
a .feather {
    margin: 0 0.35rem;
    vertical-align: text-bottom;
}

.btn .feather:first-child,
.badge .feather:first-child,
a .feather:first-child {
    margin-left: 0;
}

.btn .feather:last-child,
.badge .feather:last-child,
a .feather:last-child {
    margin-right: 0;
}
