/* =========================================================
   ESTILOS BOTON PIE DE PAGINA Y MODAL DE DENUNCIAS (ASSAC)
   ========================================================= */

/* Botón en el pie de página */
.btn-libro-denuncias-footer {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: linear-gradient(135deg, #a80c09 0%, #6e0000 100%) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid #ff4d4d !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

.btn-libro-denuncias-footer:hover {
    background: linear-gradient(135deg, #c4100c 0%, #8c0000 100%) !important;
    box-shadow: 0 6px 16px rgba(230, 20, 20, 0.45) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.btn-libro-denuncias-footer img {
    height: 38px !important;
    width: auto !important;
    display: block !important;
}

.btn-libro-denuncias-footer .btn-denuncia-text {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    line-height: 1.2 !important;
}

.btn-libro-denuncias-footer .btn-denuncia-text span.small-title {
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: #ffd8d8 !important;
    font-weight: 600 !important;
}

.btn-libro-denuncias-footer .btn-denuncia-text span.main-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* Modal Overlay: OCULTO POR DEFECTO */
.denuncias-modal-overlay {
    display: none; /* NO USAR !important para permitir que JS o style inline lo controle */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* Cuando se abre el modal */
.denuncias-modal-overlay.is-active {
    display: flex !important;
}

.denuncias-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    border-radius: 10px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.denuncias-view-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Cabecera compacta en 1 sola línea */
.denuncias-modal-header {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #b80c09;
    flex-shrink: 0;
}

.denuncias-modal-header.header-success {
    border-bottom: 3px solid #28a745;
}

.header-titles-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-subtitle {
    font-size: 11px;
    background: #b80c09;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
}

.badge-subtitle.success-badge {
    background: #28a745;
}

.header-separator {
    color: #555555;
    font-size: 14px;
}

.header-inline-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-close-modal:hover {
    opacity: 1;
    color: #ff4d4d;
}

/* Cuerpo con scroll vertical activo */
.denuncias-modal-body {
    padding: 20px 24px;
    overflow-y: scroll; /* Barra de scroll vertical permanente */
    font-family: inherit;
    color: #333333;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
}

.denuncias-modal-body::-webkit-scrollbar {
    width: 9px;
}
.denuncias-modal-body::-webkit-scrollbar-track {
    background: #ebebeb;
    border-radius: 5px;
}
.denuncias-modal-body::-webkit-scrollbar-thumb {
    background: #b80c09;
    border-radius: 5px;
}
.denuncias-modal-body::-webkit-scrollbar-thumb:hover {
    background: #8c0000;
}

.denuncia-intro-text {
    font-size: 13px;
    color: #555555;
    margin-bottom: 14px;
    line-height: 1.45;
    border-left: 3px solid #b80c09;
    padding-left: 10px;
}

/* Tipo de denuncia en 1 sola línea */
.form-row-tipo-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fbfbfb;
    border: 1px solid #ebebeb;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.label-inline-title {
    font-size: 13px;
    font-weight: 700;
    color: #222222;
    margin: 0;
    white-space: nowrap;
}

.radio-group-inline {
    display: flex;
    gap: 20px;
    align-items: center;
}

.form-group-custom {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.label-custom {
    font-size: 12.5px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 4px;
}

.label-custom .required, .label-inline-title .required {
    color: #b80c09;
}

.input-custom, .textarea-custom {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 13.5px;
    color: #333333;
    background: #fafafa;
    transition: all 0.2s;
    box-sizing: border-box;
}

.input-custom:focus, .textarea-custom:focus {
    border-color: #b80c09;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(184, 12, 9, 0.15);
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 650px) {
    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .form-row-tipo-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.radio-group-custom {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 4px 0;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #333333;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    accent-color: #b80c09;
    width: 16px;
    height: 16px;
}

.denunciante-section {
    background: #fdf4f4;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ffd4d4;
    margin-bottom: 12px;
}

.section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #b80c09;
    margin: 0 0 8px 0;
}

.file-upload-box {
    border: 1.5px dashed #cccccc;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fafafa;
}

.input-file-custom {
    font-size: 12.5px;
    display: block;
    width: 100%;
}

.file-help-text {
    font-size: 11px;
    color: #777777;
    margin-top: 4px;
}

.file-error-msg {
    margin-top: 5px;
    color: #b80c09;
    font-size: 12px;
    font-weight: bold;
}

.selected-files-list {
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0;
}

.selected-files-list li {
    font-size: 12px;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.form-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eeeeee;
}

.btn-cancel {
    background: #e4e4e4;
    color: #333333;
    border: none;
    padding: 9px 18px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #d4d4d4;
}

.btn-submit-denuncia {
    background: #b80c09;
    color: #ffffff;
    border: none;
    padding: 9px 22px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-denuncia:hover {
    background: #960907;
}

.btn-submit-denuncia:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.alert-status-box {
    padding: 10px 14px;
    border-radius: 5px;
    margin-top: 12px;
    font-size: 13.5px;
}

.alert-status-box.error {
    background: #ffebeb;
    color: #a80000;
    border: 1px solid #ffb8b8;
}

.alert-status-box.success {
    background: #eafaf1;
    color: #1e7e34;
    border: 1px solid #b8e6ca;
}

/* Constancia / Voucher */
.success-notice {
    background: #eef9f2;
    border: 1px solid #bce8cb;
    border-left: 4px solid #28a745;
    padding: 10px 14px;
    border-radius: 5px;
    margin-bottom: 16px;
    color: #1d643b;
    font-size: 13px;
}

.resumen-voucher-card {
    background: #ffffff;
    border: 1.5px solid #333333;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: Arial, Helvetica, sans-serif;
    color: #222222;
    margin-bottom: 16px;
}

.voucher-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #b80c09;
    padding-bottom: 10px;
    margin-bottom: 14px;
    gap: 14px;
}

.voucher-header .voucher-logo img {
    max-height: 42px;
    width: auto;
    display: block;
}

.voucher-header .voucher-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
}

.voucher-header .voucher-title p {
    margin: 3px 0 0 0;
    font-size: 11px;
    font-weight: 700;
    color: #777777;
    letter-spacing: 0.5px;
}

.voucher-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.voucher-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.voucher-table tr:nth-child(even) {
    background: #fbfbfb;
}

.voucher-table td {
    padding: 7px 10px;
    vertical-align: top;
    line-height: 1.35;
}

.voucher-table td.col-lbl {
    width: 35%;
    font-weight: 700;
    color: #333333;
    border-right: 1px solid #e0e0e0;
}

.voucher-table td.col-val {
    width: 65%;
    color: #222222;
}

.voucher-table td.col-val.code-highlight {
    font-size: 15px;
    font-weight: 900;
    color: #b80c09;
    letter-spacing: 0.5px;
}

.row-token-highlight {
    background: #eff6ff !important;
}

.token-badge {
    display: inline-block;
    background: #1e3a8a;
    color: #ffffff;
    font-family: monospace;
    font-size: 15px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.token-warning-note {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: #b91c1c;
    background: #fff1f2;
    border-left: 3px solid #e11d48;
    padding: 5px 8px;
    border-radius: 3px;
}

.voucher-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #cccccc;
    gap: 12px;
}

.voucher-stamp {
    border: 2px solid #28a745;
    color: #28a745;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.voucher-disclaimer {
    margin: 0;
    font-size: 11px;
    color: #888888;
    line-height: 1.25;
}

.summary-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-download-image {
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-download-image:hover {
    background: #218838;
}
/* Modales de Confirmación Profesionales (ASSAC) */
.denuncias-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(5px);
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.denuncias-confirm-box {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    padding: 28px 24px 22px 24px;
    text-align: center;
    animation: confirmPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e5e7eb;
}

@keyframes confirmPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fde8e9;
    color: #e30615;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 26px;
}

.confirm-icon-wrap.alert-warning-icon {
    background: #fef3c7;
    color: #d97706;
}

.confirm-title {
    font-size: 20px;
    font-weight: 800;
    color: #161922;
    margin: 0 0 10px 0;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confirm-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 0 24px 0;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm-cancel {
    flex: 1;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm-cancel:hover {
    background: #e5e7eb;
    color: #111827;
}

.btn-confirm-accept {
    flex: 1.2;
    background: linear-gradient(135deg, #e30615 0%, #b80c09 100%);
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(227, 6, 21, 0.25);
    transition: all 0.2s ease;
}

.btn-confirm-accept:hover {
    background: linear-gradient(135deg, #c10403 0%, #990000 100%);
    box-shadow: 0 6px 16px rgba(227, 6, 21, 0.35);
    transform: translateY(-1px);
}

.btn-confirm-discard {
    flex: 1.2;
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm-discard:hover {
    background: #b91c1c;
}

/* =========================================================
   BOTONES DE INFORMACIÓN / AYUDA (POPOVER INFORMATIVO)
   ========================================================= */
.label-with-help {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.label-with-help .label-custom,
.label-with-help .label-inline-title {
    margin-bottom: 0;
}

.btn-info-popover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #4b5563;
    border: 1px solid #d1d5db;
    font-size: 11px;
    font-weight: 800;
    font-family: inherit;
    font-style: italic;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}

.btn-info-popover:hover,
.btn-info-popover.is-active {
    background: #e30615;
    color: #ffffff;
    border-color: #b80c09;
    box-shadow: 0 2px 6px rgba(227, 6, 21, 0.35);
    transform: scale(1.08);
}

.field-help-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #e30615;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 4px 0 10px 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #334155;
    animation: helpBoxFadeIn 0.2s ease-out;
}

@keyframes helpBoxFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-help-content strong {
    color: #0f172a;
    font-weight: 700;
}

.field-help-list {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.field-help-list li {
    margin-bottom: 4px;
}

.field-help-list li:last-child {
    margin-bottom: 0;
}

/* =========================================================
   OVERLAY Y SPINNER DE CARGA AL ENVIAR (PROCESANDO REPORTE)
   ========================================================= */
.denuncias-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 100010;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeInModal 0.2s ease-out;
}

.denuncias-loading-box {
    background: #ffffff;
    max-width: 420px;
    width: 100%;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border-top: 4px solid #e30615;
}

.loading-spinner-assac {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px auto;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #e30615;
    border-right: 4px solid #e30615;
    border-radius: 50%;
    animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
}

.loading-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 18px 0;
}

.loading-bar-wrap {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar-indeterminate {
    position: absolute;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #e30615, #ff4d4d);
    border-radius: 2px;
    animation: indeterminateMove 1.4s infinite ease-in-out;
}

@keyframes indeterminateMove {
    0% { left: -40%; width: 40%; }
    50% { left: 40%; width: 50%; }
    100% { left: 100%; width: 40%; }
}


