/* =========================================================
   ESTILOS DE LÍNEA ÉTICA - IDENTIDAD CORPORATIVA ASSAC
   ========================================================= */

/* Banner Superior Compacto de Línea Ética */
.page-hero.page-hero-linea-etica {
    min-height: 240px !important;
    padding: 38px 0 28px 0 !important;
    background: #0f1117 !important;
    align-items: center !important;
}

.page-hero-linea-etica .page-hero-inner {
    max-width: 1200px !important;
    width: 100% !important;
}

.page-hero-linea-etica .page-hero-kicker {
    margin: 0 0 6px 0 !important;
    font-size: 12px !important;
    letter-spacing: .22em !important;
    color: #ff4d55 !important;
    font-weight: 700 !important;
}

.page-hero-linea-etica h1 {
    margin: 0 0 8px 0 !important;
    font-size: clamp(2rem, 3.5vw, 2.85rem) !important;
    line-height: 1.1 !important;
    font-family: var(--font-head, "Oswald", sans-serif) !important;
    text-transform: uppercase !important;
}

/* Subtítulo en UNA SOLA LÍNEA */
.page-hero-sub-single-line {
    margin: 0 !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
}

@media (max-width: 768px) {
    .page-hero-sub-single-line {
        white-space: normal !important;
        font-size: 13.5px !important;
    }
    .page-hero.page-hero-linea-etica {
        min-height: 200px !important;
        padding: 30px 0 20px 0 !important;
    }
}

/* Submenú de navegación tipo barra fija / tabs con estilo ASSAC (Dark / Rojo) */
.linea-etica-subnav-bar {
    background: #161922; /* Fondo corporativo oscuro ASSAC */
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: var(--header-h, 82px);
    z-index: 50;
    border-bottom: 3px solid #e30615; /* Acento rojo ASSAC */
}

.linea-etica-subnav-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
}

.subnav-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    padding: 16px 22px;
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-bottom: 4px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-head, "Oswald", sans-serif);
}

.subnav-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.subnav-tab-btn.is-active {
    background: rgba(227, 6, 21, 0.12);
    color: #ffffff;
    border-bottom-color: #e30615; /* Borde activo rojo ASSAC */
}

.subnav-tab-btn .tab-icon {
    font-size: 16px;
}

/* Envoltura general */
.linea-etica-main-wrapper {
    background: #f8f9fa;
    padding: 40px 0 70px 0;
    min-height: 550px;
}

.linea-etica-tab-pane {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

.fade-in {
    animation: leFadeIn 0.3s ease-out;
}

@keyframes leFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. BIENVENIDA */
.le-welcome-content h2 {
    font-size: 30px;
    font-weight: 800;
    color: #161922;
    margin: 12px 0 16px 0;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.le-tag {
    background: #fde8e9;
    color: #e30615;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    display: inline-block;
}

.le-lead {
    font-size: 16.5px;
    line-height: 1.65;
    color: #333333;
    margin-bottom: 16px;
}

.le-principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.le-principle-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-top: 4px solid #e30615; /* Detalle superior rojo */
    border-radius: 6px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.le-principle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(227, 6, 21, 0.08);
}

.le-principle-card .p-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.le-principle-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: #161922;
    margin-bottom: 8px;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
}

.le-principle-card p {
    font-size: 14px;
    color: #626262;
    line-height: 1.5;
    margin: 0;
}

.le-callout-action {
    background: #161922;
    border-left: 5px solid #e30615;
    color: #ffffff;
    border-radius: 6px;
    padding: 26px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 25px;
}

.le-callout-action h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
}

.le-callout-action p {
    color: #a0a6b5;
    margin: 0;
    font-size: 14px;
}

/* 2. PREGUNTAS FRECUENTES */
.le-section-header {
    margin-bottom: 26px;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 16px;
}

.le-section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #161922;
    margin: 0 0 6px 0;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
}

.le-section-header p {
    color: #626262;
    margin: 0;
    font-size: 14.5px;
}

.le-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.le-faq-item {
    background: #fbfbfb;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #e30615; /* Detalle lateral rojo ASSAC */
    padding: 18px 24px;
    border-radius: 6px;
}

.le-faq-item h3 {
    font-size: 16.5px;
    font-weight: 800;
    color: #161922;
    margin: 0 0 8px 0;
}

.le-faq-item p {
    font-size: 14.5px;
    color: #626262;
    line-height: 1.6;
    margin: 0;
}

/* 3. CANALES DE REPORTE */
.le-channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.le-channel-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
}

