article,
figure,
figcaption,
header,
footer,
section {
  display: block;
  margin: 0;
}

article {
  max-width: 1024px;
  margin: 1.875rem auto 0 auto;
}

a {
  text-decoration: none;
  color: #000;
}

article p a {
  font-weight: bold;
  border-bottom: 4px solid #bbd3de;
}

.oculto {
  opacity: 0;
  transition: opacity 1s linear;
}

.esconde_texto {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

body,
ul,
ol {
  font-family: Karla, sans-serif;
  line-height: 1.6em;
}

/* cookies */
.cookies,
.cookies p,
.cookies a,
.cookies span {
  vertical-align: middle;
}

.cookies {
  position: fixed;
  left: 0;
  bottom: -100px;
  width: 100%;
  text-align: center;
  transition: all 1s ease-in-out;
  background: transparent url(/_img/fondo_cookies.svg) repeat-x;
  z-index: 1000;
}

.cookies p {
  display: inline-block;
  padding: 1.5em 1.4em 1.3em 0;
  padding-left: 4.5em;
  background-color: #fff;
  color: #333;
  font-size: 0.8em;
  background-size: 3.3em auto;
  line-height: 1.6em;
  background: transparent url(/_img/cookie.svg) no-repeat 1em center;
}

.cookies p a {
  font:
    normal 0.9em 'Open Sans',
    sans-serif;
  margin-left: 0.5em;
  text-transform: uppercase;
  border: 1px solid #4296bc;
  display: inline-block;
  padding: 0.3em 0.6em;
  border-radius: 2em;
  cursor: pointer;
}

/* cabecera */
body > header {
  background: #fff;
}

header .c_dibujo_cabecera {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 370px;
  text-align: center;
}

header .centrador {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100%;
  height: 300px;
}

header .dibujo_cabecera {
  position: relative;
  width: 2600px;
  height: 250px;
  margin: 7.5rem auto 0 auto;
  transform: translateX(-50%);
}

header .dibujo_cabecera .elementos img {
  position: absolute;
}

.twitter {
  z-index: 21;
  position: absolute;
  top: 187px;
  left: 1426px;
  display: none;
}

.twitter .twitter_pajaro {
  position: absolute;
  left: 62px;
  top: -10px;
  z-index: 23;
}

.twitter .twitter_logo {
  position: absolute;
  left: 0;
  top: 0;

  z-index: 22;
  width: 70px;
}

.nube {
  width: 60px;
  height: auto;
}

header .dibujo_cabecera .fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 2600px;
  height: 250px;
  background: url(/_img/cabecera/cabecera-completa.svg) center center no-repeat;
  z-index: 5;
}

header .logo_puntodepartida {
  margin-top: 3.4375rem;
  width: 600px;
}

/* posiciones en el dibujo de la cabecera */
header .barco {
  z-index: 3;
  top: 118px;
  left: 1117px;
}

header .reloj {
  position: absolute;
  z-index: 20;
}

header .reloj_pueblo {
  top: 86px;
  left: 984px;
}

header .reloj_bigben {
  top: 51px;
  left: 1559px;
  display: none;
}

/* relojes */
.reloj img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: center bottom;
  transition: all 2s ease-out;
}

.reloj_bigben img {
  transform-origin: center 78%;
}

/* nav */
nav {
  overflow: hidden;
  white-space: nowrap;
  overflow-x: auto;
  position: relative;
  margin-bottom: 1.5em;
  background-color: #fff;
}

nav:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: ' ';
  clear: both;
  height: 0;
}

nav ul {
  white-space: nowrap;
  text-align: center;
}

nav ul li {
  margin-right: 2em;
}

nav ul li,
nav ul li a {
  display: inline-block;
  text-transform: uppercase;
  color: #555;
}

nav ul li a {
  padding: 0.4em 0;
  font-size: 1em;
  background-repeat: no-repeat;
  background-position: 0 0.4em;
  background-size: 1.5em auto;
}

nav ul li.portafolio a {
  position: relative;
  padding-right: 1rem;
  display: inline-block;
}

nav ul li.portafolio a:after {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  background: url(/_img/external.svg) no-repeat center center / 8px auto;
  filter: invert(1);
}

body.portafolio li.portafolio,
body.guias li.guias,
body.juegos li.juegos,
body.retro li.retro,
body.iconos li.iconos,
body.contacto li.contacto {
  border-bottom: 2px solid #00beff;
}

