@import url("https://fonts.googleapis.com/css?family=Inconsolata:700");

.busqueda {
  position: absolute;
  margin: 0 0 99% 200px;
  top: 10px;
  right: 0;
  left: 200px;
  width: 300px;
  height: 100px;
}

.busqueda .search {
  position: absolute;
  margin: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background: #28a745;
  border-radius: 50%;
  transition: all 1s;
  z-index: 4;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
}

.busqueda .search:hover {
  cursor: pointer;
}

.busqueda .search::before {
  content: "";
  position: absolute;
  margin: auto;
  top: 22px;
  right: 0;
  bottom: 0;
  left: 22px;
  width: 12px;
  height: 2px;
  background: white;
  transform: rotate(45deg);
  transition: all 0.5s;
}

.busqueda .search::after {
  content: "";
  position: absolute;
  margin: auto;
  top: -5px;
  right: 0;
  bottom: 0;
  left: -5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid white;
  transition: all 0.5s;
}

.busqueda input {
  font-family: "Inconsolata", monospace;
  position: absolute;
  margin: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 50px;
  outline: none;
  border: none;
  background: #28a745;
  color: white;
  text-shadow: 0 0 10px #28a745;
  padding: 0 80px 0 20px;
  border-radius: 30px;
  box-shadow: 0 0 25px 0 #28a745, 0 20px 25px 0 rgba(0, 0, 0, 0.2);
  transition: all 1s;
  opacity: 0;
  z-index: 5;
  font-weight: bolder;
  letter-spacing: 0.1em;
}

.busqueda input:hover {
  cursor: pointer;
}

.busqueda input:focus {
  width: 300px;
  opacity: 1;
  cursor: text;
}

.busqueda input:focus~.search {
  right: -250px;
  background: #151515;
  z-index: 6;
}

.busqueda input:focus~.search::before {
  top: 0;
  left: 0;
  width: 25px;
}

.busqueda input:focus~.search::after {
  top: 0;
  left: 0;
  width: 25px;
  height: 2px;
  border: none;
  background: white;
  border-radius: 0%;
  transform: rotate(-45deg);
}

.busqueda input::placeholder {
  color: white;
  opacity: 0.5;
  font-weight: bolder;
}