body.dark-mode {
    background: linear-gradient(
        105.41deg,
        #0f1129 41.87%,
        #2c4a80 103.65%,
        #1a3c78 106.42%
    );
    color: #e0e6f0;
}

body.dark-mode .bg-header {
    background: linear-gradient(
        105.41deg,
        #11154b 41.87%,
        #2c4a80 103.65%,
        #1a3c78 106.42%
    );
   /*background: linear-gradient(105.41deg,#0e102f 41.87%,#203a6b 103.65%,#162a4d 106.42%)!important;*/
    color: #e0e6f0;
}

body.dark-mode .categorias-container {
    background-color: #19233d; /*#1e2433;*/
    color: #e4e9f2;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .categorias-card {
    background: #222e4d; /*#23293b;*/
    color: #e4e9f2;
    box-shadow: 0px 3.867px 15.485px 0px rgba(0, 0, 0, 0.4);
}

body.dark-mode .tramite-card__info {
    background: linear-gradient(84.29deg, #12132b 0.95%, #1e3a78 70.65%);
    color: #dde4f0;
}

body.dark-mode .form-select,
body.dark-mode .select2-container,
body.dark-mode .select-wrapper,
body.dark-mode .select2-dropdown,
body.dark-mode .select2-results__option,
body.dark-mode .select2-container--default .select2-search--dropdown {
    background-color: #1a1e2f !important;
    color: #9b9b9b !important;
    border: none;
}

body.dark-mode .select2-search__field {
    background-color: #b5b1b1 !important;
    color: #9b9b9b !important;
    border: none;
}

body.dark-mode .busqueda-input {
    background-color: #b5b1b1 !important;
    color: #333333 !important;
    border: none;
}

body.dark-mode .busqueda-input::placeholder {
    color: #555555 !important;
    opacity: 1;
}

body.dark-mode .btn-buscar {
    background: #3b4a96; /*#253272;*/
    color: #ffffff; /*#9b9b9b;*/
    border-radius: 30px;
}

body.dark-mode .btn-buscar:hover {
    background: #4d5fbd;
    color: #fff;
}

body.dark-mode .sugerencias {
    background-color: #1a1e2f;
    color: #9b9b9b;
}

body.dark-mode .sugerencia-item {
    background-color: #373737;
    color: #e0e6f0!important;
    padding: 8px 12px;
    border-radius: 8px;
    display: block;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

body.dark-mode .sugerencia-item:hover {
    background-color: #4a4f5c!important;
    color: #ffffff;
}

/*body.dark-mode a {
        color: #9b9b9b !important;
        text-decoration: none !important;
    }*/

body.dark-mode .pagination a,
body.dark-mode .pagination span,
body.dark-mode .page-link {
    color: #4880ff !important;
    background-color: transparent;
}
.pagination .page-item.disabled .page-link {
    background-color: transparent;
}

body.dark-mode .selectPerPage,
body.dark-mode option {
    background: #9b9b9b;
    color: #1c1e4d;
}

body.dark-mode .txt-buscar-filtro {
    color: #9b9b9b;
    padding-bottom: 4px;
}

body.dark-mode form#search-form,
body.dark-mode .busqueda-preguntas-container {
    border: 1px solid #515865;
    background-color: #1a1e2f;
}

body.dark-mode .select2-container--default .select2-selection--single {
    background: #b5b1b1;
    color: #333333;
    height: 38px;
    border-radius: 15px;
    padding-left: 30px;
    width: 250px;
    position: relative;
    border: 0px;
}

body.dark-mode .select2-results__options::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode .select2-results__options::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

body.dark-mode .select2-results__options::-webkit-scrollbar-track {
    background: #2e333f;
}

body.dark-mode .link-card {
    display: block;
    border-radius: 13.809px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    background: #1e2433 !important;
}

body.dark-mode .link-card:hover {
    background-color: #1e2433 !important;
}

body.dark-mode .categorias-card {
    background-color: #222e4d; /*#23293b;*/
    color: #e4e9f2;
}

body.dark-mode .categorias-card:hover {
    background-color: #1e2843 !important; /*#23293b !important;*/
    color: #e4e9f2;
}
body.dark-mode .categorias-card:hover .card-image {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

body.dark-mode .categorias-card .card-text,
body.dark-mode .categorias-card .arrow-direccion {
    color: #e0e6f0;
}

body.dark-mode .dark-gradient {
    background: linear-gradient(
        105.41deg,
        #0f1129 41.87%,
        #2c4a80 103.65%,
        #1a3c78 106.42%
    );
    color: #e0e6f0;
}

body.dark-mode #nav {
     position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    background: linear-gradient(
        105.41deg,
        rgba(28, 34, 103, 0.95) 41.87%,   /* #0f1129 */
        rgba(44, 74, 128, 0.95) 103.65%, /* #2c4a80 */
        rgba(26, 60, 120, 0.95) 106.42%  /* #1a3c78 */
    );
	/*background: linear-gradient(105.41deg, #0f1129 41.87%, #2c4a80 103.65%, #1a3c78 106.42%);*/
	/*background: linear-gradient(105.41deg, #1C1E4D 41.87%, #487FFF 103.65%, #1C53C0 106.42%);*/
    color: #e0e6f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .dark-gradient-inner {
    background: transparent;
    color: inherit;
}

body.dark-mode .dinerocontactohorario {
    border: solid 3px #4c66a9;
    background-color: #1f2536;
    color: #e4e9f2;
    box-shadow: 3px 5px 5px 0px rgba(0, 0, 0, 0.4);
}

body.dark-mode .titulo-descripcion-tramite {
    background-color: rgb(47 65 133);
    color: #ffffff;
}

body.dark-mode .container-descripcion-tramite {
    background-color: #252b3c;
    border-color: #1a295a;
    color: #959595;
}

body.dark-mode .detalle-titulo {
    font-family: "MuseoSans-500";
    font-size: 22px !important;
    color: #8f8f8f !important;
}

body.dark-mode .detalle-descripcion {
    font-family: "MuseoSans-300";
    font-size: 22px !important;
    color: #8f8f8f !important;
    margin: 20px;

    line-height: initial;
    margin-left: 0px;
}

body.dark-mode .nav-tabs .nav-item.show .nav-link,
body.dark-mode .nav-tabs .nav-link.active {
    background-color: #1f2536 !important;
    color: #e0e6f0 !important;
    border-bottom: solid 3px #4c66a9;
    border-color: #4c66a9;
}

body.dark-mode .icono-descripcion-tramite-tab i,
body.dark-mode .titulo-descripcion-tramite-tab {
    color: #8f8f8f;
}

body.dark-mode .acordionleyes .accordion-button {
    background-color: #1f2536;
    border-bottom: solid 1px #4c66a9;
    color: #8f8f8f;
    font-size: 22px;
    font-weight: bolder;
}

body.dark-mode .accordion-button:not(.collapsed) {
    color: #9bb6ff;
    background-color: #2a3144;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .acordionleyes .accordion-collapse {
    border-bottom: solid 1px #4c66a9;
    font-size: 18px;
    color: #8f8f8f;
    background-color: #232936;
}

body.dark-mode .modal-content {
    background-color: #1e2433;
    color: #8f8f8f;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #2a3140;
    color: #8f8f8f;
}

body.dark-mode .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #2a3140;
}

body.dark-mode .precioscostos .modal-header h5 {
    color: #e0e6f0;
}

body.dark-mode .precioscostos ul li:nth-child(odd) {
    background-color: #2a3144;
}

body.dark-mode .precioscostos ul li:nth-child(even) {
    background-color: #232936;
}

body.dark-mode .titulocostosmodal svg path {
    fill: #e0e6f0;
}

body.dark-mode .titulocostosmodal h5 {
    color: #e0e6f0;
}

body.dark-mode p,
.titulo-modalidad {
    color: #8f8f8f !important;
}

body.dark-mode .titulo-tramite-color {
    color: rgb(167, 166, 166) !important;
    text-align: left !important;
    font-weight: 600;
    font-size: 48px;
}

body.dark-mode #loading-spinner,
#spinner_categorias,
#loader_preguntas,
#loader_docs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: transparent;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.dark-mode .bloquepdficon {
    height: auto;
    min-height: 260px;
    width: 260px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #23293b;
    /* border: solid 1px #000; */
    transition: transform 0.3s ease-in-out;
}

