@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --font-size-main-title: clamp(32px, 2.5vw, 38px);
    --font-size-main-button-text: clamp(18px, 2.5vw, 20px);

    --font-size-title: clamp(24px, 2.5vw, 26px);
    --font-size-subtitle: clamp(20px, 2.5vw, 24px);
    --font-size-text: clamp(18px, 2vw, 20px);
    --font-size-detalles-title: clamp(18px, 2vw, 20px);

    --font-weight-main-button-text: 500;

    --font-weight-title: 550;
    --font-weight-subtitle: 500;
    --font-weight-text: 400;
}

body p {
    font-size: var(--font-size-text);
    line-height: 1.5;
}

.main-title {
    font-size: var(--font-size-main-title);
    font-weight: var(--font-weight-title);
}

.title {
    font-size: var(--font-size-title);
    font-weight: var(--font-weight-title);
}

.subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-subtitle);
}

.text {
    font-weight: var(--font-weight-text);
}

.main-button-text {
    font-size: var(--font-size-main-button-text);
    font-weight: var(--font-weight-main-button-text);
}

table th span {
    font-size: 18px;
    font-weight: var(--font-weight-subtitle);
}

.contenidoDetallePrograma .subtitle {
    font-size: var(--font-size-detalles-title);
}

#contenedorNombre {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
}

#contenedorNombre #tituloNombreRegulacion {
    font-size: 18px;
}

.cardContainer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.cardContainer .card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 400px;
    box-shadow: 0 0 8px 2px #3b7abd25;
    padding: 40px 20px;
    border-radius: 24px;
    margin-right: 40px;
    margin-bottom: 40px;
    flex: 1;
}

.cardContainer .card .card-text {
    margin-top: 0;
}

.card-text {
    font-size: calc(var(--font-size-text) - 4px);
    font-weight: 400;
    color: #3b79bd;
    /* background-color: ; */
    box-shadow: inset 0 0 8px 2px #3b79bd95;
    padding: 10px 15px;
    width: fit-content;
    border-radius: 12px;
}

.card-subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 50px;
}

.contenedorRegulaciones.cardContainer .card-subtitle {
    margin-top: 0;
}

.card .btnContainer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.card .btnContainer button {
    background-color: transparent;
    outline: none;
    border-radius: 12px;
    font-size: 18px;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    font-family: 'Inter';
    transition: 0.3s;
}

.card .btnContainer .card-main-button {
    /* background-color: #3b79bd; */
    /* background-color: #266FB6; */
    background-color: #2b445e;    
    color: #fdfdfd;
}

.card .btnContainer .card-main-button:hover {
    padding: 14px 30px;
}

.card-second-button {
    color: #003890;
    font-weight: 450;
    transition: 0.3s;
}

.card-second-button:hover {
    color: #266FB6;
}

.logosContainer {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
}

#logoCMER {
    width: 80px;
    border-radius: 10px;
    margin-right: 20px;
}

#logoSPPC {
    width: 140px;
}

html,
body {
    font-family: 'Inter';
    border: 0;
    margin: 0;
    padding: 0;
    height: 100%;
}

.contenedorPrincipal {
    max-width: 100%;
    height: calc(100% - 40px);
    padding: 20px;
}

.contenedorPrincipal .contenedorImg {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    width: calc(100% - 100px);
    height: calc(100% - 60px);
    border-radius: 24px;
    padding: 30px 50px;
    overflow: hidden;
}

.contenedorPrincipal .contenedorImg .fondoImagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url(../../img/imagen_consultap.png);   */  
    /* background: linear-gradient(to right, #242B57,#266FB6, #30A7D0); */
    background: linear-gradient(to right, #242B57,#2b445e, #5788bd);
    background-position: center center;
    background-size: cover;    
    /* filter: brightness(80%) contrast(120%) saturate(130%) blur(2px); */
    /* Aplicamos el filtro a la imagen de fondo */
    border-radius: 10px;
    z-index: -1;
    /* Aseguramos que esté detrás del contenido */
}

