/* css/estilos.css */

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

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

.cabecera{
	width: 90%;
	margin: 4% 5% 5%; 
	background-color: #1332cf;
	overflow:hidden;
	border-radius: 15px 15px 15px 15px;
	height: auto;
	float: left;
}

.cabecera h1{
	margin: 4% 6%;
	color: white;
	float: left;
	font-size: 3vw;
	text-align: center;
	margin-right: 15%;
}

.logo img{
	float: right;
	margin: 0% 7%;
	width: 14%;
	position: absolute;
	height: auto;
	margin-top: 4%;
	margin-left: 80%;
	padding: 3vw;
}

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

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

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

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

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .botonera ul {
    width: 100%;
    padding-left: 2%;
	padding-top: 2%;
	padding-bottom: 2%;
	font-size: 2vw;
    flex-direction: column-reverse;
  }
}

.botonera a{
	line-height: 170%;
	float: left;
	color: #FFFFFF;
	font-weight: bold;
	text-decoration: none;
}

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

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

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

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

.izquierda h3 {
	padding-left: 30px;
	font-size: 3vh;
    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: 3vw;
	margin-top: 20%;
	margin-bottom: 2%;
    flex-direction: column-reverse;
  }
}

.izquierda a{
	display: block;
	margin-left: 30px;
	width: 100%;
	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: 2vw;
	margin-top: 20%;
	margin-bottom: 2%;
	line-height: 5%;
    flex-direction: column-reverse;
  }
}

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

/*------ajustar DERECHA para ajustar el ALTO-------*/

.derecha{
	display: flex;
	flex-wrap: wrap;
	width: auto;
	margin-top: 4%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .derecha {
	margin-top: 25%;
	margin-left: 9%;
	margin-bottom: 30%;
  }
}

.derecha hr {
    margin-bottom: 10%;
	width: 90%;
}

.derecha h4{
	font-size: 2.8vw;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	margin-top: 1%;
	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 {
    padding-left: 10%;
	padding-top: 2%;
	padding-bottom: 2%;
	border-radius: 5px 0px 0px 5px;
	font-size: 3vw;
  }
}

.stcw h2{
	font-size: 3vh;
	margin-left: 15px;
	color: blue;
	margin-bottom: 10%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .stcw h2 {
    width: 100%;
	margin-left: 0%;
	font-size: 3vw;
	color: blue;
    margin-bottom: 0%;
  }
}

.stcw {
	height: auto;
	margin-bottom: 35px;
	float: left;
	width: 95%;
}

.profesional h2{
	font-size: 3vh;
	margin-left: 15px;
	color: blue;
	margin-bottom: 3%;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .profesional h2 {
    width: 100%;
	margin-left: 0%;
	font-size: 3vw;
	color: blue;
    margin-bottom: 0%;
  }
}

.profesional {
	height: auto;
	margin-bottom: 10%;
	float: left;
	width: 95%;
	height: 50%;
}

.profesional li{
	color: black;
	margin-left: 8%;
	font-size: 2vh;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .profesional li {
    width: 97%;
	margin-left: 12%;
	font-size: 3vw;
    line-height: 2%;
  }
}

.profesional a{
	text-decoration: none;
	color: black;
}

.profesional a:hover {
	color: #F90;
}

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

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .pie {
	height: 60px;
  }
}

.direccion {
	float: right;
	padding-right: 2%;
}

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

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

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

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .direccion img {
    height: 8px;
  }
}

.instituto {
	float: left;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .instituto {
    width: 97%;
	margin-left: 1%;
	font-size: 2.9vw;
  }
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .instituto p{
	font-size: 2.2vw;
  }
}

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

@media only screen and (min-width: 320px) and (max-width: 768px) {
    .pie2 {
    padding-top: 0%;
    height: 13px;
	font-size: 1vh;
  }
}

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





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

.slider {
	margin-left: 15%;
	width: 70%;
}


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---------------------------------*/