.boxes,
.boxes .try img,
.boxes cbox {
  width: 100%;
}
.instructions {
  background-color: #e11e26;
  border-radius: 4px;
  color: #fff;
  margin-top: 20px;
  padding: 10px;
}
.boxes {
  margin: 10px auto;
  max-width: 800px;
}
.box-o-t {
  position: absolute;
  top: -34%;
}
.boxes .discover .box-o-b {
  position: relative;
  z-index: 1;
}
.boxes .iphone {
  height: auto;
  left: 12%;
  position: absolute;
  top: -20%;
  -webkit-transition-duration: 0.7s;
  -o-transition-duration: 0.7s;
  transition-duration: 0.7s;
  width: 76%;
  z-index: 0;
}
.boxes .discover > .iphone {
  top: -60%;
}
.boxes > .try {
  cursor: pointer;
  display: inline-block;
  position: relative;
  -webkit-transition-duration: 0.2s;
  -o-transition-duration: 0.2s;
  transition-duration: 0.2s;
  width: 23.8%;
}
@media (max-width: 767px) {
  .boxes > .try {
    width: 32.5%;
  }
  .boxes > .try:nth-child(-n + 4) {
    display: none;
  }
}
@media (max-width: 479px) {
  .boxes > .try {
    width: 32%;
  }
}
@media (max-width: 319px) {
  .boxes > .try {
    width: 48%;
  }
  .boxes > .try:nth-child(-n + 5) {
    display: none;
  }
}
.div_img_gift {
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  align-items: center;
  display: none;
  justify-content: center;
  left: 0;
  position: absolute;
  text-align: center;
  top: 30%;
  width: 100%;
  z-index: 5;
}
.img_gift {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-name: rotateIn;
  animation-name: rotateIn;
  display: none;
  margin: 0 auto;
  width: 50%;
}
@-webkit-keyframes rotateIn {
  0% {
    opacity: 0;
    -webkit-transform: rotate(-200deg);
    transform: rotate(-200deg);
    -webkit-transform-origin: center;
    transform-origin: center;
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    -webkit-transform-origin: center;
    transform-origin: center;
  }
}
@keyframes rotateIn {
  0% {
    opacity: 0;
    -webkit-transform: rotate(-200deg);
    transform: rotate(-200deg);
    -webkit-transform-origin: center;
    transform-origin: center;
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    -webkit-transform-origin: center;
    transform-origin: center;
  }
}
@-webkit-keyframes tapa_superior {
  0% {
    opacity: 0;
    -webkit-transform: rotate(-200deg);
    transform: rotate(-200deg);
    -webkit-transform-origin: center;
    transform-origin: center;
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    -webkit-transform-origin: center;
    transform-origin: center;
  }
}
.boxes {
  background-size: cover;
  border-radius: 20px;
  text-align: center;
}
.boxes,
.try {
  position: relative;
}
.try {
  margin: 20px 0;
}
.try > div {
  position: absolute;
}
.try .caja {
  position: relative;
}
.caja_trasera {
  z-index: 1;
}
.caja_tapa {
  z-index: 3;
}
.caja {
  z-index: 2;
}
.caja_gift {
  z-index: 1;
}
.boxes .try.open > .caja_tapa {
  -webkit-animation: tapa_superior 2s forwards;
  animation: tapa_superior 2s forwards;
}
.boxes .try.premiazo > .caja_gift {
  -webkit-animation: tapa_superior 4s infinite alternate;
  animation: tapa_superior 4s infinite alternate;
}
@keyframes tapa_superior {
  0% {
    top: 0;
  }
  to {
    top: -40px;
  }
}
@media (max-width: 500px) {
  @-webkit-keyframes tapa_superior {
    0% {
      top: 0;
    }
    to {
      top: -30px;
    }
  }
  @keyframes tapa_superior {
    0% {
      top: 0;
    }
    to {
      top: -30px;
    }
  }
}
