/*!
=> Sheet Slider v2.2.0
=> Copyright: 2018 zkreations
=> Licensed under MIT | github.com/zkreations/SheetSlider/blob/master/LICENSE
*/

/* Estilos iniciales
------------------------------------*/
.sheetSlider {
    background-color: #80a6cb;
    font-size: 8px;
    line-height: 1.5;
    position: relative;
    width: 100%;
    height: 150px;
    border-radius: 5px;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
.sheetSlider input,
.sh__btns{display: none;}
/* reset */
.sheetSlider h4,
.sheetSlider label,
.sheetSlider a,
.sheetSlider img,
.sheetSlider span,
.sh-control {
    background: none;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    box-shadow: 0 0 transparent;
    text-decoration: none;
}

.sh__containerImg {
    display: none;
    position: relative;

}
/* Contenedor
------------------------------------*/
.sh__content {
    display:flex;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 100%;
    transition: transform .7s cubic-bezier(.54,0,.1,1);
    transform: translate3d(0, 0, 0);
}

/* Estilos para los items
------------------------------------*/
.sh__item {
    display: flex;
    padding:15px 20px;
    /* flex-direction: column-reverse; */
    align-items:center;
    justify-content: center;
    position: absolute;
    /* width: 100%;
    height: 100%; */
}

.sh__item img {
    width: 100%;
    max-width: 250px;
    height: 100%;
}

/* Estilos para textos
------------------------------------*/
.sh__meta {
    padding:0;
    /* left: 4em;
    top: 4em;
    position: absolute;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 1px 5px rgba(0, 0, 0, .16); */
    /* max-width: 80%; */
    /* opacity: 0; */
    /* transform: translate3d(0, 4em, 0);
    transition: opacity .7s .4s,transform .7s .4s; */
}
.sh__meta h4 {
    font-size: 3.4em;
    font-weight: 700;
}

.sh__meta p {
    font-size: 2.4em;
    color: #fff;
    display:none;
}
.sh__meta span {
    font-size: 1.7em;
    font-weight: 500;
    padding-top: .2em;
}
.sh__meta h4,
.sh__meta span {
    color: #fff;
    display: block;
}
.sh__meta a {
    font-weight: 500;
    transition: color .5s;
}

/* Estilo para botonera
-------------------------------------*/
.sh__btns {
    bottom: 10px;left: 0;right: 0;
    position: absolute;
    z-index: 10;
    justify-content: center;
}
.sh__btns label {
    background-color: rgba(255, 255, 255, .5);
    cursor: pointer;
    margin: 0 .5em;
    height: 6px;
    width: 10%;
    transition: background .5s;
}
.sh__btns label:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Estilo para Flechas
------------------------------------*/
.sh__arrows,
.sh-control{
    position: absolute;
    right: 0;
    bottom: 10px;
    z-index: 10;
    /* transform: translate3d(0, 0, 0);
    transition: transform .3s;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .15); */
}
/* .sh__arrows:hover,
.sheetSlider:hover .sh-control {
    transform: translate3d(0, 0, 0);
} */
.sh__arrows label, .sh-control {
    /* background-color: white; */
    background-repeat: no-repeat;
    /* background-position: 50%; */
    /* cursor: pointer; */
}
.sh__arrows label {
    display: none;
    /* transition: background-color .3s; */
    width: 40px;
    height: 40px;
}
/* .sh__arrows label:hover {
    background-color: rgba(255, 255, 255, .9);
} */

/* Boton de control (play/pause)
------------------------------------*/
.sh-control {
    background-image: url(../img/icons/pause.png);
    width: 45px;
    height: 45px;
    bottom: 50px;
    background-color: white;
}
.sh-control.is-active {
    background-image: url(../img/icons/play.png);
}

/*Intrinsic Ratios
------------------------------------*/
/*21:9*/
.sh-21r9 {
    padding-bottom: 42.857143%;
}
/*16:9*/
.sh-16r9 {
    padding-bottom: 56.25%;
}
/*4:3*/
.sh-4r3 {
    padding-bottom: 75%;
}
/*1:1*/
.sh-1r1 {
    padding-bottom: 100%;
}

/* Si los input estan "checked"
------------------------------------*/
/*Animacion Default*/
.sh-default .sh__item:nth-child(2) {
    left: 100%; 
    width:-moz-fill-available;
    width:-webkit-fill-available;
    width:fill-available

}
.sh-default .sh__item:nth-child(3) {
    left: 200%; 
    width:-moz-fill-available;
    width:-webkit-fill-available;
    width:fill-available
}
.sh-default .sh__item:nth-child(4) {left: 300%; width:fit-content}
.sh-default .sh__item:nth-child(5) {left: 400%; width:fit-content}
.sh-default .sh__item:nth-child(6) {left: 500%; width:fit-content}
.sh-default .sh__item:nth-child(7) {left: 600%; width:fit-content}
.sh-default .sh__item:nth-child(8) {left: 700%; width:fit-content}
.sh-default .sh__item:nth-child(9) {left: 800%; width:fit-content}
.sh-default .sh__item:nth-child(10) {left: 900%; width:fit-content}

.sh-default input:nth-child(1):checked~.sh__content {transform: translate3d(0%, 0, 0);}
.sh-default input:nth-child(2):checked~.sh__content {transform: translate3d(-100%, 0, 0);}
.sh-default input:nth-child(3):checked~.sh__content {transform: translate3d(-200%, 0, 0);}
.sh-default input:nth-child(4):checked~.sh__content {transform: translate3d(-300%, 0, 0);}
.sh-default input:nth-child(5):checked~.sh__content {transform: translate3d(-400%, 0, 0);}
.sh-default input:nth-child(6):checked~.sh__content {transform: translate3d(-500%, 0, 0);}
.sh-default input:nth-child(7):checked~.sh__content {transform: translate3d(-600%, 0, 0);}
.sh-default input:nth-child(8):checked~.sh__content {transform: translate3d(-700%, 0, 0);}
.sh-default input:nth-child(9):checked~.sh__content {transform: translate3d(-800%, 0, 0);}
.sh-default input:nth-child(10):checked~.sh__content {transform: translate3d(-900%, 0, 0);}

/* Animacion vertical*/
.sh-vertical .sh__item:nth-child(2) {top: 100%}
.sh-vertical .sh__item:nth-child(3) {top: 200%}
.sh-vertical .sh__item:nth-child(4) {top: 300%}
.sh-vertical .sh__item:nth-child(5) {top: 400%}
.sh-vertical .sh__item:nth-child(6) {top: 500%}
.sh-vertical .sh__item:nth-child(7) {top: 600%}
.sh-vertical .sh__item:nth-child(8) {top: 700%}
.sh-vertical .sh__item:nth-child(9) {top: 800%}
.sh-vertical .sh__item:nth-child(10) {top: 900%}

.sh-vertical input:nth-child(1):checked~.sh__content {transform: translate3d(0%, 0, 0);}
.sh-vertical input:nth-child(2):checked~.sh__content {transform: translate3d(0, -100%, 0);}
.sh-vertical input:nth-child(3):checked~.sh__content {transform: translate3d(0, -200%, 0);}
.sh-vertical input:nth-child(4):checked~.sh__content {transform: translate3d(0, -300%, 0);}
.sh-vertical input:nth-child(5):checked~.sh__content {transform: translate3d(0, -400%, 0);}
.sh-vertical input:nth-child(6):checked~.sh__content {transform: translate3d(0, -500%, 0);}
.sh-vertical input:nth-child(7):checked~.sh__content {transform: translate3d(0, -600%, 0);}
.sh-vertical input:nth-child(8):checked~.sh__content {transform: translate3d(0, -700%, 0);}
.sh-vertical input:nth-child(9):checked~.sh__content {transform: translate3d(0, -800%, 0);}
.sh-vertical input:nth-child(10):checked~.sh__content {transform: translate3d(0, -900%, 0);}

/* Animacion fade*/
.sh-fade .sh__item {
    opacity: 0;
    transition: opacity .7s cubic-bezier(.54,0,.1,1);
}
.sh-fade input:nth-child(1):checked~.sh__content .sh__item:nth-child(1),
.sh-fade input:nth-child(2):checked~.sh__content .sh__item:nth-child(2),
.sh-fade input:nth-child(3):checked~.sh__content .sh__item:nth-child(3),
.sh-fade input:nth-child(4):checked~.sh__content .sh__item:nth-child(4),
.sh-fade input:nth-child(5):checked~.sh__content .sh__item:nth-child(5),
.sh-fade input:nth-child(6):checked~.sh__content .sh__item:nth-child(6),
.sh-fade input:nth-child(7):checked~.sh__content .sh__item:nth-child(7),
.sh-fade input:nth-child(8):checked~.sh__content .sh__item:nth-child(8),
.sh-fade input:nth-child(9):checked~.sh__content .sh__item:nth-child(9),
.sh-fade input:nth-child(10):checked~.sh__content .sh__item:nth-child(10) {opacity: 1;z-index: 1;}

/* Animacion flip*/
.sh-flip .sh__item {
    opacity: 0;
    transition: transform .5s cubic-bezier(.54,0,.1,1), opacity .5s;
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    transform-origin: bottom;
}
.sh-flip input:nth-child(1):checked~.sh__content .sh__item:nth-child(1),
.sh-flip input:nth-child(2):checked~.sh__content .sh__item:nth-child(2),
.sh-flip input:nth-child(3):checked~.sh__content .sh__item:nth-child(3),
.sh-flip input:nth-child(4):checked~.sh__content .sh__item:nth-child(4),
.sh-flip input:nth-child(5):checked~.sh__content .sh__item:nth-child(5),
.sh-flip input:nth-child(6):checked~.sh__content .sh__item:nth-child(6),
.sh-flip input:nth-child(7):checked~.sh__content .sh__item:nth-child(7),
.sh-flip input:nth-child(8):checked~.sh__content .sh__item:nth-child(8),
.sh-flip input:nth-child(9):checked~.sh__content .sh__item:nth-child(9),
.sh-flip input:nth-child(10):checked~.sh__content .sh__item:nth-child(10) {
    transform: perspective(400px);
    opacity: 1;
    z-index: 1;
}

/* Mostrar el texto
------------------------------------*/
.sheetSlider input:nth-child(1):checked~.sh__content .sh__item:nth-child(1) .sh__meta,
.sheetSlider input:nth-child(2):checked~.sh__content .sh__item:nth-child(2) .sh__meta,
.sheetSlider input:nth-child(3):checked~.sh__content .sh__item:nth-child(3) .sh__meta,
.sheetSlider input:nth-child(4):checked~.sh__content .sh__item:nth-child(4) .sh__meta,
.sheetSlider input:nth-child(5):checked~.sh__content .sh__item:nth-child(5) .sh__meta,
.sheetSlider input:nth-child(6):checked~.sh__content .sh__item:nth-child(6) .sh__meta,
.sheetSlider input:nth-child(7):checked~.sh__content .sh__item:nth-child(7) .sh__meta,
.sheetSlider input:nth-child(8):checked~.sh__content .sh__item:nth-child(8) .sh__meta,
.sheetSlider input:nth-child(9):checked~.sh__content .sh__item:nth-child(9) .sh__meta,
.sheetSlider input:nth-child(10):checked~.sh__content .sh__item:nth-child(10) .sh__meta {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Mostrar flechas
------------------------------------*/
/*Flecha derecha */
.sheetSlider input:nth-child(1):checked~.sh__arrows label:nth-child(2),
.sheetSlider input:nth-child(2):checked:last-of-type~.sh__arrows label:nth-child(1),
.sheetSlider input:nth-child(2):checked~.sh__arrows label:nth-child(3),
.sheetSlider input:nth-child(3):checked:last-of-type~.sh__arrows label:nth-child(1),
.sheetSlider input:nth-child(3):checked~.sh__arrows label:nth-child(4),
.sheetSlider input:nth-child(4):checked:last-of-type~.sh__arrows label:nth-child(1),
.sheetSlider input:nth-child(4):checked~.sh__arrows label:nth-child(5),
.sheetSlider input:nth-child(5):checked:last-of-type~.sh__arrows label:nth-child(1),
.sheetSlider input:nth-child(5):checked~.sh__arrows label:nth-child(6),
.sheetSlider input:nth-child(6):checked:last-of-type~.sh__arrows label:nth-child(1),
.sheetSlider input:nth-child(6):checked~.sh__arrows label:nth-child(7),
.sheetSlider input:nth-child(7):checked:last-of-type~.sh__arrows label:nth-child(1),
.sheetSlider input:nth-child(7):checked~.sh__arrows label:nth-child(8),
.sheetSlider input:nth-child(8):checked:last-of-type~.sh__arrows label:nth-child(1),
.sheetSlider input:nth-child(8):checked~.sh__arrows label:nth-child(9),
.sheetSlider input:nth-child(9):checked:last-of-type~.sh__arrows label:nth-child(1),
.sheetSlider input:nth-child(9):checked~.sh__arrows label:nth-child(10),
.sheetSlider input:nth-child(10):checked:last-of-type~.sh__arrows label:nth-child(1) {
    background-image: url(../img/icons/right.png);
    display: block;
    float: right;
}
/*Flecha izquierda */
.sheetSlider input:nth-child(1):checked~input:nth-child(2):last-of-type~.sh__arrows label:nth-child(2),
.sheetSlider input:nth-child(1):checked~input:nth-child(3):last-of-type~.sh__arrows label:nth-child(3),
.sheetSlider input:nth-child(1):checked~input:nth-child(4):last-of-type~.sh__arrows label:nth-child(4),
.sheetSlider input:nth-child(1):checked~input:nth-child(5):last-of-type~.sh__arrows label:nth-child(5),
.sheetSlider input:nth-child(1):checked~input:nth-child(6):last-of-type~.sh__arrows label:nth-child(6),
.sheetSlider input:nth-child(1):checked~input:nth-child(7):last-of-type~.sh__arrows label:nth-child(7),
.sheetSlider input:nth-child(1):checked~input:nth-child(8):last-of-type~.sh__arrows label:nth-child(8),
.sheetSlider input:nth-child(1):checked~input:nth-child(9):last-of-type~.sh__arrows label:nth-child(9),
.sheetSlider input:nth-child(1):checked~input:nth-child(10):last-of-type~.sh__arrows label:nth-child(10),
.sheetSlider input:nth-child(2):checked~.sh__arrows label:nth-child(1),
.sheetSlider input:nth-child(3):checked~.sh__arrows label:nth-child(2),
.sheetSlider input:nth-child(4):checked~.sh__arrows label:nth-child(3),
.sheetSlider input:nth-child(5):checked~.sh__arrows label:nth-child(4),
.sheetSlider input:nth-child(6):checked~.sh__arrows label:nth-child(5),
.sheetSlider input:nth-child(7):checked~.sh__arrows label:nth-child(6),
.sheetSlider input:nth-child(8):checked~.sh__arrows label:nth-child(7),
.sheetSlider input:nth-child(9):checked~.sh__arrows label:nth-child(8),
.sheetSlider input:nth-child(10):checked~.sh__arrows label:nth-child(9) {
    background-image: url(../img/icons/left.png);
    display: block;
    float: left;
}

/* Personalizacion
------------------------------------*/
.sh__meta a {color: #009688;} /*color de enlaces*/
.sh__meta a:hover {color: #607D8B;} /*color de enlaces (hover)*/

.sheetSlider input:nth-child(1):checked~.sh__btns label:nth-child(1),
.sheetSlider input:nth-child(2):checked~.sh__btns label:nth-child(2),
.sheetSlider input:nth-child(3):checked~.sh__btns label:nth-child(3),
.sheetSlider input:nth-child(4):checked~.sh__btns label:nth-child(4),
.sheetSlider input:nth-child(5):checked~.sh__btns label:nth-child(5),
.sheetSlider input:nth-child(6):checked~.sh__btns label:nth-child(6),
.sheetSlider input:nth-child(7):checked~.sh__btns label:nth-child(7),
.sheetSlider input:nth-child(8):checked~.sh__btns label:nth-child(8),
.sheetSlider input:nth-child(9):checked~.sh__btns label:nth-child(9),
.sheetSlider input:nth-child(10):checked~.sh__btns label:nth-child(10) {
    background-color: #ffffff; /*color de botones activos*/
}

/* MediaQuerys
------------------------------------*/
/* Small devices */
@media (min-width: 425px) {

    .sheetSlider {
        height: 370px;
    }
    .sh__meta p {
        display:block;
    }

}

/* Small devices */
@media (min-width: 576px) {
    .sheetSlider {
        font-size: 9px;
        height: 350px;

    }
    .sh-control {
        transform: translate3d(100%, 0, 0);
    }

    .sh__arrows label {
        width: 40px;
        height: 40px;
    }
    .sh-control {
        bottom: calc(4em + 66px);
    }
}
/* Medium devices */
@media (min-width: 768px) {
    .sh__btns {
        display: flex;
    }
    .sh__meta {
        display: block;
    }
    .sh__arrows{
        display: none;
    }
}

/* Large devices */
@media (min-width: 992px) {
    .sheetSlider{
        

    }
    .sh__item {
        /* flex-direction: row-reverse; */
    }

    .sh__item img {
        width: 100%;
    }
    .sh__containerImg {
        display: block;
        width: 20%;
    }
    
    .sh__meta{
        display: block;
        width: 80%;
        padding: 0 40px;
    }

}
@media (min-width: 1400px) {

    .sh__containerImg {
        display: block;
        width: 18%;
    }

    
    
}

@media (min-width: 1600px) {

    .sh__containerImg {
        display: block;
        width: 15%;
    }

    .sh__meta p {
        font-size: 2.8em;
    }
    
}
@media (max-width: 992px) {
    
    .sheetSlider input:nth-child(3):checked~.sh__content .sh__item:nth-child(3) .sh__meta{
        width: 100%;
    }
}


