:root {
    --principal: #003A5D;
    --principalDark: #00253b;
    --secundario: #00B2E3;
    --blanco: #f1f1f1;
    --oscuro: #1D252C;
}

html,
body {

    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
        Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    background-color: #fafafa;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

* {
    margin: 0px;
    padding: 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-sizing: border-box;

}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

button {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    letter-spacing: 1px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

input,
select {
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px #cacaca solid;
    font-size: 14px;
}

.ml-150 {
    margin-left: 150px;
}

.mr-1 {
    margin-right: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.px-1 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.v-center {
    display: flex;
    align-items: center;
}

.cursor {
    cursor: pointer;
}

main {
    transition: margin-left .5s;
    /* padding: 16px; */
    margin-top: 50px;
}

.alert_error {
    background-color: red;
    color: var(--blanco);
    padding: 8px 16px;
    border-radius: 5px;
    text-align: center;
}

.t-c {
    text-align: center;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

/* The Close Button */
.modal-content .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.close-button {
    position: absolute;
    color: #8a8a8a;
    cursor: pointer;
    right: 12px;
    top: 12px;
    line-height: 1;
    border: none;
    background-color: transparent;
    padding: 0;
}

.close-button span {
    font-size: 2rem !important;
}

.close-button:has(img) {
    top: 40px;
}

.close-button img {
    height: 20px;
    filter: contrast(0.5);
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidebar {
        padding-top: 15px;
    }
}

.loader-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #242f3f30;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loader-wrapper img {
    width: 30%;
}

.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
    border: 4px solid #Fff;
    animation: loader 2s infinite ease;
}

.loader-inner {
    vertical-align: top;
    display: inline-block;
    width: 100%;
    background-color: #fff;
    animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(180deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-inner {
    0% {
        height: 0%;
    }

    25% {
        height: 0%;
    }

    50% {
        height: 100%;
    }

    75% {
        height: 100%;
    }

    100% {
        height: 0%;
    }
}