/* ========================= */
/* RESET */
/* ========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:#f4f8fc;
  color:#333;
}

/* ========================= */
/* HEADER */
/* ========================= */

header{
  width:100%;
  background:#0d6efd;
  color:white;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 40px;
  position:sticky;
  top:0;
  z-index:1000;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo h1{
  font-size:35px;
}

nav{
  display:flex;
  gap:30px;
}

nav a{
  color:white;
  text-decoration:none;
  font-size:18px;
  font-weight:bold;
  transition:.3s;
}

nav a:hover{
  color:yellow;
}

/* ========================= */
/* CONTENIDO */
/* ========================= */

main{
  width:60%;
  margin:auto;
  padding:30px 0;
}

h2{
  text-align:center;
  color:#0d6efd;
  margin-bottom:25px;
}

/* ========================= */
/* FORMULARIO */
/* ========================= */

form{
  background:white;
  padding:25px;
  border-radius:15px;
  box-shadow:0 5px 15px rgba(0,0,0,.15);
}

fieldset{
  border:2px solid #0d6efd;
  border-radius:10px;
  padding:20px;
  margin-bottom:20px;
}

legend{
  color:#0d6efd;
  font-weight:bold;
  padding:0 10px;
}

/* Ocultar checkbox */

input[type="checkbox"]{
  display:none;
}

/* Botones */

.opcion{

  display:inline-block;
  margin:8px;
  padding:12px 20px;
  background:#0d6efd;
  color:white;
  border-radius:25px;
  cursor:pointer;
  transition:.3s;
}

.opcion:hover{
  background:#0b5ed7;
  transform:translateY(-3px);
}

input[type="checkbox"]:checked + .opcion{

  background:#198754;
  transform:scale(1.05);

}

/* BOTON BUSCAR */

input[type="submit"]{

  width:100%;
  padding:15px;
  background:#198754;
  color:white;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-size:18px;
  transition:.3s;
}

input[type="submit"]:hover{

  background:#157347;

}

/* ========================= */
/* TARJETAS */
/* ========================= */

.trabajos{

  margin-top:40px;

}

.card{

  background:white;
  border-left:6px solid #0d6efd;
  border-radius:15px;
  padding:20px;
  margin-bottom:20px;
  box-shadow:0 5px 15px rgba(0,0,0,.15);
  transition:.3s;

}

.card:hover{

  transform:translateY(-6px);

}

.card h3{

  color:#0d6efd;
  margin-bottom:10px;

}

.card p{

  margin:6px 0;

}

/* ========================= */
/* IMAGENES LATERALES */
/* ========================= */

.imagen-izquierda{

  position:fixed;
  left:20px;
  top:160px;

}

.imagen-derecha{

  position:fixed;
  right:20px;
  top:160px;

}

.imagen-izquierda img,
.imagen-derecha img{

  width:220px;
  border-radius:15px;
  box-shadow:0 5px 20px rgba(0,0,0,.3);

}

/* ========================= */
/* FOOTER */
/* ========================= */

footer{

  background:#0d6efd;
  color:white;
  text-align:center;
  padding:20px;
  margin-top:50px;

}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:1200px){

  main{

    width:75%;

  }

  .imagen-izquierda img,
  .imagen-derecha img{

    width:170px;

  }

}

@media(max-width:900px){

  header{

    flex-direction:column;
    gap:15px;

  }

  nav{

    flex-wrap:wrap;
    justify-content:center;

  }

  main{

    width:90%;

  }

  .imagen-izquierda,
  .imagen-derecha{

    display:none;

  }

}

@media(max-width:600px){

  .logo h1{

    font-size:28px;

  }

  nav a{

    font-size:15px;

  }

  .opcion{

    display:block;
    width:100%;
    text-align:center;

  }

}
