/* css/convenioscol.css */

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
/* reset.css */

body{
	background-image: url("../images/fondo2.jpg");
	font-family: Arial;
	background-size: cover;
	background-position: center center;
	background-attachment: fixed;
	padding-top: 2%;
	
}

.cabecera{
	display: flex;
	flex-wrap: wrap;
	width: 85%;
	margin: 2% 7.5% 5%;
	background-color: #1332cf;
	overflow: hidden;
	border-radius: 5px 5px 5px 5px;
	height: auto;
	float: left;
	padding-bottom: 5%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .cabecera {
    max-width: 90%;
    padding-left: 2%;
	padding-top: 0.5%;
	padding-bottom: 2%;
	font-size: 1.2vw;
    flex-direction: column-reverse;
	float: right;
  }
}

.cabecera img{
	display: flex;
	flex-wrap: wrap;
	float: left;
	margin-top: 0.5%;
	width: 13%;
	position: absolute;
	height: auto;
	padding: 1vw;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .cabecera img {
	width: 9%;
	height: auto;
	padding: 0.8vw;
  }
}

.prueba {
	animation-name: transformar;
	animation-duration: 5s;
	animation-delay: 2s;
	animation-timing-function: ease;
} 

@keyframes transformar{
	50%{ transform: scale(1.2, 1.2);
	       }
} 


.cabecera h1{
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	margin: 2% 0% 3% 17%;
	color: white;
	float: right;
	font-size: 3.5em;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .cabecera h1 {
	color: white;
	font-size: 2.5em;
	order: 1;
  }
}

.cabecera h5 {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	padding-left: 80%;
	color: white;
	float: right;
	font-size: 1em;
	clear: both;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .cabecera h5 {
	color: white;
	font-size: 0.9em;
  }
}


.cabecera h6{
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	padding-left: 80%;
	color: white;
	float: left;
	font-size: 1em;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .cabecera h6 {
	color: white;
	font-size: 0.9em;
  }
}





.contenedor{
	background-color: #FFFFFF;
	width: 85%;
	margin: auto;
	clear: both;
	border-radius: 5px 5px 5px 5px;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .contenedor {
    width: 85%;
  }
}





.botonera ul{
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	margin-bottom: 2%;
	background-color: #1332cf;
	list-style-type: none;
	height: 57px;
	padding-top: 1%;
	/* Padding en vez de margin para mostrar el color de fondo */
	padding-left: 2%;
	/* Pixel perfect */
	border-radius: 5px 5px 0 0;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .botonera ul {
    width: 100%;
    padding-right: 15%;
	padding-top: 2%;
	padding-bottom: 2%;
	list-style-type: none;
	font-size: 2.3vw;
    flex-direction: column-reverse;
	height: 3.6vh;
  }
}


.botonera a{
	line-height: 220%;
	float: left;
	color: #FFFFFF;
	font-weight: bold;
	text-decoration: none;
	padding-left: 1vw;
	padding-right: 1vw;
	border-right: 1px solid yellow;
}

.botonera a:hover{
	color: #F75D41;
}



.izquierda{
	float: left;
	width: 16%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .izquierda {
    float: left;
  }
}



.izquierda ul{
	list-style-type: none;
	font-size: 1vw;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	margin-top: 0%;
	padding-right: 33%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .izquierda ul {
    width: 100%;
	font-size: 2vh;
  }
}



.izquierda h3 {
	padding-left: 11%;
	font-size: 4vh;
    max-width: 100%;
	display: flex;
	flex-wrap: wrap;
	margin-top: 30%;
	margin-bottom: 12%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .izquierda h3 {
	font-size: 1.2vh;
	margin-top: 50%;
	margin-bottom: 2%;
    padding-left: 38%;
  }
}


.izquierda a{
	display: block;
	margin-left: 30px;
	width: 150%;
	height: auto;
	line-height: 30px;
	text-decoration: none;
	color: #000000;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .izquierda a {
	font-size: 1.5vw;
	margin-top: 20%;
	margin-bottom: 2%;
	line-height: 8px;
    margin-left: 20px;
	width: 200%;
  }
}


.izquierda a:hover{
	color: #FF9900;
}