/* contenido */
article code {
  background-color: #eee;
  padding: 1em;
  font-family: 'Ubuntu Mono', monospace;
  margin: 1em 0;
  display: block;
  font-size: 0.9em;
}

main {
  max-width: 1002px;
  padding: 2em;
  margin: 0 auto;
  margin-bottom: 2em;
  padding-top: 0;
}

/* footer */
main > footer {
  text-align: center;
  color: #999;
  font-size: 0.7em;
  line-height: 1.4em;
}

section {
  margin-bottom: 3em;
}

figcaption {
  line-height: 1.2em;
}

figcaption a {
  font-weight: bold;
}

article:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: ' ';
  clear: both;
  height: 0;
}

article h1 {
  font-size: 2em;
  line-height: 1.2em;
  margin-bottom: 0.5em;
  font-weight: bold;
}

article h2,
article h3 {
  font-size: 1.4em;
  font-weight: normal;
  line-height: 1;
  margin-bottom: 0.6em;
}

article h3 {
  font-size: 1.3em;
}

article article h1,
article section h1 {
  font-size: 1.6em;
}
article p,
articule ul {
  max-width: 760px;
}
article p {
  font-size: 1em;
  margin-bottom: 1.5em;
  line-height: 1.8;
}
figure {
  margin-bottom: 1.25rem;
}
figcaption {
  font-size: 0.9em;
}

article aside {
  width: 30%;
  float: right;
  box-sizing: border-box;
  margin: 0 0 2em 2em;
}

article aside.ancho {
  float: none;
  font-size: 100%;
  display: block;
  width: auto;
  margin-bottom: 2em;
}

article aside h1 {
  font-size: 1.4em;
  font-weight: normal;
  line-height: 1.3em;
}

article aside h2 {
  font-size: 1em;
  font-weight: bold;
  line-height: 1.5em;
}

article .texto_articulo {
  width: 65%;
  float: left;
}

article img,
aside img {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-top: 1px solid #ccc;
  font-size: 1.2em;
  margin: 2em 0;
}

table caption {
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.5em 0;
  text-align: center;
  border-top: 1px solid #ccc;
}

table td,
table th {
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
  font-size: 0.7em;
  line-height: 1.4em;
  text-align: center;
}

table th {
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
}

/* listados */
.listado figure img {
  width: 100%;
  height: auto;
  display: block;
}

.listado figure figcaption {
  color: #000;
  line-height: 1.4em;
}

.listado li {
  margin: 0;
}

.listado ul:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: ' ';
  clear: both;
  height: 0;
}

.listado li,
.listado figure,
.listado .texto {
  vertical-align: top;
  box-sizing: border-box;
}

.listado figure {
  margin: 0.5em;
}

.listado h2 {
  font-weight: bold;
  font-size: 1.5em;
}

.listado .texto {
  width: 49%;
  float: left;
  padding: 0 0 0 0.7em;
}

/* 3 */
.listado_3 li {
  width: 15%;
  display: inline-block;
  box-sizing: border-box;
}

/* 4 */
.listado_4 li {
  width: 24.5%;
  display: inline-block;
  vertical-align: top;
}

/* 6 */
.listado_6 li {
  width: 16%;
  display: inline-block;
}

/* portada */
.portada ul {
  padding: 1em 0;
  margin-bottom: 2em;
}

.idioma_fr.portada ul {
  background-image: none;
  text-align: center;
}

.portada ul li {
  margin: 0;
}

.portada ul li a {
  font:
    normal 1.1em 'Karla',
    sans-serif;
  text-transform: uppercase;
  color: #666;
  display: block;
  padding: 1em;
  background-repeat: no-repeat;
  background-position: 1em center;
  text-align: center;
}

/* pantallas intermedias */
@media (max-width: 800px) {
  /* header */
  header .logo_puntodepartida {
    width: 70%;
    margin-top: 3.25rem;
  }

  header .dibujo_cabecera {
    transform: translateX(-50%) scale(0.7, 0.7);
    margin-top: 4.375rem;
  }

  header .animados .avion {
    width: 40px;
    height: auto;
    top: 92px;
  }

  header .animados .nube {
    width: 40px;
    height: auto;
  }

  header .c_dibujo_cabecera {
    height: 282px;
  }

  .portada ul {
    padding: 0 0 1em 0;
    background-image: none;
  }

  .listado_3 li {
    width: 47%;
  }
}

