/* =========================================================
   Comisiones — listas de documentos con CTA
   Reutilizable en cualquier vista de comisión.
   ========================================================= */

.cir-docs__heading {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: none;
    margin: 2rem 0 .75rem;
}

.cir-docs {
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.cir-doc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e6e9ee;
    transition: background-color .15s ease;
}

    .cir-doc:last-child {
        border-bottom: 0;
    }

    .cir-doc:hover {
        background-color: #f4fcfe;
    }

.cir-doc__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #087990;
    background-color: rgba(13, 202, 240, .12);
}

.cir-doc__body {
    flex: 1;
    min-width: 0;
}

.cir-doc__title {
    display: block;
    font-weight: 600;
    color: #212529;
    line-height: 1.35;
}

.cir-doc__meta {
    display: block;
    font-size: .8rem;
    color: #8a939c;
    margin-top: 2px;
}

.cir-doc__desc {
    font-size: .875rem;
    color: #5f6870;
    line-height: 1.5;
    margin: .4rem 0 0;
}

/* Enlace secundario: por encima del stretched-link para poder abrirse aparte */
.cir-doc__secondary {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: .35rem;
    font-size: .85rem;
    color: #087990;
    text-decoration: none;
}

    .cir-doc__secondary:hover {
        text-decoration: underline;
    }

.cir-doc__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    color: #087990;
    background-color: rgba(13, 202, 240, .12);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.cir-doc:hover .cir-doc__cta {
    background-color: var(--bs-info);
    color: #fff;
}

.cir-doc__cta i {
    font-size: .75rem;
    transition: transform .15s ease;
}

.cir-doc:hover .cir-doc__cta i {
    transform: translateX(2px);
}

.cir-doc__cta:focus-visible {
    outline: 2px solid var(--bs-info);
    outline-offset: 2px;
}

/* Bloque destacado (decálogo + infografía) */
.cir-feature {
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 1.25rem;
    background: #fff;
}

.cir-feature__img {
    display: block;
    margin: 1rem auto 0;
    max-width: 420px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6e9ee;
}

    .cir-feature__img img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform .3s ease;
    }

    .cir-feature__img:hover img {
        transform: scale(1.02);
    }

.cir-feature__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1rem;
}

    .cir-feature__footer .cir-doc__meta {
        color: #dc3545;
    }

/* Móvil: el CTA se reduce a solo la flecha */
@media (max-width: 575.98px) {
    .cir-doc {
        padding: .9rem 1rem;
        gap: .75rem;
        align-items: flex-start;
    }

    .cir-doc__icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .cir-doc__cta {
        padding: .5rem .65rem;
    }

    .cir-doc__cta-text {
        display: none;
    }

    .cir-feature__footer {
        justify-content: center;
        text-align: center;
    }
}

/* CTA suelto (fuera de una fila .cir-doc, p. ej. en un modal) */
a.cir-doc__cta:not(.stretched-link):hover {
    background-color: var(--bs-info);
    color: #fff;
}

/* =========================================================
   Botón flotante (FAB) de documento destacado
   Convive con .scrollup (abajo a la derecha): sube con --raised.
   ========================================================= */

.cir-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    transition: bottom .3s ease;
    animation: cir-fab-in .5s ease-out .6s both;
}

.cir-fab--raised {
    bottom: 88px; /* 55px del scrollup + 20px de margen + aire */
}

.cir-fab__btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1.1rem .5rem .5rem;
    border: 1px solid #e6e9ee;
    border-radius: 999px;
    background: #fff;
    color: #212529;
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .cir-fab__btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
    }

    .cir-fab__btn:focus-visible {
        outline: 2px solid var(--bs-info);
        outline-offset: 3px;
    }

.cir-fab__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: var(--bs-info);
    font-size: 1rem;
}

@keyframes cir-fab-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .cir-fab { animation: none; }
}

/* Móvil: solo el ícono */
@media (max-width: 575.98px) {
    .cir-fab__btn {
        padding: .45rem;
    }

    .cir-fab__text {
        display: none;
    }

    .cir-fab__icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* Modal de documento */
.cir-modal {
    border: 0;
    border-radius: 14px;
    padding: 1.25rem;
}

.cir-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

    .cir-modal__header .btn-close {
        flex-shrink: 0;
        margin-left: auto;
    }

.cir-modal__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

.cir-modal__subtitle {
    font-size: .875rem;
    color: #5f6870;
    margin: .25rem 0 0;
    line-height: 1.45;
}

.cir-modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e6e9ee;
}