.contenedorPrincipal .contenedorImg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgb(0 89 192 / 50%); */
    border-radius: 24px;
}

.contenedorPrincipal .contenedorImg .contenedorInfo {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.contenedorPrincipal .contenedorImg .contenedorInfo h1 {
    transition: 0.3s;
}

.contenedorPrincipal .contenedorImg .contenedorInfo h1,
.contenedorInfo h2,
.contenedorInfo h3,
.contenedorInfo h4,
.contenedorInfo h5,
.contenedorInfo p {
    color: #fdfdfd;
}

.tarjetaInfo h2,
.tarjetaInfo h4,
.tarjetaInfo p {
    color: #000000;
}

#btnLeerMas{
    margin-left: auto;
}

.contenedorInfo .tarjetaInfo {
    color: black;
    position: absolute;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    right: 0;
    border-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    width: 50%;
    min-width: 280px;
    height: fit-content;
    min-height: 400px;
    background-color: #fdfdfd;
    padding: 30px;
    top: 20%;
    transition: 0.3s;
    max-height: 500px;
    overflow-y: auto;
}

.contenedorInfo .tarjetaInfo button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fdfdfd;
    outline: 0;
    border: 0;
    font-family: 'Inter';
    color: #2d2d2d;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 6px;
    padding: 30px;
    padding-left: 0;
    height: 50px;
}

.contenedorInfo .tarjetaInfo button .iconoBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    background-color: #003890;
    border-radius: 100px;
    position: relative;
    margin-left: 8px;
}

.contenedorInfo .tarjetaInfo button .iconoBtn svg {
    position: absolute;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    stroke: #fdfdfd;
    padding: 5px;
    top: 1px;
}

.contenedorInfo .tarjetaInfo button:hover {
    background-color: #003890;
    padding: 30px;
    color: #fdfdfd;
}

.contendorProgramas {
    max-width: 100%;
    height: calc(100%);
}

.contenedorTarjetasPrograma {
    width: 100%;
    height: fit-content;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
}

.contenedorTarjetasPrograma .tarjetaPrograma {
    width: 350px;
    height: 250px;
    border-radius: 10px;
    position: relative;
    /* Añadimos posición relativa */
    margin-right: 30px;
    box-shadow: 0px 0px 8px 2px rgba(170, 170, 170, 0.2);
}

