/* Prototipo de portada «boletín sindical» (vistas/portada2). Todo va bajo .b26 para no cambiar el resto de la web.
   Titulares: Newsreader (de periódico). Texto: Atkinson Hyperlegible (pensada para leerse bien a cualquier edad). */
.b26 {
  --b26-granate: #7a2e2e;
  --b26-granate-vivo: #9a4040;
  --b26-papel: #faf6f0;
  --b26-papel-2: #f1e8dd;
  --b26-tinta: #221c19;
  --b26-tinta-suave: #5d5550;
  --b26-linea: #e2d6c9;
  --b26-titular: "Newsreader", Georgia, "Times New Roman", serif;
  --b26-texto: "Atkinson Hyperlegible", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--b26-papel);
  color: var(--b26-tinta);
  font-family: var(--b26-texto);
  font-size: 17px;
  line-height: 1.55;
}
.b26 h1, .b26 h2, .b26 h3 {
  margin: 0;
  font-family: var(--b26-titular);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  color: inherit;
}
.b26 p { margin: 0; text-align: left; }
.b26 a { color: inherit; text-decoration: none; }
.b26 a:focus-visible { outline: 3px solid var(--b26-granate-vivo); outline-offset: 3px; border-radius: 2px; }
.b26 ol, .b26 ul { margin: 0; padding: 0; list-style: none; }
.b26-contenedor { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.b26-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- cabecera ---------- */
.b26-cabecera {
  position: relative;
  overflow: hidden;
  padding: 150px 0 88px;
  background-color: var(--b26-granate);
  /* grano de papel muy suave */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color: #fff;
}
/* el bloque de la «P» del logotipo, en grande y casi transparente */
.b26-cabecera__p {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 460px;
  height: 560px;
  border-radius: 0 280px 280px 0;
  background: rgba(255, 255, 255, .05);
  pointer-events: none;
}
.b26-cabecera__rejilla {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}
.b26-antetitulo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f3dede;
}
.b26 .b26-lema {
  margin: 18px 0 20px;
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.025em;
  color: #fff;
}
.b26-lema em { font-style: italic; color: #f6d9c6; }
.b26-entradilla { max-width: 46ch; font-size: 19px; line-height: 1.5; color: #f7ecec; }
.b26-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.b26-boton {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.b26-boton:hover { transform: translateY(-1px); }
.b26 .b26-boton--claro { background: var(--b26-papel); color: var(--b26-granate); }
.b26 .b26-boton--claro:hover { background: #fff; }
.b26 .b26-boton--borde { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.b26 .b26-boton--borde:hover { background: rgba(255, 255, 255, .1); }
.b26 .b26-boton--granate { background: var(--b26-granate); color: #fff; }
.b26 .b26-boton--granate:hover { background: var(--b26-granate-vivo); }
.b26 .b26-enlace-claro { font-weight: 700; color: #fff; padding: 12px 4px; }
.b26-enlace-claro:hover { text-decoration: underline; text-underline-offset: 4px; }

.b26 .b26-mesa {
  display: block;
  padding: 28px 30px 26px;
  border-radius: 4px;
  background: var(--b26-papel);
  color: var(--b26-tinta);
  box-shadow: 0 24px 48px -24px rgba(20, 0, 0, .55);
  transition: transform .25s ease;
}
.b26-mesa:hover { transform: translateY(-3px); }
.b26-mesa__etiqueta { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--b26-granate-vivo); }
.b26-mesa__fecha { display: block; margin-top: 6px; font-size: 14px; color: var(--b26-tinta-suave); }
.b26-mesa__titulo { display: block; margin: 14px 0 18px; font-family: var(--b26-titular); font-size: 26px; font-weight: 600; line-height: 1.15; }
.b26-mesa__ir { font-weight: 700; color: var(--b26-granate); }

/* ---------- aviso ---------- */
.b26-aviso { background: #f3e3c3; color: #4a3410; }
.b26-aviso a { display: block; padding: 14px 0; }
.b26-aviso a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sectores ---------- */
.b26-sectores { padding: 28px 0; border-bottom: 1px solid var(--b26-linea); }
.b26-sectores .b26-contenedor { display: flex; align-items: center; gap: 20px; }
.b26 .b26-sectores__titulo { flex: none; font-family: var(--b26-texto); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--b26-tinta-suave); }
.b26-sectores__lista { display: flex; flex-wrap: wrap; gap: 8px; }
.b26-sector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--b26-linea);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  transition: border-color .2s ease, background-color .2s ease;
}
.b26-sector:hover { border-color: var(--b26-tinta-suave); background: var(--b26-papel-2); }
.b26-sector__punto {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--portada-fondo, #9a4040);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .35); /* para que se vean también los tonos claros */
}
.b26-sector__n { font-size: 13px; color: var(--b26-tinta-suave); font-variant-numeric: tabular-nums; }

/* ---------- noticias ---------- */
.b26-novas { padding: 64px 0 80px; }
.b26-seccion-cabeza {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  margin-bottom: 36px;
  border-top: 3px solid var(--b26-tinta);
}
.b26 .b26-seccion-titulo { font-size: 44px; line-height: 1; }
.b26 .b26-ver-todo, .b26 .b26-leer { font-weight: 700; color: var(--b26-granate); white-space: nowrap; }
.b26-ver-todo:hover, .b26-leer:hover { text-decoration: underline; text-underline-offset: 4px; }

.b26-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--b26-tinta-suave); }

.b26-foto { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.b26-foto--logo { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--b26-linea); }
.b26-foto--logo img { width: 60%; max-width: 320px; }

.b26-principal {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding-bottom: 48px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--b26-linea);
}
.b26-principal__imagen { display: block; height: 400px; }
.b26 .b26-principal__titulo { margin: 14px 0 16px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.b26-principal__titulo a:hover, .b26-secundaria__titulo a:hover, .b26-columna__titulo a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.b26-principal__extracto { margin-bottom: 20px; font-size: 18px; color: #3b3430; }

.b26 .portada-sin-foto--grande { height: 100%; padding: 28px 30px; border-radius: 4px; }
.b26 .portada-sin-foto--grande .portada-sin-foto__tema { font-size: 13px; }
.b26 .portada-sin-foto--grande .portada-sin-foto__icono { top: 26px; right: 28px; width: 40px; height: 40px; }
.b26 .portada-sin-foto--grande .portada-sin-foto__fecha { font-size: 18px; }
.b26 .portada-sin-foto--grande .portada-sin-foto__fecha b { font-family: var(--b26-titular); font-size: 128px; font-weight: 500; }

.b26-rejilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr);
  gap: 40px;
}
.b26-secundaria__imagen { display: block; height: 220px; margin-bottom: 16px; }
.b26 .b26-secundaria__titulo { margin: 10px 0 10px; font-size: 24px; line-height: 1.15; }
.b26-secundaria__extracto { font-size: 16px; color: #3b3430; }
.b26 .b26-secundaria .portada-sin-foto--grande .portada-sin-foto__fecha b { font-size: 76px; }

.b26-titulares { padding-left: 32px; border-left: 1px solid var(--b26-linea); }
.b26 .b26-titulares__titulo { font-family: var(--b26-texto); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--b26-tinta-suave); padding-bottom: 12px; }
.b26-titular {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--b26-linea);
}
.b26-titular:hover .b26-titular__texto { text-decoration: underline; text-underline-offset: 3px; }
.b26-titular__fecha { padding-top: 2px; font-size: 13px; color: var(--b26-granate-vivo); font-variant-numeric: tabular-nums; }
.b26-titular__texto { font-size: 16px; font-weight: 700; line-height: 1.35; }
.b26-titular__texto .b26-sector__punto { margin-right: 8px; vertical-align: 1px; }

