/* Memoscopio (2009.memoscopio.org): the 2009 look (memoscopio-main.css + memoscopio-design.css),
   rewritten for sitebuilder markup and for phones. Sizes are the pixel sizes the old nested em
   rules produced. */

:root {
  --fondo: #675d51;
  --enlace: #a79885;
  --enlace-hover: #dfd1c0;
  --texto: #000;
  --linea: #fff;
}

* { box-sizing: border-box; }

html, body, h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }

body {
  font: 16px/1.25 Verdana, sans-serif;
  color: var(--texto);
  background: var(--fondo) url('../images/bg-top.jpg') repeat-x top left;
}

a { color: var(--enlace); }
a:hover, a:focus { color: var(--enlace-hover); }
img { border: 0; max-width: 100%; height: auto; }

p, ul, ol, h1, h2, h3, h4 { margin-bottom: 1em; }
ul { list-style: none; }

/* ---- header: logo on the left, the knob strip on the right */
.cabecera {
  position: relative;
  height: 250px;
  max-width: 1600px;
}
.logo {
  position: absolute;
  top: 60px;
  left: 40px;
}
.logo img { display: block; }

.menu-principal {
  position: absolute;
  top: 50px;
  right: 0;
}
.menu-principal ul {
  display: flex;
  margin: 0;
}
/* left end cap and right end of the pipe, as in the original strip */
.menu-principal ul::before,
.menu-principal ul::after {
  content: "";
  display: block;
  width: 88px;
  height: 100px;
  background: url('../images/Menu_interior_costado_izqui.jpg') no-repeat;
}
.menu-principal ul::after {
  width: 85px;
  background-image: url('../images/Menu_interior_btn4_A.jpg');
}
.menu-principal li {
  width: 86px;
  background: url('../images/Menu_interior_btn2_A.jpg') no-repeat top left;
}
.menu-principal li:nth-child(3n+1) { width: 78px; background-image: url('../images/Menu_interior_btn1_A.jpg'); }
.menu-principal li:nth-child(3n) { background-image: url('../images/Menu_interior_btn3_A.jpg'); }
.menu-principal li:hover,
.menu-principal li.current { background-image: url('../images/Menu_interior_btn2_B.jpg'); }
.menu-principal li:nth-child(3n+1):hover,
.menu-principal li:nth-child(3n+1).current { background-image: url('../images/Menu_interior_btn1_B.jpg'); }
.menu-principal li:nth-child(3n):hover,
.menu-principal li:nth-child(3n).current { background-image: url('../images/Menu_interior_btn3_B.jpg'); }
.menu-principal a {
  display: block;
  padding-top: 110px;
  font-size: 11px;
  line-height: 14px;
  text-align: center;
  text-decoration: none;
}
.menu-principal a:hover { text-decoration: underline; }

/* ---- content */
.contenido { padding: 30px 50px; }
.contenido::after { content: ""; display: block; clear: both; }

h1 { font-size: 29px; }
h2 { font-size: 22px; }
h3 { font-size: 15px; }

.nota {
  font-size: 13px;
  font-style: italic;
}

/* ---- home: the old Flash intro inside the TV frame, now two pictures that fade into each other */
.intro {
  float: right;
  margin: -40px 0 1em 2em;
  width: 602px;
  height: 574px;
  padding: 162px 0 0 135px;
  background: url('../images/home_video_back.jpg') no-repeat top left;
}
.pantalla {
  position: relative;
  width: 310px;
  height: 210px;
  overflow: hidden;
  background: #000;
}
.lado {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fundido 12s infinite;
}
.lado.en { animation-delay: -6s; }
.lado img {
  position: absolute;
  opacity: 0.45;
}
.lado p {
  position: relative;
  margin: 0;
  padding: 0 20px;
  font: bold 17px/1.25 Verdana, sans-serif;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 6px #000, 0 0 2px #000;
}
@keyframes fundido {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lado { animation: none; }
  .lado.en { display: none; }
}

/* ---- gallery: one block per testimony (snippet "testimonios") */
.testimonio {
  padding-bottom: 1em;
  margin-bottom: 1em;
  border-bottom: 1px solid var(--linea);
}
.testimonio h3 { font-size: 15px; }
.testimonio p { font-size: 13px; }
.testimonio .autor, .testimonio .tema { margin-bottom: 0.5em; }
.testimonio .video {
  position: relative;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  background: #000;
}
.testimonio .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- links page */
.no-disponible { font-size: 13px; color: #3d362f; }

/* ---- footer */
.pie {
  padding: 0 50px 30px;
  font-size: 11px;
  color: #3d362f;
}

/* ---- phones and narrow windows */
@media (max-width: 1000px) {
  .intro {
    float: none;
    width: auto;
    height: auto;
    margin: 0 0 1.5em;
    padding: 0;
    background: none;
  }
  .pantalla { margin: 0 auto; max-width: 100%; }
}
@media (max-width: 760px) {
  .cabecera { height: auto; padding: 36px 16px 0; }
  .logo, .menu-principal { position: static; }
  .logo img { margin: 0 auto; width: 300px; }
  .menu-principal ul { justify-content: center; margin-top: 16px; }
  .menu-principal ul::before, .menu-principal ul::after { display: none; }
  .contenido { padding: 20px 16px; }
  .pie { padding: 0 16px 20px; }
  h1 { font-size: 24px; }
}
