@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #53585b;
    --dark: #eaeaea;
    --shadow: #f8f9fa;
    --border: #d1d1d1de;
    --red: #ff0000;
    --yellow: #F3DE2C;
    --green: #119822;
    --blue: rgba(30,47,139,1);
    --purple: purple;
}

*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', Helvetica, sans-serif;
    box-sizing: border-box;
}
main{
    width: 100%;
}
#alert_message{
    position: absolute;
}

/* CABECERA PRINCIPAL - ALINEACIÓN HORIZONTAL */
.cabecera_principal{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.relleno{
    height: 90px;
    background: var(--shadow);
    
}
.relleno_panel{
    display: none;
}

/* CONTENEDOR DE LOGO Y BOTONES DE USUARIO */
.btn_hover{
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* MENÚ PRINCIPAL - ALINEACIÓN HORIZONTAL */
.menu_primario {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-left: 20px;
}

.menu_intermedio{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu_intermedio>li{
    border-radius: 5px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .1) !important;
    padding: 8px 12px;
    background-color: white;
    flex-shrink: 0;
}

.menu_intermedio>li>{
    padding: 100px;    
}

.d-flex{
    display: flex;
}

/*menu responsive*/
.menu-toggle {
  width: 100%;
  font-size: 20px;
  padding: 10px 15px;
  cursor: pointer;
  background: #333;
  color: white;
  display: none;
}

/*Formularios*/
select{
    background: white;
    padding: 2px 15px;
    border: 0px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: bold;
}
.form-control{
    padding: 4px 15px;
    border: 0.5px solid var(--primary);
    border-radius: 50px;

}

/*btn guardado*/

.btnguardado{
    background: red !important;
}


/********************************/
.main_body{
    display: flex;
    align-items: stretch;
    margin: 0 auto;
    background: var(--shadow);
    min-height: 100vh;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
}
/*item trabajo*/
.main_body>.card{
    flex: 1 0 24%;
    padding: 10px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
    background: white;
    border: 1px solid var(--dark);
    border-radius: 3px;
}


.red{
    border-left: 3px solid var(--red) !important;
    background: var(--red) ;
}

.green{
    border-left: 3px solid var(--green) !important;
    background: var(--green);

}

.yellow{
    border-left: 3px solid var(--yellow) !important;
}
.purple{
    border-left: 3px solid var(--purple) !important;
    display: none   ;
}


.card>.titulo{
    font-weight: bold;
    color: var(--primary);
    max-width: 310px;
    word-break: break-word;
}
.card>.vacantes{
    font-size: .8em;
    max-width: 300px;
    color: var(--primary);
    margin-top: 10px;
    word-break: break-word;
}
.card>.data{
    margin-top: 10px;
    display: flex;    
    flex-wrap: wrap;
    gap: 5px;
    justify-content: space-around;
}

.ver_card{
    font-size: .6em;
    color: var(--primary);
}
.fecha{
    font-size: .6em;
    color: var(--primary);
}

.card>.data>.link{
    font-size: .7em;
    color: var(--primary);
}

.card>.data a{
    padding: 3px 10px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    background: rgb(30,47,139);
    background: linear-gradient(36deg, rgba(30,47,139,1) 7%, rgba(39,64,162,1) 49%, rgba(21,59,156,1) 100%);
}

.card>.info{
    font-size: .6em;
    color: var(--primary);
}
/*footer*/
.pie_pagina{
    height: 5em;
    background-color: var(--primary);
}

/*Loader*/
/* HTML: <div class="loader"></div> */
.loader_parent{
    width: 100%;
    display: flex;
    height: 70px;
    justify-content: center;
    align-items: center;
}
.btn{
    text-decoration: none;
    font-size: .8em;
    border-radius: 50px;
    padding: 5px 15px;
    height: 30px;
    cursor: pointer;
}
.btn-primary{
    color: white;
    background: rgb(30,47,139);
    background: linear-gradient(36deg, rgba(30,47,139,1) 7%, rgba(39,64,162,1) 49%, rgba(21,59,156,1) 100%);
    border: 0px solid;
}

/*Panel lateral oculto*/


#panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 450px;
    height: 100vh;
    background-color: #333;
    color: white;
    padding: 20px;
    overflow: scroll;
    box-shadow: 2px 0 8px rgba(0,0,0,0.5);
    transform: translateX(-100%);
    animation-fill-mode: forwards;
}
/*Preferencias*/
.fila_pref{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}
.select_pref{
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}


/* Animación de entrada */
@keyframes slideInLeft {
    from {
    transform: translateX(-100%);
    }
    to {
    transform: translateX(0);
    }
}

/* Animación de salida */
@keyframes slideOutLeft {
    from {
    transform: translateX(0);
    }
    to {
    transform: translateX(-100%);
    }
}

.visible {
    animation: slideInLeft 0.4s ease-out forwards;
}

.oculto {
    animation: slideOutLeft 0.3s ease-in forwards;
}


/**/

/* HTML: <div class="loader"></div> */
.loader {
    width: 40px;
    height: 40px;
    border: 5px solid rgba(255, 165, 0, 0.3); /* Borde con transparencia */
    border-top-color: orange; /* Color del borde superior */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

  /*Modal*/
  .fondo_modal{
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, .075);
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;


    transition: opacity 0.3s ease, transform 0.3s ease;

    
    opacity: 1;
    pointer-events: auto;
  }
  .d-none{
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    pointer-events: none;
  }

/*login*/
.login{
    min-width: 400px;
    max-width: 600px;
    background: white;
    border-radius: 10px;
}   
.login_head{
    display: flex;
    padding: 15px;
    justify-content: space-between;
    border-bottom: .5px solid var(--shadow);
}

.form_login{
    width: 100%;
    padding: 15px;
}

.form_input{
    width: 100%;
    padding: 10px 0px;
}

.input_form{
    width: 100%;
    height: 40px;
    padding: 5px;
    border-radius: 10px;
    border: .5px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input_form:focus{
    transform: translateY(-3px); /* Se eleva */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #28a745;
    outline: none;
}


/*alert*/
.alert{
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    font-size: .8em;
}
.alert-danger{
    background: #ff6262;
    color: #780000;
}
.alert-success{
    background: #49ff70;
    color: #002a12;
}


/**/
.selected {
    background-color: #e0ffe0 !important; /* Highlight the selected item */
}
.selected_items{
    display: flex;
    font-size: .8em;
    padding: 10px;
    justify-content: center;
    align-items: center;
    background: var(--green);
    color: white;
    box-shadow: 1px 1px 5px #4a4a4a;
    position: fixed;
    border-radius: 50px;
    right: 15px;
    bottom: 15px;
    z-index: 1000;
    cursor: pointer;
}

/*Modal seleccionados*/
.seleccionados{
    padding: 20px;
    background: white;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    max-height: 600px;
    overflow: scroll;

}

/*cards*/
.element{
    border: .5px solid var(--border);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .1) !important;
    border-radius: 10px;
    padding: 15px;
    max-width: 400px;
    min-width: 200px;
    transition: .1s all linear;
    flex: 1;

}
.element:hover{
    box-shadow: 0px 0px 3px  #959595;
}
.element > *{
    padding: 5px;
    min-height: 55px;
}
.titulo_el{
    font-size: 1em;
    color:black;
    font-weight: bold;
}
.entidad{
    font-size: .7em;
}
.descripcion{
    color: var(--primary);
    font-size: .9em;   
}
.remuneracion{
    font-size: .8em;
}
.subtitulo{
    font-size: .8em;
    color: var(--primary);
    font-weight: bold;
}
.formacion_academica{
    font-size: .8em;
    color: var(--blue);
}
.vacantes{
    font-size: .8em;
}
.fecha_limite{
    font-size: .8em;
}
.lugar{
    font-size: .7em;
}
.enlace{
    width: 100%;
}
.enlace>a{
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border:solid 2px var(--blue);
    color: var(--blue);
    text-decoration: none;
    font-size: .8em;
    font-weight: bold;
    transition: .2s all linear;
}

.enlace>a:hover{
    background: var(--blue);
    color: #FFF;
}
/*para la leyenda*/
.leyenda{
    position: fixed;
    right: 0;
    top: 40vh;
    border: solid 2px var(--green);
    background: white;
    padding: 4px;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.leyenda>ul{
    list-style: none;
    font-size: .7em;
    width: 110px;
}
.leyenda>ul>li{
    display: flex;
    align-items: center;
}
.leyenda>ul>li>div{
    width: 8px;
    height: 8px;
    margin-right: 2px;
}
.leyenda>ul>li:nth-child(3){
    font-weight: bold;
}
.leyenda>ul>li:nth-child(4){
    font-weight: bold;
}
.leyenda>ul>li:nth-child(6){
    font-size: .9em;
}
.leyenda>ul>li:nth-child(3)>div{
    background-color: var(--red);
}
.leyenda>ul>li:nth-child(4)>div{
    background-color: var(--green);
}
/*ocultar la leyenda*/
.leyenda-oculta {
    transform: translateX(95%); /* Oculta la leyenda moviéndola hacia la derecha, dejando un 5% visible */
}
.leyenda-icono {
    position: absolute;
    left: -20px; /* Ubica el ícono fuera del contenedor */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background-color: white;
    border: solid 1px var(--border);
    padding: 4px;
    font-weight: bold;
    border-radius: 50%; /* Redondea el ícono */
    display: none; /* El ícono estará inicialmente oculto */
}
.leyenda-oculta .leyenda-icono {
    display: block; /* Muestra el ícono cuando la leyenda está oculta */
}
/*para las sugerencias*/
#busqueda_principal {
    position: relative; /* Esto es necesario para que el #suggestions se posicione relativo a este contenedor */
}   
#palabras_clave{
    min-width: 250px;
}
#suggestions {
    position: absolute; /* Posición absoluta respecto al contenedor padre */
    top: 100%; /* Esto coloca #suggestions justo debajo del input */
    left: 0;
    right: 0;
    z-index: 1000; /* Para asegurar que se superponga a otros elementos si es necesario */
    background-color: white;
    /*border: 1px solid #ccc;*/
    max-height: 200px; /* Limitar la altura máxima de la lista */
    overflow-y: auto; /* Permitir desplazamiento si hay muchas sugerencias */
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: .7em;
    border-radius: 3px;
}

