﻿/*!
=> Slider RGS
*/

/* Estilos iniciales
------------------------------------*/

.sliderRGS {
    background-color:#FFFFFF;
    font-size: 8px;
    line-height: 1.5;
    position: relative;
    width: 100%;
    padding-bottom: 42.857143%;
	padding-left : 0%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
.sliderRGS input,
.sh__btns, .sh__meta{display: none;}
/* reset */
.sliderRGS h4,
.sliderRGS label,
.sliderRGS a,
.sliderRGS img,
.sliderRGS span,
.sh-control-a {
    background: none;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    box-shadow: 0 0 transparent;
    text-decoration: none;
}
/* Contenedor
------------------------------------*/
.sh__content1{
    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: block;
    position: absolute;
    top: 0;left: 0;
    width: 100%;
    height: 100%;
	
}
.sh__item img {
    width: 100%;
}

.sh__item-desac {
    display: block;
    position: absolute;
    top: 0;left: 0;
    width: 100%;
    height: 100%;
	
}
.sh__item-desac img {
    width: 100%;
}

/* Estilos para textos
------------------------------------*/
.sh__meta {
    left: 15em;
    top: 10em;
    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 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;
	/*color : red;*/
}

/* Estilo para botones
-------------------------------------*/
.sh__btns {
    bottom: 0;left: 0;right: 0;
    position: absolute;
    z-index: 10;
    padding-left: 4em;
    padding-right: 4em;
    justify-content: space-between;
}
.sh__btns label {
    background-color: rgba(255, 255, 255, .5);
    cursor: pointer;
    margin: 0 .2em;
    height: 6px;
    flex: 1 0 auto;
    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: 0;
    z-index: 10;
    transform: translate3d(0, 0, 0);
    transition: transform .3s;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .15);
}

.sh__arrows:hover,
.sliderRGS:hover .sh__arrows,
.sliderRGS: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: 50px;
    height: 50px;
}
.sh__arrows label:hover {
    background-colorg);
    width:455px;
  9);
}

/* Boton de control (play/pause)
------------------------------------*/
.sh-control{
    background-image: url(../iconos/pause.png);
    width: 45px;
    height: 45px;
    bottom: 50px;
    background-color: white;
	background-image: url(../iconos/pause.png);
}
.sh-control.not-active{
    background-image: url(../iconos/pause.png);
	background-color: white;
	
}
.sh-control.is-active{
    background-image: url(../iconos/play.png);
	background-color: white;

	
}

/*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 */
.sh-rgss .sh__item {
    opacity: 0;
    transition: opacity .900s cubic-bezier(.54,0,.1,1);
}
.sh-rgss .sh__item-desac {
    opacity: 0;
    transition: opacity .900s cubic-bezier(.54,0,.1,1);
}
.sh-rgss input:nth-child(1):checked~.sh__content .sh__item:nth-child(1) {
	opacity: 1;z-index: 1;
	animation: kenburns-top 10s linear both 0.5s;
}
.sh-rgss input:nth-child(2):checked~.sh__content .sh__item:nth-child(2) {
	opacity: 1;z-index: 1;
	animation: kenburns-bottom 10s linear both reverse 0.5s;
}
.sh-rgss input:nth-child(3):checked~.sh__content .sh__item:nth-child(3){
	opacity: 1;z-index: 1;
	animation: kenburns-top 10s linear both reverse 0.5s;
}
.sh-rgss input:nth-child(4):checked~.sh__content .sh__item:nth-child(4){
	opacity: 1;z-index: 1;
	animation: kenburns-left 10s linear both 0.5s;
}
.sh-rgss input:nth-child(5):checked~.sh__content .sh__item:nth-child(5){
	opacity: 1;z-index: 1;
	animation: kenburns-right 10s linear both 0.5s;
}
.sh-rgss input:nth-child(6):checked~.sh__content .sh__item:nth-child(6){
	opacity: 1;z-index: 1;
	animation: kenburns-bottom 10s linear both 0.5s;
}
.sh-rgss input:nth-child(7):checked~.sh__content .sh__item:nth-child(7){
	opacity: 1;z-index: 1;
	animation: kenburns-top 10s linear both 0.5s;
}
.sh-rgss input:nth-child(8):checked~.sh__content .sh__item:nth-child(8){
	opacity: 1;z-index: 1;
	animation: kenburns-left 10s linear both reverse 0.5s;
}
.sh-rgss input:nth-child(9):checked~.sh__content .sh__item:nth-child(9){
	opacity: 1;z-index: 1;
	animation: kenburns-right 10s linear both reverse 0.5s;
}
.sh-rgss input:nth-child(10):checked~.sh__content .sh__item:nth-child(10) {
	opacity: 1;z-index: 1;
	animation: kenburns-bottom 10s linear both 0.5s;
}

