html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.pre-line-text {
    white-space: pre-line;
}
/* Custom Modal styles */
.custom-modal {
    position: fixed;
    top: 19rem;
    right: 0;
    z-index: 9999;
    display: none;
}

.custom-modal-content {
    background-color: #fefefe;
    border: 1px solid #888;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    width: 250px; /* Default width */
    max-height: 80vh; /* Max height of modal */
    transition: all 0.3s ease; /* Smooth transition for expansion */
    overflow: hidden; /* Ensure the image does not overflow */
}

    .custom-modal-content img {
        width: 100%;
        height: auto;
        object-fit: contain; /* Adjust the image to fit within the container */
        object-position: center; /* Center the image in the container */
    }

.modal-opacity {
    opacity: 0.1; /* Transparencia cuando el mouse no está encima */
    transition: opacity 0.3s ease-in-out; /* Efecto suave */
}

    .modal-opacity:hover {
        opacity: 1; /* Opacidad completa cuando el mouse está encima */
    }

.close-btn, .expand-btn {
    position: absolute;
    top: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn {
    right: 40px;
}

.expand-btn {
    right: 10px;
}

    .close-btn:hover, .expand-btn:hover {
        color: red;
    }

/* Centered modal */
.custom-modal.expanded .custom-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: auto;
    max-width: none;
    max-height: none;
    z-index: 9999; /* Ensure it's on top */
    overflow: hidden; /* Ensure content does not overflow */
}

    .custom-modal.expanded .custom-modal-content img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* Adjust the image to fit within the container */
        object-position: center; /* Center the image within the container */
    }

/* Overlay to block the rest of the page */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9998; /* Just below the modal */
}

.custom-modal.expanded + .custom-modal-overlay {
    display: block;
}

.imagen-modal {
    width: 50rem !important;
    height: 30rem !important;
}

.custom-file-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    z-index: 1; /* Asegura que el input est� debajo del span */
}

.file-name-overlay {
    position: absolute;
    top: 50%;
    width: 70%;
    left: 11.3rem;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.75rem; /* Ajusta el padding para mejorar la legibilidad */
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    z-index: 2; /* Asegura que el span est� encima del input */
}

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 40px !important;
    margin-bottom: 0;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    margin: 0;
    /* opacity: 0; */
    cursor: var(--cursorPointer);
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color212529);
    background-color: var(--colorFFFFFF);
    border: 1px solid var(--color707070);
    border-radius: 0px;
    font-size: 1rem;
}

.custom-file-label::after {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.5em + 0.75rem);
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    color: var(--color212529);
    content: "Seleccionar archivo";
    background-color: var(--colorEAEAEA);
    border-left: inherit;
    border-radius: 0 0.25rem 0.25rem 0;
    font-size: 1rem;
}

.logobase {
    width: 6.25rem !important;
    height: 3.125rem !important;
}

@media (max-width: 576px) {
    .form-check-inline {
        display: block;
        margin-bottom: 0.5rem; /* Espaciado entre opciones */
    }
}

.select2-search__field {
    width: 100% !important;
    border: 0rem solid rgb(138, 138, 138) !important;
}

.cursor-pointer {
    cursor: pointer;
}
.select2-selection__rendered {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e);
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

}

.select2-selection.select2-selection--single {
    height: 40px;
}

.sin-radio {
    border-radius: 0;
}

.sin-underline {
    text-decoration: none !important;
}

.sin-underline:hover {
    text-decoration: none !important;
}

a {
    text-decoration: none !important;
}

.input-group.archivoColeccion {
    width: auto !important; /* Fuerza a que no sea 100% */
    flex: 1 1 auto; /* Permite que crezca según el contenedor */
}

.grafico-canvas {
    width: 100%;
}