#suggestions li {
    padding: 4px;
    cursor: pointer;
}

#suggestions li:hover {
    background-color: #f0f0f0;
}

@keyframes vibrate {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}
  
.vibrate {
    animation: vibrate 0.5s linear;
}


/*multiple tags*/
.wrapper{
    padding: 15px;
}
.wrapper :where(.title, li i, .details){
    width: 100%;
    background: white;

}

.wrapper .content{
    margin: 10px 0;
}
.content p{
    font-size: 15px;
}
.content ul{
    display: flex;
    flex-wrap: wrap;
    padding: 7px;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid #0066ff;
}
.content ul li{
    list-style: none;
    margin: 4px 3px;
    background: #f2f2f2;
    border-radius: 5px;
    padding: 5px 8px 5px 10px;
    border: 1px solid #e3d1e1;
}

.content ul li i{
    display: inline-block;
    height: 20px;
    width: 20px;
    font-size: 12px;
    background: #dfdfdf;
    margin-left: 8px;
    border-radius: 50%;
    background: #dfdfdf;
    justify-content: center;
    cursor: pointer;
    color: #808080;
}
.content ul input{
    flex: 1;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 16px;
}
.wrapper .details{
    justify-content: space-between;
}
.details button{
    border: none;
    outline: none;
    color: #fff;
    padding: 9px;
    font-size: 14px;
    border-radius: 5px;
    background: #5372F0;
}

