﻿
@-o-viewport {
  width: device-width;
}
@-ms-viewport {
  width: device-width;
}
@viewport {
  width: device-width;
}

img,
audio,
video,
canvas {
  max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
}
body {
    background: #ffffff none repeat scroll 0 0;
    font-family: "Raleway",Arial,sans-serif;
}
a {
    color: #222;
    text-decoration: none;
}
ul, ol, li {
    list-style: outside none none;
}
header, #central-content {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}
header {
    background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(59, 89, 151, 1) 0%, rgba(41, 62, 107, 1) 100%) repeat scroll 0 0;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    padding: 0.8em 0 0;
	position: fixed;
}
header h1 {
    float: left;
    padding: 0 0 0.2em;
}
header h1#logo img {
    height: 40px;
    margin-left: 0.5em;
}

footer {
	/*position: relative;*/
	margin-top: -50px;
	/* Alto de pie pagina */
	height: 160px; 
	padding:5px 0px;
	clear: both;
	background: #545454;
	text-align: center;
	color: #fff;
}

footer a {
	text-align: center;
	color: #fff;
}

footer a:hover {
	text-align: center;
	color: #fff;
}

.control-menu {
    background-color: transparent;
    background-position: center center;
    border: 1px solid #fff;
    display: block;
    float: right;
    height: 40px;
    margin-right: 1.3em;
    width: 40px;
}
.control-menu a span {
    display: inline-block;
    height: 40px;
    text-indent: -9999px;
    width: 40px;
}
.control-menu .close {
    background-image: url("img/close-menu.png");
    background-position: center center;
    background-repeat: no-repeat;
    display: none;
}
.control-menu .open {
    background-image: url("img/open-menu.png");
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
}

ul.nav-items {
    clear: both;
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-in-out 0s, background-color 2s ease 0s; /*El menú cambia su altura y su color de fondo mediante una transición suavizada al voover a su estado unicial*/
}

#navigation:target ul.nav-items {
    background: #f0f0f0 none repeat scroll 0 0;
	/* Alto del Menú*/
    /*height: 15.8em;*/
	height: 25.0em;
    transition: height 0.4s ease-in-out 0s, background-color 0.9s ease 0s; /*El menú cambia su altura y su color de fondo mediante una transición suavizada al abrirse*/
}


/*Al hacer clic sobre el enlace que abre el menú éste desaparece*/

.close { 
   display:none;
}
        
#navigation:target .open {
      display: none;
}

/* Al hacer clic sobre el enlace que abre el menú aparece el enlace .close que previamente estaba oculto*/

#navigation:target .close {
        display: block;
}
  
/*Estilos menu*/

ul.nav-items li {
    display: block;
}
ul.nav-items a {
    border-top: 2px dotted #dddbdb;
    color: #333;
    display: block;
    height: 3em;
    line-height: 3em;
    margin: 0 1.3em;
}
ul.nav-items li:first-child a {
    border-top: 2px solid transparent;
}
ul.nav-items li a span {
    border-left: 3px solid;
    height: 3.2em;
    padding: 0.4em 0.5em;
}
#Inicio a span {
    border-color: #ff6633;
}
#Acerca a span {
    border-color: #bda94d;
}
#CursosDG a span {
    border-color: #5887bc;
}
#CursosDW a span {
    border-color: #00a2b7;
}
#Cursos3d a span {
    border-color: #ec2e81;
}
#CursosFoto a span {
    border-color: #8eb5f1;
}
#CursosEV a span {
    border-color: #43c4bf;
}
#Contacto a span {
    border-color: #0000a2;
}

section {
	padding:20px;
}

.container {
  /*
    La propiedad `max-width` es lo que gobierna el ancho. Te reto a que experimentes configurando esto más grande, algo así como 1280px.
  */
	max-width: 1280px;
	width:92%;
	margin:0px auto;
	position: relative;
}

@media screen and (min-width: 480px) {
  .container {
    width: 98%;
  }

  .grid-1,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6,
  .grid-half,
  .grid-full,
  .grid-unit {
    float: left;
    width:96.969696969697%;
    margin:0 1.515151515152% 1em;
  }

  .gallery .grid-unit,
  .grid-half {
    width:46.969696969697%;
    margin: 0 1.515151515152% 1em;
  }

  .grid-flow-opposite{
    float:right
  }

  .grid-flow-position{
    float:left
  }

}

@media screen and (min-width: 640px) {
  .grid-1     { width: 13.636363636364%; }
  .grid-2     { width: 30.30303030303%; }
  .grid-3,
  .grid-half  { width: 46.969696969697%; }
  .grid-4     { width: 63.636363636364%; }
  .grid-5     { width: 80.30303030303%; }
  .grid-6,
  .grid-full  { width: 96.969696969697%; }

  .gallery .grid-unit {
    width: 30.30303030303%;
  }

  .content-pad-right {
    padding-right: 4%; /* Use (or don't) as necessary. */
  }

  .content-pad-left {
    padding-left: 4%;
  }

  .grid-flow-position{
    float:left
  }

  .grid-flow-opposite{
    float:right
  }

}