.contenedorTarjetasPrograma .tarjetaPrograma .imagenTarjeta {
    width: 100%;
    height: 100%;
    background-image: url('../../img/daniel-uribarren-fn7GNBKRytM-unsplash.jpg');
    filter: brightness(80%) contrast(110%) saturate(110%) blur(0.6px);
    background-position: center center;
    background-size: cover;
    border-radius: 10px;
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fdfdfd;
    text-align: center;
    z-index: 1;
    width: calc(100% - 52px);
    height: calc(100% - 40px);
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma h2 {
    font-size: 20px;
    font-weight: 500;
    width: 50%;
    text-align: left;
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma .parteTarjetaPrograma {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma .parteTarjetaPrograma {
    top: 50%;
    position: relative;
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma .parteTarjetaPrograma .btnComentar {
    width: 22px;
    height: 22px;
    padding: 10px;
    border-radius: 100px;
    background-color: #050505ba;
    cursor: pointer;
    transition: 0.3s;
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma .parteTarjetaPrograma .btnComentar svg {
    transition: 0.3s;
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma .parteTarjetaPrograma .btnComentar:hover {
    background-color: #fdfdfda6;
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma .parteTarjetaPrograma .btnComentar:hover svg {
    stroke: #2d2d2d;
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma #btnInfoPrograma {
    background-color: #021c3bba;
    width: fit-content;
    color: #fdfdfd;
    font-size: 14px;
    font-weight: 520;
    border-radius: 100px;
    padding: 8px 15px;
    outline: none;
    border: none;
    cursor: pointer;
    position: relative;
    left: 37%;
    transition: 0.3s;
}

.contenedorTarjetasPrograma .tarjetaPrograma .contenedorInfoPrograma #btnInfoPrograma:hover {
    padding: 8px 20px;
    text-align: center;
    color: #2d2d2d;
    background-color: #fdfdfda6;
    font-weight: 600;
}

.contendorProgramas {
    display: flex;
    transition: 0.3s;
}

.contenedorDetallePrograma {
    width: 30%;
    margin: 45px;
}

.contenedorTarjetasPrograma .tarjetas {
    display: flex;
    /* max-width: 1000px; */
    overflow-x: auto;
}

.contenedorTarjetasPrograma .tarjetas .tarjetasContenido {
    display: flex;
    width: fit-content;
    flex-wrap: nowrap;
}

.contenedorTarjetasPrograma .tituloSeccion {
    margin-top: 15px;
}

/* .contenedorTarjetasPrograma .tituloSeccion h1 {
    font-weight: 500;
    width: 50%;
    font-size: 28px;
} */

.contenedorTarjetasPrograma .tituloSeccion h4 {
    max-width: 800px;
    font-weight: 500;
    margin-top: 20px;
}

.contenedorTarjetasPrograma {
    display: flex;
    padding-bottom: 40px;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 12px;
    padding-left: 10px;
}

.contenedorDetallePrograma .contenidoDetallePrograma p {
    max-height: 200px;
    overflow: auto;
}

.contenidoDetallePrograma h5,
.parteDetallePrograma h5 {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    top: 0.12px;
}

.contenidoDetallePrograma h5 span,
.parteDetallePrograma h5 span {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    position: relative;
    top: -1px;
}

.botonesDetalles {
    margin-top: 22px;
}

.botonesDetalles button {
    background-color: transparent;
    border: 1px solid #2d2d2d;
    color: #3e3e3e;
    border-radius: 100px;
    padding: 5px 12px;
    cursor: pointer;
    transition: 0.3s;
}

.botonesDetalles button:hover {
    background-color: #3e3e3e;
    color: #fdfdfd;
    border-color: #2d2d2d;
}

.contenedorTarjetasPrograma .contenedorTabla {
    width: 100% !important;
}

/* .contenedorTarjetasPrograma .contenedorTabla .tituloTabla h4 {
    font-weight: 550;
    font-size: 18px;
} */

.contenedorTarjetasPrograma table #acciones {
    /* position: absolute; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 36.9%;
    height: 100%;
    min-height: 100%;
}

.contenedorTarjetasPrograma table .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    border-radius: 10px;
    padding: 15px 20px;
}

.contenedorTarjetasPrograma table .btn:hover {
    background-color: #eaeaea3b;

}

.contenedorTarjetasPrograma table .btn i {
    font-size: 22px;
    transition: 0.3s;
    color: #003890;
}

.contenedorTarjetasPrograma table .btn:hover i {
    color: #3b79bd;
}

.contenedorTabla .contenidoTabla {
    /* box-shadow: 0px 0px 8px 2px rgba(170, 170, 170, 0.2); */
    padding: 0px 0;
    /* border-radius: 10px; */
}

.contenedorTarjetasPrograma table .btn p {
    /*    display: none; */
    margin: 0;
    margin-top: 8px;
    font-size: 15px;
}

#contenedorNombre {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#contenedorNombre #tituloNombreRegulacion,
#contenedorNombre #tituloNombreTramite {
    text-align: justify;
    max-height: 60px;
    overflow-y: auto;
    padding-right: 10px;
}

.tituloDetallePrograma,
#tituloDependencia {
    margin-top: 20px !important;
}

#tituloDependencia {
    font-size: 20px;
}

#contenedorNombre #nombre {
    display: flex;
    width: fit-content;
    background-color: #000000;
}

table.dataTable thead > tr > th.dt-orderable-asc, table.dataTable thead > tr > th.dt-orderable-desc {
    /* background-color: #3b79bd; */
    /* background-color: #266FB6; */
    background-color: #2b445e;
    color: #fdfdfd;
}
/* 
.iconoNombre {
    width: 32px;
    height: 32px;
    border-radius: 100px;
    background-image: url('../../img/daniel-uribarren-fn7GNBKRytM-unsplash.jpg');
    background-position: center center;
    background-size: cover;
    filter: brightness(80%) contrast(110%) saturate(110%) blur(0.1px);
    margin-right: 8px;
} */

table.dataTable tbody {
    max-height: 180px !important;
    overflow-y: auto;
}

.dt-scroll-body,
colgroup {
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}

.parteDetallePrograma .comentarios {
    width: 100%;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 10px;
}

.parteDetallePrograma .comentarios .infoUsuario {
    width: 100%;
    display: flex;
    align-items: center;
}

.parteDetallePrograma .comentarios .infoUsuario .iconoInfoUsuario {
    width: 25px;
    height: 25px;
    border-radius: 100px;
    background-image: url('../../img/imagen-perfil-sin-foto.jpg');
    background-position: center center;
    background-size: cover;
    margin-right: 8px;
}

.parteDetallePrograma .comentarios .infoUsuario #nombreInfoUsuario {
    margin: 0;
}