.le-channel-card.highlight-card {
    border: 2px solid #e30615;
    background: #fffafa;
}

.ch-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #e30615;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ch-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.le-channel-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #161922;
    margin: 0 0 10px 0;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
}

.le-channel-card p {
    font-size: 14.5px;
    color: #626262;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.channel-link {
    font-size: 18px;
    font-weight: 800;
    color: #e30615;
    text-decoration: none;
    margin-bottom: 6px;
    display: inline-block;
}

.channel-link:hover {
    color: #b80c09;
    text-decoration: underline;
}

.ch-note {
    font-size: 12px;
    color: #8b8b8b;
}

/* 4. TIPOS DE REPORTE */
.le-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.le-type-box {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 22px;
    background: #ffffff;
    border-top: 3px solid #161922;
    transition: border-top-color 0.2s, box-shadow 0.2s;
}

.le-type-box:hover {
    border-top-color: #e30615;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.tb-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.tb-icon {
    font-size: 24px;
}

.tb-head h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #161922;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
}

.le-type-box ul {
    margin: 0;
    padding-left: 20px;
    color: #626262;
    font-size: 14px;
    line-height: 1.5;
}

.le-type-box ul li {
    margin-bottom: 6px;
}

/* 5. PROTOCOLO DE ATENCIÓN */
.le-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    margin-top: 10px;
}

.le-timeline-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 44px;
    height: 44px;
    background: #161922;
    color: #ffffff;
    border: 2px solid #e30615;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.step-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 20px 24px;
    flex: 1;
}

.step-time {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    color: #e30615;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.step-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 800;
    color: #161922;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
}

.step-card p {
    margin: 0;
    font-size: 14.5px;
    color: #626262;
    line-height: 1.55;
}

.step-card code {
    background: #fde8e9;
    color: #e30615;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.le-guarantee-footer {
    background: #fbfbfb;
    border-left: 4px solid #e30615;
    padding: 14px 18px;
    border-radius: 6px;
    margin-top: 30px;
    font-size: 14px;
    color: #333333;
}

.le-guarantee-footer p {
    margin: 0;
}

/* =========================================================
   ESTILOS DE LA PÁGINA DE SEGUIMIENTO Y LÍNEA DE TIEMPO
   ========================================================= */
.tracking-card {
    border-top: 4px solid #1e3a8a !important;
}

.badge-tracking {
    background: #1e3a8a !important;
}

.btn-abrir-seguimiento {
    display: inline-block;
    background: #1e3a8a;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-top: 14px;
}

.btn-abrir-seguimiento:hover {
    background: #172554;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.seguimiento-card-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 36px 32px;
    max-width: 900px;
    margin: 0 auto;
}

.seguimiento-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.seguimiento-form-header .sf-icon {
    font-size: 38px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seguimiento-form-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
}

.seguimiento-form-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.sf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.sf-group label {
    display: block;
    font-size: 13.5px;
    color: #1e293b;
    margin-bottom: 6px;
}

