/* =============== ESTILOS DE LAS GUIAS INFORMATIVAS ================== */
body {
    line-height: 19px !important;
}

#button_form_1:disabled {
    background-color:darkgray;
    border-color: #5f5f5f;
}

.nav-item > .nav-link:disabled:hover {
    color: #5f5f5f !important;
}

.nav-item > .nav-link:disabled {
    color: #5f5f5f;
}

.asterisco_important {
    color: var(--color-terciario);
}

.custom-popover {
    --bs-popover-border-color: #213280;
    background-color: #d5daf1;
  }
.popover-arrow::after {
    border-top-color: #d5daf1 !important;
}

.titulo_secundario {
    width: 100%;
    margin: 20px 0px 15px 0px;
    padding-left: 45px;
    font-size: 2em;
    font-weight: bold;
    font-family: var(--fuente-titulos);
    text-align: left;
    color: var(--color-neutro);
}

.contenedor_datos {
    width: 100%;
    margin: 0px;
    padding: 2px 45px 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.contenedor_principal {
    width: 100%;
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.elemento_superior {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 25px 0px 10px;
    padding: 0px;
    box-sizing: border-box;
}

/* Estilos del Elemento Superior */
.btn_add_guia {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--color-secundario);
    border-radius: 10px;
    box-sizing: border-box;
    font-family: var(--fuente-parrafos);
    text-decoration: none;
    font-weight: bold;
    background-color: var(--color-primario);
    color: var(--color-secundario);
    transition: background-color 0.3s, color 0.3s;
}

.btn_add_guia:hover {
    border: 2px solid var(--color-primario);
    box-sizing: border-box;
    background-color: var(--color-secundario);
    color: var(--color-primario);
}

.btn_add_guia--disabled {
    background-color: #5f5f5f;
    color: var(--color-secundario);
    border: none;
    transition: none;
}

.btn_add_guia--disabled:hover {
    background-color: #5f5f5f;
    color: var(--color-secundario);
    border: none;
}

.icono_add_guia {
    margin-left: 10px;
}

.contenedor_buscador_guias {
    width: 26%;
}

.form_buscador_guias {
    position: relative;
}

.input_buscador_guias {
    position: relative;
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--color-primario);
    border-radius: 20px;
    box-sizing: border-box;
    font-family: var(--fuente-parrafos);
}

.btn_buscador_guias {
    position: absolute;
    right: 16px;
    top: 6px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--color-primario);
    cursor: pointer;
}

.btn_buscador_guias:hover {
    color: var(--color-secundario);
} 

/* Estilos de la Tabla */
.elemento_inferior {
    width: 100%;
    border-radius: 10px !important;
    box-sizing: border-box;
}

.tabla_guias_informativas {
    width: 100%;
    height: auto;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--color-primario);
    border-radius: 10px;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

.tabla_guias_informativas td {
    border-radius: 10px;
}

/* Asegúrate de que el último th y td en cada fila también tengan el border-radius aplicado */ 
.tabla_guias_informativas td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.tabla_guias_informativas td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.thead_guias_informativas {
    border-radius: 10px !important;
    background-color: var(--color-primario);
    color: var(--color-secundario);
}

.thead_guias_informativas th {
    padding: 12px 10px;
    font-family: var(--fuente-parrafos);
    font-weight: bold;
    text-align: center;
}

.fila_datos {
    border-bottom: 1px solid #cccccc;
}

.celda_datos {
    padding: 12px 10px;
    font-family: var(--fuente-parrafos);
    text-align: center;
    vertical-align: middle;
}

.titulo_corto {
    display: block;
    width: 250px; /* Ajusta el ancho según tus necesidades */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto; /* Centra el contenido horizontalmente */
}

.fila_datos > .celda_datos:nth-child(2) {
    text-align: left;
}

.btn_edit_guia, .btn_ver_guia {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    font-size: 26px;
    color: var(--color-primario-claro);
    transition: 0.3s ease all;
}

.btn_edit_guia:hover, .btn_ver_guia:hover {
    color: var(--color-neutro);
    cursor: pointer;
}

.btn_delete_guia {
    position: relative;
    display: inline-block;
    font-size: 26px;
    color: var(--color-terciario);
    transition: 0.3s ease all;
}

.btn_delete_guia:hover {
    color: var(--color-neutro);
    cursor: pointer;
}

.btn_edit_guia:hover, .btn_delete_guia:hover {
    color: var(--color-neutro);
    cursor: pointer;
}

.btn_edit_guia::before, .btn_delete_guia::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 85px;
    padding: 4px 7px;
    border-radius: 16px;
    font-size: 13px;
    text-align: center;
    background-color: var(--color-primario);
    color: var(--color-secundario);
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    pointer-events: none; /* Evita que el tooltip interfiera con el clic */
}

.btn_edit_guia:hover::before, .btn_delete_guia:hover::before {
    opacity: 1; /* Muestra el tooltip cuando el mouse está sobre el botón */
}