.parteDetallePrograma .comentarios h5 {
    margin: 16px 0;
    font-weight: 600;
}

.parteDetallePrograma .comentarios #comentarioInfoUsuario {
    max-height: 80px;
    overflow-y: auto;
}

.comentarioEnviado {
    /* padding-bottom: 5px; */
    margin-bottom: 20px;
    border-bottom: 1px solid #cdcdcd;
}

.contenedorDetallePrograma .contenidoDetallePrograma p {
    padding-right: 10px;
}

.contenedorTarjetasPrograma .tarjetas {
    padding-bottom: 10px;
}

.contenedorTarjetasPrograma .contenedorTabla .tituloTabla h4 {
    margin-top: 18px;
}

#acciones .contenedorBtn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

#acciones {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
}

#acciones .btn {
    margin: 0 5px;
}

.contenidoDetallePrograma .tituloDetallePrograma {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.contenidoDetallePrograma .tituloDetallePrograma h2 {
    margin: 0;
}

.contenidoDetallePrograma .tituloDetallePrograma i {
    font-size: 20px;
    margin-right: 8px;
}

#examplePMR tbody tr td:first-child {
    min-width: 255px;
}

#examplePMR tbody tr td:nth-child(n+2) {
    min-width: 170px;
}

#examplePMR tbody tr td:nth-child(3) {
    min-width: 130px;
}

.seleccionarDependencia {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.seleccionarDependencia label {
    font-weight: 600;
    color: #3e3e3e;
    font-family: 'Inter';
}

.seleccionarDependencia select {
    padding: 6px 10px;
    border: 1px solid #6d6d6d;
    font-family: 'Inter';
    border-radius: 5px;
    max-width: 220px;
    margin-top: 10px;
    outline: none;
    transition: 0.3s;
    cursor: pointer;
}

.seleccionarDependencia select:hover,
.seleccionarDependencia select:focus {
    border: 1px solid #2d2d2d;
}

.contenedorTarjetasPrograma,
.contenedorDetallePrograma {
    margin-top: 50px !important;
}

.contenedorDetallePrograma {
    margin-top: 55px;
}

table.dataTable thead>tr>th.dt-orderable-asc,
table.dataTable thead>tr>th.dt-orderable-desc,
table.dataTable thead>tr>td.dt-orderable-asc,
table.dataTable thead>tr>td.dt-orderable-desc,
table.dataTable>tbody>tr>th,
table.dataTable>tbody>tr>td,
table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date,
table.dataTable>tfoot>tr>th {
    text-align: center !important;
}

.contenedorTarjetasPrograma .contenedorTabla:nth-child(1) {
    margin-bottom: 40px;
}

.contenidoDetallePrograma .subtitle span {
    position: relative;
    top: -2px;
}

.contenidoDetallePrograma .subtitle span,
.contenidoDetallePrograma .subtitle span svg {
    width: 25px;
    height: 25px;
}

/* Cambia el color de la barra de desplazamiento */
::-webkit-scrollbar,
::-webkit-scrollbar-thumb-horizontal {
    width: 3px;
    /* ancho de la barra de desplazamiento */
    background-color: #f1f1f1;
    /* color de fondo */
}

/* Estilo de la barra de desplazamiento */
::-webkit-scrollbar-thumb {
    background-color: #888;
    /* color del fondo de la barra */
    border-radius: 5px;
    /* borde redondeado */
}

/* Estilo del riel de la barra de desplazamiento */
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* color del fondo del riel */
}