body.dark-mode .title_doc {
    font-size: 13px;
    color: #b9b9b9;
}

body.dark-mode .bg-white {
    background: linear-gradient(
        105.41deg,
        #0f1129 41.87%,
        #2c4a80 103.65%,
        #1a3c78 106.42%
    );
}

body.dark-mode .preguntas-contenedor {
    background: linear-gradient(
        105.41deg,
        #0f1129 41.87%,
        #2c4a80 103.65%,
        #1a3c78 106.42%
    );
    margin-bottom: 7rem;
}

body.dark-mode #table-tramites tbody {
    background-color: #15172f;
}

body.dark-mode #table-tramites tbody tr:nth-child(even) {
    background-color: #1a1d36;
}

body.dark-mode #table-tramites tbody td {
    color: #cbcbcb;
    padding: 10px;
    border-bottom: 1px solid #2a2d45;
}

body.dark-mode #table-tramites tbody tr:hover {
    background-color: #2d3156;
}

body.dark-mode .loader_mis_tramites {
    background-color: transparent;
}

body.dark-mode .banner-informativo {
    background-color: transparent;
    color: #cbcbcb;
    border: solid 2px #5c65b3;
}

body.dark-mode #info-modal {
    color: #cbcbcb;
}

body.dark-mode .btn-salir {
    border: solid 1px #bac3fc;
    background: transparent;
    color: #bac3fc;
}

