/* Fondo general */
body {
    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 100vh;
    background: linear-gradient(
        220deg,
        rgba(185, 229, 249, 0.75) 0%,
        rgba(250, 251, 228, 0.45) 55%,
        rgba(255, 255, 255, 0.95) 75%,
        #fff 100%
    );
    margin: 0;
    padding: 0;

    font-family: "Ubuntu Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #00628F;
}

/*Loader general de la app*/
.loader_container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #00628F;
    z-index: 991;
}
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #D3D80E;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    background: #D3D80E;
    width: 16px;
    height: 16px;
    transform: translate(-50%, 50%);
    border-radius: 50%;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*Loader sala de espera*/
.waiting_time {
    box-sizing: border-box;
    display: inline-block;
    width: 50px;
    height: 80px;
    border-top: 5px solid #fff;
    border-bottom: 5px solid #fff;
    position: relative;
    background: linear-gradient(#e5b905 30px, transparent 0) no-repeat;
    background-size: 2px 40px;
    background-position: 50% 0px;
    animation: spinx 5s linear infinite;
}
.waiting_time:before,
.waiting_time:after {
    content: "";
    width: 40px;
    left: 50%;
    height: 35px;
    position: absolute;
    top: 0;
    transform: translatex(-50%);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 20px 20px;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: 0 0px;
    animation: lqt 5s linear infinite;
}
.waiting_time:after {
    top: auto;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    animation: lqb 5s linear infinite;
}
@keyframes lqt {0%,
    100% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0% 0px;
    }
    50% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0% 40px;
    }
    50.1% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0% -40px;
    }
}
@keyframes lqb {
    0% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0 40px;
    }
    100% {
        background-image: linear-gradient(#e5b905 40px, transparent 0);
        background-position: 0 -40px;
    }
}
@keyframes spinx {
    0%,49% {
        transform: rotate(0deg);
        background-position: 50% 36px;
    }
    51%,98% {
        transform: rotate(180deg);
        background-position: 50% 4px;
    }
    100% {
        transform: rotate(360deg);
        background-position: 50% 36px;
    }
}

h1 {
    margin: 0;
    
    font-family: "Ubuntu Sans", sans-serif;
    font-size: 60px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #0086C3;
}
h2 {
    margin: 0;
    
    font-family: "Ubuntu Sans", sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    color: #0086C3;
}
h3 {
    margin: 0;
    
    font-family: "Ubuntu Sans", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #0086C3;
}
h4 {
    margin: 0;
    
    font-family: "Ubuntu Sans", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    color: #0086C3;
}
p {
    margin: 0;

    font-family: "Ubuntu Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #0086C3;
}
.bold {
    font-weight: 800;
}
.small {
    font-size: 14px;
}

.input_form_container{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 4px;

    width: 100%;
}

label{
    font-family: "Ubuntu Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #0086C3;
}
label .small{
    font-size: 12px;
}
label em{
    color: #BE0062;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 10px;

    width: 100%;
    height: 52px;
    padding: 8px 10px 8px 16px;
    background: #FFF;
    border: solid 2px #B3DBED;
    border-radius: 40px;
    outline: none;

    font-family: "Ubuntu Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #333;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border: solid 2px #D3D80E;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #333;
}
input[type="text"]:read-only,
input[type="email"]:read-only,
input[type="password"]:read-only {}
input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled {
    background: #FBFAF9;
    border: solid 2px transparent;
}

.check_box_container{
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 11px;
}
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;

  width: 18px;
  height: 18px;
  margin: 0;

  background-image: url("../images/checkbox-empty.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  cursor: pointer;
  transform: scale(1);
}
input[type="checkbox"]:checked {
  background-image: url("../images/checkbox-checked.svg");
}
input[type="checkbox"]:focus {
  outline: none;
}

