
/* Fuentes */

@font-face {
    font-family: 'Montserrat Regular';
    src: url('../fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat Medium';
    src: url('../fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat Black';
    src: url('../fonts/Montserrat/Montserrat-Black.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat Bold';
    src: url('../fonts/Montserrat/Montserrat-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat Light';
    src: url('../fonts/Montserrat/Montserrat-Light.ttf') format('truetype');
}


.font-bold{
    font-family: 'Montserrat Bold';
    font-weight: 700;
}

.font-light{
    font-family: 'Montserrat Light';
    font-weight: 300;
}

.font-medium{
    font-family: 'Montserrat Medium';
    font-weight: 500;
}

/* iFrames de google*/

#credential_picker_iframe , #credential_picker_container{
    z-index: 999999999 !important;
}

/* Reglas generales */

*{
    padding: 0;
    margin:0;
    box-sizing: border-box;
}

body{
    font-family: "Montserrat Regular";
}

a{
    text-decoration: none;
}

h2{
    font-family: "Montserrat Black";
    margin: 1.5rem 0;
    color: var(--colorPrincipal);
}

html{
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

input[type=mail],input[type=password], input[type=text] {
    appearance: none !important;
    outline: none;
    border: none;
    padding: 4px 0;
    border-bottom: 2px solid #ebedee;
    background: none;
    transition: border 450ms ease-out;
    font-family: 'Montserrat Regular';
    border-radius: 0px !important;
    font-size: 16px;
}

input[type=mail]:focus,input[type=password]:focus, input[type=text]:focus {
    border-bottom: 2px solid var(--colorSecundario);
}

/* Márgenes */

.mb-05{
    margin-bottom: .5rem;
}

.mt-1{
    margin-top: 1rem;
}

.mb-1{
    margin-bottom: 1rem;
}

/* Elementos de formulario */

.form-group{
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.form-group label{
    font-weight: 500;
    font-size: 16px;
    font-family: 'Montserrat Medium';
}

.contenedorLabel{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 6px;
}

.contenedorLabel img{
    height: 20px;
    margin-right: 3px;
}

.contenedorPassword{
    display: grid;
    grid-template-columns: 1fr 18px;
    gap: 10px;
}

.contenedorPassword .icono{
    align-self: center;
}

/* Botones */

.boton{
    appearance: none;
    outline: none;
    border: none;
    width: 100%;
    padding: .4rem .2rem;
    border-radius: 30px;
    font-family: 'Montserrat Medium';
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--colorPrincipal);
    color: #fff;
    height: 42px;
    text-decoration: none;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}

.boton.destacado{
    position: relative;
    overflow: hidden;
    transition: all 0.8s ease;
}

.boton:after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    transform: skewX(-20deg);
    background-image: linear-gradient(to right, transparent, transparent,  #4285f420, #ea443520, #fbbd0520,#34a85320, transparent, transparent)
}
.boton.destacado:after {
    animation: shine 4.2s ease infinite;
}

.botonGoogle{
    background-color: #fdfbfb;
    color: #000;
    border: 1px solid #dadce0;
    cursor: pointer;
}

.botonGoogle:hover{
    background-color: #f3f2f2;
}

.botonGoogle img{
    height: 25px;
    margin-right: 8px;
}

.enlaceBlock{
    display: block;
    font-size: 16px;
    color: #000;
    text-decoration: none;
}

.botonEnlace{
    display: flex;
    justify-content: center;
    font-size: 16px;
    color: var(--colorPrincipal);
    text-decoration: none;
}



.textoOlvidarPass{
    margin-bottom: 1rem;
    font-size: 16px;
}


.sinCuenta{
    font-size: 16px;
}

.sinCuenta a{
    color: #000;
}


#contenedor{
    height: 100vh;
    display:flex;
    justify-content: center;
    align-items: center;
}
#contenedorLogotipo{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 430px;
    padding: 1rem;
}

#formulario{
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 350px;
    padding: 1rem;
}


.mensajeError{
    padding: .8rem;
    font-size: 14px;
    background-color: #EB4132;
    color: #FFF;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    line-height: 18px;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.mensajeError img{
    height: 20px;
    margin-right: 5px;
}


#contenedorFormulario{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    box-shadow: 0 5px 10px rgb(154 160 185 / 14%), 0 15px 40px rgb(166 173 201 / 31%);
    border-radius: 20px;
    gap: 1rem;
    background: #fdfdfd;
    z-index: 99999999;
}

#contenedorLogotipo div{
    display: flex;
    justify-content: center;
    align-items: center;
}

#contenedorLogotipo div img{
    max-width: 200px;
}

.bullet{
    border-radius: 50%;
    background: var(--colorPrincipal);
    display: inline-block;
    height: 10px;
    width: 10px;
    margin-right: 6px;
    margin-left: 1px;
}

.requisito span{
    text-decoration: line-through;
    animation: strike .8s linear;
}

.req{
    display: flex;
    align-items: center;
}
.requisito div.bullet{
    display: none;
}

.requisito img{
    display: block !important;
}

#requerimientosPassword{
    margin: 1rem 0 .5rem;
    font-size: 14px;
}

img.resultadoRepetirPass{
    height: 18px;
    width: auto;
    margin-left: 5px;
}

input.incorrecto{
    border-bottom: 2px solid #EB4132 !important;
}

.req img{
    height: 12px;
    width: 12px;
    margin-right: 5px;
}

.mensajeError a{
    color: #FFF;
}

.contenedorMensaje{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 320px;
    align-items: center;
    padding: 1rem;
}

.contenedorMensaje div{
    line-height: 25px;
    font-size: 16px;
    text-align: center;
}

