﻿:root {
    --primary-color: #273c75;
    --primary-dark: #192a56;
    --primary-light: #3c5399;
    --secondary-color: #34495e;
    --accent-color: #4cd137;
    --light-gray: #f8f9fa;
    --medium-gray: #e0e0e0;
    --dark-gray: #495057;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --success-color: #4cd137;
    --info-color: #03a9f4;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: url("https://tramites.opamss.org.sv/images/cintilloarriba.jpeg") repeat-x center center;
    background-size: cover; /* hace que la franja cubra todo el ancho */
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



    .header h4 {
        font-weight: 600;
        margin: 0;
        display: flex;
        align-items: center;
        font-size: 1.25rem;
    }

        .header h4 i {
            margin-right: 10px;
            font-size: 1.5rem;
        }

.nav-tabs {
    border-bottom: none;
    background-color: #fff;
    padding: 0 20px;
}

    .nav-tabs .nav-link {
        color: var(--dark-gray);
        font-weight: 500;
        border: none;
        padding: 12px 20px;
        transition: all 0.3s ease;
        border-radius: 0;
        position: relative;
        margin-right: 5px;
    }

        .nav-tabs .nav-link.active {
            color: var(--primary-color);
            background-color: transparent;
            font-weight: 600;
        }

            .nav-tabs .nav-link.active::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 3px;
                background-color: var(--primary-color);
                border-radius: 3px 3px 0 0;
            }

        .nav-tabs .nav-link:hover:not(.active) {
            background-color: var(--light-gray);
        }

.tab-content {
    background-color: white;
    border-radius: 0 0 10px 10px;
    flex-grow: 1;
}

.form-control, .form-select {
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    font-size: 0.8rem;
    transition: all 0.3s;
    height: auto;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
    }

.form-label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

.btn-outline-secondary {
    color: var(--dark-gray);
    border-color: var(--medium-gray);
}

    .btn-outline-secondary:hover {
        background-color: var(--light-gray);
        color: var(--dark-gray);
    }

.progress-container {
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #eee;
    margin: 8px 0;
    width: 100%;
}

.progress-bar {
    width: 0;
    background: red !important;
    height: 8px;
    border-radius: 4px;
    transition: width 1s cubic-bezier(.4,2,.3,1);
}
.timeline-subitem {
    margin-left: 20px;
    border-left: 2px solid #e0e0e0;
    padding-left: 15px;
    opacity: 0.85;
    margin-bottom: 10px;
}

    .timeline-subitem .timeline-icon {
        font-size: 0.9em;
    }

    .timeline-subitem .timeline-title {
        font-size: 0.96em;
    }



.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 14px;
        top: 0;
        height: 100%;
        width: 2px;
        background-color: var(--medium-gray);
    }

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-icon {
    position: absolute;
    left: -30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid var(--medium-gray);
    z-index: 1;
    font-size: 0.8rem;
}

    .timeline-icon.completed {
        background-color: var(--success-color);
        border-color: var(--success-color);
        color: white;
    }

    .timeline-icon.pending {
        background-color: white;
        border-color: var(--medium-gray);
        color: var(--medium-gray);
    }

.timeline-content {
    background-color: white;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    margin-bottom: 0;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-3px);
}

.timeline-item.completed .timeline-content {
    border-left-color: var(--success-color);
}

.timeline-item.pending .timeline-content {
    border-left-color: var(--medium-gray);
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.timeline-date {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

    .timeline-date i {
        margin-right: 5px;
        color: var(--info-color);
    }

.timeline-description {
    font-size: 0.8rem;
    color: #6c757d;
}

.pending-activities {
    background-color: #fff8e1;
    border-left: 4px solid var(--warning-color);
    padding: 8px;
    border-radius: 8px;
    margin-top: 20px;
}

    .pending-activities h6 {
        color: var(--warning-color);
        margin-bottom: 10px;
        font-weight: 600;
        font-size: 0.8rem;
    }

    .pending-activities ul {
        padding-left: 20px;
        margin-bottom: 0;
    }

    .pending-activities li {
        padding: 3px 0;
        font-size: 0.85rem;
    }

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-box {
    background-color: white;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--medium-gray);
}

.search-title {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

    .search-title i {
        margin-right: 10px;
        color: var(--primary-color);
    }

.form-text {
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 3px;
}

.section-description {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--dark-gray);
    border-left: 3px solid var(--primary-color);
}

    .section-description p {
        margin-bottom: 0;
        font-size: 0.8rem;
    }

.form-help-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 3px;
    font-style: italic;
}

.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.split-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .split-layout {
        flex-direction: row;
    }

    .split-layout-left {
        width: 35%;
    }

    .split-layout-right {
        width: 65%;
    }
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

    .status-badge.active {
        background-color: rgba(76, 175, 80, 0.1);
        color: var(--success-color);
        border: 1px solid rgba(76, 175, 80, 0.2);
    }

    .status-badge.pending {
        background-color: rgba(255, 152, 0, 0.1);
        color: var(--warning-color);
        border: 1px solid rgba(255, 152, 0, 0.2);
    }

.compact-form .row {
    margin-bottom: 0;
}

.compact-form .form-group {
    margin-bottom: 10px;
}

.compact-form .form-control {
    padding: 6px 10px;
}

.compact-form .btn {
    padding: 6px 12px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

    .section-title i {
        margin-right: 8px;
    }

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--dark-gray);
}

    .progress-info span {
        display: flex;
        align-items: center;
    }

    .progress-info i {
        margin-right: 5px;
    }

.timeline-compact .timeline-item {
    padding-bottom: 15px;
}

.timeline-compact .timeline-content {
    padding: 10px 12px;
}

.timeline-compact .timeline-title {
    font-size: 0.85rem;
}

.timeline-compact .timeline-date {
    font-size: 0.7rem;
}

.timeline-compact .timeline-description {
    font-size: 0.75rem;
}

.card-header-tabs {
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    border-bottom: 0;
}

.floating-action-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
}

    .floating-action-button:hover {
        background-color: var(--primary-dark);
        transform: translateY(-3px);
    }

    .floating-action-button i {
        font-size: 1.5rem;
    }

