/* Piezas de la guía «Cómo medir el contentEffort». Se cargan solo en esa
   página. Mismo lenguaje que el resto del sitio: radio 8, banda de cabecera
   #f7f8fc, líneas #e3e7f2 y acento azul. */

/* --- Prueba de replicabilidad ------------------------------------------ */
.rp { margin: 26px 0 28px; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; background: #fff; }
.rp-cab { padding: 18px 22px; background: #f7f8fc; border-bottom: 1px solid #e3e7f2; }
.rp-cab h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--tinta); }
.rp-cab span { display: block; font-size: 13px; line-height: 1.6; color: var(--suave); max-width: 62em; }
.rp-intro { margin: 0; padding: 14px 22px 2px; font-size: 12.5px; color: var(--suave); }
.rp-lista { padding: 10px 22px 16px; }
.rp-fila { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 -12px;
  border-radius: 5px; cursor: pointer; transition: background .15s; }
.rp-fila:hover { background: #f7f8fc; }
.rp-fila + .rp-fila { margin-top: 2px; }
.rp-fila { align-items: flex-start; }
.rp-fila input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--acento); cursor: pointer; }
.rp-texto { font-size: 13.5px; line-height: 1.6; color: #4f534b; display: block; min-height: 1.6em; }
.rp-texto b { color: var(--tinta); font-weight: 650; }
.rp-fila.marcada { background: #f2f5ff; }
.rp-fila.marcada .rp-texto { color: var(--tinta); }
.rp-pie { padding: 14px 22px 18px; border-top: 1px solid #e3e7f2; background: #fcfbf8; }
.rp-medidor { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rp-cuenta { font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  color: #4f534b; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 8.5em; }
.rp-barra { flex: 1; height: 5px; border-radius: 3px; background: #e6e4dc; overflow: hidden; }
.rp-barra i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--acento); transition: width .25s; }
.rp-veredicto { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--suave); min-height: 3em; }
.rp-veredicto.rp-bajo { color: #8f2626; }
.rp-veredicto.rp-medio { color: #7a5a12; }
.rp-veredicto.rp-alto { color: #1f6b3a; }
@media (max-width: 560px) {
  .rp-cab { padding: 15px 16px; }
  .rp-cab h3 { font-size: 17px; }
  .rp-lista { padding: 8px 16px 14px; }
  .rp-fila { padding: 9px 10px; margin: 0 -10px; }
  .rp-pie { padding: 13px 16px 16px; }
  .rp-intro { padding: 12px 16px 0; }
}

/* --- Tabla de las cuatro señales --------------------------------------- */
.senales-tabla { margin: 26px 0 28px; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; background: #fff; }
.st-cab { padding: 18px 22px; background: #f7f8fc; border-bottom: 1px solid #e3e7f2; display: flex;
  align-items: baseline; gap: 12px; flex-wrap: wrap; }
.st-cab h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--tinta); }
.st-cab span { font-size: 13px; color: var(--suave); }
table.st { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0; }
table.st th, table.st td { padding: 13px 18px; text-align: left; vertical-align: top;
  border-bottom: 1px solid #efede7; }
table.st thead th { background: #fbfaf7; font-size: 10.5px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: var(--suave); border-bottom: 1px solid #e3e7f2; }
table.st tbody th { width: 26%; font-size: 13px; font-weight: 650; color: var(--tinta); line-height: 1.45; }
table.st tbody td { color: #4f534b; line-height: 1.6; }
table.st tbody td.no { color: #8f2626; }
table.st tbody tr:last-child th, table.st tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) {
  table.st thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.st tbody th, table.st tbody td { display: block; width: auto; border-bottom: 0; padding: 4px 16px; }
  table.st tbody th { padding-top: 14px; font-size: 13.5px; }
  table.st tbody td:last-child { padding-bottom: 14px; border-bottom: 1px solid #efede7; }
  table.st tbody td::before { display: block; font-size: 10px; font-weight: 750; letter-spacing: .06em;
    text-transform: uppercase; color: #9a978d; margin-bottom: 2px; }
  table.st tbody td:nth-of-type(1)::before { content: "Cómo se demuestra"; }
  table.st tbody td:nth-of-type(2)::before { content: "Qué no vale"; }
  .st-cab { padding: 15px 16px; }
  .st-cab h3 { font-size: 17px; }
}

/* --- Selector de tipo de página ---------------------------------------- */
.tipos { margin: 26px 0 28px; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; background: #fff; }
.tp-cab { padding: 18px 22px; background: #f7f8fc; border-bottom: 1px solid #e3e7f2; }
.tp-cab h3 { margin: 0 0 5px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--tinta); }
.tp-cab span { display: block; font-size: 13px; color: var(--suave); }
.tp-tabs { display: flex; border-bottom: 1px solid #e3e7f2; background: #fff; flex-wrap: wrap; }
.tp-tabs button { flex: 1 1 auto; appearance: none; border: 0; background: transparent; font: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--suave); padding: 13px 14px; cursor: pointer;
  border-bottom: 2px solid transparent; transition: color .15s, background .15s, border-color .15s; }
.tp-tabs button:hover { background: #f7f8fc; color: var(--tinta); }
.tp-tabs button[aria-pressed="true"] { color: var(--acento); border-bottom-color: var(--acento); background: #f7f8fc; }
.tp-tabs button:focus-visible { outline: 2px solid var(--acento); outline-offset: -3px; }
.tp-panel { padding: 18px 22px 20px; }
.tp-panel h4 { margin: 0 0 4px; font-size: 15px; font-weight: 650; color: var(--tinta); letter-spacing: -.01em; }
.tp-panel > p { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--suave); }
.tp-lineas { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #efede7; border-radius: 5px; overflow: hidden; }
.tp-linea { padding: 13px 16px; }
.tp-linea + .tp-linea { border-left: 1px solid #efede7; }
.tp-linea h5 { margin: 0 0 7px; font-size: 10.5px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; }
.tp-linea.si h5 { color: #1f6b3a; }
.tp-linea.no h5 { color: #8f2626; }
.tp-linea ul { margin: 0; padding-left: 16px; }
.tp-linea li { font-size: 12.5px; line-height: 1.55; color: #4f534b; margin-bottom: 5px; }
.tp-linea li:last-child { margin-bottom: 0; }
.tp-panel[hidden] { display: none; }
@media (max-width: 620px) {
  .tp-lineas { grid-template-columns: 1fr; }
  .tp-linea + .tp-linea { border-left: 0; border-top: 1px solid #efede7; }
  /* En movil, una sola fila con desplazamiento: es el patron que el lector espera
     y deja claro que son pestanas y no una rejilla. */
  .tp-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; position: relative;
    -webkit-overflow-scrolling: touch; }
  /* Pista de que hay mas pestanas a la derecha. */

  .tp-tabs button { flex: 0 0 auto; font-size: 12px; padding: 11px 14px; white-space: nowrap;
    border-bottom-width: 2px; }
  .tp-tabs button[aria-pressed="true"] { background: #fff; }
  .tp-cab, .tp-panel { padding: 15px 16px 17px; }
}

/* --- Matriz de decisión ------------------------------------------------- */
.matriz { margin: 26px 0 28px; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; background: #fff; }
.mz-cab { padding: 18px 22px; background: #f7f8fc; border-bottom: 1px solid #e3e7f2; display: flex;
  align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mz-cab h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--tinta); }
.mz-cab span { font-size: 13px; color: var(--suave); }
.mz-cuerpo { padding: 20px 22px 22px; }
/* Los dos ejes: uno arriba en horizontal y otro a la izquierda en vertical. */
.mz-plano { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.mz-eje-x { display: flex; align-items: center; gap: 9px; margin: 0 0 8px 42px;
  font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: #4f534b; }
.mz-eje-x .mz-eje-et { color: var(--suave); }
.mz-eje-linea { flex: 1; height: 1px; background: var(--linea); position: relative; }
.mz-eje-linea::after { content: ""; position: absolute; right: 0; top: -3px; border: 4px solid transparent;
  border-left-color: var(--linea); }
.mz-eje-y { display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 6px 0; font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: #4f534b; }
.mz-eje-y .mz-eje-et { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--suave);
  letter-spacing: .08em; font-size: 9.5px; }
.mz-eje-y b, .mz-eje-x b { color: #4f534b; font-weight: 750; }
.mz-antes { margin: 0 0 16px; padding: 11px 14px; background: #f2f5ff; border-left: 3px solid var(--acento);
  border-radius: 0 5px 5px 0; font-size: 12.5px; line-height: 1.6; color: #4f534b; }
.mz-antes b { color: var(--tinta); font-weight: 650; }
.mz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linea);
  border: 1px solid var(--linea); border-radius: 5px; overflow: hidden; }
@media (max-width: 620px) {
  .mz-plano { grid-template-columns: 1fr; }
  .mz-eje-y { display: none; }
  .mz-eje-x { margin-left: 0; }
  /* En una columna, cada bloque ya dice su condicion en el titulo; se marca el
     corte entre las dos filas para que se lea el salto. */
  .mz-grid { gap: 1px; }
  .mz-celda:nth-child(2) { border-bottom: 3px solid #d9d6cc; }
}
.mz-celda { background: #fff; padding: 16px 18px; }
.mz-celda h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.mz-celda p { margin: 0 0 9px; font-size: 12.5px; line-height: 1.6; color: #4f534b; }
.mz-celda ul { margin: 0; padding-left: 15px; }
.mz-celda li { font-size: 12.5px; line-height: 1.55; color: #4f534b; margin-bottom: 4px; }
.mz-accion { display: inline-block; font-size: 10px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 3px; padding: 3px 8px; margin-bottom: 9px; }
.mz-borrar { background: #fdeaea; }
.mz-borrar .mz-accion { background: #b8443f; color: #fff; }
.mz-fusionar { background: #fdf6e7; }
.mz-fusionar .mz-accion { background: #8a6208; color: #fff; }
.mz-reescribir { background: #f0f4fd; }
.mz-reescribir .mz-accion { background: var(--acento); color: #fff; }
.mz-mantener { background: #eef7f0; }
.mz-mantener .mz-accion { background: #2c7d4b; color: #fff; }
@media (max-width: 620px) {
  .mz-grid { grid-template-columns: 1fr; }
  .mz-cab, .mz-cuerpo { padding: 15px 16px 17px; }
}

/* --- Tabla de los siete errores ---------------------------------------- */
.errores-tabla { margin: 26px 0 28px; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; background: #fff; }
.et-cab { padding: 18px 22px; background: #f7f8fc; border-bottom: 1px solid #e3e7f2; display: flex;
  align-items: baseline; gap: 12px; flex-wrap: wrap; }
.et-cab h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--tinta); }
.et-cab span { font-size: 13px; color: var(--suave); }
table.et { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0; }
table.et th, table.et td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid #efede7; }
table.et thead th { background: #fbfaf7; font-size: 10.5px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: var(--suave); border-bottom: 1px solid #e3e7f2; }
table.et tbody th { width: 24%; font-size: 13px; font-weight: 650; color: #8f2626; line-height: 1.45; }
table.et tbody td { color: #4f534b; line-height: 1.6; }
table.et tbody td:last-child { color: #1f6b3a; }
table.et tbody tr:last-child th, table.et tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) {
  table.et thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.et tbody th, table.et tbody td { display: block; width: auto; border-bottom: 0; padding: 3px 16px; }
  table.et tbody th { padding-top: 14px; }
  table.et tbody td:last-child { padding-bottom: 14px; border-bottom: 1px solid #efede7; }
  table.et tbody td::before { display: block; font-size: 10px; font-weight: 750; letter-spacing: .06em;
    text-transform: uppercase; color: #9a978d; margin-bottom: 2px; }
  table.et tbody td:nth-of-type(1)::before { content: "Por qué te lleva a medir mal"; }
  table.et tbody td:nth-of-type(2)::before { content: "Qué hacer en su lugar"; }
  .et-cab { padding: 15px 16px; }
}

/* --- Extracto de informe ------------------------------------------------ */
.extracto { margin: 26px 0 28px; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 12px rgba(32, 45, 104, .04); }
.ex-cab { padding: 16px 20px; background: #f7f8fc; border-bottom: 1px solid #e3e7f2;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ex-url { font-size: 11.5px; color: var(--suave); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ex-nota { display: flex; align-items: center; gap: 11px; flex: none; }
.ex-nota strong { font-size: 22px; font-weight: 600; letter-spacing: -.04em; color: var(--acento); font-variant-numeric: tabular-nums; }
.ex-nota small { font-size: 10px; color: var(--suave); line-height: 1.3; max-width: 7em; }
.ex-cuerpo { padding: 18px 20px 20px; }
.ex-bloque + .ex-bloque { margin-top: 16px; padding-top: 16px; border-top: 1px solid #efede7; }
.ex-bloque h4 { margin: 0 0 9px; font-size: 10.5px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: var(--suave); }
.ex-lista { margin: 0; padding: 0; list-style: none; }
.ex-lista li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.6; color: #4f534b; margin-bottom: 7px; }
.ex-lista li:last-child { margin-bottom: 0; }
.ex-lista li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.ex-lista.si li::before { content: "✓"; color: #2c7d4b; }
.ex-lista.no li::before { content: "×"; color: #b8443f; }
.ex-lista li b { color: var(--tinta); font-weight: 650; }
.ex-pie { padding: 12px 20px; border-top: 1px solid #e3e7f2; background: #fcfbf8;
  font-size: 11.5px; line-height: 1.6; color: var(--suave); }
.ex-pie a { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .ex-cab, .ex-cuerpo { padding: 14px 16px; }
  .ex-url { white-space: normal; word-break: break-all; }
  .ex-pie { padding: 11px 16px; }
}

/* --- Glosario al pasar -------------------------------------------------- */
.termino { border-bottom: 1px dotted var(--acento); cursor: help; color: inherit;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .15s; }
.termino:hover, .termino.activo { background: #eef1fb; }
.termino:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 2px; }
.glosario-tip { position: fixed; z-index: 90; max-width: 320px; padding: 10px 13px; background: #2c332e;
  color: #f2f1ec; font-size: 12.5px; line-height: 1.55; border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16); pointer-events: none; }
.glosario-tip[hidden] { display: none; }
.glosario-tip::after { content: ""; position: absolute; left: var(--punta, 50%); top: 100%; margin-left: -6px;
  border: 6px solid transparent; border-top-color: #2c332e; }
.glosario-tip.abajo::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #2c332e; }
@media print { .glosario-tip { display: none; } .termino { border-bottom: 0; background: none; } }

/* --- Nota de ejemplo ilustrativo ---------------------------------------- */
.ilustrativo { display: inline-block; font-size: 9.5px; font-weight: 750; letter-spacing: .05em;
  text-transform: uppercase; color: #8d8a80; background: #f2f0ea; border-radius: 2px;
  padding: 2px 6px; vertical-align: 2px; margin-left: 4px; white-space: nowrap; }
@media print { .ilustrativo { border: 1px solid #ccc; background: none; } }

/* --- Impresión: las piezas interactivas se quedan legibles -------------- */
@media print {
  .rp, .tipos, .matriz, .extracto, .senales-tabla, .errores-tabla { break-inside: avoid; }
  .rp-pie, .ex-pie { background: #fff; }
  .tp-tabs { display: none; }
}

/* --- Preguntas frecuentes plegadas -------------------------------------- */
.prosa details.faq { border-bottom: 1px solid var(--linea); }
.prosa details.faq summary { font-size: 15.5px; font-weight: 600; color: var(--tinta);
  padding: 17px 34px 17px 0; }
.prosa details.faq summary::after { font-size: 20px; top: 12px; }
.prosa details.faq .faq-cuerpo { padding: 0 40px 18px 0; }
.prosa details.faq .faq-cuerpo p { font-size: 14.5px; line-height: 1.7; color: #4f534b; margin: 0; }
.prosa details.faq .faq-cuerpo p + p { margin-top: 12px; }
.prosa details.faq:first-of-type { border-top: 1px solid var(--linea); }
@media (max-width: 560px) {
  .prosa details.faq summary { font-size: 15px; padding: 15px 30px 15px 0; }
  .prosa details.faq .faq-cuerpo { padding: 0 20px 16px 0; }
}
@media print { .prosa details.faq { display: block; } .prosa details.faq .faq-cuerpo { display: block; } }

/* --- Registro de cambios ------------------------------------------------- */
.prosa details.cambios { margin-top: 26px; border-top: 1px solid var(--linea); }
.prosa details.cambios summary { font-size: 12.5px; font-weight: 650; color: var(--suave);
  padding: 14px 30px 14px 0; }
.prosa details.cambios summary::after { font-size: 16px; top: 12px; }
.prosa details.cambios .faq-cuerpo { padding: 0 30px 16px 0; }
.prosa details.cambios ul { margin: 0; padding-left: 18px; }
.prosa details.cambios li { font-size: 12.5px; line-height: 1.6; color: #4f534b; margin-bottom: 5px; }