/* pantallas estrechas */
@media (max-width: 500px) {
  /* header */
  header .dibujo_cabecera {
    transform: translateX(-50%) scale(0.4, 0.4);
    margin-top: 1.875rem;
  }

  header .c_dibujo_cabecera {
    height: 203px;
  }

  header .logo_puntodepartida {
    width: 92%;
  }

  main {
    padding: 1em;
    padding-top: 0;
  }

  article h1 {
    font-size: 1.5em;
  }

  article h2 {
    font-size: 1.2em;
  }

  article h3 {
    font-size: 1em;
  }

  article article h1,
  article section h1 {
    font-size: 1.3em;
  }

  article aside h1 {
    font-size: 1.2em;
  }

  /* articulo */
  article .texto_articulo,
  article aside {
    float: none;
    width: 100%;
    background-color: #f7f5ea;
    padding: 1em;
  }
  /* listados */
  .listado_3 li {
    width: 100%;
    margin-bottom: 1em;
  }

  .portada.listado_3 li {
    width: 100%;
    display: block;
    clear: both;
    background: url(/_img/portada/fondo_vertical.svg) no-repeat;
    padding-top: 1.2em;
    margin-top: 0;
  }

  .portada.listado_3 li.juegos {
    background-position: -7em top;
  }

  .portada.listado_3 li.retro {
    background-position: -4em top;
  }

  .portada.listado_3 li.iconos {
    background-position: -6em top;
  }

  .portada ul li:first-child {
    background-image: none;
  }

  .portada ul li a {
    padding: 0.8em 0 0.8em 0;
    font-size: 1em;
    background-size: 2em auto;
  }

  .listado_3 li,
  .listado_4 li,
  .listado_6 li {
    width: 47%;
  }
}

@media (max-width: 350px) {
  .listado_3 li,
  .listado_4 li,
  .listado_6 li {
    width: 100%;
    display: block;
    clear: both;
  }
}

/* animaciones */
header .idiomas {
  position: absolute;
  top: 6px;
  left: 50%;
  text-transform: uppercase;
  transform: translate(-50%, 0);
  z-index: 10000;
  white-space: nowrap;
}

header .idiomas a {
  font-size: 0.8em;
  margin-right: 1em;
}

.idioma_es .globo_es,
.idioma_en .globo_en,
.idioma_fr .globo_fr {
  display: inline-block;
  border-bottom: 1px solid #01a8f7;
  padding-top: 0.3em;
  text-transform: uppercase;
}

.barco {
  -webkit-animation: def_animacion_barco 30s ease-in-out forwards;
  animation: def_animacion_barco 30s ease-in-out forwards;
  width: 60px;
  height: auto;
}

@keyframes def_animacion_barco {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(70px, 0, 0);
  }
}

.c_dibujo_cabecera .avion {
  position: absolute;
  top: 100px;
  left: 0;
  width: 80px;
  height: auto;
}

.nube {
  position: absolute;
  left: 0;
}

.nube1 {
  top: 30px;
}

.nube2 {
  top: 90px;
}

.nube3 {
  top: 150px;
}

.publicidadhorizontal {
  border: 1px solid #ccc;
  margin: 2em 0;
  text-align: center;
}

section.contactotwitter img {
  max-width: 280px;
  height: auto;
}

@media (prefers-color-scheme: dark) {
  body,
  nav {
    background-color: #333;
    color: #e4e4e4;
  }

  .portada ul li a,
  nav ul li a,
  .listado figure figcaption {
    color: #fff;
  }

  a {
    color: #00aeff;
  }

  article code {
    background-color: #000;
  }

  header .c_dibujo_cabecera {
    background: #333;
  }

  .nube,
  .nube1,
  .nube2,
  .nube3,
  .c_dibujo_cabecera .avion,
  header .dibujo_cabecera .fondo,
  header .c_dibujo_cabecera img.logo_puntodepartida,
  .cookies,
  .twitter .twitter_logo,
  .barco {
    filter: invert(1);
  }

  .cookies p {
    filter: invert(1);
    color: #ccc;
  }

  article aside.ancho {
    background-color: rgb(64, 10, 10);
  }

  nav ul li.portafolio a:after {
    filter: invert(0);
  }
}
