/*
Theme Name: InfoPirineo Divi Child - Fondo Documental Aínsa
Theme URI: https://fondodocumentalainsa.com/
Description: Tema hijo de Divi para el Centro de Arte Contemporáneo Aínsa-Sobrarbe. Mejora la legibilidad y el contraste del footer, preservando Divi y el catálogo Toolset.
Author: InfoPirineo
Author URI: https://infopirineo.es/
Template: Divi
Version: 1.0.0
Text Domain: infopirineo-divi-child-fondo-documental
License: GPL-2.0-or-later
*/

/*
 * UX-10B: Contraste y legibilidad (aprobado para fondodocumentalainsa.com).
 * Todos los cambios viven aquí, sin modificar archivos del tema padre.
 */

/* Lectura general: tipografia de sistema sin recursos externos */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: #29333a;
}

.entry-content, .et_pb_text,
.entry-content p, .et_pb_text p,
.entry-content li, .et_pb_text li {
  line-height: 1.7;
}

.entry-content h1, .entry-content h2, .entry-content h3,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3 {
  font-family: inherit;
  line-height: 1.3;
  color: #1a252b;
}

/* Entradas: no alterar los contenidos ni la anchura de las imagenes */
.single-post .entry-content p,
.single-post .entry-content li {
  font-size: 18px;
  line-height: 1.7;
}

/* Footer: contraste alto, textos claros y enlaces reconocibles */
#main-footer {
  background-color: #333333;
  color: #f5f5f5;
}
#main-footer .footer-widget,
#main-footer .footer-widget p,
#main-footer .footer-widget li,
#main-footer .footer-widget .textwidget {
  color: #f5f5f5;
  font-size: 16px;
  line-height: 1.7;
}
#main-footer .footer-widget h4.title,
#main-footer .footer-widget .widgettitle {
  color: #ffffff;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.35;
}
#main-footer .footer-widget a {
  color: #bdeaf0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#main-footer .footer-widget a:hover,
#main-footer .footer-widget a:focus-visible {
  color: #ffffff;
}
#main-footer .footer-widget .custom-html-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#main-footer .footer-widget .custom-html-widget li {
  padding-left: 0;
}
#main-footer .footer-widget .custom-html-widget li::before {
  display: none;
}
#footer-bottom {
  background: #252525;
}
#footer-bottom, #footer-bottom p,
#footer-bottom a, #footer-info {
  color: #f5f5f5;
}

/* Indicador de foco visible para navegación por teclado */
#main-footer a:focus-visible {
  outline: 2px solid #bdeaf0;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  body {
    font-size: 17px;
    line-height: 1.65;
  }
  .single-post .entry-content p,
  .single-post .entry-content li {
    font-size: 17px;
  }
  #main-footer .footer-widget p,
  #main-footer .footer-widget li {
    font-size: 16px;
  }
}