/* Barras de desplazamiento horizontal */
::-webkit-scrollbar:horizontal {
    height: 3px;
    /* altura de la barra de desplazamiento horizontal */
    background-color: #f1f1f1;
    /* color de fondo */
}

/* Estilo de la barra de desplazamiento horizontal */
::-webkit-scrollbar-thumb:horizontal {
    background-color: #888;
    /* color del fondo de la barra horizontal */
    border-radius: 5px;
    /* borde redondeado */
}

/* Estilo del riel de la barra de desplazamiento horizontal */
::-webkit-scrollbar-track:horizontal {
    background-color: #f1f1f1;
    /* color del fondo del riel horizontal */
}

@media (max-width: 1298px) {
    .contenedorInfo .tarjetaInfo {
        border-radius: 12px 0 0 12px;
    }
}

@media (max-width: 1000px) {
    .contenedorInfo .tarjetaInfo {
        top: 15%;
    }
}

@media (max-width: 642px) {
    .contenedorInfo .tarjetaInfo {
        border-radius: 12px 0 0 12px;
        right: 0;
    }
}

@media (max-width: 500px) {
    .contenedorPrincipal {
        padding: 0;
        height: 100%;
    }

    .contenedorPrincipal .contenedorImg {
        padding: 30px 20px;
        width: calc(100% - 40px);
        height: calc(100% - 60px);
    }

    .contenedorPrincipal .contenedorImg,
    .contenedorPrincipal .contenedorImg::before {
        border-radius: 0;
    }

    .contenedorPrincipal .contenedorImg .contenedorInfo h1 {
        text-align: center;
    }

    .contenedorInfo .tarjetaInfo {
        min-width: fit-content;
        left: 0%;
        border-radius: 8px;
        background-color: #042b4ca6;
    }

    .tarjetaInfo h2,
    .tarjetaInfo h4,
    .tarjetaInfo p,
    .tarjetaInfo ul{
        color: #fdfdfd;
    }

    .contenedorInfo .tarjetaInfo button {
        background-color: transparent;
        color: #fdfdfd;
    }
}

@media (max-width: 1301px) {
    .contendorProgramas {
        flex-direction: column;
    }

    .contenedorTarjetasPrograma {
        width: 100%;
    }

    .contenedorTarjetasPrograma .contenedorTabla {
        width: 100% !important;
    }

    .contenedorDetallePrograma {
        width: 100%;
        margin: 0;
        padding-bottom: 40px;
    }

    .contenidoDetallePrograma h2 {
        margin-top: 0px;
    }
}

@media (max-width: 786px) {
    .contenedorTarjetasPrograma .tituloSeccion h1 {
        width: 90%;
    }
}

@media screen and (max-width: 640px) {

    .dt-container .dt-length,
    .dt-container .dt-search {
        float: none;
        text-align: left !important;
    }
}

@media screen and (max-width: 767px) {

    div.dt-container div.dt-layout-cell.dt-full,
    div.dt-container div.dt-layout-cell.dt-start,
    div.dt-container div.dt-layout-cell.dt-end {
        text-align: inherit !important;
    }

    .dt-paging.paging_full_numbers {
        text-align: right !important;
        transform: scale(.8);
        position: relative;
        left: 40px;
    }

    #examplePMR_info {
        font-size: 14px !important;
        margin-top: 5px !important;
    }
}
