/* ====================================================================
   Controles compartidos de las tarjetas:
   - Botón discreto "volver arriba" (esquina inferior derecha)
   - Menú "Más tarjetas" en el navbar (esquina superior derecha)
   Usa las variables de color del sitio con fallback a la marca LANRESC.
   ==================================================================== */

/* ---------- Botón "volver arriba" ---------- */
.tr-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--color-blue, #0e668d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
    z-index: 1050;
}
.tr-back-to-top.is-visible {
    opacity: .82;
    visibility: visible;
    transform: translateY(0);
}
.tr-back-to-top:hover {
    opacity: 1;
    background: var(--color-dark-blue, #0a4f6d);
}
.tr-back-to-top svg { display: block; }

@media (max-width: 576px) {
    .tr-back-to-top { right: 14px; bottom: 14px; width: 38px; height: 38px; }
}

/* ---------- Control "Más tarjetas" en el navbar ---------- */
.tr-mas-tarjetas { z-index: 1100; }

.tr-mas-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    background: rgba(73, 80, 87, 0.92); /* gris */
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.tr-mas-btn:hover,
.tr-mas-btn:focus,
.tr-mas-btn[aria-expanded="true"] {
    color: #fff;
    background: rgba(52, 58, 64, 0.96);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.tr-mas-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 6px;
    margin-top: 10px !important;
    min-width: 210px;
}
.tr-mas-menu .dropdown-item {
    border-radius: 7px;
    font-size: .9rem;
    font-weight: 500;
    padding: 9px 14px;
    color: var(--color-dark-blue, #0e4a6d);
}
.tr-mas-menu .dropdown-item:hover,
.tr-mas-menu .dropdown-item:focus {
    background: var(--color-light-blue, #e9f2f8);
    color: var(--color-blue, #0e668d);
}
