/* Informe final — Convenio OISS · Ministerio del Trabajo. Mismos colores institucionales del tablero anterior. */
:root {
  --vino: #6a1d36;
  --vino-800: #521528;
  --vino-600: #8a3550;
  --vino-100: #f3e6ea;
  --vino-50: #faf4f6;
  --azul: #1e3a8a;
  --azul-100: #e6ebf6;
  --oro: #c5a059;
  --oro-texto: #84642a;
  --oro-100: #f6eedd;
  --verde: #05795a;
  --verde-100: #e1f3ec;
  --alerta: #a3341f;
  --alerta-100: #f8e7e2;
  --tinta: #1c2331;
  --tinta-2: #4a5263;
  --tinta-3: #6c7385;
  --papel: #f7f4f0;
  --hoja: #fffdfa;
  --linea: #e6dfd7;
  --linea-2: #d6ccc1;
  --bandera-amarillo: #fcd116;
  --bandera-azul: #003893;
  --bandera-rojo: #ce1126;
  /* Escala de satisfacción: mejor → peor, un solo tono (vino) de oscuro a claro */
  --esc-1: #6a1d36;
  --esc-2: #a8566f;
  --esc-3: #d79aac;
  --esc-4: #efd3db;

  --f-display: "Newsreader", "Georgia", serif;
  --f-texto: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  --t-hero: clamp(2.2rem, 1.3rem + 3.6vw, 4.1rem);
  --r-sm: 4px;
  --r-md: 8px;
  --sombra: 0 1px 0 rgba(28, 35, 49, 0.04), 0 8px 24px -14px rgba(28, 35, 49, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --ancho: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: var(--t-base);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.envoltura { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Acceso ---------- */
.acceso {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(197, 160, 89, 0.18), transparent 55%),
    linear-gradient(150deg, var(--vino) 0%, #3b1426 55%, var(--tinta) 100%);
}
.acceso[hidden] { display: none; }
.acceso__tarjeta {
  width: min(100%, 420px); background: var(--hoja); border-radius: var(--r-md);
  padding: clamp(24px, 5vw, 40px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  animation: entrar 0.6s var(--ease) both;
}
.acceso__logos { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.acceso__logos img:first-child { height: 52px; width: auto; }
.acceso__logos img:last-child { height: 40px; width: auto; }
.acceso h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; line-height: 1.15; margin: 0 0 6px; color: var(--vino); }
.acceso p { margin: 0 0 24px; color: var(--tinta-2); font-size: var(--t-sm); }
.acceso label { display: block; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-2); margin-bottom: 6px; }
.acceso input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--linea-2);
  border-radius: var(--r-sm); background: #fff; font-size: 16px;
}
.acceso input:focus { border-color: var(--vino); outline: 2px solid var(--vino-100); }
.acceso__error { color: var(--alerta); font-size: var(--t-sm); font-weight: 600; margin-top: 8px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.02em; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.boton:active { transform: translateY(1px); }
.boton--primario { background: var(--vino); color: #fff; width: 100%; margin-top: 18px; }
.boton--primario:hover { background: var(--vino-800); }
.boton--borde { background: transparent; border-color: var(--linea-2); color: var(--tinta); }
.boton--borde:hover { border-color: var(--vino); color: var(--vino); }

/* ---------- Cabecera ---------- */
.bandera { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 6px; }
.bandera span:nth-child(1) { background: var(--bandera-amarillo); }
.bandera span:nth-child(2) { background: var(--bandera-azul); }
.bandera span:nth-child(3) { background: var(--bandera-rojo); }
.cabecera { background: var(--hoja); border-bottom: 1px solid var(--linea); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.cabecera__logo-min { height: 50px; width: auto; }
.cabecera__logo-oiss { height: 38px; width: auto; }
.cabecera__centro { text-align: center; line-height: 1.25; }
.cabecera__centro strong { display: block; font-family: var(--f-display); font-size: var(--t-md); font-weight: 600; color: var(--vino); }
.cabecera__centro span { font-size: var(--t-xs); color: var(--tinta-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Portada ---------- */
.portada { padding-block: clamp(36px, 7vw, 88px) clamp(28px, 5vw, 56px); position: relative; }

.antetitulo {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oro-texto);
}
.antetitulo::before { content: ""; width: 28px; height: 2px; background: var(--oro); }
.portada h1 {
  font-family: var(--f-display); font-weight: 500; font-size: var(--t-hero); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0; max-width: 20ch; color: var(--tinta);
}
.portada h1 em { font-style: italic; color: var(--vino); }
.portada__bajada { max-width: 62ch; margin: 20px 0 0; color: var(--tinta-2); font-size: var(--t-md); }
.cifras {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 5vw, 52px);
  border-top: 2px solid var(--tinta); border-bottom: 1px solid var(--linea);
}
.cifra { padding: 18px 20px 18px 0; }
.cifra + .cifra { padding-left: 20px; border-left: 1px solid var(--linea); }
.cifra b { display: block; font-family: var(--f-display); font-size: var(--t-xl); font-weight: 500; line-height: 1.1; color: var(--vino); }
.cifra span { font-size: var(--t-sm); color: var(--tinta-2); }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(28px, 5vw, 56px); }
.seccion__cab { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 22px; }
.seccion__cab h2 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-xl); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.seccion__cab p { margin: 6px 0 0; color: var(--tinta-2); max-width: 60ch; font-size: var(--t-sm); }
.numeral { font-family: var(--f-display); font-style: italic; color: var(--oro-texto); margin-right: 10px; }

/* Resumen comparativo (tabla editorial clicable) */
.resumen { width: 100%; border-collapse: collapse; background: var(--hoja); box-shadow: var(--sombra); border-radius: var(--r-md); overflow: hidden; }
.resumen th { text-align: left; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--tinta-3); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--linea); }
.resumen td { padding: 14px 16px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.resumen tr:last-child td { border-bottom: 0; }
.resumen tbody tr { cursor: pointer; transition: background-color 0.2s var(--ease); }
.resumen tbody tr:hover, .resumen tbody tr:focus-visible { background: var(--vino-50); }
.resumen__nombre { font-weight: 600; }
.resumen__tipo { display: block; font-size: var(--t-xs); color: var(--tinta-3); }
.resumen__num { text-align: right; white-space: nowrap; }
.resumen__barra { width: 34%; min-width: 140px; }
.resumen__ir { color: var(--vino); font-weight: 700; font-size: var(--t-sm); white-space: nowrap; text-align: right; }

/* ---------- Detalle ---------- */
.detalle { background: var(--hoja); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.pestanas {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 250, 0.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linea);
}
.pestanas__lista { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pestanas__lista::-webkit-scrollbar { display: none; }
.pestana {
  flex: 0 0 auto; min-height: 52px; padding: 0 16px; background: none; border: 0; border-bottom: 3px solid transparent;
  font-weight: 600; font-size: var(--t-sm); color: var(--tinta-2); cursor: pointer; white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pestana:hover { color: var(--vino); }
.pestana[aria-selected="true"] { color: var(--vino); border-bottom-color: var(--vino); }

.filtros { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; padding: 20px 0 8px; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 200px; flex: 1 1 200px; max-width: 300px; }
.campo label, .etiqueta { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-3); }
.campo select {
  min-height: 44px; padding: 8px 36px 8px 12px; border: 1px solid var(--linea-2); border-radius: var(--r-sm); background: #fff;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236a1d36' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.campo select:hover { border-color: var(--vino-600); }
.filtros__acciones { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.estado-filtro { font-size: var(--t-sm); color: var(--tinta-2); padding: 4px 0 18px; min-height: 1.5em; }
.estado-filtro b { color: var(--tinta); }

.preguntas-sel { border: 1px solid var(--linea); border-radius: var(--r-md); margin-bottom: 24px; background: var(--papel); }
.preguntas-sel summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: var(--t-sm); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.preguntas-sel summary::-webkit-details-marker { display: none; }
.preguntas-sel summary::after { content: "Mostrar"; color: var(--vino); font-weight: 700; }
.preguntas-sel[open] summary::after { content: "Ocultar"; }
.preguntas-sel__cuerpo { padding: 0 16px 16px; }
.preguntas-sel__acciones { display: flex; gap: 16px; margin-bottom: 10px; }
.enlace { background: none; border: 0; padding: 6px 0; color: var(--vino); font-weight: 700; font-size: var(--t-sm); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.preguntas-sel__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); padding: 6px 0; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--vino); flex: none; }

/* Indicadores */
.indicadores { display: flex; flex-wrap: wrap; border-top: 2px solid var(--tinta); margin-bottom: 36px; }
.indicadores .ind { flex: 1 1 150px; }
.indicadores .ind--principal { flex: 1.6 1 220px; }
.ind { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--linea); }
.ind + .ind { padding-left: 20px; border-left: 1px solid var(--linea); }
.ind__rotulo { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--tinta-3); }
.ind__valor { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.1; margin-top: 6px; color: var(--tinta); }
.ind--principal .ind__valor { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); color: var(--vino); }
.ind__nota { font-size: var(--t-sm); color: var(--tinta-2); margin-top: 4px; }
.delta { font-weight: 700; }
.delta--arriba { color: var(--verde); }
.delta--abajo { color: var(--alerta); }