/* Estilo para pantallas de 1024px o menos */
@media (max-width: 1024px) {
    body {
        font-size: 16px;
    }
    .iniciar_sesion{
        display: none;
    }
    .relleno{
        height: 90px;
    }
    .main_body>.card{
        flex: 1 0 25%;
    }
}

/* Estilo para pantallas de 768px o menos */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .cabecera_principal{
        flex-direction: column;
        gap: 10px;
        background: white;
        margin-top: 50px;
        padding: 10px;
    }
    
    .btn_hover {
        width: 100%;
        justify-content: space-between;
    }
    
    .menu_primario {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    
    .menu_intermedio{
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
    
    .menu_intermedio>li{
        margin: 5px;
        width: 100%;
    }
    
    .menu_intermedio>li>input, select{
        width: 100%;
    }
    
    .iniciar_sesion{
        display: inline-block;
    }
    
    .relleno{
        height: 50px;
    }
    
    .relleno_panel{
        display: block;
        height: 50px;
    }
    
    .main_body>.card{
        flex: 1 0 40%;
    }
    
    .cabecera_principal{
        display: none;
    }
    
    .menu-toggle{
        position: fixed;
        z-index: 999;
        display: block;
    }
}

/* Estilo para pantallas de 480px o menos */
@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    .main_body>.card{
        flex: 1 0 50%;
    }
}