.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    width: 100%;
    text-align: left;
}

    .filter-toggle:hover {
        background-color: var(--primary-dark);
    }

    .filter-toggle i.toggle-icon {
        font-size: 1rem;
        transition: all 0.3s;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .filter-toggle.collapsed i.toggle-icon {
        transform: rotate(-90deg);
    }

.collapsible-search {
    transition: all 0.3s;
    border: 1px solid var(--medium-gray);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.info-card {
    background-color: rgba(3, 169, 244, 0.05);
    border-left: 3px solid var(--info-color);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

    .info-card p {
        margin-bottom: 0;
        color: var(--dark-gray);
    }

    .info-card strong {
        color: var(--info-color);
    }

.tab-pane {
    padding: 20px;
}

.timeline-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

    .timeline-container::-webkit-scrollbar {
        width: 6px;
    }

    .timeline-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .timeline-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 10px;
    }

        .timeline-container::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

.card-body {
    padding: 0;
}

.header-actions {
    display: flex;
    align-items: center;
}

    .header-actions .btn {
        margin-left: 10px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .header-actions .btn-light {
        background-color: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
    }

        .header-actions .btn-light:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }

.summary-card {
    background-color: white;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

    .summary-icon.primary {
        background-color: rgba(39, 60, 117, 0.1);
        color: var(--primary-color);
    }

    .summary-icon.success {
        background-color: rgba(76, 175, 80, 0.1);
        color: var(--success-color);
    }

    .summary-icon.warning {
        background-color: rgba(255, 152, 0, 0.1);
        color: var(--warning-color);
    }

.summary-content {
    flex-grow: 1;
}

.summary-title {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 3px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.summary-card {
    background-color: white;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
}

    .summary-card:hover {
        transform: translateY(-3px);
    }

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.summary-card:hover .summary-icon {
    transform: scale(1.1);
}

.summary-icon.primary {
    background-color: rgba(39, 60, 117, 0.1);
    color: #273c75;
}

.summary-icon.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.summary-icon.warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.summary-content {
    flex-grow: 1;
    min-width: 0; /* Evita que el contenido desborde */
}

.summary-title {
    font-size: 0.8rem;
    color: #495057;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Media queries para diferentes tamaños de pantalla */
@media (max-width: 767px) {
    .summary-row {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .summary-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 575px) {
    .summary-value {
        font-size: 1rem;
    }

    .summary-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.filter-container {
    margin-bottom: 20px;
}

.filter-header {
    display: flex;
    align-items: center;
    background-color: #001C71; /* Azul corporativo Pantone 662 C */
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
}

    .filter-header i {
        margin-right: 10px;
    }

.filter-toggle-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

    .filter-toggle-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .filter-toggle-btn i {
        margin: 0;
        font-size: 0.8rem;
        transition: all 0.3s;
    }

    .filter-toggle-btn.collapsed i.fa-minus {
        display: none;
    }

    .filter-toggle-btn:not(.collapsed) i.fa-plus {
        display: none;
    }

.filter-body {
    background-color: white;
    border: 1px solid var(--medium-gray);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 8px;
}

.filter-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--light-gray);
    margin-top: 10px;
}

    .filter-footer .btn {
        margin-left: 10px;
    }

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

    .status-indicator.completed {
        background-color: var(--success-color);
    }

    .status-indicator.pending {
        background-color: var(--warning-color);
    }

    .status-indicator.in-progress {
        background-color: var(--info-color);
    }

/* Estilo para el campo con máscara */
.masked-input {
    letter-spacing: 0.5px;
    font-family: monospace;
}

/* Estilo para el placeholder de la máscara */
.form-control::placeholder {
    color: #adb5bd;
    opacity: 0.7;
}

/* Ocultar inicialmente los detalles */
.details-container {
    display: none;
}

/* Mensaje de no resultados */
.no-results {
    display: none;
    text-align: center;
    padding: 30px;
    color: var(--dark-gray);
}

    .no-results i {
        font-size: 3rem;
        color: var(--medium-gray);
        margin-bottom: 15px;
    }

    .no-results h5 {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .no-results p {
        font-size: 0.8rem;
        max-width: 500px;
        margin: 0 auto;
    }

/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos generales modernos */
body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .section-title, .section-title-modern {
    font-family: 'Poppins', sans-serif;
}

/* Estilos para la tabla de resultados múltiples */
.results-table-container {
    background-color: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

/* Título de sección moderno */
.section-title-modern {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

    .section-title-modern h5 {
        font-weight: 600;
        color: var(--primary-color);
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }

    .section-title-modern i {
        color: var(--primary-color);
    }

/* Estilos para DataTables */
.dataTables_wrapper {
    font-family: 'Inter', sans-serif;
}

    .dataTables_wrapper .row {
        margin-left: 0;
        margin-right: 0;
    }

/* Campo de búsqueda personalizado */
.dt-custom-search {
    margin-bottom: 15px;
}

.dataTables_filter {
    width: 100%;
    max-width: 300px;
    margin-bottom: 0;
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-bottom: 0;
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-bottom: 0;
}

    .dataTables_filter label {
        width: 100%;
        margin-bottom: 0;
    }

.search-input {
    width: 100% !important;
    height: 36px !important;
    padding: 8px 12px 8px 36px !important;
    border-radius: 6px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease !important;
    font-size: 0.85rem !important;
    background-color: #fff !important;
    width: 100% !important;
    height: 40px !important;
    padding: 10px 15px 10px 40px !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    background-color: #f8f9fa !important;
    width: 100% !important;
    height: 38px !important;
    padding: 8px 15px 8px 40px !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    background-color: #f8f9fa !important;
}

    .search-input:focus {
        border-color: var(--primary-color) !important;
        background-color: #fff !important;
    }

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 1;
    pointer-events: none;
    font-size: 14px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #192a56;
    z-index: 10;
    pointer-events: none;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    z-index: 10;
    pointer-events: none;
}

/* Información de la tabla */
.dataTable-info {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Tabla moderna */
.modern-table {
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

    .modern-table thead th {
        background-color: #f8f9fa;
        color: #333;
        font-weight: 600;
        border-bottom: 2px solid #192a56;
        padding: 10px 14px;
        font-size: 0.85rem;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        white-space: nowrap;
        background-color: #f8f9fa;
        color: #333;
        font-weight: 600;
        border-bottom: 2px solid #192a56;
        padding: 12px 16px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        white-space: nowrap;
        background-color: #f8f9fa;
        color: #495057;
        font-weight: 600;
        border-bottom: 2px solid var(--primary-color);
        padding: 8px;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .modern-table tbody tr {
        transition: all 0.2s;
        border-bottom: 1px solid #f2f2f2;
        transition: all 0.2s;
        border-bottom: 1px solid #f2f2f2;
        transition: all 0.2s;
        border-bottom: 1px solid #f2f2f2;
    }

        .modern-table tbody tr:last-child {
            border-bottom: none;
        }

        .modern-table tbody tr:hover {
            background-color: rgba(39, 60, 117, 0.03);
        }

    .modern-table td {
        padding: 10px 14px;
        vertical-align: middle;
        font-size: 0.85rem;
        color: #333;
        padding: 12px 16px;
        vertical-align: middle;
        font-size: 0.85rem;
        color: #333;
        padding: 8px;
        vertical-align: middle;
        font-size: 0.8rem;
        color: #333;
    }

/* Paginación elegante */
.dataTables_paginate {
    margin-top: 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px !important;
    display: flex;
    justify-content: center;
}

.paginate_button {
    margin: 0 2px !important;
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    font-size: 0.85rem !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
    margin: 0 3px !important;
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    font-size: 0.85rem !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
    margin: 0 3px !important;
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
}

    .paginate_button.current {
        background: #192a56 !important;
        color: white !important;
        box-shadow: 0 1px 3px rgba(25, 42, 86, 0.2) !important;
        font-weight: 500 !important;
        background: #192a56 !important;
        color: white !important;
        box-shadow: 0 2px 5px rgba(25, 42, 86, 0.2) !important;
        background: var(--primary-color) !important;
        color: white !important;
    }

    .paginate_button:hover:not(.current):not(.disabled) {
        background: #f8f9fa !important;
        color: var(--primary-color) !important;
    }

    .paginate_button.disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
    }

/* Botones de acción elegantes */
.action-button {
    border-radius: 6px !important;
    padding: 6px 15px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: all 0.3s ease !important;
}

    .action-button:hover {
        background-color: var(--primary-dark) !important;
        border-color: var(--primary-dark) !important;
        transform: translateY(-2px) !important;
    }

    .action-button:active {
        transform: translateY(0) !important;
    }

/* Botón de volver elegante */
.back-button {
    border-radius: 6px !important;
    padding: 6px 15px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
}

    .back-button:hover {
        background-color: var(--primary-color) !important;
        color: white !important;
        transform: translateY(-2px) !important;
    }

    .back-button:active {
        transform: translateY(0) !important;
    }

/* Estilos para las badges de estado */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

    .status-badge.success {
        background-color: rgba(76, 175, 80, 0.1);
        color: #4CAF50;
        border: 1px solid rgba(76, 175, 80, 0.2);
    }

    .status-badge.pending {
        background-color: rgba(255, 152, 0, 0.1);
        color: #FF9800;
        border: 1px solid rgba(255, 152, 0, 0.2);
    }

    .status-badge.info {
        background-color: rgba(33, 150, 243, 0.1);
        color: #2196F3;
        border: 1px solid rgba(33, 150, 243, 0.2);
    }

    .status-badge.warning {
        background-color: rgba(255, 193, 7, 0.1);
        color: #FFC107;
        border: 1px solid rgba(255, 193, 7, 0.2);
    }

    .status-badge.default {
        background-color: #3B3B98;
        color: #fff;
        border: 1px solid rgba(158, 158, 158, 0.2);
    }

/* Checkbox de tramitador estilizado */
.custom-checkbox {
    padding-left: 1.8rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
    transition: all 0.2s;
}

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.form-check-label {
    font-weight: 500;
    color: var(--primary-color);
}

/* Animaciones personalizadas */
.animate__fadeIn {
    animation-duration: 0.5s;
}

.animate__fadeOutLeft, .animate__fadeInRight, .animate__fadeOutRight, .animate__fadeInLeft {
    animation-duration: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .results-table-container {
        padding: 20px;
    }

    .search-input {
        width: 100% !important;
        height: 36px !important;
        padding: 8px 12px 8px 36px !important;
        border-radius: 6px !important;
        border: 1px solid #e0e0e0 !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
        transition: all 0.2s ease !important;
        font-size: 0.85rem !important;
        background-color: #fff !important;
        width: 100% !important;
        height: 40px !important;
        padding: 10px 15px 10px 40px !important;
        border-radius: 8px !important;
        border: 1px solid #e0e0e0 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
        transition: all 0.3s ease !important;
        font-size: 0.9rem !important;
        background-color: #f8f9fa !important;
        max-width: 100%;
    }

    .dataTables_filter {
        width: 100%;
        max-width: 300px;
        margin-bottom: 0;
        position: relative;
        width: 100%;
        max-width: 300px;
        margin-bottom: 0;
        position: relative;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .dataTable-info {
        text-align: center;
    }
}

.nav-tabs {
    display: none !important;
}


.custom-tab-card {
    background: #fff;
    border: none;
    outline: none;
    border-radius: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 40px 22px 40px;
    cursor: pointer;
    position: relative;
    min-width: 144px;
    min-height: 164px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    margin-bottom: -12px;
    z-index: 1;
}

    .custom-tab-card .icon-circle {
        width: 68px;
        height: 68px;
        border-radius: 50%;
        background: #273c75;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        transition: all .23s;
        border: 3px solid #fff;
    }

        .custom-tab-card .icon-circle svg {
            width: 36px;
            height: 36px;
            display: block;
        }

.tab-card-text {
    font-size: 1.13rem;
    font-weight: 700;
    color: #273c75;
    text-align: center;
    letter-spacing: 0.1px;
    margin-top: 12px;
    margin-bottom: 2px;
    text-shadow: 0 1px 0 #f7fafc;
}

.custom-tab-card.active, .custom-tab-card:focus {
    background: linear-gradient(135deg, #f3f7ff 0%, #e8f1ff 100%);
    border-bottom: 4px solid #273c75;
}

    .custom-tab-card.active .icon-circle,
    .custom-tab-card:focus .icon-circle {
        background: #fff;
        border-color: #273c75;
    }

.custom-tab-card:not(.active):hover {
    transform: translateY(-2px) scale(1.05);
    background: #f4f8fc;
}

.custom-tab-card:not(.active) .icon-circle {
    background: #273c75;
}

.custom-tab-card:not(.active) .tab-card-text {
    color: #273c75bb;
    font-weight: 500;
}

@media (max-width: 700px) {

    .custom-tab-card {
        width: 95vw;
        min-width: 0;
        padding: 24px 0 14px 0;
    }
}


.custom-tabs-container {
    gap: 34px !important;
    margin-top: 24px;
    margin-bottom: 24px;
}

.glass-tab-card {
    width: 210px !important;
    height: 160px !important;
    border-radius: 22px;
    background: rgba(245, 248, 255, 0.86);
    border: 2.5px solid #e5ebf6;
    box-shadow: 0 2px 18px rgba(46, 63, 132, 0.07), 0 1.5px 4px rgba(46, 63, 132, 0.04);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: box-shadow .24s cubic-bezier(.6,.3,.3,1), border-color .20s cubic-bezier(.6,.3,.3,1), background .22s cubic-bezier(.6,.3,.3,1), transform .16s cubic-bezier(.6,.3,.3,1);
}

.icon-circle-glass {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fafdff 65%, #e5eefe 100%);
    border: 1.5px solid #d4ddfa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: border-color .17s, background .14s;
    box-shadow: 0 2px 12px rgba(82,120,207,0.04);
}

    .icon-circle-glass svg {
        width: 26px;
        height: 26px;
    }

.glass-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #26344b;
    text-align: center;
    margin-bottom: 3px;
    letter-spacing: .01em;
    transition: color .17s;
}

.glass-card-desc {
    font-size: 1.01rem;
    color: #7c8ba7;
    font-weight: 500;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.15;
    letter-spacing: 0;
    word-break: break-word;
}

.glass-tab-card.active, .glass-tab-card:focus {
    background: linear-gradient(115deg, #e9f2ff 65%, #fafdff 100%);
    border: 2.5px solid #4066b1;
    box-shadow: 0 4px 32px rgba(46, 63, 132, 0.15), 0 1.5px 6px rgba(46, 63, 132, 0.07);
    transform: scale(1.035);
    z-index: 2;
}

    .glass-tab-card.active .icon-circle-glass {
        background: linear-gradient(120deg, #e3eaff 60%, #fafdff 100%);
        border-color: #4066b1;
    }

    .glass-tab-card.active .glass-card-title {
        color: #284e90;
    }

.glass-tab-card:not(.active):hover {
    border-color: #a1b5e9;
    background: #f4faff;
    transform: translateY(-2px) scale(1.023);
}

.glass-tab-card:active {
    transform: scale(0.97);
}

@media (max-width: 700px) {
    .glass-tab-card {
        width: 97vw !important;
        height: 105px !important;
        border-radius: 13px;
    }

    .icon-circle-glass {
        width: 38px;
        height: 38px;
    }

    .glass-card-title {
        font-size: 1.01rem;
    }

    .glass-card-desc {
        font-size: .93rem;
    }
}
.consulta-title-gradient {
    text-align: center;
    font-size: 1.38rem;
    font-weight: 800;
    background: linear-gradient(90deg,#4066b1 45%, #4fc5e8 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .03em;
    margin-bottom: 28px;
    margin-top: 8px;
    font-family: 'Poppins', 'Inter', sans-serif;
}


body, .app-container, .container {
    background: #fff !important;
}

body, .app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f0f2f5 !important;
}

.container {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.card {
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(39,60,117,0.07);
    border-radius: 18px;
    padding-bottom: 40px;
    border: none;
    margin-bottom: 40px;
}

.custom-tabs-container {
    background: #fff !important;
    border-radius: 0;
    box-shadow: none;
    gap: 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.header {
    margin-bottom: 12px;
}

.checkbox-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.info-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
    cursor: help;
    transition: all 0.2s ease;
}

    .info-icon:hover {
        color: #3b82f6;
        transform: scale(1.1);
    }

.custom-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    border-radius: 12px;
    padding: 0;
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.info-icon-wrapper:hover .custom-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.tooltip-content {
    padding: 16px;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f9fafb;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.tooltip-icon {
    width: 16px;
    height: 16px;
    color: #3b82f6;
}

.tooltip-body {
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-tooltip {
        min-width: 240px;
        max-width: 280px;
    }

    .tooltip-content {
        padding: 12px;
    }
}

/* Enhanced animation transitions */
.timeline-item {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.timeline-icon {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.timeline-content {
    transition: transform 0.3s ease, border-left-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
}

.timeline-item:hover .timeline-content {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Smooth transitions for all interactive elements */
.btn, .form-control, .form-select, .nav-link, .custom-tab-card {
    transition: all 0.25s ease-out;
}

/* Improve animation performance */
.animate__animated {
    will-change: transform, opacity;
}

/* Smoother hover effects */
.ver-expediente:hover, .ver-gestion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 42, 86, 0.2);
    background-color: #111e40 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 42, 86, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Enhanced animation transitions for both Gestiones and Expedientes */
.timeline-item {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.timeline-icon {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.timeline-content {
    transition: transform 0.3s ease, border-left-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
}

.timeline-item:hover .timeline-content {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Smooth transitions for all interactive elements */
.btn, .form-control, .form-select, .nav-link, .custom-tab-card {
    transition: all 0.25s ease-out;
}

/* Improve animation performance */
.animate__animated {
    will-change: transform, opacity;
}

/* Smoother hover effects */
.ver-expediente:hover, .ver-gestion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 42, 86, 0.2);
    background-color: #111e40 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 42, 86, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ensure consistent animation timing */
.animate__fadeInRight, .animate__fadeOutLeft, .animate__fadeInLeft, .animate__fadeOutRight {
    animation-duration: 0.4s !important;
}

/* Add smooth transitions to table rows */
#tablaResultados tbody tr, #tablaResultadosGestiones tbody tr {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, background-color 0.2s;
}

/* Estilos para el filtro de tipo de trámite */
.tipo-filter {
    padding: 0 15px;
}

    .tipo-filter select {
        width: 100%;
        max-width: 100%;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        padding: 7px 12px;
        font-size: 0.85rem;
        background-color: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        transition: all 0.2s ease;
        height: 36px;
    }

        .tipo-filter select:focus {
            border-color: #192a56;
            box-shadow: 0 0 0 0.2rem rgba(25, 42, 86, 0.25);
        }

/* Ajustes para la paginación */
.paginate_button.previous, .paginate_button.next {
    font-size: 0.8rem !important;
}

/* Ajustes para los controles de longitud */
.dataTables_length select {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 5px 10px;
    font-size: 0.85rem;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    height: 36px;
}

    .dataTables_length select:focus {
        border-color: #192a56;
        box-shadow: 0 0 0 0.2rem rgba(25, 42, 86, 0.25);
    }

.dataTables_length label {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ajustes para la información de registros */
.dataTable-info {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .tipo-filter, .dataTables_length, .dataTables_filter {
        margin-bottom: 10px;
        text-align: left;
    }

        .tipo-filter select, .dataTables_filter input {
            max-width: 100%;
        }
}

/* Estilos para el footer profesional */
.footer {
    background-color: #001C71; /* Azul corporativo Pantone 662 C */
    color: #f8f9fa;
    border-top: 5px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding: 20px 0;
}



.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-width: 180px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-text {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 240px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

    .footer-heading:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 10px;
        font-size: 0.85rem;
        display: flex;
        align-items: flex-start;
    }

        .footer-links li i {
            margin-right: 8px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            margin-top: 3px;
        }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .footer-links a:hover {
            color: #fff;
            text-decoration: none;
        }

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.footer-bottom {
    font-size: 0.85rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

    .social-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: #fff;
        transform: translateY(-2px);
    }

@media (max-width: 767px) {
    .footer-brand, .footer-links, .copyright, .social-links {
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-heading:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 15px;
    }
}
/* Alinea el label "Buscar:" y el input horizontalmente */
.dataTables_filter {
    display: flex !important;
    align-items: center !important;
    gap: 7px;
}
.dataTables_filter label {
    margin: 0 !important;
    font-weight: 500;
    color: #434764;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dataTables_filter input[type="search"] {
    margin: 0 !important;
    display: inline-block;
    vertical-align: middle;
}
.dataTables_filter input[type="search"]:focus {
    border-color: #2656b7 !important;
    box-shadow: 0 1px 3px rgba(80,115,195,0.07);
    outline: none !important;
    background: #f7fafd;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tabs-wrapper {
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.tabs-clean {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #e3e7ed;
}

.tab-clean {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #2f2f6d;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeef3;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .tab-clean:last-child {
        border-bottom: none;
    }

    .tab-clean:hover {
        background-color: #f5f7fa;
    }

    .tab-clean.active {
        background-color: #001C71;
        color: #ffffff;
        font-weight: 600;
        border-left: 4px solid #001C71;
        border-radius: 0;
    }

.tab-icon {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.timeline-item.skipped .timeline-icon {
    background-color: #f0f0f0;
    color: #aaa;
}

.timeline-item.skipped .timeline-content {
    opacity: 0.75;
}

.custom-progress-bar {
    position: relative;
    background-color: #273c75;
    height: 100%;
    width: 0%;
    transition: width 1.5s ease-in-out;
    border-radius: 6px;
    overflow: hidden;
}

    .custom-progress-bar::after {
        content: "";
        position: absolute;
        top: 0;
        left: -50%;
        width: 50%;
        height: 100%;
        background: linear-gradient( to right, transparent, rgba(255, 255, 255, 0.3), transparent );
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

#toast-container > .toast {
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
#toast-container > .toast {
    opacity: 1 !important;
}
.toast-error {
    background-color: #1e3a8a !important;
    color: #fff !important;
    opacity: 1 !important;
    border-left: 5px solid #0d47a1;
    font-size: .8rem;
}

/* ===== TIMELINE 2 COLS + ORDEN EXPLÍCITO ===== */

/* Quitamos el canal/linea izquierda y el icono absoluto del layout anterior */
.timeline {
    padding-left: 0 !important;
}

    .timeline::before {
        display: none !important;
    }

.timeline-icon {
    position: static !important;
}
/* antes estaba absolute con left:-30px */

/* Grid responsivo: 1 col en móvil, 2 cols en desktop */
.timeline.timeline-compact {
    display: block !important; /* <-- Cambia grid por block */
    counter-reset: paso;
    gap: 0 !important;
}


/* Card limpia por item */
.timeline-item,
.timeline-subitem {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px;
    margin: 0;
    border: 1px solid #e9edf5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(23,35,79,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .timeline-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(23,35,79,.08);
    }

/* Icono redondo integrado (sin desplazar el layout) */
.timeline-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--medium-gray);
    background: #fff;
    color: #9aa0ae;
    font-size: .8rem;
}

.timeline-item.completed .timeline-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #fff;
}

.timeline-item.skipped .timeline-icon {
    background: #fff;
    border-color: #e5e8f3;
    color: #c2c7d6;
}

/* Contenido */
.timeline-content {
    flex: 1;
    padding: 14px 16px 12px 16px;
    border-left: 0;
    border-radius: 12px;
}

/* Título + número de paso + chip de estado */
.timeline-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #213152;
    font-size: .95rem;
    position: relative;
}

.timeline-item:not(.timeline-subitem) .timeline-title::before {
    counter-increment: paso;
    content: counter(paso) ".";
    font-weight: 800;
    color: #273c75;
    margin-right: 4px;
}

.timeline-item.completed .timeline-title::after {
    content: "Completado";
    margin-left: auto;
    padding: .18rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(76,175,80,.1);
    color: #2e7d32;
    border: 1px solid rgba(76,175,80,.22);
    border-radius: .5rem;
}

/*.timeline-item.skipped:first-of-type .timeline-title::after {
    content: "En curso";
    margin-left: auto;
    padding: .18rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    background: #273c75;
    color: #fff;
    border-radius: .5rem;
}*/

.timeline-item.skipped:not(:first-of-type) .timeline-title::after {
    content: "Pendiente";
    margin-left: auto;
    padding: .18rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    background: #f6f8fc;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
}

/* Tipografía secundaria */
.timeline-date {
    margin-top: 4px;
    color: #6a738b;
    font-size: .8rem;
    display: flex;
    gap: 6px;
    align-items: center;
}

.timeline-description {
    margin-top: 6px;
    color: #5a6277;
    font-size: .86rem;
    line-height: 1.38;
}

/* Subitems más ligeros y sin numerar */
.timeline-subitem {
    border-style: dashed;
    background: linear-gradient(180deg,#fafcff,#ffffff);
}

    .timeline-subitem .timeline-title::before {
        content: none;
    }

/* Accesibilidad al paso actual (primer .skipped) */
/*.timeline-item.skipped:first-of-type {
    outline: 2px solid #273c75;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(39,60,117,.08), 0 16px 28px rgba(23,35,79,.10);
    background: linear-gradient(0deg,rgba(39,60,117,.04),rgba(39,60,117,.04));
}*/

/* Sin scroll lateral: asegura que ningún card se desborde */
.timeline.timeline-compact, .timeline-item, .timeline-content {
    max-width: 100%;
    overflow-x: hidden;
}



/* Asegura que ningún card rompa el ancho/alto del grid */
.timeline.timeline-compact,
.timeline-item,
.timeline-content {
    max-width: 100%;
    overflow: visible;
}
/* Evita transparencias mientras la barra flota */
#detallesExpediente .progress-container { background: #fff; }


.badge-aprobada,
.badge-favorable {
    display: inline-block;
    background: #00C853;
    color: #fff;
    border-radius: 12px;
    font-size: 0.7rem;
    line-height: 1.2;
    padding: 4px 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,200,83,0.07);
    margin-left: 10px;
    margin-top: 2px;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.1px;
    border: 1px solid #00B34A;
}


.badge-denegada {
    display: inline-block;
    background: #E53935;
    color: #fff;
    border-radius: 12px;
    font-size: 0.7rem;
    line-height: 1.2;
    padding: 4px 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(229,57,53,0.07);
    margin-left: 10px;
    margin-top: 2px;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.1px;
    border: 1px solid #C62828;
}

.badge-memo {
    display: inline-block;
    background: #FFEB3B;
    color: #333;
    border-radius: 12px;
    font-size: 0.7rem;
    line-height: 1.2;
    padding: 4px 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255,235,59,0.09);
    margin-left: 0px;
    margin-top: 2px;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.1px;
    border: 1px solid #FBC02D;
}

.timeline-wizard {
    background: #fff;
    border-radius: 20px;
    padding: 32px 16px 0 16px;
    margin-bottom: 36px;
    position: relative;
    overflow: visible;
}

.wizard-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 61px;
    height: 5px;
    background: #eceef4;
    border-radius: 6px;
    z-index: 1;
    transition: background .25s;
}

.wizard-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg,#47b86e,#3fbb3a 80%,#1864ca 100%);
    border-radius: 6px;
    z-index: 2;
    width: 0%;
    transition: width 1.2s cubic-bezier(.45,1,.27,1);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 5;
    position: relative;
    gap: 0;
    width: 100%;
    overflow-x: unset;
    overflow-y: visible;
    box-sizing: border-box;
    padding-bottom: 10px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 90px;
    max-width: 130px;
    text-align: center;
    position: relative;
    background: none;
    cursor: default;
    box-sizing: border-box;
}

.wizard-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2.8px solid #cfd8dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.30rem;
    color: #bbc4d4;
    margin-bottom: 7px;
    z-index: 9;
    box-shadow: 0 2px 7px rgba(23,35,79,0.07);
    transition: border-color .18s, background .18s, color .15s;
}

.wizard-step.done .wizard-dot {
    background: #43be6a;
    border-color: #43be6a;
    color: #fff;
}

.wizard-step.active .wizard-dot {
    background: #fff;
    border-color: #1864ca;
    color: #1864ca;
    box-shadow: 0 0 0 6px rgba(24,100,202,0.08);
}

.wizard-step:not(.done):not(.active) .wizard-dot {
    background: #f6f8fa;
    border-color: #e7e9f2;
    color: #c7cdd8;
}

.wizard-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1b2c43;
    margin-bottom: 2px;
    margin-top: 3px;
    letter-spacing: 0.01em;
    background: none;
    border: none;
    white-space: normal;
    word-break: break-word;
    transition: color .18s;
}

.wizard-step.done .wizard-label {
    color: #2b924b;
}

.wizard-step.active .wizard-label {
    color: #1864ca;
}

.wizard-step:not(.done):not(.active) .wizard-label {
    color: #bbc4d4;
}

.wizard-label:hover, .wizard-step[title]:hover .wizard-label {
    text-decoration: none !important;
    cursor: default;
}

.wizard-date {
    font-size: .89rem;
    color: #a9b2c3;
    font-weight: 500;
    min-height: 19px;
    margin-top: 0px;
}

.wizard-step[title]:hover .wizard-label {
    text-decoration: none !important;
}

.wizard-step[title]:hover {
    background: none;
    box-shadow: none;
}

.wizard-step, .wizard-dot, .wizard-label {
    transition: background .15s, color .15s, border-color .18s;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
    .timeline-wizard {
        padding: 18px 2vw 0 2vw;
    }

    .wizard-track {
        left: 18px;
        right: 18px;
        top: 46px;
    }

    .wizard-dot {
        width: 30px;
        height: 30px;
        font-size: 1.01rem;
    }

    .wizard-steps {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        min-width: 0;
        padding-left: 16px;
        padding-right: 16px;
        gap: 0;
    }

    .wizard-step {
        flex: 0 0 130px;
        min-width: 130px;
        max-width: 170px;
        scroll-snap-align: start;
    }

    .wizard-steps::-webkit-scrollbar {
        height: 4px;
    }

    .wizard-steps::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 3px;
    }
}

@media (max-width: 700px) {
    .timeline-wizard {
        padding: 10px 0 0 0;
        border-radius: 0;
        box-shadow: 0 4px 16px rgba(23,35,79,0.08);
        border: none;
        background: #fff;
    }

    .wizard-steps {
        padding-left: 12px;
        padding-right: 12px;
    }

    .wizard-date {
        display: none;
    }
}



.wizard-step.active .wizard-dot {
    position: relative;
    z-index: 1;
}

    .wizard-step.active .wizard-dot::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 40px; /* tamaño del círculo animado */
        height: 40px;
        border-radius: 50%;
        background: rgba(39, 60, 117, 0.14); /* color primario translúcido */
        animation: wizard-pulse 1.2s infinite;
        z-index: 0;
        pointer-events: none;
    }

@keyframes wizard-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.7);
        opacity: 0;
    }
}


.wizard-step.active .wizard-dot i {
    animation: bounceIcon 1.2s infinite;
}

@keyframes bounceIcon {
    0%, 100% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.16);
    }

    40% {
        transform: scale(0.95);
    }

    60% {
        transform: scale(1.05);
    }

    80% {
        transform: scale(0.98);
    }
}


.wizard-step.active .wizard-label {
    animation: flashLabel 2.2s linear infinite;
}

@keyframes flashLabel {
    0% {
        filter: brightness(1);
    }

    15% {
        filter: brightness(1.4);
    }

    100% {
        filter: brightness(1);
    }
}
.wizard-color-guide {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.7rem;
    margin-top: 2.5rem;
    margin-bottom: 1.8rem;
    /* Sin fondo ni borde */
}

.color-item {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    font-size: 1.09rem;
    font-weight: 500;
    color: #22304a;
    letter-spacing: 0.01em;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: color 0.18s;
}

    .color-item:hover {
        color: #0ea5e9;
    }

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 1.5px 7px rgba(50, 94, 188, 0.09);
    display: inline-block;
    transition: transform 0.14s;
}

.color-item:hover .color-dot {
    transform: scale(1.13);
}

/* Colores */
.color-inactivo {
    background: linear-gradient(135deg, #d1d5db 60%, #a0aec0 100%);
}

.color-proceso {
    background: linear-gradient(135deg, #38bdf8 60%, #0ea5e9 100%);
}

.color-finalizado {
    background: linear-gradient(135deg, #38c172 60%, #22c55e 100%);
}

.color-label {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.timeline-container,
#timeline-detalle,
[data-detalle="tracking-only"] {
    max-height: 420px; /* O el alto que tú necesites */
    overflow-y: auto; /* Activa el scroll vertical */
    padding-right: 0.5rem; /* Espacio para la barra de scroll, opcional */
    box-sizing: border-box;
    /* Puedes agregar un pequeño border-radius o sombra si lo quieres aún más elegante */
    /* border-radius: 10px;
    box-shadow: 0 2px 16px rgba(40,60,90,0.06); */
}

    /* Estiliza la barra de scroll si lo deseas (opcional y compatible con navegadores modernos) */
    .timeline-container::-webkit-scrollbar,
    #timeline-detalle::-webkit-scrollbar,
    [data-detalle="tracking-only"]::-webkit-scrollbar {
        width: 7px;
        background: #f1f5f9;
        border-radius: 7px;
    }

    .timeline-container::-webkit-scrollbar-thumb,
    #timeline-detalle::-webkit-scrollbar-thumb,
    [data-detalle="tracking-only"]::-webkit-scrollbar-thumb {
        background: #b6c1d1;
        border-radius: 7px;
    }
.card-limite-prorroga {
    background: linear-gradient(90deg, #fffbe6 65%, #e3f0ff 100%);
    border-left: 6px solid #1976D2;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(39,60,117,0.07);
    padding: 18px 24px 18px 22px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 18px;
    animation: fadeIn .7s cubic-bezier(.4,0,.2,1);
}

.icono-alerta {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1976d220;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976D2;
    font-size: 1.6rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.card-limite-prorroga .contenido-limite {
    flex: 1;
}

.card-limite-prorroga .titulo-limite {
    font-size: 1.09rem;
    font-weight: 700;
    color: #273c75;
    margin-bottom: 4px;
    letter-spacing: .01em;
}

.card-limite-prorroga .detalle-limite {
    font-size: .99rem;
    color: #1c2a48;
    font-weight: 500;
}

@media (max-width:600px) {
    .card-limite-prorroga {
        padding: 14px 9px 14px 13px;
        font-size: .96rem;
    }

    .icono-alerta {
        width: 36px;
        height: 36px;
        font-size: 1.19rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.floating-action-button {
    position: fixed;
    bottom: 34px;
    right: 34px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg,#4066b1 0%, #233663 100%);
    color: #fff;
    font-size: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(40,70,140,.17);
    transition: box-shadow .19s, background .15s, transform .14s;
}

    .floating-action-button:hover {
        background: #274285;
        box-shadow: 0 8px 36px rgba(40,70,140,.25);
        transform: scale(1.09);
    }

/* Acciones secundarias mejoradas */
.fab-actions {
    position: fixed;
    bottom: 110px; /* Aumenta el espacio desde el FAB principal */
    right: 41px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px; /* MÁS ESPACIO ENTRE BOTONES */
    pointer-events: none;
    z-index: 1999;
}

.fab-action-btn {
    width: 60px; /* MÁS GRANDES */
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #273c75;
    box-shadow: 0 4px 16px rgba(40,60,130,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    transition: opacity .23s cubic-bezier(.61,.01,.42,1.01), transform .24s cubic-bezier(.61,.01,.42,1.01);
    pointer-events: none;
    padding: 0;
}

    .fab-action-btn.fab-wa {
        color: #25d366;
        background: #fff;
    }

    .fab-action-btn.fab-help {
        color: #4066b1;
        background: #fff;
    }

.fab-actions.open .fab-action-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1.08);
}

.fab-actions .fab-action-btn:hover {
    box-shadow: 0 8px 24px rgba(60,120,200,0.17);
    background: #f2f7fd;
    color: #152c50;
    transform: scale(1.13);
}

/* Responsive */
@media (max-width:700px) {
    .floating-action-button {
        bottom: 14px;
        right: 14px;
        width: 50px;
        height: 50px;
        font-size: 1.45rem;
    }

    .fab-actions {
        bottom: 64px;
        right: 17px;
        gap: 13px;
    }

    .fab-action-btn {
        width: 42px;
        height: 42px;
        font-size: 1.22rem;
    }
}
.card-limite-prorroga.vencida {
    background: linear-gradient(90deg, #ffebee 65%, #fff 100%);
    border-left: 6px solid #c62828;
    box-shadow: 0 2px 16px rgba(220,38,38,0.06);
}

.badge-anulado {
    display: inline-block;
    background: #223354;
    color: #fff;
    border-radius: 12px;
    font-size: 0.77rem;
    line-height: 1.2;
    padding: 4px 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(34,51,84,0.07);
    margin-left: 10px;
    margin-top: 2px;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.1px;
    border: 1px solid #1b2741;
}

/* Tarjeta deshabilitada (oscurece y bloquea el click) */
.disabled-tab-card {
    opacity: 0.73;
    filter: grayscale(0.25) brightness(0.96);
    position: relative;
    cursor: not-allowed !important;
}

/* Cinta de construcción tipo "obra" */
.cinta-glass-construccion {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%) rotate(-6deg);
    background: repeating-linear-gradient( 120deg, #ffe066, #ffe066 14px, #ffd43b 14px, #ffd43b 28px );
    color: #a26a00;
    font-weight: 900;
    font-size: .97rem;
    border-radius: 8px;
    padding: 5px 22px 5px 16px;
    box-shadow: 0 2px 12px rgba(255,208,57,0.06);
    letter-spacing: .10em;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0.94;
}

    .cinta-glass-construccion i {
        font-size: 1.13em;
        margin-right: 4px;
    }

.swal2-custom-popup {
    border-radius: 14px !important;
    font-size: 1.06rem;
    padding-top: 20px !important;
}

.badge-respuesta {
    display: inline-block;
    margin-left: .5rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    vertical-align: middle;
}

    .badge-respuesta.favorable {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .badge-respuesta.denegado {
        background: #ffebee;
        color: #c62828;
    }

    .badge-respuesta.memorando {
        background: #fff3e0;
        color: #ef6c00;
    }

/* ===== SUMMARY CARDS (encabezado: código, ingreso, días, última actualización) ===== */
.summary-row {
    display: grid;
    gap: 16px;
    width: 100%;
    /* layout estable por breakpoints (evita “brincos”) */
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 3 columnas en pantallas L (entre ~992 y 1200) */
@media (max-width: 1199.98px) {
    .summary-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* 2 columnas en pantallas M (tablets) */
@media (max-width: 991.98px) {
    .summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* 1 columna en pantallas XS (móvil chico) */
@media (max-width: 575.98px) {
    .summary-row {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
    min-width: 0; /* clave: evita overflow en grid */
}

/* icono circular (colores opcionales por estado) */
.summary-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
    background: #eef2ff;
    color: #2c3e50;
}

    .summary-icon.primary {
        background: #e8eefc;
        color: #2c3e50;
    }

    .summary-icon.success {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .summary-icon.warning {
        background: #fff8e1;
        color: #ef6c00;
    }

.summary-content {
    min-width: 0;
}
/* clave: permite elipsis */
.summary-title {
    font-size: .8rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.2;
    margin-bottom: 2px;
}

.summary-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap; /* no salta de línea */
    overflow: hidden; /* evita desbordes feos */
    text-overflow: ellipsis; /* … cuando no cabe */
}

/* micro-ajustes en pantallas chicas */
@media (max-width: 575.98px) {
    .summary-card {
        padding: 14px;
    }

    .summary-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-right: 10px;
    }

    .summary-title {
        font-size: .78rem;
    }

    .summary-value {
        font-size: .98rem;
    }
}

.badge-favorable {
    background: #e6f4ea;
    color: #1e7e34;
}

.badge-denegada {
    background: #fdecea;
    color: #c62828;
}

.badge-memo {
    background: #e8f0fe;
    color: #1a73e8;
}

.badge-aprobada {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-anulado {
    background: #fbe9e7;
    color: #d84315;
}

.badge-curso {
    background: #fff3cd;
    color: #7a5d00;
}

/* Timeline wizard: fecha arriba del icono */
.timeline-wizard .wizard-step {
    flex-direction: column;
    align-items: center;
}

.timeline-wizard .wizard-date {
    order: 1;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.timeline-wizard .wizard-dot {
    order: 2;
}

.timeline-wizard .wizard-label {
    order: 3;
    margin-top: 8px;
}

/* En móvil, asegúrate de que la fecha NO se oculte */
@media (max-width:700px) {
    .timeline-wizard .wizard-date {
        display: block !important;
        font-size: .8rem;
    }
}

/* === Badges del wizard: sólido y con texto en la misma gama === */
.timeline-wizard .wizard-label .badge-memo,
.timeline-wizard .wizard-label .badge-aprobada,
.timeline-wizard .wizard-label .badge-favorable,
.timeline-wizard .wizard-label .badge-denegada {
    display: inline-block;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 6px 14px;
    white-space: nowrap;
    vertical-align: middle;
    letter-spacing: 0.1px;
    border: none !important; /* <- evita borde outline */
    background-clip: padding-box;
    box-shadow: none !important; /* <- elimina sombras que “aclaran” */
}

/* MEMO = AMARILLO sólido */
.timeline-wizard .wizard-label .badge-memo {
    background-color: #FFEB3B !important; /* amarillo pleno */
    color: #6b5200 !important; /* texto ámbar oscuro */
}

/* FAVORABLE = VERDE sólido */
.timeline-wizard .wizard-label .badge-aprobada,
.timeline-wizard .wizard-label .badge-favorable { /* alias si usas ambas */
    background-color: #00C853 !important; /* verde pleno */
    color: #E8FFF1 !important; /* verde muy claro para contraste */
}

/* DENEGADA = ROJO sólido */
.timeline-wizard .wizard-label .badge-denegada {
    background-color: #E53935 !important; /* rojo pleno */
    color: #FFECEC !important; /* rojo muy claro para contraste */
}

/* (Opcional) un pelín de contraste sobre fondos claros */
.timeline-wizard .wizard-label .badge-memo,
.timeline-wizard .wizard-label .badge-aprobada,
.timeline-wizard .wizard-label .badge-favorable,
.timeline-wizard .wizard-label .badge-denegada {
    outline: 1px solid rgba(0,0,0,0.03);
}

/* Badges del wizard: un poco más pequeños */
.timeline-wizard .wizard-label .badge-memo,
.timeline-wizard .wizard-label .badge-aprobada,
.timeline-wizard .wizard-label .badge-favorable,
.timeline-wizard .wizard-label .badge-denegada {
    font-size: 0.68rem !important; /* antes ~0.75rem / 0.7rem */
    padding: 3px 10px !important; /* antes 4–6px x 14–16px */
    border-radius: 999px; /* mantiene forma pill */
}

/* La pista va por detrás, los pasos por delante */
.timeline-wizard {
    position: relative;
}

    .timeline-wizard .wizard-track {
        position: absolute; /* <- clave para moverla verticalmente */
        left: 0;
        right: 0;
        height: 6px;
        border-radius: 999px;
        z-index: 1; /* detrás de los dots */
    }

    .timeline-wizard .wizard-progress {
        height: 100%;
        border-radius: 999px;
    }

    .timeline-wizard .wizard-steps {
        position: relative;
        z-index: 2;
    }

    .timeline-wizard .wizard-step .wizard-dot {
        position: relative;
        z-index: 3;
    }

    /* (opcional) asegúrate de que los pasos tengan el mismo gap vertical */
    .timeline-wizard .wizard-step {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .timeline-wizard .wizard-date {
        margin-bottom: 8px;
    }

    .timeline-wizard .wizard-label {
        margin-top: 10px;
    }

    /* Progreso de la línea de tiempo en verde #4cd137 */
    .timeline-wizard .wizard-progress {
        background: #4cd137 !important;
    }

    /* Paso completado (dot e icono) */
    .timeline-wizard .wizard-step.done .wizard-dot {
        background: #4cd137;
        border-color: #4cd137;
        color: #fff; /* mantiene el ícono en blanco sobre el verde */
    }

    /* Texto de pasos completados */
    .timeline-wizard .wizard-step.done .wizard-label {
        color: #4cd137;
    }

    /* Estado vencido en la línea de tiempo */
    .timeline-wizard .wizard-step.expired .wizard-dot {
        background: #e53935; /* rojo */
        border-color: #e53935;
        color: #fff; /* X en blanco */
    }

    .timeline-wizard .wizard-step.expired .wizard-label {
        color: #e53935; /* texto rojo */
    }

/* Variante mínima para suspensión (hereda de alert-warning) */
.card-limite-prorroga.alert-suspension {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

    .card-limite-prorroga.alert-suspension .alert-icon {
        width: 44px;
        height: 44px;
        border-radius: 9999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff7ed; /* suave */
        color: #d97706; /* warning-600 */
        flex: none;
    }

    .card-limite-prorroga.alert-suspension .alert-body {
        flex: 1;
    }

    .card-limite-prorroga.alert-suspension .alert-title {
        font-weight: 800;
        margin-bottom: 2px;
    }

    .card-limite-prorroga.alert-suspension .alert-text {
        color: var(--c-text-muted, #475569);
        line-height: 1.5;
    }
.details-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .details-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .badge-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  
  .badge-text {
    white-space: nowrap;
    color: currentColor;
  }
  
  .badge-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.5);
      opacity: 0.5;
    }
  }

/* Botón por defecto (tabs inactivos): fondo azul */
.btn-detalle-toggle {
    border: none;
    background: #0b2a74; /* azul */
    color: #e5e7eb;
    margin-left: 8px;
    cursor: pointer;
    font-size: .95rem;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 10px;
    transition: color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
}

    .btn-detalle-toggle .icon-details-emoji {
        font-size: 16px;
    }

    /* Hover */
    .btn-detalle-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 0 0 3px rgba(255,255,255,.12) inset;
    }

    /* Estado activo (toggle abierto): fondo blanco */
    .btn-detalle-toggle.active {
        background: #ffffff;
        color: #0b2a74;
        box-shadow: 0 0 0 2px rgba(11,42,116,.15);
    }

/* 🔹 Tab activo (fondo azul): fuerza fondo blanco para destacar */
.tab-clean.active .btn-detalle-toggle {
    background: #ffffff; /* 👈 blanco siempre */
    color: #0b2a74;
}

    .tab-clean.active .btn-detalle-toggle.active {
        background: #ffffff;
        color: #0b2a74;
        box-shadow: 0 0 0 2px rgba(11,42,116,.25);
    }