/* Rejilla de gráficas */
.rejilla { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.bloque { min-width: 0; }
.bloque + .bloque { margin-top: 0; }
.bloque__titulo { font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); margin: 0 0 4px; line-height: 1.2; }
.bloque__sub { margin: 0 0 16px; font-size: var(--t-sm); color: var(--tinta-2); }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-xs); color: var(--tinta-2); margin-bottom: 12px; }
.leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; }
.leyenda i.marca { width: 2px; height: 14px; border-radius: 0; background: var(--tinta); }

/* Barras horizontales */
.barras { display: flex; flex-direction: column; gap: 10px; }
.barra { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 4px 12px; align-items: center; outline: none; border-radius: var(--r-sm); padding: 2px 0; }
.barra__texto { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--tinta-2); line-height: 1.35; display: flex; gap: 8px; }
.barra__texto b { color: var(--tinta); font-weight: 700; flex: none; }
.barra__pista { position: relative; height: 12px; background: var(--vino-50); border-radius: 0 4px 4px 0; }
.barra__relleno {
  position: absolute; inset: 0 auto 0 0; background: var(--vino); border-radius: 0 4px 4px 0;
  transform-origin: left; animation: crecer 0.7s var(--ease) both;
}
.barra__marca { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--tinta); }
.barra__valor { text-align: right; font-weight: 700; font-size: var(--t-sm); white-space: nowrap; }
.ranking__nota { font-size: var(--t-xs); color: var(--tinta-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin: 14px 0 2px; padding-top: 12px; border-top: 1px dashed var(--linea-2); }
.barra--tenue { opacity: 0.6; }
.barra:hover .barra__relleno, .barra:focus-visible .barra__relleno { background: var(--vino-800); }
.barra--baja .barra__relleno { background: var(--oro); }
.barra--baja:hover .barra__relleno { background: var(--oro-texto); }
.barras--compacto .barra__texto { font-size: var(--t-xs); }
.barras--compacto .barra__pista { height: 10px; }

.ranking { max-height: 560px; overflow-y: auto; padding-right: 8px; }
.ranking .barra__texto span { color: var(--tinta-3); }

/* Línea de tiempo (columnas) */
.tiempo { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 12px; border-bottom: 1px solid var(--linea-2); }
.tiempo__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; cursor: default; outline: none; }
.tiempo__barra { width: min(100%, 44px); background: var(--azul); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: subir 0.7s var(--ease) both; }
.tiempo__col:hover .tiempo__barra, .tiempo__col:focus-visible .tiempo__barra { background: var(--vino); }
.tiempo__n { font-size: var(--t-xs); font-weight: 700; margin-bottom: 4px; color: var(--tinta-2); }
.tiempo__ejes { display: flex; gap: 6px; }
.tiempo__ejes span { flex: 1 1 0; min-width: 0; text-align: center; font-size: var(--t-xs); color: var(--tinta-3); padding-top: 6px; text-transform: capitalize; }