/* ---------- editorial y análisis ---------- */
.b26-opinion { padding: 64px 0; background: var(--b26-papel-2); }
.b26-opinion__rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.b26-columna__etiqueta { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--b26-granate-vivo); }
.b26 .b26-columna__titulo { margin: 10px 0 12px; font-size: 32px; font-style: italic; font-weight: 500; line-height: 1.12; }
.b26-columna__extracto { color: #3b3430; }
.b26-columna__pie { margin-top: 14px; font-size: 14px; color: var(--b26-tinta-suave); }
.b26-columna__pie a { color: var(--b26-granate); font-weight: 700; }

/* ---------- afiliación ---------- */
.b26-afiliate { padding: 72px 0 88px; background: #fff; border-top: 1px solid var(--b26-linea); }
.b26-afiliate__rejilla { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.b26 .b26-afiliate__titulo { font-size: clamp(34px, 4.4vw, 56px); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; }
.b26-afiliate p { margin-bottom: 22px; font-size: 18px; color: #3b3430; }

/* ---------- entrada: una sola vez, escalonada ---------- */
.b26-entra { animation: b26-sube .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--orden, 0) * 90ms); }
@keyframes b26-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .b26-entra { animation: none; }
  .b26-boton, .b26 .b26-mesa, .b26-sector { transition: none; }
}

/* ---------- tablet y móvil ---------- */
@media (max-width: 991.98px) {
  .b26-cabecera { padding: 128px 0 64px; }
  .b26-cabecera__rejilla, .b26-principal, .b26-afiliate__rejilla, .b26-opinion__rejilla { grid-template-columns: 1fr; gap: 32px; }
  .b26-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b26-titulares { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .b26-principal__imagen { height: 320px; }
}
@media (max-width: 575.98px) {
  .b26 { font-size: 16px; }
  .b26-contenedor { padding: 0 16px; }
  .b26-cabecera { padding: 112px 0 48px; }
  .b26-cabecera__p { width: 300px; height: 380px; right: -120px; bottom: -120px; }
  .b26-entradilla { font-size: 17px; }
  .b26-sectores .b26-contenedor { display: block; }
  .b26-sectores__titulo { margin-bottom: 12px; }
  .b26-sectores__lista { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: thin; }
  .b26-sector { white-space: nowrap; }
  .b26-novas { padding: 44px 0 56px; }
  .b26 .b26-seccion-titulo { font-size: 34px; }
  .b26-rejilla { grid-template-columns: 1fr; gap: 32px; }
  .b26-principal__imagen { height: 240px; }
  .b26 .portada-sin-foto--grande .portada-sin-foto__fecha b { font-size: 88px; }
}

/* ---------- secciones de siempre (nosotros, servicios, encuestas, contacto) dentro de la portada nueva ---------- */
.b26-legado { padding: 64px 0 72px; background: #fff; border-top: 1px solid var(--b26-linea); }
.b26-legado--papel { background: var(--b26-papel); }
.b26-legado .container { max-width: 1180px; padding: 0 24px; }
/* cabecera de sección como «Novas»: a la izquierda, con filete arriba */
.b26-legado .text-center:has(> .section-title) {
  text-align: left !important;
  padding-top: 14px;
  border-top: 3px solid var(--b26-tinta);
}
.b26 .b26-legado .section-title { font-size: 44px; line-height: 1; color: var(--b26-tinta); }
.b26-legado .section-title .btn { margin-top: 4px; }
.b26 .b26-legado p { margin: 0 0 1em; text-align: left; }
.b26-legado [style*="justify"] { text-align: left !important; }
.b26-legado h3 { font-family: var(--b26-titular); font-weight: 600; }
.b26-legado a:not(.btn) { color: var(--b26-granate); }
.b26-legado .btn-primary { border-radius: 999px; min-height: 44px; }
@media (max-width: 575.98px) {
  .b26-legado { padding: 44px 0 52px; }
  .b26-legado .container { padding: 0 16px; }
  .b26 .b26-legado .section-title { font-size: 34px; }
}
/* textos guardados desde el panel: imágenes con ancho fijo y letra puesta a mano */
.b26-legado img { max-width: 100%; height: auto; }
.b26-legado .col-lg-4 > p > img:only-child { float: none !important; margin: 0 !important; width: 100%; border-radius: 4px; }
.b26-legado [style*="font-family"] { font-family: inherit !important; }

/* ---------- fotos de fondo de la cabecera (Fotos Portada del panel), con fundido ---------- */
.b26-fondos { position: absolute; inset: 0; z-index: 0; }
.b26-fondo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.b26-fondo.es-visible { opacity: 1; }
/* velo granate: más denso donde está el texto, para que el blanco se lea sobre cualquier foto (contraste ≥ 5:1) */
.b26-fondo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(122, 46, 46, .92) 0%, rgba(122, 46, 46, .8) 55%, rgba(122, 46, 46, .6) 100%);
}
.b26-fondos-pausa {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(0, 0, 0, .15);
  color: #fff;
  cursor: pointer;
}
.b26-fondos-pausa:hover { background: rgba(0, 0, 0, .3); }
.b26-fondos-pausa:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.b26-fondos-pausa .b26-icono-seguir,
.b26-fondos-pausa[aria-pressed="true"] .b26-icono-pausa { display: none; }
.b26-fondos-pausa[aria-pressed="true"] .b26-icono-seguir { display: inline; }
@media (max-width: 991.98px) {
  .b26-fondo::after { background: rgba(122, 46, 46, .86); }
}
@media (prefers-reduced-motion: reduce) {
  .b26-fondo { transition: none; }
}