.btn_edit_guia::after, .btn_delete_guia::after {
    content: '';
    position: absolute;
    top: 0%;
    left: 50%;
    border-top: 6px solid var(--color-primario);
    border-right: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 5px solid transparent;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn_edit_guia:hover::after, .btn_delete_guia:hover::after {
    opacity: 1; /* Muestra el tooltip cuando el mouse está sobre el botón */
}

/* Estados de las Guias */
.completado {
    padding: 10px 20px;
    border-radius: 10px;
    background: #4abd31;
    color: var(--color-secundario);
    text-wrap: nowrap;
}

.borrador {
    padding: 10px 20px;
    border-radius: 10px;
    background: #5f5f5f;
    color: var(--color-secundario);
    text-wrap: nowrap;
}

.revision {
    padding: 10px 20px;
    border-radius: 10px;
    background: #3a46de;
    color: var(--color-secundario);
    text-wrap: nowrap;
}

.eliminado {
    padding: 10px 20px;
    border-radius: 10px;
    background: #de3a46;
    color: var(--color-secundario);
    text-wrap: nowrap;
}

.borrarPregunta:hover {
    background-color: #de3a46 !important;
    border-color: #de3a46 !important;
    color: white !important;
    transition: all ease-in-out 200ms;
}

/* Botones de la Paginacion */
.contenedor_paginacion {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 16px 0px 0px;
}

.contenedor_pag_numeros {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
}

.contenedor_pag_numeros > span {
    margin: 0px;
    padding: 0px;
    font-family: var(--fuente-parrafos);
}

.contenedor_pag_botones {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.btn_previous {
    margin: 0px 5px;
    font-size: 28px;
    color: var(--color-default);
    transition: 0.3s ease all;
}

.btn_previous:hover {
    color: var(--color-neutro);
    cursor: pointer;
}

.btn_next {
    margin: 0px 5px;
    font-size: 28px;
    color: var(--color-primario);
    transition: 0.3s ease all;
}

.btn_next:hover {
    color: var(--color-neutro);
    cursor: pointer;
}

/* Modal del Formulario */
.modal-header {
    padding: 1rem 2.8rem 1rem;
    border-bottom: none;
}

.modal-body {
    padding: 0rem 2.8rem;
}

.modal-title {
    font-family: var(--fuente-titulos);
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-primario);
}

.container {
    padding: 0px;
}

/* ESTILOS DEL FORMULARIO DE INFORMACION DEL PRODUCTO */
.form_guias {
    padding: 8px;
    border: 2px solid var(--color-primario);
    border-radius: 10px;
}

.padding_extra {
    padding: 0px 25px;
}

.producto_uno {
    margin-bottom: 0.5em !important;
    font-size: 1.4em;
    font-weight: bold;
    font-family: var(--fuente-titulos) !important;
    text-align: center;
    color: var(--color-primario);
}

.subtitulo_extra {
    margin-bottom: 0.7rem;
    font-size: 1.4em;
    font-weight: bold;
    font-family: var(--fuente-titulos);
    color: var(--color-primario);
}

.form-control {
    border: 2px solid #d3d4d5 !important;
}

.form-label, .form-check-label {
    margin-bottom: 0rem;
    font-weight: 600;
    font-family: var(--fuente-parrafos);
}

.form-control:focus {
    border-color: var(--color-primario);
    outline-color: var(--color-primario);
}

.drag-file-area {
    width: 100%;
    margin: 0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 1px 2px 3px #afafafc7;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.border_dashed {
    width: 100%;
    height: 200px;
    padding: 15px 10px;
    border: 2px dashed var(--color-primario);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    transition: 0.3s ease all;
    color: #213280;
}

.border_dashed:hover {
    background-color: rgb(95 114 202 / 39%);
    cursor: pointer;
}

.drag-file-area .upload-icon,
.drag-file-area .text_upload {
    z-index: 1;
}

.drag-file-area .upload-icon {
    font-size: 50px;
}

.drag-file-area h3 {
    margin: 15px 0;
    font-size: 20px;
    font-family: var(--fuente-parrafos);
}

.drag-file-area label {
    font-size: 19px;
}

.drag-file-area label .browse-files-text {
    color: #7b2cbf;
    font-weight: bolder;
    cursor: pointer;
}

.browse-files span {
    position: relative;
    top: -25px;
}

.default-file-input {
    opacity: 0;
}

@keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

.file-block {
    color: #f7fff7;
    background-color: #213280;
    transition: all 1s;
    width: 390px;
    position: relative;
    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 15px;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
}

.file-info {
    display: flex;
    align-items: center;
    font-size: 15px;
}

.file-icon {
    margin-right: 10px;
}

.file-name, .file-size {
    padding: 0 3px;
}

/** Imágenes Input */

.border_dashed img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.btn-cerrar {
    font-size: 26px;
    border: none;
    background: none;
    color: var(--color-primario);
    transition: 0.3s ease all;
}

.btn-cerrar:hover {
    color: var(--color-neutro) !important;
    cursor: pointer;
}

.btn-secondary {
    padding: 6px 22px;
    background-color: var(--color-terciario);
    font-weight: bold;
}

.btn-primary {
    padding: 6px 30px;
    background-color: var(--color-primario);
    font-weight: bold;
}

.modal-footer {
    padding: 1rem 2.6rem;
}

.modal-title, .icon_upload, .text_upload{
    color: var(--color-primario);
}

/* ESTILOS DEL FORMULARIO DE DESTACADOS */
.title_productos_destacados, .title_tags {
    margin-bottom: 0.5em !important;
    font-size: 1.2em;
    font-weight: bold;
    font-family: var(--fuente-titulos) !important;
    text-align: left;
    color: var(--color-primario);
}

.contenedor_select {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

.btn_add_list_product {
    margin-left: 12px;
    padding: 6px 16px;
    border: 1px solid var(--color-secundario);
    border-radius: 12px;
    font-weight: bold;
    background-color: var(--color-primario);
    color: var(--color-secundario);
    transition: 0.3s ease all;
}

.btn_add_list_product:hover {
    border: 1px solid var(--color-primario);
    background-color: var(--color-secundario);
    color: var(--color-primario);
}

.border_right {
    padding-right: 18px;
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border_top {
    padding-top: 12px;
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.ancho_extra {
    width: 47%;
}

.ancho_extra_select {
    width: 470px;
}

.no_shadow {
    box-shadow: none;
}

.nav-item > .nav-link {
    color: var(--color-neutro);
}

.nav-item > .nav-link:hover {
    color: var(--color-primario);
}

.nav-link.active {
    font-weight: bold;
    background-color: var(--color-primario) !important;
    color: white !important;
}

.no_border {
    border: 0 !important;
}

.tag-hover {
    transition: 0.3s ease all;
}

.tag-hover:hover {
    background-color: var(--color-terciario) !important;
    cursor: pointer;
}

.mark-hover:hover {
    cursor: pointer;
}

.tooltip::before{
    display: none;
}

.tooltip-inner {
    max-width: 200px !important;
    white-space: pre-wrap !important;
}

@media (max-width: 768px) {
    .no_border_tlf {
        border: 0 !important;
        padding-right: 0 !important;
    }
    .border_bottom_tlf {
        padding-bottom: 18px !important;
        border-bottom: 1px solid #dee2e6 !important;
    }
}

/* CONTENEDOR DEL THUMBNAIL */
.contenedor_thumbnail_product {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 12px 0px 0px;
    padding: 8px 10px;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 1px 2px 3px #afafafc7;
}

.thumbnail_width{
    width: 90%;
}

.contenedor_thumbnail_product {
    width: 80%;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.thumbnail_product_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.thumbnail_product_info > span {
    margin: 0;
    font-family: var(--fuente-parrafos);
}

.thumbnail_product_info > p {
    margin: 0px;
    font-family: var(--fuente-parrafos);
}

.thumbnail_product_img {
    position: relative;
    width: 36%;
    height: 80px;
    border: 2px solid #005feb;
    border-radius: 10px;
}

.contenedor_btn_delete_thumbnail {
    position: absolute;
    top: -12px;
    right: -16px;
    padding: 6px 10px;
    border: 1px solid var(--color-terciario);
    border-radius: 50%;
    background-color: var(--color-secundario);
    transition: 0.3s ease all;
}

.contenedor_btn_delete_thumbnail:hover {
    border: 1px solid var(--color-neutro);
}

.contenedor_btn_delete_thumbnail:hover > .btn_delete_thumbnail {
    color: var(--color-neutro);
}

.btn_delete_thumbnail {
    font-size: 18px;
    color: var(--color-terciario);
    transition: 0.3s ease all;
}

.btn_reduce_questions {
    color: white;
    background-color: var(--color-terciario);
    transition: 0.3s ease all;
}

.btn_reduce_questions:hover {
    color: var(--color-neutro);
    cursor: pointer;
}

.btn_delete_thumbnail:hover {
    cursor: pointer;
}

.thumbnail_product_img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================================= */
/* =============================================== MEDIA QUERIES */

@media (max-width: 760px) {
    .titulo_secundario {
        padding-left: 0px;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .titulo_secundario {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 550px) {
    .contenedor_datos {
        padding: 2px 32px 20px;
    }
}

@media (max-width: 520px) {
    .titulo_secundario {
        font-size: 28px;
    }
}

/** Slider **/

.swiper {
    width: 600px;
    height: 150px;
  }

  .swiper-container {
    max-width: 100%; /* Limita el ancho máximo al 100% del contenedor */
    overflow: hidden; /* Oculta cualquier contenido que sobresalga del contenedor */
}

.swiper-container_pr {
    position: relative;
}

.swiper-button-next, .swiper-button-prev, .swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.5em !important;
}

.swiper-button-prev_pr, .swiper-button-next_pr {
    position: absolute;
    top: 50%;
    width: 27px;
    height: 44px;
    margin-top: -22px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.swiper-button-prev_pr {
    left: 10px; /* Adjust this value to move the button closer to the swiper */
}

.swiper-button-next_pr {
    right: 10px; /* Adjust this value to move the button closer to the swiper */
}