  /* WebKit and Opera browsers */
  @-webkit-keyframes spinner {
    from { -webkit-transform: rotateY(0deg);    }
    to   { -webkit-transform: rotateY(-360deg); }
  }

  /*  */
  @keyframes spinner {
    from,to      {                                      }    
    0%,18%       { -webkit-transform: rotateY(0deg);    }
    25%,43%      { -webkit-transform: rotateY(-90deg);  }
    50%,68%      { -webkit-transform: rotateY(-180deg); }
    75%,93%      { -webkit-transform: rotateY(-270deg); }
    100%         { -webkit-transform: rotateY(-360deg); }
  }
  #stage {
    -webkit-perspective: 11200px;
    -moz-perspective: 11200px;
    -ms-perspective: 11200px;
    perspective: 11200px;
    height: 540px; 
    width: 540px;
    margin: 0 auto;
  }

  #spinner {
    -webkit-animation-name: spinner;
    -webkit-animation-timing-function: ease;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-duration: 20s;

    animation-name: spinner;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
    animation-duration: 20s;

    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-origin: 50% 0 0;
    position: relative;
  }

  #spinner:hover, .item-agenda {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
  }

  #spinner .item-agenda {
    position: absolute;
    border: 1px solid black;
    background: white;    

  }
  .item-agenda-0 {
    text-align: center;
    overflow: hidden;
    position: relative;
    height: 100%;
  }
  .item-agenda-0 img {
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);    
    max-height: 100%;
  }

  .item-agenda-1 {
    font-family: "Lato";
    font-size: 50px;
    font-weight: 700;
    position: absolute;
    bottom: 60px;
    left: 40px;
    color: white;
    width: 440px;
    text-align: left;
  }

  .item-agenda-2 {
    font-family: "Lato";
    font-size: 40px;
    font-weight: 700;
    position: absolute;
    top: 40px;
    left: 40px;
    width: 80%;
    color: white;    
  }

  .item-agenda-tipo, .inicio-destacado-tipo {
    position: absolute;
    top: 0px;
    left: 1px;
    font-size: 18px;
    font-weight: 700;
  }

  .item-agenda-titulo, .inicio-destacado-titulo {
    text-align: left;
    position: absolute;
    left: 0px;
    font-size: 30px;
    line-height: 30px;
    font-weight: 700;
  }


  .inicio-destacado-tipo {
    position: relative;
    padding-top: 20px;
    padding-left: 21px;
    font-size: 18px;
    background: rgba(0,0,0,.2);
    text-align: left;
  }

  .inicio-destacado-titulo {
    text-align: left;
    position: relative;
    left: 0;
    background: rgb(0,0,0,.2);
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 22px;
    line-height: 24px;
  }

.destacado-shadow {
  content: "";
  left: -5%;
  background: linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,0) );
  height: 30px;
  width: 110%;
}


@keyframes animcss-home-op0 { 
    0%       { opacity: 1    }
    25%      { opacity: 0    }
    50%      { opacity: 1    }
    75%      { opacity: 0    }
    100%     { opacity: 1    }
}
@keyframes animcss-home-op1 { 
    0%       { opacity: 0    }
    25%      { opacity: 1    }
    50%      { opacity: 0    }
    75%      { opacity: 1    }
    100%     { opacity: 0    }
}

/*
style="-webkit-transform: rotateY(<?= $cara*90 ?>deg) translateZ(270px); margin-left: -270px;"
*/
#img1 {
  -webkit-transform: rotateY(0deg) translateZ(270px);
  margin-left: -270px;
}
#img2 {
  -webkit-transform: rotateY(90deg) translateZ(270px);
  margin-left: -270px;
}
#img3 {
  -webkit-transform: rotateY(180deg) translateZ(270px);
  margin-left: -270px;
}
#img4 {
  -webkit-transform: rotateY(270deg) translateZ(270px);
  margin-left: -270px;
}

.imgOp0 {
  /*animation: animcss-home-op0 15s linear infinite;*/
}

.imgOp1 {
  /*animation: animcss-home-op1 15s linear infinite;
  margin-top: -540px;*/
}

.item-agenda {
  width: 540px;
  height: 540px;
  display: inline-block;
  text-align: center;
  padding: 20px;
  margin-bottom: 25px;
  position: static;
  background-color: #fff;
  overflow: hidden;
}

.inicio-destacado-container {
  font-family: "Lato";
  width: 438px;
  height: 438px;
  display: inline-block;
  text-align: center;
  padding: 0;
  margin: 0 10px 20px 10px;
  position: relative;
  color: #fff;
  background-color: #fff;
  background-size: auto 100%;
  background-position: center;
  overflow: hidden;
}

.inicio-destacado-imagen {
    text-align: center;
    overflow: hidden;
    position: relative;
  }
  .inicio-destacado-imagen img {
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);    
  }

@media screen and (max-width: 600px) and (orientation: portrait) {
  .visitas-agenda-container {
    margin: 0;
    overflow: hidden;
  }
   #stage {
      width: 80vw;
      height: 80vw;
   }
   .item-agenda {
      width: 80vw;
      height: 80vw;
      padding: 0;
  } 
  #img1 {
    -webkit-transform: rotateY(0deg) translateZ(40vw);
    margin-left: -40vw;
  }
  #img2 {
    -webkit-transform: rotateY(90deg) translateZ(40vw);
    margin-left: -40vw;
  }
  #img3 {
    -webkit-transform: rotateY(180deg) translateZ(40vw);
    margin-left: -40vw;
  }
  #img4 {
    -webkit-transform: rotateY(270deg) translateZ(40vw);
    margin-left: -40vw;
  }

  .inicio-destacado-container {
      max-width: calc( 100vw - 50px );
      max-height: calc( 100vw - 50px );
      background-size: auto calc( 100vw - 50px );
    }

    .item-agenda-tipo, .inicio-destacado-tipo {
      font-size: 14px;
    }

    .item-agenda-titulo, .inicio-destacado-titulo {
      font-size: 4vw;
      line-height: 5vw;
      padding-right: 2vw;
    }

    .item-agenda-1 {
      font-size: 36px;
      bottom: 15px;
      left: 10px;
    }

    .item-agenda-2 {
      top: 0px;
      left: 0px;
    }

    .item-agenda-0 img {
      max-height: 80vw;
    }


}

@media screen and (max-height: 600px) and (orientation: landscape) {
   .visitas-agenda-container {
    margin: 0;
    overflow: hidden;
  }
   #stage {
      width: 100vh;
      height: 100vh;
   }
   .item-agenda {
      width: 100vh;
      height: 100vh;
      padding: 0;
  } 
  #img1 {
    -webkit-transform: rotateY(0deg) translateZ(50vh);
    margin-left: -50vh;
  }
  #img2 {
    -webkit-transform: rotateY(90deg) translateZ(50vh);
    margin-left: -50vh;
  }
  #img3 {
    -webkit-transform: rotateY(180deg) translateZ(50vh);
    margin-left: -50vh;
  }
  #img4 {
    -webkit-transform: rotateY(270deg) translateZ(50vh);
    margin-left: -50vh;
  }

  .inicio-destacado-container {
      max-width: calc( 100vh - 50px );
      max-height: calc( 100vh - 50px );
    }

    .item-agenda-tipo, .inicio-destacado-tipo {
      font-size: 16px;
    }

    .item-agenda-titulo, .inicio-destacado-titulo {
      font-size: 24px;
      line-height: 24px;
    }

    .item-agenda-1 {
      font-size: 36px;
    }


}