@charset "utf-8";

/*       CDLIBRE.ORG       */
/* Bartolome Sintes Marco  */
/* http://www.cdlibre.org  */
/* 27 de diciembre de 2016 */

html, body {
  margin: 0;
  padding: 0;
}

body {
  padding-bottom: 20px;
  background-color: rgb(224, 225, 235);
  font-family: sans-serif;
  line-height: 1.3;
}

p {
  margin-top: 0;
}

img {
  border-width: 0pt;
}

h2 {
  font-weight: normal;
  font-size: 140%;
}

h3 {
  font-size: 110%;
  font-variant: small-caps;
}

header {
  height: 80px;
  margin: 0;
  padding: 10px 5% 0 5%;
  background-color: hsl(235, 20%, 25%);
}

h1 {
  margin: 0;
  color: white;
  font-size: 180%;
  font-weight: normal;
  text-align: center;
}

header p#logo {
  float: left;
  width: 128px;
  height: 70px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin: 0;
  padding: 10px 5px 0px;
  background-color: white;
  text-align: center;
}

header nav ul {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  font-size: 80%;
  list-style: none;
}

header nav a {
  display: inline-block;
  width: 100px;
  height: 24.5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin: 10px 0 0 5px;
  padding-top: 8px;
  background: rgb(255, 168, 38);
  color: white;
  text-align: center;
  text-decoration: none;
}

header nav a:hover {
  background-color: rgb(224, 225, 235);
  color: rgb(49, 51, 77);
}

header nav li.activelink a {
  background-color: white;
  color: rgb(49, 51, 77);
}

main {
  display: block;
  overflow: auto;
  margin: 0 5%;
  padding: 10px;
  background: white;
  text-align: justify;
}

aside {
  float: right;
  width: 160px;
  border-radius: 5px;
  padding: 10px 10px 0;
  background: rgb(224, 225, 235);
  font-size: 80%;
  text-align: center;
}

aside nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

aside nav li {
  margin-bottom: 5px;
}

aside nav a {
  display: inline-block;
  width: 160px;
  border-radius: 5px;
  padding: 5px 0pt;
  background: rgb(255, 168, 38);
  color: white;
  text-decoration: none;
}

aside nav a:hover {
  background: rgb(49, 51, 77);
  color: white;
}

aside nav li.activelink a, aside nav li.activelink a:hover {
  background: white;
  color: rgb(49, 51, 77);
}

aside div.buscar {
  border-radius: 5px;
  margin: 5px 0;
  padding: 5px;
  background-color: rgb(255, 255, 255);
}

aside div.buscar p {
  margin: 10px 0 0 0;
}

aside div.aviso {
  border-radius: 5px;
  margin: 10px 0;
  padding: 0;
  background-color: white;
}

aside div.aviso h3 {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin: 0;
  padding: 0;
  background-color: rgb(49, 51, 77);
  color: white;
}

aside div.aviso p {
  margin: 0;
  padding: 5px 0;
  color: rgb(49, 51, 77);
  font-weight: bold;
}

aside p.cita {
  color: rgb(43, 107, 132);
  font-style: italic;
}

article {
  padding: 5px;
}

article.conaside {
  margin-right: 190px;
}

h2 {
  margin: 0 0 10px;
  color: rgb(44, 171, 50);
}

section, address {
  overflow: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 0;
  background-color: rgb(228, 248, 230);
  text-align: justify;
}

address {
  padding: 5px;
}

section h3 {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin: 0;
  padding: 0 0 0 10px;
  background-color: rgb(44, 171, 50);
  color: white;
}

section p {
  margin: 0;
  padding: 5px 10px 10px;
}

section ul {
  margin: 0 0 5px 10px;
  padding: 0 10px 0 20px;
}

section ul ul {
  padding-right: 0;
}

section a {
  color: rgb(44, 171, 50);
  font-weight: bold;
  text-decoration: none;
}

section a:hover {
  color: rgb(49, 51, 77);
  text-decoration: underline;
}

footer {
  clear: both;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  margin: 0 5% 10px;
  padding: 0 10px 10px;
  background-color: white;
  color: white;
  text-align: center;
}

footer p {
  border-radius: 5px;
  margin: 0;
  padding: 10px 0;
  background: rgb(49, 51, 77);
  font-size: 80%;
}

footer a {
  color: rgb(255, 168, 38);
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

div.categoria {
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start;
}
div.programa {
  display: flex; flex-direction: column;
  border: black 1px solid; border-radius: 5px; margin: 10px;
  width: 390px;
}
div.ficha {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  border-bottom: 1px solid black;
}
span.ico {
  padding: 5px 0 0 5px;
}
div.filas {
  display: flex; flex-direction: column;
}
p.fila1 {
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between;
  width: 320px;
  border-left: 1px black solid; border-bottom: 1px black solid; border-top-right-radius: 5px; border-bottom-left-radius: 5px; padding: 5px;
  background-color: #E4F8E6; line-height: 1;
}
p.fila2 {
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between;
  padding-right: 5px; line-height: 1;
}
p.desc {
  margin: 0; padding: 5px;
}

table.conborde, table.conborde td, table.conborde th {
  border: black 1px solid;
}
table.franjas thead tr, table.franjas tbody tr:nth-child(even) {
  background-color: white;
  color: black;
}
table.franjas {
  border-collapse: collapse;
  margin: 10px 0 10px 10px;
  text-align: center;
}
table.franjas tr {
  border-bottom: black 2px solid;
}
table.franjas th {
  padding: 2px 5px;
}
td.izq {
  text-align: left;
}

.desaparecido {
  text-decoration: line-through;
}

.sh { font-weight: bolder; color: red; }
.fr { font-weight: bolder; color: green; }
.ad { font-weight: bolder; color: blue; }

.pr { font-size: 30px; color: #F09F26; text-decoration: none;}
.ac { font-size: 30px; color: #FF4FA7; text-decoration: none;}

/* Para listado corto */
section p.gruc { text-decoration: underline;
  margin: 10px 0px 0px 5px; padding: 0px 0px 0px 2px; font-weight: bold; }
section p.infc { margin: 0px 0px 0px 20px; padding: 2px; }
section p.infc a { text-decoration: none; color: black; font-weight: normal; }

.centrado { text-align: center; }


/* Pantallas pequeñas */
@media screen and (max-width: 630px) {
  header {
    height: auto;
  }

  p#logo {
    height: 80px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
  }

  header nav ul {
    clear: both;
    flex-wrap: wrap;
  }

  aside {
    float: none;
    width: 100%;
  }

  aside nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  aside nav a {
    width: 100px;
    margin-right: 5px;
  }

  article.conaside {
    margin-right: 0;
  }
}

@media screen and (max-width: 390px) {
  div.programa {
    width: 100%;
  }

  p.fila1 {
    width: 100%;
    border: none;
  }
}
