/* Ajustes que el tema Joomla metía en línea en cada página */
#fav-container,
#fav-advertwrap, #fav-slidewrap, #fav-introwrap, #fav-showcasewrap, #fav-promowrap,
#fav-topwrap, #fav-maintopwrap, #fav-mainbottomwrap, #fav-bottomwrap, #fav-userwrap,
#fav-footerwrap, #fav-copyrightwrap, #fav-debugwrap { background-repeat: repeat; }
#fav-container { background-repeat: repeat-x; }
#fav-copyrightwrap { background-color: #37B1C2; }
#fav-copyright a { color: #FFFFFF; }
#fav-copyright a:hover { color: #050505; }
.textLogo { color: #FFFFFF; }
.slogan { font-family: 'Helvetica Neue', Helvetica, sans-serif; }
.retinaLogo { height: 52px; width: 188px; padding: 0; margin: 0; }

/* Recuadros con icono de la portada (antes estilos en línea) */
#favglyph .favglyph-icon-circle {
  background-color: #FBF9F6;
  width: 60%;
  border: 1px dashed #37B1C2;
  border-radius: 50%;
}
#favglyph .favglyph-icon-circle i { color: #F5CD4A; font-size: 4em; }
#favglyph .favglyph-title {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  margin: 28px 0 7px;
}
#favglyph .favglyph-title a { color: #102B45; }
#favglyph .favglyph-desc { font-size: 12px; color: #205285; }
div.favglyph-icon-center div.favglyph-icon-circle { margin: 0 auto; }

/* Mismo espacio superior que la web original */
#fav-containerwrap { padding-top: 20px; }
/* Espacio antes del pie en la portada, como en la original */
.portada #fav-mainwrap { min-height: 60px; }

/* Reproductor de la portada (sustituye al antiguo reproductor Flash invisible) */
.reproductor-portada { text-align: center; margin: 10px 0 30px; }
.reproductor-portada p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  color: #102B45;
  margin: 0 0 8px;
}
.reproductor-portada p .fa { color: #F5CD4A; margin-right: 4px; }
.reproductor-portada audio { width: 100%; max-width: 360px; }

/* Biografía */
.foto-bio { float: left; margin: 0 4px 0 0; }
.galeria-bio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin: 50px 0;
}
.galeria-bio img { max-width: 100%; height: auto; }
@media (max-width: 480px) {
  .foto-bio { float: none; display: block; margin: 0 auto 15px; max-width: 100%; height: auto; }
  .galeria-bio { gap: 20px; }
}

/* Títulos de sección (como los de la tienda y el contacto originales) */
.titulo-seccion {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 31.2px;
  color: #444;
  border-bottom: 2px solid #F5CD4A;
  padding: 0 0 6px;
  margin: 0 0 19px;
}

/* Presentación con imagen a la izquierda (Música y Poesía) */
.intro { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.intro img { flex: none; max-width: 100%; height: auto; }
.intro-texto p { font-size: 14px; color: #333; }
.intro-texto.justificado p { text-align: justify; }

/* Rejilla de estilos (categorías) */
.categorias {
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  max-width: 750px; margin: 10px 0 20px 15%;
}
.categoria { width: 140px; padding: 20px 10px 30px; box-sizing: border-box; text-align: center; }
.categorias.grandes { margin-left: 25%; }
.categorias.grandes .categoria { width: 319px; }
.categoria img { display: block; margin: 0 auto; border: 1px solid #102B45; }
.categoria .enlace-categoria {
  display: inline-block;
  margin-top: 10px;
  padding: 0 5px 2px;
  font-size: 14px;
  font-weight: 700;
  color: #37B1C2;
  border-bottom: 1px solid #F5CD4A;
}
.nota-final { display: block; margin: 20px auto; }

/* Listado de canciones y libros */
.lista-productos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  max-width: 980px;
  margin: 10px 0 20px;
}
.producto {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 0 12px;
  align-content: start;
  padding: 15px 5px 20px;
  border-bottom: 1px solid #e5e5e5;
}
.producto .imagen img { display: block; width: 100px; height: auto; }
.producto .nombre { font-size: 16px; line-height: 21px; color: #37B1C2; margin: 2px 0 6px; }
.producto .descripcion { font-size: 12px; line-height: 18px; color: #333; }
.producto .descripcion p { margin: 0 0 2px; }
.producto audio { grid-column: 1 / -1; width: 100%; margin-top: 12px; }
.producto .leer { grid-column: 1 / -1; margin-top: 12px; }
.boton-leer {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
  background: #37B1C2;
  border-radius: 4px;
}
.boton-leer:hover, .boton-leer:focus { color: #fff; background: #2b8f9d; text-decoration: none; }

/* Botón Atrás (como el original) */
.btn-atras {
  display: inline-block;
  padding: 9px 16px 7px;
  font-size: 14px;
  color: #333;
  background: linear-gradient(#fff, #e6e6e6);
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 1px 1px 1px rgba(200,200,200,.9), 3px 3px 4px rgba(80,80,80,.2), 6px 6px 8px rgba(220,220,220,.4);
}
.btn-atras:hover, .btn-atras:focus { color: #333; text-decoration: none; background: #e6e6e6; }

/* Galería de fotos y pinturas */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 25px 20px;
  margin: 10px 0 30px;
}
.galeria figure { margin: 0; text-align: center; }
.galeria .marco {
  display: flex; align-items: center; justify-content: center;
  height: 160px;
}
.galeria img { max-width: 100%; max-height: 160px; width: auto; height: auto; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.galeria figcaption { margin-top: 8px; font-size: 14px; color: #37B1C2; }

/* Contacto */
.contacto-direccion { font-size: 12px; margin: 0 0 6px 8px; }
.contacto-correo { font-size: 12px; margin: 0 0 25px 8px; }
.contacto-correo .fa { width: 16px; margin-right: 8px; color: #444; }
.contacto-leyenda {
  font-size: 18px; line-height: 1.3; color: #37B1C2;
  border-bottom: 1px solid #e5e5e5; padding-bottom: 12px; margin: 0 0 15px;
}

/* Visor de imágenes */
.visor {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85);
}
.visor[hidden] { display: none; }
.visor-figura { margin: 0; text-align: center; }
.visor-figura img { max-width: 90vw; max-height: 82vh; box-shadow: 0 2px 12px rgba(0,0,0,.6); }
.visor-figura figcaption { color: #fff; margin-top: 10px; font-size: 15px; }
.visor button {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 48px; line-height: 1; padding: 10px 16px; cursor: pointer; opacity: .85;
}
.visor button:hover, .visor button:focus { opacity: 1; }
.visor-cerrar { top: 10px; right: 10px; }
.visor-ant { left: 10px; top: 50%; transform: translateY(-50%); }
.visor-sig { right: 10px; top: 50%; transform: translateY(-50%); }
body.visor-abierto { overflow: hidden; }

/* Página no encontrada */
.no-encontrada { text-align: center; padding: 40px 0 60px; }

/* Adaptación a tablet y móvil */
@media (max-width: 979px) {
  .lista-productos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lista-productos { grid-template-columns: minmax(0, 1fr); }
  .intro { flex-direction: column; align-items: center; }
  .categorias, .categorias.grandes { margin-left: 0; justify-content: center; }
  .categorias.grandes .categoria { width: 100%; }
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}
.producto .nombre { font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-weight: 400; }
.categoria > a:first-child { display: block; }
.categoria img { float: none; }