/* Error*/
input[type="text"].is-error,
input[type="email"].is-error,
input[type="password"].is-error {
    border: 2px solid #BE0062;
    color: #BE0062;
}
.select-wrapper select.is-error {
    border: 2px solid #BE0062;
    color: #BE0062;
}
.check_box_container.is-error {
    border: 2px solid #BE0062;
    color: #BE0062;
}
img.is-error {
    border: 2px solid #BE0062;
    color: #BE0062;
}
/*
input[type="text"].is-error:focus,
input[type="email"].is-error:focus,
input[type="password"].is-error:focus {
    box-shadow: none;
}
input[type="text"].is-error::placeholder,
input[type="email"].is-error::placeholder,
input[type="password"].is-error::placeholder {
    color: #C300A3;
} */

.select-wrapper {
  position: relative;
  width: 100%;
}
.select-wrapper select {
    width: 100%;
    height: 48px;
    padding: 10px 20px;
    padding-right: 40px; /* espacio para la flecha */
    background: #FFF;
    border: 2px solid #B3DBED;
    border-radius: 40px;  
    cursor: pointer;
    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url(../images/icons/icon-select-arrow.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;

    font-family: "Ubuntu Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #333;
}

textarea{
    width: 100%;
    padding: 8px 10px 8px 16px;
    background: #FFF;
    border: 2px solid var(--grises-light-grey-40, #E0E1E1);
    border-radius: 12px;
    resize: none;
    outline: none;

    font-family: "Ubuntu Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #333;
}

.btn_principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: fit-content;
    height: auto;
    padding: 14px 20px;
    background: #0086C3;
    border: none;
    border-radius: 40px;
    cursor: pointer;

    font-family: "Ubuntu Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    color: #FFFFFF;
}
.btn_principal:hover {
    background: #00628F;
}
.btn_principal:active {
    /*transform: translateY(1px);*/
}
.btn_principal.disabled {
    background: #DEEFF7;
    pointer-events: none;

    color: #FFF;
}

.btn_secundario{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: fit-content;
    height: auto;
    padding: 12px 20px;
    background: #FFFFFF;
    border-radius: 40px;
    border: 2px solid #0086C3;
    cursor: pointer;

    font-family: "Ubuntu Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    color: #00628F;
}
.btn_secundario:hover {
    border: 2px solid #00628F;

    color: #00628F;
}
.btn_secundario:active {
    /*transform: translateY(1px);*/
}
.btn_secundario.disabled {
    background: #FBFAF9;
    border: 2px solid #808080;
    pointer-events: none;

    color: #808080;
}

#btnArriba {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    display: block;
    /* Oculto al inicio */
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000000000;
}

hr{
    width: 100%;
    height: 6px;
    margin: 0;
    padding: 1px 0;
    background: linear-gradient(90deg, #D3D80E 0%, #A4A80B 100%);
    border: none;
    opacity: 1;
}

.container_main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 40px;
    flex: 1;

    padding: 0 15px;
}

.header-main {
    margin-bottom: 20px;
    gap: 20px;
}
#logo {
    padding: 10px;
    max-width: 220px !important;
}


.texto_terminos {
    color: #003E66;
    text-align: center;

    /* párrafo small/regular */
    font-family: "Trebuchet MS";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 150% */
}

.copyright {
    color: var(--Text-500, #58585B);
    text-align: center;
    font-family: "Trebuchet MS";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 150% */
}

.codigo {
    color: var(--Text-600, #BEBEC0);
    text-align: center;
    font-family: "Trebuchet MS";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 150% */
}

.terminos_mobil {
    display: flex !important;
    justify-content: center;
    margin-bottom: 30px;
}

.terminos_desktop {
    display: none !important;
}

.farmacovigilancia_mobil {
    display: flex !important;
    justify-content: center;
    margin-bottom: 30px;
}

.farmacovigilancia_desktop {
    display: none !important;
}

.user {
    display: flex;
    justify-content: flex-end;
}

/* Responsive adjustments */
@media (min-width: 768px) {    
    .terminos_mobil {
        display: none !important;
    }

    .terminos_desktop {
        display: flex !important;
        flex-direction: row;
        gap: 30px;
        justify-content: center;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .farmacovigilancia_mobil {
        display: none !important;
    }

    .farmacovigilancia_desktop {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        margin-top: 30px;
    }
}