body.dark-mode #verComo {
    background-color: #b5b1b1;
}

body.dark-mode .contact-card {
    background-color: #23293b;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    box-shadow: 0px 4.2px 13px 0px #22222240;
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

body.dark-mode .contact-link {
    font-size: 1.8rem;
    font-weight: bold;
    padding-bottom: 5px;
    text-decoration: none;
    color: #9e9fa1 !important;
    border-bottom: 1px solid #253272 !important;
}

.icon-correo {
    color: #253272;
}

body.dark-mode .icon-correo {
    color: #476bcb;
}

body.dark-mode .card-image {
    opacity: 0.7;
}
body.dark-mode .container-find {
    /* background-color: initial !important; */
    border: 1px solid #515865 !important;
    background-color: #1a1e2f !important;
}

body.dark-mode .container-find #clear_mis_documentos,
body.dark-mode .container-find .btn-light {
    background-color: initial;
    border: solid 0px;
    color: #fff !important;
}
body.dark-mode .content-header-search .select-wrapper .custom-select,
body.dark-mode .content-header-search #estado-tramite {
    background-color: #b5b1b1 !important;
}
body.dark-mode .content-header-search {
    width: 100%;
    max-width: 1700px;
    height: auto;
    padding: 0px;
    margin: 0 auto 0 auto;
    padding-top: 27px;
    background: none;/*linear-gradient(
        105.41deg,
        #0e102f 41.87%,
        #203a6b 103.65%,
        #162a4d 106.42%
    ) !important;*/

}


.dark-mode .content-header {
    width: 100%;
    max-width: 1700px;
    height: auto;
    overflow: hidden;
    margin: 0 auto 0 auto;
    margin-top: 27px;
    background: linear-gradient(
        105.41deg,
        #0e102f 41.87%,
        #203a6b 103.65%,
        #162a4d 106.42%
    ) !important;
}

body.dark-mode .accordion-item {
    background-color: #252b3c;
    border: solid 1px #4c66a9;
    color: #8f8f8f;
    font-size: 22px;
    font-weight: bolder;
    border-radius: 10px;
}

body.dark-mode .accordion-item .card-pasos-requisitos {
    background-color: #1f2536;
    border-bottom: solid 1px #4c66a9;
}

body.dark-mode .accordion-item .arrow path {
    fill: #8f8f8f;
}

body.dark-mode .bgc-charcoal {
    background: linear-gradient(135deg, #0b1b3d 0%, #1a2b4f 100%) !important;
}

body.dark-mode .link-footer {
    color: #9bb6ff !important;
}

body.dark-mode .link-footer svg path {
    fill: #9bb6ff !important;
}

body.dark-mode .logo-footer {
    opacity: 0.9;
    filter: brightness(1.2);
}

body.dark-mode #politicas a,
body.dark-mode #politicas-movil a {
    color: #9bb6ff !important;
}

body.dark-mode .dropdown-menu {
    background-color: #2b2f3a;
    color: #f1f1f1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .dropdown-menu .dropdown-item {
    color: #f1f1f1;
}

body.dark-mode .dropdown-menu .dropdown-item:hover {
    background-color: #3a3f4b;
    color: #ffffff;
}

body.dark-mode .dropdown-item {
    color: #f1f1f1 !important;
    background-color: transparent;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    background-color: #3a3f4b;
    color: #ffffff !important;
}

/* Mejoras de contraste */

body.dark-mode,
body.dark-mode p,
body.dark-mode .detalle-descripcion,
body.dark-mode .detalle-titulo {
    color: #c0c6d4 !important; /* Sobreescribo para mejor contraste */
}

body.dark-mode .material-icons-outlined {
    /*color: #dce3f2;*/
}

body.dark-mode .material-icons-outlined:hover {
    /*color: #ffffff;*/
}

body.dark-mode
    .pagination
    .page-item:not(.active):not(.disabled)
    .page-link:hover {
    background-color: #4c66a9;
    color: #ffffff;
}

body.dark-mode .pagination .page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    font-weight: 500;
    background-color: transparent;
    color: #9bb6ff;
    border: none;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .pagination .page-item.active .page-link {
    background-color: #4c66a9;
    color: #ffffff;
    font-weight: bold;
}

body.dark-mode
    .pagination
    .page-item:not(.active):not(.disabled)
    .page-link:hover {
    background-color: #3a4c7a;
    color: #ffffff;
}