/* Pregunta por pregunta */
.analisis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.preg { border: 1px solid var(--linea); border-radius: var(--r-md); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.preg__cab { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.preg__num { font-family: var(--f-display); font-style: italic; color: var(--oro-texto); font-size: var(--t-md); }
.preg__pct { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: var(--vino); }
.preg__pct small { font-family: var(--f-texto); font-size: var(--t-xs); color: var(--tinta-3); display: block; text-align: right; margin-top: 2px; }
.preg__texto { margin: 0; font-weight: 600; line-height: 1.4; }
.etiqueta-cat { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--azul-100); color: var(--azul); }
.opciones { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.opcion { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 3px 10px; font-size: var(--t-sm); }
.opcion__t { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-start; color: var(--tinta-2); line-height: 1.35; }
.opcion__pista { height: 8px; background: var(--papel); border-radius: 0 3px 3px 0; position: relative; align-self: center; }
.opcion__rell { position: absolute; inset: 0 auto 0 0; border-radius: 0 3px 3px 0; background: #b9b2aa; }
.opcion__v { text-align: right; font-weight: 600; font-size: var(--t-xs); }
.opcion--ok .opcion__t { color: var(--verde); font-weight: 700; }
.opcion--ok .opcion__rell { background: var(--verde); }
.icono-ok { flex: none; margin-top: 1px; }
.escala { display: flex; height: 22px; gap: 2px; border-radius: 4px; overflow: hidden; }
.escala span { display: block; height: 100%; transform-origin: left; animation: crecer 0.7s var(--ease) both; }

/* Comentarios */
.comentarios-cab { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.segmentado { display: inline-flex; border: 1px solid var(--linea-2); border-radius: var(--r-sm); overflow: hidden; }
.segmentado button { min-height: 40px; padding: 0 14px; background: #fff; border: 0; font-size: var(--t-sm); font-weight: 600; cursor: pointer; color: var(--tinta-2); }
.segmentado button + button { border-left: 1px solid var(--linea-2); }
.segmentado button[aria-pressed="true"] { background: var(--vino); color: #fff; }
.comentarios { columns: 2 260px; column-gap: 16px; }
.comentario { break-inside: avoid; margin: 0 0 16px; padding: 16px; background: #fff; border: 1px solid var(--linea); border-radius: var(--r-md); }
.comentario p { margin: 0 0 6px; font-size: var(--t-sm); line-height: 1.5; }
.comentario p span { display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tinta-3); font-weight: 700; }
.comentario footer { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 10px; font-size: var(--t-xs); color: var(--tinta-3); }
.sello { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.sello--pos { background: var(--verde-100); color: var(--verde); }
.sello--sug { background: var(--oro-100); color: var(--oro-texto); }
.sello--neg { background: var(--alerta-100); color: var(--alerta); }
.comentario .campo { padding: 10px 12px; border-radius: var(--r-sm); margin: 0 0 8px; }
.comentario .campo span { margin-bottom: 4px; }
.campo--bueno { background: var(--verde-100); color: #0b3f30; }
.campo--bueno span { color: var(--verde) !important; }
.campo--malo { background: var(--alerta-100); color: #4d1a10; }
.campo--malo span { color: var(--alerta) !important; }
.mas { display: flex; justify-content: center; margin-top: 8px; }
.vacio { padding: 28px; text-align: center; color: var(--tinta-2); border: 1px dashed var(--linea-2); border-radius: var(--r-md); }

/* Voz de los participantes */
.hallazgos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--tinta); margin-bottom: 40px; }
.hallazgo { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--linea); }
.hallazgo + .hallazgo { padding-left: 20px; border-left: 1px solid var(--linea); }
.hallazgo__num { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); line-height: 1; color: var(--vino); }
.hallazgo__eti { display: block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--oro-texto); margin-bottom: 10px; }
.hallazgo p { margin: 10px 0 0; font-size: var(--t-sm); color: var(--tinta-2); line-height: 1.45; }
.hallazgo p b { color: var(--tinta); }
.voz-rejilla { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.barras--temas .barra { cursor: pointer; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-sm); transition: background-color 0.2s var(--ease); }
.barras--temas .barra:hover { background: var(--vino-50); }
.barras--temas .barra[aria-pressed="true"] { background: var(--vino-100); }
.barras--temas .barra[aria-pressed="true"] .barra__texto { color: var(--vino); font-weight: 700; }
.barra--logistica .barra__relleno { background: #a39b92; }
.barra--logistica:hover .barra__relleno { background: #857d74; }
.barra--positivo .barra__relleno { background: var(--verde); }
.voz { margin: 0; padding: 24px 24px 20px; background: var(--vino); color: #fff; border-radius: var(--r-md); position: relative; min-height: 170px; }
.voz::before { content: "“"; position: absolute; top: -18px; left: 16px; font-family: var(--f-display); font-size: 6rem; line-height: 1; color: var(--oro); }
.voz blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.35; font-style: italic; }
.voz figcaption { margin-top: 14px; font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; color: #f0d9a8; font-weight: 700; }
.fichas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ficha { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--azul-100); color: var(--azul); font-size: var(--t-sm); font-weight: 600; }
.ficha b { font-variant-numeric: tabular-nums; background: var(--azul); color: #fff; border-radius: 999px; padding: 0 8px; font-size: var(--t-xs); line-height: 1.6; }
.temas-com { color: var(--vino); font-weight: 600; }

/* Nota metodológica y pie */
.metodo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 56px); }
.metodo h2 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-xl); margin: 0; line-height: 1.1; }
.metodo ol { margin: 0; padding-left: 1.2em; color: var(--tinta-2); font-size: var(--t-sm); }
.metodo li { margin-bottom: 10px; }
.metodo li::marker { font-family: var(--f-display); color: var(--oro-texto); font-style: italic; }
.pie { background: var(--tinta); color: #c9cdd6; font-size: var(--t-xs); padding: 28px 0; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.pie strong { color: #fff; }

/* Tooltip */
.tip {
  position: fixed; z-index: 90; pointer-events: none; max-width: 320px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--tinta); color: #fff; font-size: var(--t-xs); line-height: 1.45; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
}
.tip.visible { opacity: 1; transform: none; }
.tip b { color: #f0d9a8; }

@keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes crecer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes subir { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.aparece { animation: entrar 0.6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .hallazgos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hallazgo:nth-child(3) { border-left: 0; padding-left: 0; }
  .voz-rejilla { grid-template-columns: minmax(0, 1fr); }
  .rejilla, .metodo { grid-template-columns: minmax(0, 1fr); }
  .indicadores .ind--principal { flex-basis: 100%; }
  .indicadores .ind:nth-child(2) { border-left: 0; padding-left: 0; }
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cifra:nth-child(3) { border-left: 0; padding-left: 0; }
  .cifra:nth-child(n + 3) { border-top: 1px solid var(--linea); }
}
@media (max-width: 640px) {
  .hallazgos { grid-template-columns: minmax(0, 1fr); }
  .hallazgo + .hallazgo { border-left: 0; padding-left: 0; }
  .cabecera__centro { display: none; }
  .cabecera__logo-min { height: 42px; }
  .cabecera__logo-oiss { height: 30px; }
  .resumen__barra, .resumen thead th:nth-child(3) { display: none; }
  .resumen__ir span { display: none; }
  .campo { max-width: none; }
  .filtros__acciones { margin-left: 0; width: 100%; }
  .filtros__acciones .boton { flex: 1; }
  .tiempo__ejes span { font-size: 0.625rem; }
}
@media print {
  .acceso, .pestanas, .filtros, .filtros__acciones, .preguntas-sel, .mas, .segmentado { display: none !important; }
  body { background: #fff; }
  .seccion { break-inside: avoid; }
}
