@charset "utf-8";

/****Guía de estilos:

0. Reset
1. Layout
2. Generic items
3. Parts of web
4. Lists
5. Forms
6. Animations
7. Cookies
8. Media Queries

-----------------
Colores:

1. azul base: #4b7ba6
2. azul clarito cielo: #cee4f2 //borde debajo del menú
3. azul más gris: #284759
4. amarillo anaranjado: #ffbd2c
5. azul grisáceo final: #87989f

*******************/


/* -------- 0. Reset -------- */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ----reseteo personalizado----*/
* {box-sizing:border-box;}


/* -------- 1. Layout -------- */

	body{text-align: center; font:500 20px/1.7 'Roboto Condensed';}
	
	h2{display: flex; align-items:center; justify-content:center;}
	
	footer{display: flex; justify-content:center; align-items: center; height:50px;}/*el center no me lo hacía y le puse un "padding de 30px 0 0 0", pero teniendo de referencia el alto entero del footer que tiene 30px más porque le puse un margin de 30px. Para solucionarlo, le he puesto un padding de 30px y es como si resetease el footer a cero. Entonces ya es capaz de poner el texto verticalmente en el medio. Sin embargo, al final, se lo saqué porque estaba heredando un margin-bottom de las p a secas sin class que está en el apartado "generic items" del index y hacía que apareciese blanco por debajo del footer. Colocando una class específica para la p del footer donde le digo que el margin es 0 auto se solucionó todo y pude quitar el padding de aquí*/
	
	/*---index---*/
	.header{display: flex; justify-content:center;}
	
	.navbar{display: flex; align-items:center; justify-content:center;}
	
	.fixed{position:fixed;	top:0;   z-index: 999; width:100%;}

	.tercera{display: flex; justify-content:center; flex-flow:column wrap;}
		.list-first{display: flex; justify-content:center; flex-flow:column; margin-bottom: 60px;}	
		.list-second{display: flex; justify-content:center; flex-flow:column; margin-bottom: 60px;}
		.list-tercera{display: flex; align-items:center; justify-content:center;}
		.list-tercera figure{display: flex; justify-content:center; align-items:center;}
		
	/*---módulo---*/
	.navbar-modulo{display: flex;  align-items:center; justify-content:space-between;}
	
	.figure-modulo{display: flex;  align-items: center; justify-content: center;}
	
	.border-top{align-items:center; justify-content:center;}