body.dark-mode .pagination .page-item.disabled .page-link {
    color: #555a6a;
    opacity: 0.5;
    background-color: transparent;
}

body.dark-mode .img-banner {
    filter: brightness(0.7);
}
body.dark-mode .tramite-card__imagen {
    filter: brightness(0.7);
}
/* elementos de la tarjeta de trámites */

/* Títulos e institución */
body.dark-mode .tramite-card__institucion {
    color: rgba(255, 255, 255, 0.8); /* Blanco suave */
}

body.dark-mode .tramite-card__titulo {
    color: #e0e6f0; /* Blanco puro */
}

/* Botón principal */
body.dark-mode .tramite-card__boton {
    background-color: rgba(255, 255, 255, 0.8);  /*Fondo claro translúcido */
    color: rgba(46, 71, 152, 1) !important; /* Texto blanco */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
}

body.dark-mode .tramite-card__boton:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Botón de información */
body.dark-mode .tramite-card__boton-info {
    color: #e0e6f0;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Más visible */
}

body.dark-mode .tramite-card__boton-info span {
    color: #e0e6f0;
}

body.dark-mode .categories-home-container {
    margin: 3rem;
}

/*menú móvil */
body.dark-mode .sidebar ul {
    background: linear-gradient(90deg, #12182b 0%, #1a2130 40%, #243456 100%) !important;
    color: #e0e6f0; /* texto claro */
}
body.dark-mode .sidebar ul a {
    color: #e0e6f0;
}

body.dark-mode .sidebar ul a:hover {
    color: #ffffff;
    background-color: #2a3244; /* ligero resaltado */
    border-radius: 5px;
}

body.dark-mode .nav-link-item-movil {
    color: #e0e6f0 !important; /* texto claro para fondo oscuro */
    background-color: transparent;
}

body.dark-mode .nav-link-item-movil:hover {
    background-color: #2a3244; /* fondo ligeramente más claro en hover */
    color: #ffffff !important;
    border-radius: 5px;
}
body.dark-mode .nav-link-item-movil .material-icons-outlined {
    color: #e0e6f0;
}
body.dark-mode .sidebar {
    background: #1a2130; /* fondo oscuro moderno */
    color: #e0e6f0;
}



#icono {
    color: #000000 !important;
    cursor: pointer !important;
}
body.dark-mode #icono {
    color: #d0e2ff !important; /* azul claro suave */
}
#icono {
    transition: color 0.3s ease;
}


.btn-darkmode {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #1c1e4d;
    transition: color 0.3s ease;
}

body.dark-mode .btn-darkmode {
    color: #e0e6f0;
}

.btn-menu-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.dark-mode .calPantalla {
    background-color: transparent !important;
}

body.dark-mode .page-item.disabled .page-link {
    background-color: initial;
    color: #4880ff !important;
}

body.dark-mode .calendar-input-custom {
    background: #1a1e2f ;
    border-color: #515865;
}

body.dark-mode .calendar-input-custom .air-datepicker--navigation {
    background: #2A2A40;
    border-color: #515865;
}
body.dark-mode .calendar-input-custom .air-datepicker-cell{
    color: #e0e6f0;
}

body.dark-mode .calendar-input-custom .air-datepicker-cell.-other-month- {
    color: #888C99;
}

body.dark-mode .calendar-input-custom .air-datepicker-cell:hover, body.dark-mode .calendar-input-custom .air-datepicker-cell.-selected- {
    background-color: #374785;
    color: #e0e6f0;
}


@media (max-width: 1350px) {
    body.dark-mode .select2-container--default .select2-selection--single {
        width: 100%;
    }
}

@media (max-width: 844px) {
    body.dark-mode .categories-home-container {
        margin: 0px;
        margin-top: 3rem;
    }
    .busqueda-container .dropdown-selecters {
        margin-left: 5px;
    }

    body.dark-mode .container-find .dropdown-selecters,
    body.dark-mode .container-find .custom-select,
    body.dark-mode .busqueda-container .dropdown-selecters,
    body.dark-mode .busqueda-container .selection > span {
        width: 100%;
    }
    body.dark-mode .container-find .dropdown-selecters,
    body.dark-mode .container-find .custom-select,
    body.dark-mode .busqueda-container .dropdown-selecters,
    body.dark-mode .busqueda-container .selection > span {
        width: 100%;
    }

    body.dark-mode .sidebar {
        height: 100vh !important;
        overflow-x: hidden;
        overflow-y: scroll;
        background: linear-gradient(180deg, #1a2130 0%, #1c263b 100%) !important;
    }
}

@media (max-width: 701px) {
    body.dark-mode .categorias-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: initial;
        padding: 0px !important;
    }