.derecha {
	display: flex;
	flex-wrap: wrap;
	float: right;
	width: 80%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .derecha {
	width: 72%;
  }
}




.derecha h4{
	font-size: 2vw;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	margin-top: 10%;
	background-color: #1332cf;
	color: white;
	margin-bottom: 5%;
	padding-top: 1%;
	padding-bottom: 1%;
	border-radius: 15px 0px 0px 15px;
	padding-left: 2%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .derecha h4 {
    width: 100%;
    padding-left: 5%;
	padding-top: 2%;
	padding-bottom: 2%;
	border-radius: 5px 0px 0px 5px;
    margin-top: 12%;
  }
}



.stcw img{
	height: auto;
	margin-top: 15%;
	margin-bottom: 15%;
	margin-left:20%;
	float: left;
	width: 70%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .stcw {
	height: auto;
	margin-top: 10%;
	margin-bottom: 2%;
	margin-left:5%;
	float: left;
	width: 60%;
  }
}


.volveratras {
	margin-left: 26%;
	margin-right: 40%;
	font-size: 2.5vh;
	margin-bottom: 10%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .volveratras {
	margin-left: 23%;
	margin-right: 40%;
	font-size: 2.5vh;
	margin-bottom: 110%;
  }
}

.volveratras a{
	display: block;
	margin-left: 30px;
	width: 150%;
	height: auto;
	line-height: 30px;
	text-decoration: none;
	color: #000000;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .volveratras a {
	font-size: 1.5vw;
	margin-top: 20%;
	margin-bottom: 2%;
	line-height: 8px;
    margin-left: 20px;
	width: 200%;
  }
}


.volveratras a:hover{
	color: #FF9900;
}


.pie{
	clear: both;
	background-color: black;
	padding: 1% 1%;
	height: 100px;
	color: white;
	font-size: 2vh;
}

.direccion {
	float: right;
    font-size: 3vh;
	padding-right: 20%;
	border-right: 1px solid black;
	margin-right: 15px;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .direccion {
    width: 97%;
	margin-left: 1%;
	font-size: 2.3vw;
	margin-top: 3%;
	float: left;
    flex-direction: column-reverse;
  }
}

.direccion p{
	font-size: 2vh;
}


@media only screen and (min-width: 320px) and (max-width: 768px) {
    .direccion p{
	font-size: 1vh;
  }
}

.direccion img {
	height: 15px;
	padding-right: 5px;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
	.direccion img {
    height: 2.5vw;
    flex-direction: column-reverse;
  }
}

.sindicato {
	margin-right: 18px;
	padding-right: 90px;
	float: left;
}

.sindicato p{
	font-size: 2vh;
	
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .sindicato p{
	font-size: 1vh;
  }
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .sindicato {
    width: 106%;
	margin-left: 2%;
	font-size: 2.3vw;
    flex-direction: column-reverse;
	padding-top: 4%;
  }
}



.pie2{
	clear: both;
	background-color: #696464;
	padding-top: 5px;
	height: 30px;
	color: black;
	margin-bottom: 40px;
	border-radius: 0 0 5px 5px;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .pie2 {
    margin-bottom: 5%;
	height: 30px;
  }
}

.copy{
	margin-right: 18px;
	float: left;
	padding-left: 1%;
	font-size: 0.7vw;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .copy {
	font-size: 2.3vw;
    padding-top: 2%;
  }
}




/*-----------------------SLIDER---------------------------------*/



div#slider { overflow: hidden; } /* las imágenes no van a salir del márgen de la pantalla*/
div#slider figure img { width: 20%; float: left; }

div#slider figure { 
  position: relative;
  width: 500%;
  margin: 0;
  left: 0;
  text-align: left;
  font-size: 0;
  animation: 30s slidy infinite; /*el movimiento se va a mantener de forma indefinida -infinito-*/
}


/*esta parte del código define el movimiento de las imágenes a la izquierda*/
@keyframes slidy {
0% { left: 0%; }
20% { left: 0%; }
25% { left: -100%; }
45% { left: -100%; }
50% { left: -200%; }
70% { left: -200%; }
75% { left: -300%; }
95% { left: -300%; }
100% { left: -400%; }
}

/*-----------------------CIERRA SLIDER---------------------------------*/