.contenedorMensaje img{
    max-width: 60px;
    margin-bottom: 1rem;
}

.imagenFondo{
    width: 100%;
    position: fixed;
    bottom: 0;
    height:100px;
    z-index: 0;
    left: 0;
}

/* Header */

header{
    padding: 1rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 20px auto 40px;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgb(154 160 185 / 14%), 0 15px 40px rgb(166 173 201 / 31%);
    background-color: #fdfdfd;
}

header #logotipoHeader{
    max-width: 60px;
    justify-self: center;
}
header #logotipoHeader img{
    width: 100%;
}

/* Avatar del header */

header .avatar{
    border-radius: 50%;
    padding: 1rem;
    height: 45px;
    width: 45px;
    display: flex;
    justify-content: center;
    justify-self: center;
    align-items: center;
}

header .avatarImagen{
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 2px solid #003B78;
    animation: bordercolorimagen .5s ease-in alternate-reverse 2;
}

header .avatarImagen span{
    display: none;
}

header .avatarLetra{
    font-family: 'Montserrat Black';
    font-size: 20px;
    background-color: #ff6f59a3;
    color: #ffff;
    text-transform: uppercase;
    border: 2px solid #FF6F59;
    animation: bordercolorletra .5s ease-in alternate-reverse 2;
}

/* Botón errar sesión del header */

header #cerrarSesion{
    position: absolute;
    border-radius: 20px;
    z-index: 9999999;
    padding: 1rem;
    background-color: #fdfdfd;
    box-shadow: 0 5px 10px rgb(154 160 185 / 14%), 0 15px 40px rgb(166 173 201 / 31%);
    top: 110px;
    left: 980px;
    width: 155px;
    font-size: 14px;
    
}
header #cerrarSesion a {
    text-decoration: none;
    color: #003B78;
    display: flex;
    justify-content: center;
    align-items: center;
}

header #cerrarSesion a img{
    height: 18px;
    margin-right: 6px;
}

/* Lista de aplicaciónes */

#lista{
    display: grid;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.aplicacion{
    display: flex;
    flex-direction: column;
    padding: 1rem;
    align-items: center;
    background: #fdfdfd;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgb(154 160 185 / 14%), 0 15px 40px rgb(166 173 201 / 31%);
    justify-content: space-between;
    z-index: 99999;
}

.aplicacion .portada {
    margin-bottom: 1rem;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aplicacion .portada img{
    max-width: 120px;
}

.aplicacion .nombre{
    margin-bottom: 1rem;
    text-align: center;
}

.aplicacion .boton{
    width: 100%;
}
.aplicacion .boton:after{
    display: none;
}
.aplicacion .p-1{
    width: 100%;
}

.aplicacion.disabled .portada, .aplicacion.disabled .nombre, .aplicacion.disabled .boton{
    opacity: .5;
    filter: grayscale(1);
}

.aplicacion.disabled a{
    user-select: none;
}


#dialogErrores{
    border-radius: 10px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999999999 !important;
    height: -moz-fit-content !important;
    height: -webkit-fit-content !important;
    height: fit-content !important;
    width: 300px;
}

.contenidoDialog{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.iconoDialog img{
    height: 40px;
    width: 40px;
}

.contenedorBotonDialog{
    width: 100%;
}

.botonCerrarDialog{
    padding: 8px;
    width: 100%;
    font-family: "Montserrat Medium";
    border-radius: 20px;
    border: none;
    outline: none;
    max-width: 220px;
    cursor: pointer;
}


#successRegistro{
    grid-column: 1 / -1;
}

.botonError{
    background-color: #EB4132;
    color: #FFF;
}

.contenedorBotonDialog{
    display: flex;
    justify-content: center;
    align-items: center;
}

#erroresRegistro{
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#erroresRegistro span{
    display: block;
}

/* Media query*/

@media (min-width: 300px) and (max-width: 768px) { 

    body{
        padding: 0 1rem;
    }

    h2{
        margin: 0 0 1.5rem;
        font-size: 22px;
    }

    #contenedorFormulario{
        grid-template-columns: 1fr;
        text-align: center;
        width: 100%;
        gap: .5rem;
    }

    #formulario{
        padding: 0 1rem 1rem;
        width: 100%;
    }

    #contenedorLogotipo{
        height: inherit;
        padding: 2rem 1rem 0;
    }

    .imagenFondo{
        width: 700px;
        height: 90px;

    }

    .contenedorMensaje{
        padding: 0 1rem 1rem;
        width: 100%;
    }

    #contenedorLogotipo div img{
        max-width: 90px !important;
    }

    #lista{
        padding-bottom: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(200px, 300px));
        justify-content: center;
    }

    .boton{
        height: 40px;
    }

    .aplicacion .portada img{
        max-width: 100px;
    }

    #contenedor{
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 1rem;
        height: inherit !important;
    }

}


/* Animaciones */

@keyframes bordercolorimagen{
    from {
        border: 2px solid #fdfdfd; 
    }
    to {
        border: 2px solid #003B78;
    }
}


@keyframes bordercolorletra{
    from { border: 2px solid #fdfdfd;  }
    to { border: 2px solid #FF6F59; }
}

@-moz-keyframes shine {
    100% {
        left: 200%;
    }
}

@-webkit-keyframes shine {
    100% {
        left: 200%;
    }
}

@-o-keyframes shine {
    100% {
        left: 200%;
    }
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes strike {
    from {
        text-decoration-color: transparent;
    }
    to {
        text-decoration-color: auto;
    }
}

.fade-in {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: .4s;
}
.btngoogle{
    justify-content: center;
    align-items: center;
    display: flex;
}