.uppercase-input {
    text-transform: uppercase;
    font-family: monospace;
    font-size: 15px !important;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.sf-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-seguimiento-consultar {
    background: #e30615;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-seguimiento-consultar:hover:not(:disabled) {
    background: #b80c09;
    box-shadow: 0 4px 14px rgba(227, 6, 21, 0.35);
    transform: translateY(-1px);
}

.btn-seguimiento-volver {
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-seguimiento-volver:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Resultados y Resumen */
.seguimiento-result-box {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px dashed #cbd5e1;
}

.result-summary-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 30px;
}

.res-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.res-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.res-val {
    font-size: 14px;
    color: #0f172a;
}

.res-val.code-badge {
    color: #e30615;
    font-weight: 800;
    font-family: monospace;
    font-size: 15px;
}

/* LÍNEA DE TIEMPO INTERACTIVA */
.timeline-heading {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

.timeline-steps-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.timeline-step {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px 24px;
    position: relative;
    transition: all 0.2s ease;
}

.timeline-step.step-active {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.timeline-step.step-completed {
    border-color: #86efac;
    background: #f0fdf4;
}

.step-marker {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
}

.step-marker .step-check {
    display: none;
}

.step-active .step-marker {
    background: #e30615;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(227, 6, 21, 0.15);
}

.step-completed .step-marker {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.step-completed .step-marker .step-num {
    display: none;
}

.step-completed .step-marker .step-check {
    display: inline;
}

.step-content {
    flex: 1;
}

.step-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #e30615;
    margin-bottom: 4px;
}

.step-completed .step-kicker {
    color: #16a34a;
}

.step-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
}

.step-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.step-status-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.tag-current {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tag-completed {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tag-pending {
    background: #f1f5f9;
    color: #94a3b8;
}

.tag-finalizado {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.etapa-observaciones-box {
    margin-top: 24px;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 16px 20px;
    border-radius: 6px;
}

.eob-title {
    font-weight: 800;
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 6px;
}

.eob-text {
    margin: 0;
    font-size: 13.5px;
    color: #1e3a8a;
    line-height: 1.5;
}

/* Responsivo */
@media (max-width: 900px) {
    .sf-grid {
        grid-template-columns: 1fr;
    }
}


/* Responsivo */
@media (max-width: 900px) {
    .le-principles-grid,
    .le-channels-grid,
    .le-types-grid {
        grid-template-columns: 1fr;
    }

    .le-callout-action {
        flex-direction: column;
        align-items: flex-start;
    }

    .subnav-tab-btn {
        padding: 12px 14px;
        font-size: 13.5px;
    }
}

/* =========================================================
   ESTILOS DE LA INTRANET CORPORATIVA
   ========================================================= */
.page-hero.page-hero-intranet {
    min-height: 240px !important;
    padding: 38px 0 28px 0 !important;
    background: #0b0f19 !important;
    align-items: center !important;
}

.intranet-login-card {
    max-width: 480px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.login-card-head {
    background: #111827;
    color: #ffffff;
    padding: 20px 24px 18px 24px;
    text-align: center;
    border-bottom: 3px solid #e30615;
}

.login-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.login-icon-inline {
    font-size: 20px;
    line-height: 1;
}

.login-card-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-card-head p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.login-form-body {
    padding: 28px 24px;
}

.btn-login-submit {
    width: 100%;
    background: #e30615;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 14px;
}

.btn-login-submit:hover:not(:disabled) {
    background: #b80c09;
}

.login-credentials-note {
    margin-top: 20px;
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

/* Botón Ver / Ocultar Clave */
.btn-toggle-password {
    background: transparent;
    border: none;
    color: #e30615;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.btn-toggle-password:hover {
    color: #b80c09;
    text-decoration: underline;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}


/* Panel Principal de Intranet */
.intranet-panel-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.panel-top-bar {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.user-info-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    font-size: 24px;
    background: #1e293b;
    padding: 6px;
    border-radius: 50%;
}

.user-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
}

.user-role {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

.btn-logout {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #b91c1c;
}

.intranet-tabs-nav {
    display: flex;
    background: #1e293b;
    border-bottom: 2px solid #e30615;
}

.i-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.i-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    border-top: 3px solid #e30615;
}

.tab-pane-intranet {
    padding: 28px 24px;
}

.pane-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pane-header-actions h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-head, "Oswald", sans-serif);
    text-transform: uppercase;
}

.pane-header-actions p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.btn-reload-table, .btn-create-user {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-reload-table:hover, .btn-create-user:hover {
    background: #0369a1;
}

.btn-create-user {
    background: #16a34a;
}

.btn-create-user:hover {
    background: #15803d;
}

.table-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.filter-search {
    flex: 2;
    min-width: 240px;
}

.filter-select {
    flex: 1;
    min-width: 200px;
}

.table-responsive-custom {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.table-custom-intranet {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.table-custom-intranet th {
    background: #f8fafc;
    color: #475569;
    padding: 12px 14px;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.table-custom-intranet td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.table-custom-intranet tr:hover {
    background: #f8fafc;
}

.token-code-tag {
    background: #eff6ff;
    color: #1e40af;
    font-family: monospace;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
}

.step-pill {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.step-1 { background: #fee2e2; color: #991b1b; }
.step-2 { background: #fef3c7; color: #92400e; }
.step-3 { background: #e0e7ff; color: #3730a3; }
.step-4 { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.step-4-resuelto { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
.step-4-cerrado { background: #dcfce7; color: #15803d; border: 1px solid #86efac; font-weight: 800; }

.status-badge-inline {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2.5px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
}

.status-badge-inline.status-resuelto {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.status-badge-inline.status-cerrado {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-weight: 800;
}

.btn-action-tramitar {
    background: #e30615;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-action-tramitar:hover {
    background: #b80c09;
}

.badge-role {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
}

.badge-active {
    color: #16a34a;
    font-weight: 700;
}

.badge-inactive {
    color: #dc2626;
    font-weight: 700;
}

.tramite-info-header {
    background: #f8fafc;
    border-left: 4px solid #e30615;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #334155;
    margin-bottom: 12px;
}

.tramite-info-header p {
    margin: 0 0 6px 0;
}
.tramite-info-header p:last-child {
    margin-bottom: 0;
}

/* Hecho y Detalle en Tabla de Intranet */
.text-muted-dark {
    color: #334155 !important;
}

.hecho-full-text {
    max-height: 95px;
    overflow-y: auto;
    font-size: 12.5px;
    line-height: 1.45;
    padding-right: 4px;
    white-space: pre-wrap;
    word-break: break-word;
}

.hecho-full-text::-webkit-scrollbar {
    width: 5px;
}
.hecho-full-text::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.ident-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.text-xs {
    font-size: 11px;
    color: #64748b;
}

.badge-evidence {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
}

.actions-stack {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-action-pdf {
    background: #1e3a8a;
    color: #ffffff !important;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.2s;
}

.btn-action-pdf:hover {
    background: #172554;
}

.badge-action-pdf {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
}

.badge-action-query {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
}

.t-row {
    display: flex;
    gap: 8px;
}

.t-lbl {
    font-weight: 700;
    color: #111827;
    min-width: 140px;
}

.hecho-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 10px;
    max-height: 120px;
    overflow-y: auto;
    font-size: 12.5px;
    white-space: pre-wrap;
    width: 100%;
}

.tramite-workflow-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
}

.wf-title {
    margin: 0 0 12px 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
}

.resolucion-special-box {
    margin-top: 14px;
    padding: 14px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #e11d48;
    border-radius: 6px;
}

/* Tarjeta de Descarga de PDF en Seguimiento del Denunciante */
.pdf-download-card-denunciante {
    display: flex;
    gap: 18px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 10px;
    padding: 22px;
    align-items: center;
}

.pdc-icon {
    font-size: 42px;
    flex-shrink: 0;
}

.pdc-info h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 800;
    color: #166534;
}

.pdc-info p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.45;
}

.dictamen-preview {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #15803d;
    margin-bottom: 14px;
}

.btn-descargar-pdf-oficial {
    display: inline-block;
    background: #16a34a;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}

.btn-descargar-pdf-oficial:hover {
    background: #15803d;
    transform: translateY(-1px);
}




/* ======================================================== */
/* ADJUNTOS EN TRÁMITE Y CLASIFICACIÓN DE GRAVEDAD           */
/* ======================================================== */

.badge-gravedad {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gravedad.leve {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.badge-gravedad.moderada {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-gravedad.critica {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    animation: pulse-critico 2s infinite;
}

@keyframes pulse-critico {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.btn-evidence-trigger {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-evidence-trigger:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #000;
}

/* Modal de Adjuntos */
.adjuntos-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

.adjunto-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.15s;
}

.adjunto-item-row:hover {
    background: #f1f5f9;
}

.adjunto-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adjunto-icon {
    font-size: 24px;
}

.adjunto-meta {
    display: flex;
    flex-direction: column;
}

.adjunto-filename {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

.adjunto-submeta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge-origen-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-origen-tag.denunciante {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-origen-tag.tramite {
    background: #f3e8ff;
    color: #7e22ce;
}

.btn-download-file {
    background: #0f172a;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

.btn-download-file:hover {
    background: #e30615;
}

.upload-tramite-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    margin-top: 15px;
}

.upload-tramite-box h5 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.custom-file-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Botón Inteligente de Gemini IA en Intranet */
.btn-gemini-ia {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-gemini-ia:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

.btn-gemini-ia:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ======================================================== */
/* PESTAÑAS / TABS DENTRO DEL MODAL DE TRÁMITE              */
/* ======================================================== */

.modal-tabs-stepper {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin: 15px 0 20px 0;
    gap: 8px;
    background: #f8fafc;
    padding: 6px 8px 0 8px;
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
}

.m-tab-step {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border-radius: 6px 6px 0 0;
    white-space: nowrap;
}

.m-tab-step:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.m-tab-step.active {
    color: #e30615;
    border-bottom-color: #e30615;
    background: #ffffff;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
}

.m-tab-step.completed {
    color: #166534;
}

.step-circle-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.m-tab-step.active .step-circle-mini {
    background: #e30615;
    color: #ffffff;
}

.m-tab-step.completed .step-circle-mini {
    background: #22c55e;
    color: #ffffff;
}

.tab-readonly-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.readonly-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12.5px;
}

.badge-audit-user {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11.5px;
}

.readonly-text-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13.5px;
    color: #1e293b;
    line-height: 1.5;
    white-space: pre-wrap;
    min-height: 60px;
}