/* Animacion desactivada */

.sh-rgss input:nth-child(1):checked~.sh__content .sh__item-desac:nth-child(1),
.sh-rgss input:nth-child(2):checked~.sh__content .sh__item-desac:nth-child(2),
.sh-rgss input:nth-child(3):checked~.sh__content .sh__item-desac:nth-child(3),
.sh-rgss input:nth-child(4):checked~.sh__content .sh__item-desac:nth-child(4),
.sh-rgss input:nth-child(5):checked~.sh__content .sh__item-desac:nth-child(5),
.sh-rgss input:nth-child(6):checked~.sh__content .sh__item-desac:nth-child(6),
.sh-rgss input:nth-child(7):checked~.sh__content .sh__item-desac:nth-child(7),
.sh-rgss input:nth-child(8):checked~.sh__content .sh__item-desac:nth-child(8),
.sh-rgss input:nth-child(9):checked~.sh__content .sh__item-desac:nth-child(9),
.sh-rgss input:nth-child(10):checked~.sh__content .sh__item-desac:nth-child(10) {
	opacity: 1;z-index: 1;
}

/* Mostrar el texto
------------------------------------*/
.sliderRGS input:nth-child(1):checked~.sh__content .sh__item:nth-child(1) .sh__meta,
.sliderRGS input:nth-child(2):checked~.sh__content .sh__item:nth-child(2) .sh__meta,
.sliderRGS input:nth-child(3):checked~.sh__content .sh__item:nth-child(3) .sh__meta,
.sliderRGS input:nth-child(4):checked~.sh__content .sh__item:nth-child(4) .sh__meta,
.sliderRGS input:nth-child(5):checked~.sh__content .sh__item:nth-child(5) .sh__meta,
.sliderRGS input:nth-child(6):checked~.sh__content .sh__item:nth-child(6) .sh__meta,
.sliderRGS input:nth-child(7):checked~.sh__content .sh__item:nth-child(7) .sh__meta,
.sliderRGS input:nth-child(8):checked~.sh__content .sh__item:nth-child(8) .sh__meta,
.sliderRGS input:nth-child(9):checked~.sh__content .sh__item:nth-child(9) .sh__meta,
.sliderRGS input:nth-child(10):checked~.sh__content .sh__item:nth-child(10) .sh__meta {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.sliderRGS input:nth-child(1):checked~.sh__content .sh__item-desac:nth-child(1) .sh__meta,
.sliderRGS input:nth-child(2):checked~.sh__content .sh__item-desac:nth-child(2) .sh__meta,
.sliderRGS input:nth-child(3):checked~.sh__content .sh__item-desac:nth-child(3) .sh__meta,
.sliderRGS input:nth-child(4):checked~.sh__content .sh__item-desac:nth-child(4) .sh__meta,
.sliderRGS input:nth-child(5):checked~.sh__content .sh__item-desac:nth-child(5) .sh__meta,
.sliderRGS input:nth-child(6):checked~.sh__content .sh__item-desac:nth-child(6) .sh__meta,
.sliderRGS input:nth-child(7):checked~.sh__content .sh__item-desac:nth-child(7) .sh__meta,
.sliderRGS input:nth-child(8):checked~.sh__content .sh__item-desac:nth-child(8) .sh__meta,
.sliderRGS input:nth-child(9):checked~.sh__content .sh__item-desac:nth-child(9) .sh__meta,
.sliderRGS input:nth-child(10):checked~.sh__content .sh__item-desac:nth-child(10) .sh__meta {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}


/* Mostrar flechas
------------------------------------*/
/*Flecha derecha */
.sliderRGS input:nth-child(1):checked~.sh__arrows label:nth-child(2),
.sliderRGS input:nth-child(2):checked:last-of-type~.sh__arrows label:nth-child(1),
.sliderRGS input:nth-child(2):checked~.sh__arrows label:nth-child(3),
.sliderRGS input:nth-child(3):checked:last-of-type~.sh__arrows label:nth-child(1),
.sliderRGS input:nth-child(3):checked~.sh__arrows label:nth-child(4),
.sliderRGS input:nth-child(4):checked:last-of-type~.sh__arrows label:nth-child(1),
.sliderRGS input:nth-child(4):checked~.sh__arrows label:nth-child(5),
.sliderRGS input:nth-child(5):checked:last-of-type~.sh__arrows label:nth-child(1),
.sliderRGS input:nth-child(5):checked~.sh__arrows label:nth-child(6),
.sliderRGS input:nth-child(6):checked:last-of-type~.sh__arrows label:nth-child(1),
.sliderRGS input:nth-child(6):checked~.sh__arrows label:nth-child(7),
.sliderRGS input:nth-child(7):checked:last-of-type~.sh__arrows label:nth-child(1),
.sliderRGS input:nth-child(7):checked~.sh__arrows label:nth-child(8),
.sliderRGS input:nth-child(8):checked:last-of-type~.sh__arrows label:nth-child(1),
.sliderRGS input:nth-child(8):checked~.sh__arrows label:nth-child(9),
.sliderRGS input:nth-child(9):checked:last-of-type~.sh__arrows label:nth-child(1),
.sliderRGS input:nth-child(9):checked~.sh__arrows label:nth-child(10),
.sliderRGS input:nth-child(10):checked:last-of-type~.sh__arrows label:nth-child(1) {
    background-image: url(../iconos/right.png);
    display: block;
    float: right;
}
/*Flecha izquierda */
.sliderRGS input:nth-child(1):checked~input:nth-child(2):last-of-type~.sh__arrows label:nth-child(2),
.sliderRGS input:nth-child(1):checked~input:nth-child(3):last-of-type~.sh__arrows label:nth-child(3),
.sliderRGS input:nth-child(1):checked~input:nth-child(4):last-of-type~.sh__arrows label:nth-child(4),
.sliderRGS input:nth-child(1):checked~input:nth-child(5):last-of-type~.sh__arrows label:nth-child(5),
.sliderRGS input:nth-child(1):checked~input:nth-child(6):last-of-type~.sh__arrows label:nth-child(6),
.sliderRGS input:nth-child(1):checked~input:nth-child(7):last-of-type~.sh__arrows label:nth-child(7),
.sliderRGS input:nth-child(1):checked~input:nth-child(8):last-of-type~.sh__arrows label:nth-child(8),
.sliderRGS input:nth-child(1):checked~input:nth-child(9):last-of-type~.sh__arrows label:nth-child(9),
.sliderRGS input:nth-child(1):checked~input:nth-child(10):last-of-type~.sh__arrows label:nth-child(10),
.sliderRGS input:nth-child(2):checked~.sh__arrows label:nth-child(1),
.sliderRGS input:nth-child(3):checked~.sh__arrows label:nth-child(2),
.sliderRGS input:nth-child(4):checked~.sh__arrows label:nth-child(3),
.sliderRGS input:nth-child(5):checked~.sh__arrows label:nth-child(4),
.sliderRGS input:nth-child(6):checked~.sh__arrows label:nth-child(5),
.sliderRGS input:nth-child(7):checked~.sh__arrows label:nth-child(6),
.sliderRGS input:nth-child(8):checked~.sh__arrows label:nth-child(7),
.sliderRGS input:nth-child(9):checked~.sh__arrows label:nth-child(8),
.sliderRGS input:nth-child(10):checked~.sh__arrows label:nth-child(9) {
    background-image: url(../iconos/left.png);
    display: block;
    float: left;
}

/* MediaQuerys (Pantalla de dispositivos)
------------------------------------*/
/* Dispositivos pequeños */
@media (min-width: 420px) {
    .sliderRGS {
        font-size: 9px;
    }
    .sh__arrows,
    .sh-control {
        transform: translate3d(100%, 0, 0);
    }
    .sh__arrows {
        bottom: calc(4em + 6px);
    }
    .sh__arrows label {
        width: 60px;
        height: 60px;
    }
    .sh-control {
        bottom: calc(4em + 66px);
    }
	  .sh__btns {
        display: flex;
    }
	 .sh__meta {
        display: block;
    }


}
/* Dispositivos medianos */
@media (min-width: 768px) {
    .sh__btns {
        display: flex;
    }
    .sh__meta {
        display: block;
    }
}

/* Dispositivos Grandes */
@media (min-width: 992px) {
    .sliderRGS{
        font-size: 10px;
    }
}

/* Personalizacion
------------------------------------*/
.sh__meta a {color: red;} /*color de enlaces*/
.sh__meta a:hover {color: #607D8B;} /*color de enlaces (hover)*/

.sliderRGS input:nth-child(1):checked~.sh__btns label:nth-child(1),
.sliderRGS input:nth-child(2):checked~.sh__btns label:nth-child(2),
.sliderRGS input:nth-child(3):checked~.sh__btns label:nth-child(3),
.sliderRGS input:nth-child(4):checked~.sh__btns label:nth-child(4),
.sliderRGS input:nth-child(5):checked~.sh__btns label:nth-child(5),
.sliderRGS input:nth-child(6):checked~.sh__btns label:nth-child(6),
.sliderRGS input:nth-child(7):checked~.sh__btns label:nth-child(7),
.sliderRGS input:nth-child(8):checked~.sh__btns label:nth-child(8),
.sliderRGS input:nth-child(9):checked~.sh__btns label:nth-child(9),
.sliderRGS input:nth-child(10):checked~.sh__btns label:nth-child(10) {
    background-color: #009688; /*color de botones activos*/
}


/*
	BLOQUE DE ANIMACIONES TRANSCIONES Y ZOOM

	animation: kenburns-bottom 10s linear both reverse 0.5s;

	con reverse = alejamiento
	sin reverse = acercamiento
*/

@keyframes kenburns-top {
  0% {
    transform: scale(1) translateY(0);
    transform-origin: 50% 16%;
  }
  100% {
    transform: scale(1.25) translateY(-15px);
    transform-origin: top;
  }
}

@keyframes kenburns-bottom {
  0% {
    transform: scale(1) translateY(0);
    transform-origin: 50% 84%;
  }
  100% {
    transform: scale(1.25) translateY(15px);
    transform-origin: bottom;
  }
}

@keyframes kenburns-right {
  0% {
    transform: scale(1) translate(0, 0);
    transform-origin: 84% 50%;
  }
  100% {
    transform: scale(1.25) translateX(20px);
    transform-origin: right;
  }
}

@keyframes kenburns-left {
  0% {
    transform: scale(1) translate(0, 0);
    transform-origin: 16% 50%;
  }
  100% {
    transform: scale(1.25) translate(-20px, 15px);
    transform-origin: left;
  }
}
