:root {
    --primario: #4e73df;
    --primariosuave: #4e73dfb3;
    --gris: lightgray;
    --grisdark: darkgray;
    --rojo: red;

}


@font-face {
    font-family: 'f1';
    src: url(/aplicacion/seguridad/f1.woff2) format('woff2');
}

@font-face {
    font-family: 'fbold';
    src: url(/aplicacion/seguridad/fbold.woff2) format('woff2');
    ;
}

@font-face {
    font-family: 'fmedio';
    src: url(/aplicacion/seguridad/fmedio.woff2) format('woff2');
    ;
}

@font-face {
    font-family: 'fregular';
    src: url(/aplicacion/seguridad/fregular.woff2) format('woff2');
    ;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

html {
    font-family: 'fmedio';
    font-size: 16px;
}

body {}

input[type=text],
select {
    box-sizing: border-box;
}



/*generic*/
.hidden {
    display: none !important;
}

.msgerror1{
    color:#721c24;
    padding: 10px;
    background-color: #f8d7da;
    border:1px solid #f5c6cb;
    border-radius: 5px;
    font-size: .85rem;
}

.text-center {
    text-align: center;
}

p {
    margin: 0;
}

.flexgroup {
    display: flex;
}

.flexspacebetween {
    justify-content: space-between;
}

.flexhcenter{
    justify-content: center;
}

.flexvcenter{
    align-items: center;
}

.flexwrap {
    flex-wrap: wrap;
}

.flexgap-10 {
    gap: 10px;
}

.flexgap-15 {
    gap: 15px;
}

.v-100{
    height: 100%;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-60 {
    margin-bottom: 60px;
}

.bold {
    font-weight: bold;
}

/* generales */
.p1 {
    color: var(--primario);
    font-size: .90rem;
    margin-bottom: 7px;
}

.a1 {
    color: var(--verde);
    text-decoration: none;
    font-size: .80rem;
}

.a1:hover {
    text-decoration: underline;
}



/* input1 */
.input1 {
    position: relative;

    .input1input {
        min-height: 42px;
        border: 1px solid var(--gris);
        padding: 0px 20px;
    }

    .input1input>input[type=text] {
        width: 100%;
        font-family: 'fmedio';
        padding: 10px;
        border: none;
        outline: none;
        color: black;
    }

    .input1>input[type=text]::placeholder {
        color: var(--gris);
        font-family: 'fbond';
        opacity: .9;
    }

    .input1msg {
        position: absolute;
        top: calc(100%);
        left: 0;
        right: 0;
        display: none;
        color: var(--rojo);
        font-size: .75rem;
        margin-top: 2px;
    }

}

.input1.error {
    .input1input {
        border: 1px solid var(--rojo);
    }

    .input1msg {
        display: block;
    }

}

.input1.ok {
    .input1input:has(input[type=text]:focus) {
        border: 1px solid var(--primario);
    }

}




/* select */
.romselect {
    display: none;
    width: 100%;
}

.select1 {
    border: 1px solid var(--gris);
    position: relative;
    border-radius: 5px;

    .select1select {
        min-height: 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        gap: 10px;
        cursor: pointer;
    }

    .select1select>div:first-child {
        flex: 1;
    }

    .select1select input[type=text] {
        width: 100%;
        outline: none;
        border: none;
        cursor: pointer;
        pointer-events: none;
        font-family: 'fbold';
        color: black;

    }

    .select1optbox {
        background-color: white;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 10;
        border: 1px solid var(--gris);
        border-top: none;
        box-shadow: 0 0 3px 0 var(--gris);
        display: none;
        min-height: 100px;
        max-height: 200px;
        overflow-y: scroll;
        scrollbar-width: 1px;

        &::-webkit-scrollbar {
            display: none;
        }
    }

    .select1optbox>button {
        width: 100%;
        background-color: white;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 0;
        padding: 10px 15px;
        font-family: 'fbold';
        text-align: left;
        font-size: .75rem;
    }

    .select1optbox>button:not(:last-child) {
        border-bottom: 1px solid var(--gris);
    }

    .select1optbox>button:hover {
        background-color: var(--primariosuave);
        color: white;
    }


    .select1arrow {
        border: 2px solid var(--primario);
        border-right: none;
        border-bottom: none;
        width: 6px;
        height: 6px;
        background-color: none;
        rotate: 45deg;
        cursor: pointer;
        pointer-events: none;
        transition: rotate .3s;
    }

}

.select1.collapse {
    .select1arrow {
        rotate: 220deg;
    }

    .select1optbox {
        display: block;
    }

}







/* btn1 */
.btn1 {
    background-color: var(--primario);
    color: white;
    cursor: pointer;
    border: none;
    outline: none;
    width: 100%;
    border-radius: 3px;
    min-height: 45px;
    font-size: .80rem;
    font-family: 'fbold';
}

.btn1:disabled {
    opacity: .7;
}




/* input2 */
.input2 {
    position: relative;

    .input2input {
        border: 1px solid var(--gris);
        min-height: 45px;
        border-radius: 3px;
        padding: 0 20px;
        display: flex;
        align-items: center;
    }

    .input2input>div:first-child {
        flex: 1;
    }

    input[type=text] {
        width: 100%;
        border: none;
        outline: none;
        font-family: 'fmedio';
    }
    input[type=password] {
        width: 100%;
        border: none;
        outline: none;
        font-family: 'fmedio';
    }

    .input2input>div:last-child {
        display: flex;
        align-items: center;
    }

    .ojogris {
        display: none;
    }

    .ojored {
        display: none;
    }

    .equisgris {
        display: none;
    }

    .equisred {
        display: none;
    }

    .input2msg {
        position: absolute;
        top: calc(100%);
        left: 0;
        right: 0;
        margin-top: 3px;
        color: var(--rojo);
        font-size: .70rem;
        font-family: 'fmedio';
        display: none;
    }

    .input2input:has(input[type=text]:not(:placeholder-shown)) .equisgris {
        display: block;
    }
    .input2input:has(input[type=password]:not(:placeholder-shown)) .equisgris {
        display: block;
    }

}

.input2.contra {

    .ojogris {
        display: block;
    }

    input[type=text] {
        -webkit-text-security: disc;
    }
    input[type=password] {
        -webkit-text-security: disc;
    }

}

.input2.contra-show {
    input[type=text] {
        -webkit-text-security: none;
    }

    input[type=password] {
        -webkit-text-security: none;
    }
}

.input2.error {
    .input2input {
        border: 1px solid var(--rojo);
    }

    .input2msg {
        display: block;
    }

    .ojogris {
        display: none;
    }

    .ojored {
        display: none;
    }

    .input2input:has(input[type=text]:not(:placeholder-shown)) .equisgris {
        display: none;
    }

    .input2input:has(input[type=text]:not(:placeholder-shown)) .equisred {
        display: block;
    }

    .input2input:has(input[type=password]:not(:placeholder-shown)) .equisgris {
        display: none;
    }

    .input2input:has(input[type=password]:not(:placeholder-shown)) .equisred {
        display: block;
    }

}

.input2.error.contra {
    .ojored {
        display: block;
    }
}

.input2.ok {
    .input2input {
        border: 1px solid var(--verde);
    }

}



/* check1 */
.check1 {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;

    input [type=checkbox] {
        width: 17px;
        height: 17px;
        accent-color: green;
        outline: none;
    }

    label {
        font-size: .85rem;
        font-family: 'fregular';
        cursor: pointer;
    }

}


/* teclado*/
.teclado1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 10px;
    column-gap: 13px;

    &>button {
        background-color: white;
        border: none;
        cursor: pointer;
        box-shadow: 0 2px 8px #3333331f;
        min-height: 35px;
        border-radius: 5px;
        font-family: 'fbold';
        font-size: .90rem;
    }

    &>button:hover {
        background-color: var(--grissuave);
    }

    &>button:active {
        background-color: var(--verdeclarito);
        padding: 2px;
        opacity: .7;
    }

}

/* modal1 */
.modal1 {
    
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, .8);
    z-index: 15;
}