/* --------2. Generic items-------- */
	
	h2{text-transform: uppercase; color: #fff;}
	
		.footer{margin: 0 auto;} /*esto es del footer*/
		.enlaces{color: #fff; text-decoration: none;}/*esto es del footer*/
	
	/*---index---*/
	.header{height: auto;}
	
	.navbar{height: 63px; background: #4b7ba6; border-bottom: 1px dashed #cee4f2; width:100%;}
		.navbar a{padding: 0 20px; color: #fff; text-decoration: none; text-transform: uppercase; font: 40px 'Stint Ultra Condensed';}
		
	.title{margin-bottom: 40px; font: 60px 'Stint Ultra Condensed'; text-transform: uppercase;}
	
	.subtitle{padding-bottom: 20px; font: 40px 'Stint Ultra Condensed'; text-transform: uppercase;}
	
	p{margin-bottom: 40px;}
	
	.footer-index{background:#87989f; color: #fff; font:500 14px/1.7 'Roboto Condensed'; border-top: 1px dashed #cee4f2; text-decoration: none;}
		
	/*---módulo---*/
	.init{height: 125px; border-right: 1px solid #cee4f2;}
			
	.module{height: auto; padding: 0 10px 0 0; border-right: 1px solid #cee4f2;}	
		.uno{flex:1 37%;}
		.dos{flex:1 37%;}
		.tres{flex:1 26%;}
	
	.navbar-modulo{height: auto; position: fixed; top:0; left:0; background: #284759; border-bottom: 1px solid #cee4f2; font-weight: 300; font: 36px 'Stint Ultra Condensed'; padding:0 20px 0 20px; width:100%; z-index: 998;}
		.navbar-modulo a{padding: 15px 15px 5px 15px; font-weight: 700; text-transform: uppercase; color: #fff; text-decoration: none; font: 26px 'Stint Ultra Condensed';}
			
			.navbar-modulo a:nth-child(2){border-bottom: 4px solid #fff;}
			.navbar-modulo a:nth-child(3){border-bottom: 4px solid #fff;}
			.navbar-modulo a:nth-child(4){border-bottom: 4px solid #fff;}
			.navbar-modulo a:nth-child(5){border-bottom: 4px solid #fff;}
			.navbar-modulo a:nth-child(6){border-bottom: 4px solid #fff;}
			
			#actual{border-bottom: 4px solid #FFBD2C;}

	.paper-modulo{position:relative; margin: 200px 0 0 0;}
	.paper-modulo-dos{position:relative; margin: 10px 0 0 0;}/*Para la segunda y siguientes cajas del módulo porque necesita un margen distinto*/
	.doblado{position:absolute; top:0; left:9px;}

	/*Tengo que sumar más padding si dejo el menu en fixed (yo metí margin total desde cero píxeles en top en el border-top... pero luego no... mirar esto bien para sacar conclusiones*/	
	.border-top{padding: 20px; background: #284759; max-height:125px; color:#fff; text-transform: uppercase; font: 26px 'Stint Ultra Condensed'; margin: 70px 10px 0 77px; z-index:1;}	
	
	.border{align-items:center; justify-content:center; border: 1px solid #284759; margin: 0 10px; padding: 20px;}
	
	.p-modulo{margin: 20px auto; text-indent:25px; text-align:justify;}
	
	.footer-modulo{margin:30px 0 0 0; background:#284759; color: #fff; font:500 14px/1.7 'Roboto Condensed'; height:50px; border-top: 1px dashed #cee4f2; text-decoration: none;}
	
	/*---avisos legales---*/
	.aviso-legal{background: #4b7ba6; color:#fff;}
		.aviso-legal p{margin: 0 auto; text-indent:25px; text-align:justify; max-width:800px;}  
		.aviso-legal p a{color: #fff;}
	
	.navbar-legal{height: 63px; position: fixed; top:0; left:0; background: #4b7ba6; border-bottom: 1px dashed #cee4f2; font-weight: 300; font: 40px 'Stint Ultra Condensed'; padding:0 50px 0 20px; width:100%; z-index: 998;}
		.navbar-legal a {padding: 15px 15px 5px 15px; font-weight: 700; text-transform: uppercase; color: #fff; text-decoration: none; font: 40px 'Stint Ultra Condensed';}
	
	.footer-aviso{background:#4b7ba6; color: #fff; font:500 14px/1.7 'Roboto Condensed'; height:50px; border-top: 1px dashed #cee4f2; text-decoration: none;}	
	
	.title-legal{margin: 40px 0 10px 0; font: 40px 'Stint Ultra Condensed'; text-transform: uppercase;}

/* --------3. Parts of web-------- */
	/*---index---*/
	.content {padding: 80px 0;}
	
		.primera {background: #4b7ba6; color: #fff;}
			.primera p {max-width: 1055px; margin: 0 auto;}

		.segunda {background:#284759; color: #fff;}
			.segunda .p-modulo {max-width: 1055px; margin: 0 auto;}
			.segunda .p-modulo a{color:#fff;}

		.tercera {background: #FFBD2C; color: #fff;}
			.tercera h3 {max-width: 1055px; margin: 0 auto;}
			
		.cuarta {background:#87989f; color: #fff;}		
    		/*.columna{display:flex; justify-content:center; flex:1 100%;} para poner en dos columnas y, al final, no lo hice, jajajaja*/
			.map {max-width: 100%; width: 100%;}

/*--------4. List--------*/
	
	/*---index---*/
	.listas{margin:20px 0 0 0;}/*párrafos que contienen listas y el siguiente párrafo para separar*/
	
	.list-tercera figure {position: relative; width: 100px; height: 100px;}
	.list-tercera figure:after {content: " "; position: absolute; left:0; top: 0; z-index: 0; background: #fff; border-radius: 50%; width: 100px; height: 100px;}
		.list-tercera img {position: relative; z-index: 1;}

	.list-tercera li {padding: 0 50px;}
	.list-tercera figcaption {position: absolute; left: 0; right: 0; bottom: -40px;}
	
	/*---módulo---*/
	.figure-modulo{width: 60px; height: 60px;}
	.figure-modulo{position: absolute; left: 300px; top: 6px;  background: #fff; border-radius: 50%; width: 60px; height: 60px;}
	

/* --------5. Form-------- */

/* --------6. Animations-------- */

	/*---botón subida---*/
   #scrollUp{width: 60px; height: 60px; text-indent: -999; position: fixed; right: 30px; bottom: 50px; background: #666 url(../img/flecha.png) no-repeat 0 10px; border-radius: 30px; opacity:0.9;}
   .navbar {overflow: hidden;}
   
 	/*---slider---*/
   #slides {display: none; max-width: 100%; width: 100%; }/*---tamaño de las fotos del slide; a 940 queda muy bien porque lo rellena todo---*/
   #slides .slidesjs-navigation {margin-top:5px;}
   #leche{position:absolute; top:0; left:250px;}
  
   a.slidesjs-next, a.slidesjs-previous, a.slidesjs-play, a.slidesjs-stop {background-image: url(../img/btns-next-prev.png); background-repeat: no-repeat cover; display: block; width: 12px; height: 18px; overflow: hidden; text-indent: -9999px; float: left; margin-right: 5px;}
   a.slidesjs-next {margin-right:10px; background-position: -12px 0;}
   a:hover.slidesjs-next {background-position: -12px -18px;}
   a.slidesjs-previous {background-position: 0 0;}
   a:hover.slidesjs-previous {background-position: 0 -18px;}
   a.slidesjs-play {width:15px; background-position: -25px 0;}
   a:hover.slidesjs-play {background-position: -25px -18px;}
   a.slidesjs-stop {width: 18px; background-position: -41px 0;}
   a:hover.slidesjs-stop {background-position: -41px -18px;}
   
   .slidesjs-pagination {margin: 7px 0 0; float: right; list-style: none;}
   .slidesjs-pagination li {float: left; margin: 0 1px;}
   .slidesjs-pagination li a {display: block; width: 13px; height: 0; padding-top: 13px; background-image: url(../img/pagination.png); background-position: 0 0; float: left; overflow: hidden;}
   .slidesjs-pagination li a.active, .slidesjs-pagination li a:hover.active {background-position: 0 -13px;}
   .slidesjs-pagination li a:hover {background-position: 0 -26px;}

    #slides a:link, #slides a:visited {color: #333;}
    #slides a:hover, #slides a:active {color: #9e2020;}
	
	
/*---------------7. Cookies------------*/	

	/*---index---*/
	#overbox3 {position: fixed; bottom: 0px; left: 0px; width: 100%; z-index: 999999; display: block;}
	#infobox3 {margin: auto; position: relative; top: 0px; height: 45px; width: 100%; text-align:center; background-color: #666;}
	#infobox3 p {line-height:58px; font-size:14px; text-align:center; color:#fff;}
	#infobox3 p a {margin-right:5px; text-decoration: underline; color:#fff;}
   
/*---------------8. MEDIAQUERIES------------*/

	

/*EL SLIDE*/
   img {
  /* Responsive images (ensure images don't scale beyond their parents) */

  max-width: 100%;
  /* Part 1: Set a maxium relative to the parent */

  width: auto\9;
  /* IE7-8 need help adjusting responsive images */

  height: auto;
  /* Part 2: Scale the height according to the width, otherwise you get stretching */

  vertical-align: middle;
  border: 0;
  -ms-interpolation-mode: bicubic;
}
   
   
   
   #slides {
      display: none
    }

    .container {
      margin: 0 auto
    }

    /* For tablets & smart phones */
    @media (max-width: 767px) {
      body {
        padding-left: 20px;
        padding-right: 20px;
      }
      .container {
        width: auto;
      }
    }

    /* For smartphones */
    @media (max-width: 480px) {
      .container {
        width: auto;
      }
    }

    /* For smaller displays like laptops */
    @media (min-width: 768px) and (max-width: 979px) {
      .container {
        width: 724px;
      }
    }

    /* For larger displays */
    @media (min-width: 1200px) {
      .container {
        width: 1170px;
      }
    }
	
/*	intento media queries */
@media screen and (max-width: 300px) { 
/**.fixed{height: 43px; max-width:300px; width:70%;} el sticky menu funciona así***/
}
@media screen and (max-width: 320px) {  
/**index**/

/**.fixed{height: 43px; max-width:320px; width:87%;} el sticky menu funciona así***/
.navbar a{padding: 0 2px; font: 15px 'Stint Ultra Condensed';}

.navbar-legal a {padding: 0 3px; font: 15px 'Stint Ultra Condensed';}

}
@media screen and (max-width: 440px) {   
/**index**/

		.title{font:25px 'Stint Ultra Condensed';}
		
		
 
 .navbar a{padding: 0 10px; font: 15px 'Stint Ultra Condensed';}
 /**.fixed{height: 50px; max-width:440px; width:90%;} el sticky menu funciona así***/
 
 .navbar-legal a {padding: 0 15px; font: 15px 'Stint Ultra Condensed';}
 
 /**materias**/

.list-tercera{display: flex;  flex-flow:column wrap; justify-content: center; align-content: center; align-items: center;}
.columna:nth-child(1) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(2) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(3) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(4) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(5) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}

figcaption{flex: 0 1 auto; align-self: center; margin: 0 auto;}


 /**módulo**/
 
	/***para que ocupen lo menos posible las columnas del menú***/
	.module{height: auto; padding:0; width:80px; border-right: 1px solid #cee4f2;}
	.navbar-modulo{padding: 0;}
	.init{width:50px;}





}


@media (min-width: 441px) and (max-width: 678px) {
	/**index**/
	.navbar a{padding: 0 15px; font: 25px 'Stint Ultra Condensed';}
	
	 .navbar-legal a {padding: 0 15px; font: 22px 'Stint Ultra Condensed';}
	
	 /**.fixed{height: 60px; max-width:678px; width:93.5%;} el sticky menu funciona así***/
	 
	
	 
	 /**materias**/

.list-tercera{display: flex;  flex-flow:row wrap; justify-content: center; align-content: center; align-items: center; max-width:678px; width:100%; height:auto;}
.columna:nth-child(1) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(2) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(3) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(4) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(5) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}

figcaption{flex: 0 1 auto; align-self: center; margin: 0 auto;}

}

@media screen and (max-width: 679px) {  
/**materias**/

.title{font:50px 'Stint Ultra Condensed';}

 /**módulo**/
		
		/*.navbar a{padding: 0 15px; font: 20px 'Stint Ultra Condensed';}*/
		
	
		
    /****el tamaño de la tipografía de los módulos y de los cursos***/
	.navbar-modulo a{font: 15px 'Stint Ultra Condensed';}
	#tamano{font: 16px 'Stint Ultra Condensed';}	
}
@media screen and (max-width: 768px) {  
.fixed{width:94.5%;}
}

@media screen and (max-width: 979px) {  
/***hasta aquí tengo que poner de tres en tres  las materias**/

.list-tercera{display: flex;  flex-flow:row wrap; justify-content: center; align-content: center; align-items: center; max-width:979px; width:100%; height:auto;}
.columna:nth-child(1) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(2) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(3) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(4) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}
.columna:nth-child(5) { flex: 0 1 auto; align-self: auto; margin: 25px; auto;}

figcaption{flex: 0 1 auto; align-self: center; margin: 0 auto;}





}

@media screen and (max-width: 1140px) {   

 /**cookies**/
#overbox3{display: flex;  flex-flow:row wrap; justify-content: center; align-content: center; align-items: center; z-index:999999; }
#infobox3 { flex: 0 1 auto; align-self: auto;  height:auto; padding: 5px 15px;}
#infobox3 p {line-height:20px; padding: }



.google{width:95%; height:250px;}

/**index**/
.p-modulo{padding: 0 25px;}

p{padding: 0 25px;}

/**módulo**/
 	/*****para quitar el folio doblado y el icono del módulo hasta este tamaño****/
	.paper-modulo{width: 100%;}
	.doblado{display:none;}
	.figure-modulo{display:none;} 
    /****para que el rectángulo azul del título del módulo empiece en su sitio****/
	.border-top{margin: 70px 10px 0 10px;}
	/****tamaño de los enlaces****/
	.navbar-modulo{font: 25px 'Stint Ultra Condensed';}  
	
	/****para que tengan borde blanco inferior a partir de 1141px****/
	.navbar-modulo a:nth-child(1){border-bottom: 0;}
	.navbar-modulo a:nth-child(2){border-bottom: 0;}
	.navbar-modulo a:nth-child(3){border-bottom: 0;}
	.navbar-modulo a:nth-child(4){border-bottom: 0;}
	.navbar-modulo a:nth-child(5){border-bottom: 0;}
	.navbar-modulo a:nth-child(6){border-bottom: 0;}
	




}

@media (min-width: 1139px) and (max-width: 1180px) {
	/**módulo**/
	.navbar-modulo{height:160px;}
}