body { 
    /* Tu color sólido de base */
    background-color: #f4f6f9; 
    
    /* La imagen que va por encima */
    background-image: url('../img/resultados/texturas.png'); 
    background-attachment: fixed;
    
    /* Ajustes recomendados para que la imagen se vea bien */
    background-repeat: no-repeat; /* Evita que la imagen se repita como mosaico */
    background-position: center; /* Centra la imagen en la pantalla */
    background-size: cover; /* Hace que la imagen cubra toda la pantalla (opcional) */
}

    /* =======================================================
     * ESTILOS DEL MENÚ MODERNO
     * ======================================================== */
    .modern-sidebar {
      background: #ffffff !important; 
      border-radius: 15px; 
      padding: 25px 20px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    }
    
    .sidebar-section-title {
      font-size: 13px; 
      color: #ba935c; 
      font-weight: 700; 
      text-transform: uppercase;
      letter-spacing: 1px; 
      margin-bottom: 12px; 
      margin-top: 15px;
    }

    .sidebar-category-title {
      font-size: 14px;
      color: #555;
      font-weight: 600;
      margin-bottom: 8px;
      margin-top: 10px;
    }

    /* Píldoras con efecto link-moderno */
    .nav-pills-custom .nav-link {
      display: flex;
      align-items: center;
      padding: 12px 15px;
      margin-bottom: 10px;
      background: #fdfdfd;
      border: 1px solid #eee;
      border-radius: 8px;
      color: #555;
      font-weight: 500;
      font-size: 14px;
      text-decoration: none;
      transition: all 0.3s ease;
      border-left: 4px solid transparent;
      box-shadow: 0 2px 5px rgba(0,0,0,0.01);
    }

    .nav-pills-custom .nav-link i { 
      margin-right: 12px; 
      font-size: 16px; 
      transition: all 0.3s ease; 
    }

    .nav-pills-custom .nav-link:hover { 
      background: #f4f6f8;
      color: #960048;
      border-left: 4px solid #ba935c;
      transform: translateX(5px); 
    }
    
    .nav-pills-custom .nav-link:hover i { 
      margin-right: 15px; 
    }

    /* Elemento Activo */
    .nav-pills-custom .nav-link.active { 
      background: linear-gradient(to right, #6D1850, #481936,#280E1B, #8d726b); 
      color: #fff;
      border-color: #d1d5db;
      border-left: 4px solid #BB8E5C; 
      box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    }

    /* Sangría específica para los elementos hijos dentro de Poderes */
    .sidebar-subnav-poderes {
      padding-left: 25px;
    }

    /* Sub-nav con líneas punteadas generales */
    .sidebar-subnav {
      position: relative;
      padding-left: 15px;
      margin-left: 5px;
      border-left: 2px dotted #ced4da;
      margin-bottom: 15px;
    }

    /* =======================================================
     * PUENTE RESPONSIVO (ESCRITORIO VS MÓVIL)
     * ======================================================== */
    @media (min-width: 992px) {
      .sidebar-wrapper {
        animation: fadeInRight 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
        opacity: 0;
      }
      #mySidebar.sidebar {
        position: sticky !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        top: 100px !important;
        z-index: 10 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding-left: 0 !important;
      }
      #mySidebar .tab { display: none !important; } 
    }

    @media (max-width: 991.98px) {
      .sidebar-wrapper {
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important; 
      }
      #mySidebar.sidebar {
        background: transparent !important; 
        height: auto !important; 
        top: 18% !important; 
        padding-left: 0 !important;
      }
      .modern-sidebar {
        max-height: 75vh;
        overflow-y: auto; 
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        box-shadow: 7px 7px 12px 0 rgba(20, 20, 20, 0.2); 
      }
    }

    /* Tarjeta de Contenido Derecha */
    .content-card {
      background: #ffffff; border-radius: 15px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

.btn-back { 
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: #bb8e5c;
    color: #ffffff!important;
     /* Le agregué un color base de ejemplo, puedes usar el que tenías comentado */
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Al posicionar el cursor encima (hover) y al dar clic (active) */
.btn-back:hover{ 
    background-color: #fff;
    color: #bb8e5c!important; /* Opcional: cambia el color del texto a blanco para que resalte mejor */
     border: 1px solid #bb8e5c;
}

    .btn-group-sm>.btn, .btn-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
    border-radius: .2rem;
}
.btn-outline-secondary {
    color: #6c757d;
    /* border-color: #6c757d; */
}
    /* Estilo moderno para el DataTable */
    .table-moderna { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
    .table-moderna thead th { border-bottom: none; background: #f8f9fa; color: #777; text-transform: uppercase; font-size: 13px; padding: 15px; border-radius: 8px; }
    .table-moderna tbody tr { box-shadow: 0 2px 10px rgba(0,0,0,0.02); transition: all 0.2s ease; }
    .table-moderna tbody tr:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); transform: translateY(-2px); }
    .table-moderna tbody td { background: #fff; padding: 15px; vertical-align: middle; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
    .table-moderna tbody td:first-child { border-left: 1px solid #eee; border-top-left-radius: 8px; border-bottom-left-radius: 8px; font-weight: 600; color: #333; }
    .table-moderna tbody td:last-child { border-right: 1px solid #eee; border-top-right-radius: 8px; border-bottom-right-radius: 8px; text-align: center;}
    .btn-pdf-modern { background-color: #CC494A; color: #fff; padding: 6px 15px; border-radius: 20px; font-size: 12px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: all 0.3s; }
    .btn-pdf-modern:hover { background-color: #b01015; color: #fff; }

    /* Animaciones de Entrada */
    @keyframes fadeInUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
    @keyframes fadeInRight { 0% { opacity: 0; transform: translateX(-40px); } 100% { opacity: 1; transform: translateX(0); } }
    .anim-fade-up { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; animation-delay: 0.1s; }

   /* =======================================================
     * PAGINACIÓN DATATABLES (Estilo OSFEM Original)
     * ======================================================== */
    .dataTables_wrapper .row:last-child {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 20px !important;
    }
    .dataTables_wrapper .row:last-child > div {
        display: block !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
    }

    .dataTables_wrapper .dataTables_paginate span {
        display: flex !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        display: inline-block !important;
        padding: 6px 14px !important;
        margin-left: -1px !important; 
        color: #960048 !important; 
        background-color: #fff !important;
        border: 1px solid #dee2e6 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        font-size: 14px !important;
        position: relative;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.previous {
        border-top-left-radius: 5px !important;
        border-bottom-left-radius: 5px !important;
    }
    .dataTables_wrapper .dataTables_paginate .paginate_button.next {
        border-top-right-radius: 5px !important;
        border-bottom-right-radius: 5px !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #960048 !important;
        color: #fff !important;
        border-color: #960048 !important;
        z-index: 3 !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):hover {
        background-color: #ba935c !important; 
        color: #fff !important;
        border-color: #ba935c !important;
        z-index: 2 !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
        color: #adb5bd !important;
        background-color: #fff !important;
        cursor: default !important;
        box-shadow: none !important;
    }

    .dataTables_wrapper .dataTables_info {
        color: #555 !important;
        font-size: 14px !important;
        padding-top: 0 !important;
    }