/*delay1 */
.delay1 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* tab1 */
.tab1 {

    position: relative;
    display: flex;

    .tab1header {
        display: flex;

    }

    .tab1opt {
        padding: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        flex: 1;
        background-color: white;
        box-shadow: 0 0 10px 0 lightgray;
    }

    .tab1opt label {
        display: inline-block;
        width: 100%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        font-size: .85rem;
    }

    .tab1opt label img {
        height: 20px;
    }

    .tab1opt input[type=radio] {
        display: none;
    }

    .tab1opt:has(input[type=radio]:checked) {
        background-color: var(--primario);
        color: white;
        border: 1px solid var(--primariosuave);
        border-bottom: none;
        border-radius: 3px 3px 0 0;
    }

    .tab1content {
        display: none;
        position: absolute;
        z-index: 10;
        border: 1px solid lightgray;
        background-color: white;
        color: black;
        top: calc(100%);
        left: 0;
        right: 0;
        min-height: 100px;
        padding: 15px;
        border-radius: 0 0 5px 5px;
        cursor: default;
        box-shadow: 0 0 10px 0 lightgray;
    }


    .tab1opt:has(input[type=radio]:checked) .tab1content {
        display: block;
    }

    .tab1opt:has(input[type=radio]:disabled) {
        background-color: lightgray;
        opacity: .2;
    }

}


#form1 {
    height: 100%;
}

/* contenedor1 */
.contenedor1 {
    height: 100%;
    display: grid;
    grid-template-columns: 55% 45%;
}

.noticias {

    
    background-color: var(--primario);
    display: flex;
    justify-content: center;
    align-items: center;

    img {
        max-width: 100%;
    }

}

.main {
    padding: 15px;
    
    margin-top: 5%;
}

.mainform {
    max-width: 350px;
    margin: auto;
    flex: 1;
}




/* responsive */
@media only screen and (max-width: 950px) {

    .noticias{
        display: none;
    }

    .contenedor1{
        display: block;        
        padding-top: 5%;
        background-position: top center;
    }

    .main{
        margin-top: 0;
        
    }

    .loginheader1{

        margin-bottom: 20px;

        
        img{
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0 10px 0 lightgray;
        }

        
        
        
    }

    #form1{
        background-image: url(./banner1.png);
        background-position: center top;
    }

    

}

@media only screen and (max-width: 400px) {


    .mainform{
        max-width: 95%;
        
    }

}