/* =================================================================
   root.css — Estilos comunes a todas las páginas de masINE
   Variables, reset, accesibilidad, cabecera y pie de página.
   ================================================================= */

/* --- VARIABLES --- */
:root {
  --primary-color: #457E76;/*#003366;*/
  --accent-color: #89BEBA;/*#005a9e;*/
  --bg-color: #ffffff;
  --bg-color2: #fafafa;
  --text-color: #1a1a1a;
  --text-secondary: #595959;
  --red-text: #9E1834;/*#c41e3a;*/
  --gray-light: #f4f4f4;
  --gray-medium: #e0e0e0;
  --border: #e5e7eb;
  --tag-bg: #eee;
  --tag-bg-hover: #ddd;
  --focus-ring: 3px solid #558E86/*#ffbf47*/;
  --max-width: 1400px;
  --header-offset: 120px;
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color2);
  color: var(--text-color);
}

main{
  font-family: 'Georgia', serif;
  line-height: 1.6;
}

/* --- ACCESIBILIDAD (WCAG 2.2 AA) --- */
*:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

/* El header fijo no debe tapar el destino de anclas (2.4.11) */
[id] {
  scroll-margin-top: var(--header-offset);
}

/* Respeta la preferencia de movimiento reducido (2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- PIE DE PÁGINA --- */
.site-footer {
  background: white;
  border-top: 3px solid var(--primary-color);
  padding: 20px;
  margin-top: 40px;
}

.site-footer > .footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
}

.oculto {display: none;}

h1 { font-size: 2.5rem; line-height: 1.2; color: #111827; font-family: 'Georgia', serif; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  h1 {font-size: 1.6rem; }
  h2 {font-size: 1.3rem; }
}

/* --- ETIQUETA DE CATEGORÍA (estilo común) --- */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  /*color: var(--primary-color);*/
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0;
  border-left: 4px solid var(--primary-color);
  text-decoration: none;
  font-family: Arial, sans-serif;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--tag-bg-hover);
}

/* --- CONTENEDOR PRINCIPAL (común) --- */
main {
  padding: 10px;
}

.customBar.cbMiga {background-color: #ffffff;}
.customBar.cbMiga .group img {height: 50px;}

/* --- TARJETA BLANCA (base común) --- */
.card {
  background: white;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* --- ENLACE DE TITULAR (común) --- */
a.title-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.title-link:hover {
  color: var(--primary-color);
}

main figure {
    margin: 0;
    height: 100%;
}

main article time {
	color: var(--text-secondary);
	font-family: Arial, sans-serif;
	font-size: 0.85rem;
	margin: 1rem 0;
}

/* Todos los elementos tactiles deben tener al menos 25px*/
a,button{
	min-width: 25px;
	min-height: 25px;
}

p a, p a:link, p a:active, p a:visited {
	color: var(--primary-color);
	text-decoration: none;
}