/* Hoja de estilos para Burdjia.com.
 * Define estilos generales de documento.
 */

@font-face {
  font-family: "Bebas Neue";
  src: url('BebasNeue.otf');
}

/* Inicialización. */

* {
  background: none;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 100%;
  font-style: normal;
  font-weight: normal;
  margin: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

/* Documento. */

html {
  background: #C9E1ED;
  margin: 1em 0;
}

body {
  background: #FFF;
/* He cambiado de opinión (tal vez por ser ahora textos cortos) pero sigue
   gustándome el tipo de letra.  Tal vez la recupere en el futuro.
  font-family: "Century Shoolbook", "New Century Schoolbook", serif;
 */
  font-family: Arial, sans-serif;
  margin: 0 auto 1em auto;
  max-width: 800px;
  min-width: 480px;
  text-decoration: none;
}

main {
  clear: both;
  width: 100%;
}

article {
}
section {
  margin-bottom: 0.2em;

}
aside {
  background: rgba(201, 225, 237, 0.5);
  margin: 0 0.8em;
  width: 35%;
}

header {
  clear: both;
}

  header p {
    margin: 0;
    text-indent: 0;
  }

footer, footer * {
  background: #008DD1;
  clear: both;
  font-family: "Bebas Neue", Arial, sans-serif;
}

  footer a:hover, footer a:visited {
    background: inherit;
  }



/* Elementos. */

h1, h2, h3, h4, h5, h6 {
  background: #008DD1;
  border-color: #000;
  border-bottom-style: solid;
  border-width: 0.1em;
  clear: both;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-weight: bolder;
  margin: 0.625em 0 0.312em 0;
  padding: 0.312em 0 0 0.625em;
  text-transform: uppercase;
}

h1 a , h2 a , h3 a , h4 a , h5 a, h6 a {
/* TODO: Debería añadir un pequeño icono para mostrar que es un enlace. */
  color: #000;
}

h1 {
  font-size: 200%;
}

h2 {
  font-size: 150%;
}

h3 {
  font-size: 125%;
}

h4 {
  font-size: 112%;
}

h5 {
  font-size: 105%;
}

h6 {
  font-size: 100%;
}

blockquote {
  background: rgba(201, 225, 237, 0.5);
  border-color: #008DD1;
  border-left-style: solid;
  border-left-width: 0.2em;
  margin: 0 0 0.5em 1.562em;
}

  q {
    font-family: Arial, sans-serif;
    font-size: 90%;
    padding: 0 0.5em;
  }

  cite {
    font-family: Arial, sans-serif;
    font-style: italic;
    font-weight: bold;
  }

p {
  font-weight: inherit;
  margin: 0 0 0.5em 0;
  padding: 0 0.5em;
  text-align: justify;
/* Esto funciona con textos largos (como la bitácora), pero no con cortos.
  text-indent: 3.125em;
 */
}

pre {
  background: #008;
  color: #FF0;
  font-family: monospace;
  font-size: 101%;
  margin: 1em;
  padding: 0.2em;
}

code {
  background: #000;
  color: #FF0;
  font-family: monospace;
  font-size: 101%;
  padding: 0 0.1em;
}

pre code {
  background: #008;
  color: #FFF;
}

time {
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin: 0;
}



a {
  color: #004C70;
  font-weight: bold;
  font-style: inherit;
  text-decoration: inherit;
}
a:hover {
  background: #008DD1;
  color: #000;
  font-style: inherit;
  text-decoration: inherit;
}
a:visited {
  font-style: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bold;
  text-decoration: inherit;
}

del, s {
  color: #F00;
  text-decoration: line-through;
}

dfn, abbr { border-bottom: 1px dotted #666; }

figure {
  float: left;
  margin: 0.2em;
}
  figcaption {
    font-family: Arial, sans-serif;
    font-size: 0.75em;
    font-weight: bold;
    text-align: center;
  }
img {
  border: 0 none #000;
  max-width: 100%;
  height: auto;
  margin: 0;
}

  figure.muestra {
    width: 45%;
  }

i, em {
  font-style: italic;
  text-decoration: inherit;
}

ins { color: #060; }

kbd, var, samp {
  font-family: monospace;
}
kbd {
  background: #CCC;
}
var {
  background: #000;
  color: #FFF;
}

small { font-size: 75% }

/* Listas y diccionarios. */

ul, ol {
  list-style-position: outside;
  margin-left: 1.625em;
}
li {
  margin: 0 0.5em 0.5em 1em;
  text-align: justify;
}

dl {
  padding: 0 0.5em;
}
dt {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-weight: bold;
  text-align: left;
  text-decoration: underline;
}
dd {
  margin: 0 0 0.5em 3em;
  text-align: justify;
}



/* Tablas. */
table {
	margin: 0 auto 0.31em auto;
	width: 80%;
}
table th {
	background: #005E8B;
	border-color: #000;
	border-bottom-style: solid;
	border-width: 1px;
	font-family: "Bebas Neue", Arial, sans-serif;
	font-weight: bolder;
	text-transform: uppercase;
	padding: 5px 0px 0px 10px;
}
table td {
	background: rgba(201, 225, 237, 0.5);
	border-color: #000;
	border-bottom-style: solid;
	border-width: 1px;
	font-size: 14px;
	padding: 0px;
	width: 256px;
}
table tr:hover {
	background: #008DD1;
	margin: 0px;
	padding: 0px;
}



/* Cabecera del documento. */

  body > header > p {
    padding: 0.625em 0 0.3125em 3.20em;
  }



/* ATENTOS:
 *
 * Menú tipo "drow-down" sin usar JavaScript.
 *
 * Adaptado de:
 * http://www.devarticles.com/c/a/Web-Style-Sheets/Creating-a-Drop-Down-Menu-in-CSS3/
 */

  body > header > nav {
  /* Fondo del menú. */
    background: #008DD1;
    border: 0 none black;
    margin: 0px;
  }

  body > header > nav * {
  /* Valores por defecto para el contenido del menú. */
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-decoration: none;
    padding: 0px;
  }

/* Los enlaces han de comportarse como botones. */
  body > header > nav a {
    background: none;
    color: black;
    display: block;
  }

    body > header > nav a:hover {
      background: none;
      color: white;
      text-shadow: 0.05em 0.05em #003752;
    }

/* Primer nivel del menú.  Es decir, la barra. */
  body > header > nav > ul {
    height: 1.35em; /* Esto depende de tamaños de fuente, márgenes, etc. */
    list-style: none;
    margin: 0 auto;
    padding: 0;
  }

  body > header > nav > ul > li {
    border-right: #008DD1 solid 0.1em; /* Evita movimientos. */
  /* Las opciones de la barra han de estar una al lado de la otra. */
    float: left;
    position: relative;
    padding: 0.1em 0.5em 0.1em 0.1em;
  }

    body > header > nav > ul > li:hover {
    /* Para resaltar el menú. */
      background-image: linear-gradient(to bottom, #006EA3, #005E8B 100%);
      color: white;
      text-shadow: 0.05em 0.05em #003752;
    }

  body > header > nav > ul > li > ul {
    border: 0px none black;
    list-style: none;
    margin: 0 auto;
    padding: 0;
  /* inicialmente oculto. */
    height: 0;
    left: 0;
    list-style: none;
    overflow: hidden;
    position: absolute;
  /* Posición del menú. */
    top: 1.30em; /* Nótese que es ligeramente inferior a la altura de la barra. */
    width: auto;
  }

    body > header > nav > ul > li:hover > ul {
    /* Estilo del menú desplegado. */
      background: #005E8B;
      box-shadow: 0.1em 0.1em #003752;
      border-bottom-style: solid;
      border-right-style: solid;
      border-bottom-left-radius: 0.25em;
      border-bottom-right-radius: 0.25em;
    /* Al sobreponer el cursor, despliega el menú. */
      height: auto;
    }

  body > header > nav > ul > li > ul > li {
    float: none;
    margin: 0.1em 0.5em 0.1em 0.32em;
  }


  body > footer p {
    text-align: center;
    text-indent: 0;
  }



/*
 * Estilos de formularios.
 */
fieldset * {
	text-indent: 0px;
}
fieldset {
	background: #005E8B;
	border: none;
	border-radius: 0.25em;
	margin: 0.31em auto;
	padding: 0.31em 0.31em 0.31em 0.63em;
	width: 75%;
}
legend {
	background: #008DD1;
	border-color: black;
	border-bottom-style: solid;
	border-right-style: solid;
	border-width: 0.1em;
	font-family: "Bebas Neue", Arial, sans-serif;
	font-size: 1em;
	font-weight: bold;
	margin: 0 0 0.16em 0.16em;
	padding: 0.17em 0.17em 0.07em 0.17em;
}
label {
	font-family: "Bebas Neue", Arial, sans-serif;
	font-weight: bold;
}
input, textarea {
	background: white;
	border-color: black;
	border-style: solid;
	border-width: 0.1em;
	font-family: monospace;
	padding: 2px;
}
input[type="submit"], input[type="button"] {
	background-image: linear-gradient(to bottom, #008DD1, #005E8B 100%);
	border: 0.1em solid black;
	border-radius: 0.25em;
	color: white;
	cursor: pointer;
	font-family: "Bebas Neue", Arial, sans-serif;
	font-size: 100%;
	text-align: center;
	text-shadow: 0.05em 0.05em #003752;
}
input:active[type="submit"], input:active[type="button"] {
	background-image: linear-gradient(to bottom, #005E8B, #008DD1 100%);
	text-shadow: none;
}



/* Estilos especiales. */

.brd {
  font-family: "Bebas Neue", Arial, sans-serif;
}

.error {
  background: #F00;
  color: #FFF;
  font-weight: bold;
  text-indent: 0;
}

.postdate { font-size: 75%; }

div.resumen {
  margin: 0 auto;
  overflow: auto;
  padding: 0.1em 0.1em 0em 0.1em;
  width: 75%;
}

p.descarga_proyecto {
  background-image: linear-gradient(to bottom, #008DD1, #005E8B 100%);
  border-radius: 0.25em;
  margin: 0.3em auto;
  padding-top: 0.1em;
  text-align: center;
  text-shadow: 0.05em 0.05em #003752;
  box-shadow: 0.05em 0.05em #003752;
  height: 1.5em;
  width: 75%;
}

p.descarga_proyecto:active {
  background-image: linear-gradient(to bottom, #005E8B, #008DD1 100%);
  text-shadow: none;
}

p.descarga_proyecto a {
  background: none;
  color: white;
  display: block;
  text-align: center;
  width: 100%;
}

.descarga_notas {
  background-image: linear-gradient(to bottom, #008DD1, #69AFD1 100%);
  border-radius: 0.25em;
  margin: 0.75em auto 0.5em auto;
  padding: 0 0.2em;
  box-shadow: 0.05em 0.05em #005E8B;
  width: 75%;
}

ul.lista_lineal > li {
  float: left;
}
ul.lista_lineal ~ p {
  clear: both;
}

input[type="submit"].pago {
  text-align: center;
  width: 5em;
}
