/* Etapa 12 · Encargo C · NOM-035 (m-rh:nom), Buzón (m-rh:buz), modo de aplicación en tablet y página pública /buzon.
   Hoja aparte para no chocar con los otros encargos que agregan a erp.css al mismo tiempo; la sesión principal puede
   pasarla al final de erp.css al juntar. Colores de nivel del prototipo (nom035.js NCOL), con su tema oscuro. */
:root {
  --n35-n0-f: #E8F6EE; --n35-n0-t: #1B7A44;
  --n35-n1-f: #EAF4E4; --n35-n1-t: #3D7A1B;
  --n35-n2-f: #FFF4E0; --n35-n2-t: #8A4B00;
  --n35-n3-f: #FDE8DD; --n35-n3-t: #B54708;
  --n35-n4-f: #FDECEC; --n35-n4-t: #C91B1B;
  --n35-azul-f: #E9F0FB; --n35-azul-t: #1F4E99;
  --n35-r0: #1B7A44; --n35-r1: #8A4B00; --n35-r2: #B54708; --n35-r3: #C91B1B;
}
html[data-tema="oscuro"] {
  --n35-n0-f: #123322; --n35-n0-t: #6EE7A0;
  --n35-n1-f: #1A2E12; --n35-n1-t: #A3E07A;
  --n35-n2-f: #3A2A0D; --n35-n2-t: #FBBF6B;
  --n35-n3-f: #3D2312; --n35-n3-t: #FDBA8C;
  --n35-n4-f: #3D1515; --n35-n4-t: #FCA5A5;
  --n35-azul-f: #172554; --n35-azul-t: #93C5FD;
  --n35-r0: #6EE7A0; --n35-r1: #FBBF6B; --n35-r2: #FDBA8C; --n35-r3: #FCA5A5;
}
.n35 .chip.n35-n0, .n35-n0 { background: var(--n35-n0-f); color: var(--n35-n0-t); }
.n35 .chip.n35-n1, .n35-n1 { background: var(--n35-n1-f); color: var(--n35-n1-t); }
.n35 .chip.n35-n2, .n35-n2 { background: var(--n35-n2-f); color: var(--n35-n2-t); }
.n35 .chip.n35-n3, .n35-n3 { background: var(--n35-n3-f); color: var(--n35-n3-t); }
.n35 .chip.n35-n4, .n35-n4 { background: var(--n35-n4-f); color: var(--n35-n4-t); }
.chip.n35-azul { background: var(--n35-azul-f); color: var(--n35-azul-t); }
.n35-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.n35-cab .nombre { font-size: 16px; font-weight: 700; color: var(--texto-fuerte); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.n35-cab .desde { font-size: 12px; font-weight: 500; color: var(--texto-medio); }
.n35-cab .acciones { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.n35-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
.n35-kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.n35-kpis.k5b { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.n35-kpis .kpi { min-width: 0; }
.n35-kpis .val small { font-size: 13px; color: var(--texto-medio); font-weight: 500; }
.n35-kpis .val.rojo { color: var(--rojo); }
.n35-kpis .val.verde, .n35-kpis .nota.verde { color: var(--n35-n0-t); }
.n35-kpis .val .chip { font-size: 14px; vertical-align: middle; }
@media (max-width: 1000px) { .n35-kpis, .n35-kpis.k5b { grid-template-columns: repeat(3, minmax(0, 1fr)); } .n35-kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .n35-kpis, .n35-kpis.k4, .n35-kpis.k5b { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.n35-barra-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.n35-barra-pie .texto { font-size: 13px; color: var(--texto-medio); flex: 1 1 320px; }
.n35-barra-pie .filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.n35-barra-pie .filtros .control { width: auto; min-width: 150px; height: 34px; }
.n35 .tabla td { vertical-align: top; }
.n35-acc { white-space: nowrap; }
.n35-acc .btn { margin: 0 0 4px; }
.n35-nota { font-size: 12px; color: var(--texto-medio); margin-bottom: 12px; line-height: 1.5; }
.n35-h { font-size: 15px; font-weight: 700; margin: 14px 0 8px; color: var(--texto-fuerte); }
.n35-h span { font-size: 12px; font-weight: 500; color: var(--texto-medio); }
.n35-apilada { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--superficie-3); min-width: 140px; }
.n35-apilada div { height: 100%; }
.n35-apilada .s0 { background: var(--n35-n0-t); } .n35-apilada .s1 { background: var(--n35-n1-t); }
.n35-apilada .s2 { background: var(--n35-n2-t); } .n35-apilada .s3 { background: var(--n35-n3-t); }
.n35-apilada .s4 { background: var(--n35-n4-t); }
.n35-leyenda { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; align-items: center; }
.n35-riesgo { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.n35-riesgo .pista { flex: 1; height: 10px; background: var(--superficie-3); border-radius: 99px; overflow: hidden; }
.n35-riesgo .pista div { height: 100%; }
.n35-r0 { --c: var(--n35-r0); } .n35-r1 { --c: var(--n35-r1); } .n35-r2 { --c: var(--n35-r2); } .n35-r3 { --c: var(--n35-r3); }
.n35-riesgo .pista div { background: var(--c); }
.n35-riesgo b { color: var(--c); min-width: 36px; text-align: right; }
.n35-mapa th.dom { white-space: normal; min-width: 90px; font-size: 10px; }
.n35-mapa td.cel { font-size: 11px; font-weight: 700; text-align: center; }
.n35-avance { width: 90px; height: 8px; background: var(--superficie-3); border-radius: 99px; overflow: hidden; }
.n35-avance div { height: 100%; background: var(--rojo); }
.n35-cierre .linea { font-size: 13px; padding: 3px 0; }
.n35-pol { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .n35-pol { grid-template-columns: 1fr; } }
.n35-pol img.politica { width: 100%; border: 1px solid var(--borde); border-radius: 10px; margin-bottom: 8px; cursor: zoom-in; display: block; }
.n35-pol textarea { width: 100%; min-height: 200px; padding: 10px; font-size: 13px; line-height: 1.5; border: 1px solid var(--borde-fuerte); border-radius: 10px; }
.n35-difs .item { padding: 6px 0; border-top: 1px solid var(--borde-fila); font-size: 12px; }
.n35-candado { padding: 16px; }
.n35-candado .texto { font-size: 13px; color: var(--texto); margin-bottom: 4px; line-height: 1.6; }
.n35-acuses { max-height: 56vh; overflow: auto; border: 1px solid var(--borde); border-radius: 12px; }
.n35-acuses label { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--borde-fila); font-size: 13px; }
.n35-acuses label b { min-width: 40px; color: var(--texto-medio); }
.n35-base input { width: 64px; height: 30px; padding: 0 6px; }
.n35-hist { margin-top: 12px; font-size: 12px; color: var(--texto-medio); }
.n35-hist b { color: var(--texto-fuerte); }
.n35-texto-largo { white-space: pre-wrap; line-height: 1.5; }
.n35-botones .btn { white-space: normal; text-align: left; height: auto; min-height: 34px; }
/* Buzón (pestaña de RH) */
.bz-barra { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.bz-texto { font-size: 12px; max-width: 340px; }
.bz-v .msg { border: 1px solid var(--borde); border-radius: 12px; padding: 12px; margin: 8px 0 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.bz-v .conv { max-height: 220px; overflow: auto; margin: 6px 0; }
.bz-v .conv div.m { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--borde-fila); white-space: pre-wrap; }
.bz-v .pie { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.bz-cel { display: flex; justify-content: center; }
.bz-cel iframe { width: 380px; max-width: 100%; height: 640px; border: 10px solid #111111; border-radius: 34px; background: #FFFFFF; }
/* Modo de aplicación (tablet): pantalla completa, botones de 52 px, sin desplazamiento a los lados */
body.n35-ap { margin: 0; background: #F7F7F8; color: #111111; font-family: Poppins, Arial, sans-serif; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
.n35-ap * { box-sizing: border-box; }
.n35-ap [hidden] { display: none !important; }
.n35-ap .marco { max-width: 980px; margin: 0 auto; padding: 18px 18px 120px; }
.n35-ap .arriba { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: #5B5B63; }
.n35-ap .arriba b { color: #111111; }
.n35-ap .progreso { height: 8px; background: #E4E4E7; border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.n35-ap .progreso div { height: 100%; background: #C91B1B; width: 0; transition: width .2s; }
.n35-ap .hoja { background: #FFFFFF; border-radius: 18px; padding: 22px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.n35-ap h1 { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; margin: 0 0 12px; }
.n35-ap .intro { font-size: 16px; line-height: 1.7; color: #333333; }
.n35-ap .intro ul { padding-left: 20px; }
.n35-ap .preg { border-top: 1px solid #EFEFF1; padding: 12px 0; }
.n35-ap .preg .q { font-size: 16px; color: #111111; margin-bottom: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.n35-ap .preg .q b { color: #8A8A93; }
.n35-ap .ops { display: flex; gap: 8px; flex-wrap: wrap; }
.n35-ap .ops.sino { max-width: 360px; }
.n35-ap .op { flex: 1 1 96px; min-width: 96px; min-height: 52px; border-radius: 14px; border: 2px solid #D4D4D8; background: #FFFFFF; color: #111111; font-weight: 700; font-size: 15px; cursor: pointer; padding: 8px 10px; touch-action: manipulation; font-family: inherit; }
.n35-ap .op.on { background: #C91B1B; border-color: #C91B1B; color: #FFFFFF; }
.n35-ap .sec-txt { font-size: 15px; color: #5B5B63; margin-bottom: 8px; line-height: 1.5; }
.n35-ap .blq { font-weight: 700; color: #5B5B63; margin: 14px 0 4px; }
.n35-ap .datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.n35-ap .datos label { font-size: 13px; color: #5B5B63; display: block; }
.n35-ap .datos select, .n35-ap .datos input { width: 100%; height: 48px; border: 1px solid #D4D4D8; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 15px; background: #FFFFFF; color: #111111; margin-top: 4px; }
.n35-ap .datos input[disabled] { background: #F7F7F8; }
.n35-ap .pie .b { flex: 0 1 auto; }
.n35-ap .pie { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid #E4E4E7; padding: 12px 18px; display: flex; justify-content: space-between; gap: 10px; }
.n35-ap .b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; touch-action: manipulation; font-family: inherit; text-decoration: none; }
.n35-ap .b.blanco { background: #FFFFFF; color: #111111; border: 1px solid #D4D4D8; }
.n35-ap .b.rojo { background: #C91B1B; color: #FFFFFF; border: none; font-size: 16px; padding: 0 28px; }
.n35-ap .b.apagado { opacity: .45; }
.n35-ap .error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #FDE8E8; color: #A31515; font-size: 14px; font-weight: 600; }
.n35-ap .tost { pointer-events: none; position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: #111111; color: #FFFFFF; padding: 10px 18px; border-radius: 12px; font-size: 14px; z-index: 50; opacity: 0; transition: opacity .3s; max-width: 90vw; text-align: center; }
.n35-ap .tost.ver { opacity: 1; }
.n35-gracias { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.n35-gracias .caja { background: #FFFFFF; border-radius: 20px; padding: 34px; max-width: 560px; width: 100%; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.n35-gracias .ok { font-size: 48px; color: #1B7A44; }
.n35-gracias h1 { font-size: 24px; margin: 6px 0; }
.n35-gracias .sub { font-size: 15px; color: #5B5B63; margin-bottom: 22px; }
.n35-gracias .rh { border-top: 1px solid #EFEFF1; padding-top: 16px; font-size: 13px; color: #5B5B63; }
.n35-gracias form { display: flex; gap: 8px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }
.n35-gracias input { max-width: 220px; width: 100%; height: 48px; font-size: 18px; text-align: center; border: 1px solid #D4D4D8; border-radius: 10px; }
.n35-gracias .err { margin-top: 8px; font-size: 12px; color: #C91B1B; min-height: 16px; }
/* Página pública del buzón (celular, 375 px) */
body.buzon-publico { margin: 0; background: #FFFFFF; color: #111111; font-family: Poppins, Arial, sans-serif; overflow-x: hidden; }
.bz-pub { max-width: 560px; margin: 0 auto; padding: 18px 16px 28px; }
.bz-pub * { box-sizing: border-box; }
.bz-pub .logo { margin-bottom: 12px; }
.bz-pub .logo img { height: 30px; }
.bz-pub h1 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.bz-pub h2 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.bz-pub .bienv { font-size: 13px; color: #5B5B63; margin-bottom: 12px; line-height: 1.5; }
.bz-pub label { font-size: 12px; color: #5B5B63; display: block; margin-bottom: 10px; }
.bz-pub select, .bz-pub input, .bz-pub textarea { width: 100%; height: 44px; border: 1px solid #D4D4D8; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 15px; background: #FFFFFF; color: #111111; margin-top: 4px; }
.bz-pub textarea { height: 150px; padding: 10px; line-height: 1.4; resize: vertical; }
.bz-pub input.mayus { text-transform: uppercase; }
.bz-pub .amarillo { font-size: 12px; color: #8A4B00; background: #FFF9EF; border: 1px solid #F3C27A; border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; line-height: 1.5; }
.bz-pub .err { font-size: 12px; color: #C91B1B; margin-bottom: 8px; min-height: 0; }
.bz-pub .b { display: flex; width: 100%; align-items: center; justify-content: center; height: 44px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; font-family: inherit; touch-action: manipulation; }
.bz-pub .b.rojo { background: #C91B1B; color: #FFFFFF; border: none; height: 48px; font-size: 16px; }
.bz-pub .b.blanco { background: #FFFFFF; color: #111111; border: 1px solid #D4D4D8; margin-top: 10px; }
.bz-pub .b.liga { background: none; border: none; color: #1F4E99; margin-top: 12px; font-size: 13px; }
.bz-pub .ok { font-size: 44px; text-align: center; color: #1B7A44; }
.bz-pub .centro { text-align: center; }
.bz-pub .datos { border: 2px dashed #D4D4D8; border-radius: 14px; padding: 14px; text-align: center; }
.bz-pub .datos .et { font-size: 12px; color: #5B5B63; }
.bz-pub .datos .folio { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.bz-pub .datos .clave { font-size: 22px; font-weight: 800; letter-spacing: 3px; }
.bz-pub .chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; }
.bz-pub .chip.verde { background: #E8F6EE; color: #1B7A44; }
.bz-pub .chip.azul { background: #E9F0FB; color: #1F4E99; }
.bz-pub .hilo { max-height: 46vh; overflow: auto; margin: 6px 0; }
.bz-pub .burbuja { display: flex; margin-bottom: 8px; }
.bz-pub .burbuja.tuyo { justify-content: flex-end; }
.bz-pub .burbuja div { max-width: 85%; background: #F1F1F3; color: #111111; border-radius: 14px; padding: 8px 12px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.bz-pub .burbuja.tuyo div { background: #111111; color: #FFFFFF; }
.bz-pub .burbuja small { display: block; font-size: 11px; opacity: .7; margin-bottom: 2px; }
.bz-pub .pub { border: 1px solid #E4E4E7; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.bz-pub .pub .et { font-size: 12px; color: #5B5B63; }
.bz-pub .pub p { font-size: 14px; margin: 4px 0; overflow-wrap: anywhere; }
.bz-pub .pub p.hicimos { color: #1B7A44; }
/* Carteles e impresión de la política */
@media print { .no-imprimir { display: none !important; } }
