/* =====================================================================
   REDISEÑO AGRAP CAMPO (10 oct 2026) — la maqueta «Agrap Campo.dc.html»
   ---------------------------------------------------------------------
   Cabecera azul de marca con la hoja amarilla, franja de título (finca,
   fecha, semana y cintas), tarjetas radio 20 con borde #e6e5df, botones
   píldora, la acción principal en amarillo y, en el teléfono, cuatro
   pestañas abajo (Inicio, Almacén, Corte, RDT) con «Más» para el resto.
   En el portátil sigue la barra lateral.

   SOLO FORMA: ningún cálculo, guardado ni toque depende de este archivo.
   Ninguna capa fija queda encima del contenido: la hoja «Más» solo existe
   (display) mientras está abierta. Lo carga solo index.html (la finca);
   oficina.html no lo ve. El azul es #003b5c (decisión del usuario), no el
   #153a5a de la maqueta.
   ===================================================================== */

:root {
  --rd-azul: #003b5c;
  --rd-azul-osc: #0d2840;
  --rd-amarillo: #fdb913;
  --rd-crema: #f9f9f7;
  --rd-borde: #e6e5df;
  --rd-suave: #f6f6f3;
  --rd-suave-2: #f1f0eb;
  --rd-tinta: #0d2840;
  --rd-tinta-2: #33485c;
  --rd-mut: #5d6b78;
  --rd-mut-2: #8a96a1;
  --rd-sombra: 0 1px 2px rgba(13, 40, 64, .04);
  --rd-flota: 0 16px 34px rgba(13, 40, 64, .14);
  --rd-curva: cubic-bezier(.2, .9, .25, 1.3);
  --rd-alto-barra: 72px;
}

/* ---------- Cabecera azul (todos los modos de index.html) ---------- */
.cabecera {
  background: var(--rd-azul); color: var(--rd-crema); border-bottom: 0; min-height: 58px; gap: 10px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  padding-top: calc(8px + var(--seguro-arriba)); padding-bottom: 8px;
}
.cabecera::before { display: none; }
.cabecera-logo { width: 26px; height: 26px; padding: 0; border: 0; object-fit: contain; box-sizing: content-box; }
.cab-marca { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--rd-crema); white-space: nowrap; }
.cab-marca b { color: var(--rd-amarillo); font-weight: 800; }
.cabecera-bodega #bodegaActiva { color: var(--rd-crema); font-weight: 750; }
.cabecera-bodega #bodegaActiva::after { color: rgba(249, 249, 247, .6); }
.cabecera-bodega small { color: rgba(249, 249, 247, .72); }
.cabecera .version { color: rgba(249, 249, 247, .55); }
.btn-atras { background: rgba(249, 249, 247, .12); color: var(--rd-crema); border: 1px solid rgba(249, 249, 247, .22); box-shadow: none; }
.btn-atras:hover { border-color: rgba(249, 249, 247, .5); }
.btn-atras:active { background: rgba(249, 249, 247, .22); }
.indicador { background: rgba(249, 249, 247, .14); color: var(--rd-crema); font-weight: 750; border-radius: 15px; min-height: 30px; }
.indicador.alerta-dias { background: #ff8f84; color: var(--rd-azul-osc); }
body.con-lateral .btn-menu { border-color: rgba(249, 249, 247, .25); background: rgba(249, 249, 247, .1); color: var(--rd-crema); }
.cabecera button:focus-visible { outline: 3px solid rgba(253, 185, 19, .8); outline-offset: 2px; }

/* el envío a la oficina, siempre a la vista */
.cab-nube {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border: 0; border-radius: 15px; flex: none;
  background: rgba(249, 249, 247, .12); color: var(--rd-crema); font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer;
}
.cab-nube .cn-punto { width: 8px; height: 8px; border-radius: 50%; background: #6fd39a; }
.cab-nube.off .cn-punto { background: rgba(249, 249, 247, .45); }
.cab-nube.pend { background: var(--rd-amarillo); color: var(--rd-azul-osc); }
.cab-nube.pend .cn-punto { background: var(--rd-azul-osc); }
.cab-avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center; cursor: pointer;
  background: var(--rd-amarillo); color: var(--rd-azul-osc); font: inherit; font-size: 14px; font-weight: 800;
}
body:not(.con-lateral) .cab-nube, body:not(.con-lateral) .cab-avatar, body:not(.con-lateral) .cab-marca { display: none; }

/* ---------- Franja de título de la sección ---------- */
.cab-titulo { background: var(--rd-azul); color: var(--rd-crema); padding: 4px 18px 18px; }
body:not(.con-lateral) .cab-titulo { display: none; }
.ct-kicker { font-size: 13px; font-weight: 700; color: var(--rd-amarillo); }
.ct-titulo { margin: 2px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--rd-crema); }
.ct-cintas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; font-size: 13px; color: rgba(249, 249, 247, .85); }
.ct-cinta { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px; font-weight: 800; box-shadow: 0 0 0 1px rgba(249, 249, 247, .25); }
.cab-titulo { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }

/* ---------- Teléfono: cabecera de la maqueta y barra de abajo ---------- */
.barra-finca, .hoja-mas { display: none; }
@media (max-width: 899px) {
  /* arriba: hoja, «agrap campo», envío y la inicial; la finca y la sección van en la franja de título */
  body.con-lateral .btn-menu, body.con-lateral #btnCambiarFinca { display: none; }
  body.con-lateral .cabecera-logo { display: block; width: 22px; height: 22px; }
  body.con-lateral .cab-marca { margin-right: auto; }
  body.con-lateral { padding-bottom: calc(var(--rd-alto-barra) + 14px + var(--seguro-abajo)); }

  body.con-lateral .barra-finca:not([hidden]) {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + var(--seguro-abajo)) max(8px, env(safe-area-inset-right));
    background: #fff; border-top: 1px solid var(--rd-borde); box-shadow: 0 -6px 24px rgba(13, 40, 64, .06);
  }
  .bf-tab {
    flex: 1; min-width: 0; height: 58px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; cursor: pointer; color: var(--rd-mut-2); font: inherit; touch-action: manipulation;
  }
  .bf-ic { width: 46px; height: 28px; border-radius: 14px; display: grid; place-items: center; transition: background .2s; }
  .bf-forma { display: block; width: 12px; height: 12px; background: var(--rd-mut-2); transition: background .2s; }
  .bf-forma.f-inicio { border-radius: 2px 12px 2px 12px; }
  .bf-forma.f-almacen { border-radius: 3px; }
  .bf-forma.f-campo { border-radius: 50%; }
  .bf-forma.f-rdt { border-radius: 3px 3px 12px 12px; }
  .bf-forma.f-mas { width: 4px; height: 4px; border-radius: 50%; box-shadow: -6px 0 0 currentColor, 6px 0 0 currentColor; background: currentColor; }
  .bf-forma:not(.f-inicio):not(.f-almacen):not(.f-campo):not(.f-rdt):not(.f-mas) { border-radius: 2px 12px 2px 12px; }
  .bf-txt { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bf-tab.activa { color: var(--rd-azul-osc); }
  .bf-tab.activa .bf-ic { background: var(--rd-amarillo); }
  .bf-tab.activa .bf-forma { background: var(--rd-azul-osc); }
  .bf-tab.activa .bf-txt { font-weight: 800; }
  .bf-tab:focus-visible { outline: 3px solid rgba(253, 185, 19, .8); outline-offset: -3px; border-radius: 12px; }

  /* el aviso sube por encima de la barra */
  body.con-lateral .toast { bottom: calc(var(--rd-alto-barra) + 18px + var(--seguro-abajo)); }
}

/* ---------- «Más»: hoja de vidrio azul con el resto de las secciones ---------- */
body.con-lateral .hoja-mas:not([hidden]) {
  display: flex; flex-direction: column; justify-content: flex-end; position: fixed; inset: 0; z-index: 35;
  background: rgba(13, 40, 64, .25);
  padding: 10px 10px calc(var(--rd-alto-barra) + 24px + var(--seguro-abajo));
}
.hm-panel {
  max-width: 560px; width: 100%; margin: 0 auto; padding: 14px; border-radius: 30px;
  background: rgba(13, 40, 64, .9); border: 1px solid rgba(249, 249, 247, .16); color: var(--rd-crema);
  box-shadow: 0 30px 80px rgba(13, 40, 64, .28); animation: hojaIn .28s cubic-bezier(.2, .9, .25, 1.2) both;
  max-height: calc(100dvh - 140px); overflow-y: auto;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (pointer: fine) { .hm-panel { background: rgba(13, 40, 64, .7); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); } }
}
.hm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-item {
  min-height: 64px; border-radius: 32px; border: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; text-align: left; cursor: pointer;
  background: rgba(249, 249, 247, .12); color: var(--rd-crema); font: inherit; font-size: 13.5px; font-weight: 800; line-height: 1.15;
}
.hm-item:hover { background: rgba(249, 249, 247, .2); }
.hm-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--rd-crema); display: grid; place-items: center; flex: none; }
.hm-ic span { width: 13px; height: 13px; border-radius: 2px 13px 2px 13px; background: var(--rd-azul); }
.hm-item.activa { background: var(--rd-crema); color: var(--rd-azul-osc); }
.hm-item.activa .hm-ic { background: var(--rd-amarillo); }
.hm-item.activa .hm-ic span { background: var(--rd-azul-osc); }
.hm-finca { display: grid; gap: 4px; margin-top: 12px; }
.hm-finca span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(249, 249, 247, .65); padding-left: 6px; }
.hm-finca select { min-height: 48px; border-radius: 24px; padding: 0 16px; border: 1px solid rgba(249, 249, 247, .25); background: rgba(249, 249, 247, .1); color: var(--rd-crema); font: inherit; font-weight: 700; }
.hm-finca option { color: var(--rd-tinta); }
.hm-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(249, 249, 247, .14); }
.hm-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(249, 249, 247, .22);
  background: none; color: var(--rd-crema); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.hm-version { margin-left: auto; font-size: 11px; color: rgba(249, 249, 247, .5); }
/* «Más» abre la hoja de vidrio desde abajo (Agrap Campo.dc.html: hojaIn .28 s) */
@keyframes hojaIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes rdFunde { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hm-panel { animation: rdFunde .2s ease both; } }
@media (min-width: 900px) {
  /* en el portátil la misma hoja sale arriba a la derecha, bajo la inicial */
  body.con-lateral .hoja-mas:not([hidden]) { justify-content: flex-start; align-items: flex-end; padding: 70px 22px 22px; background: rgba(13, 40, 64, .18); }
  body.con-lateral .hm-panel { width: 440px; margin: 0; }
}

/* ---------- Portátil: barra lateral + cabecera azul ---------- */
@media (min-width: 900px) {
  body.con-lateral .cabecera-logo, body.con-lateral .cab-marca { display: none; }
  body.con-lateral #btnCambiarFinca { cursor: default; }
  body.con-lateral .cabecera { padding-left: 28px; padding-right: 22px; }
  body.con-lateral .cab-titulo { padding: 6px 32px 26px; }
  body.con-lateral .ct-titulo { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.035em; }
  body.con-lateral .ct-kicker { font-size: 14px; }
  body.con-lateral .ct-kicker .ctk-finca { display: none; }   /* la finca ya va en la cabecera */
  body.con-lateral #bodegaFinca { display: none; }            /* y la sección, en el título */
  .lateral-finca.ofi-lado { background: var(--rd-azul); }
  .lateral-finca .ofi-item.activa { background: var(--rd-crema); color: var(--rd-azul-osc); font-weight: 750; }
  .lateral-finca .ofi-item.activa .ic { filter: none; }
}

/* ---------- Contenido: el lenguaje de la maqueta ---------- */
body.con-lateral { background: var(--rd-crema); color: var(--rd-tinta); }
@media (max-width: 899px) { body.con-lateral .pantalla { padding-top: 14px; } }

.tarjeta, .inf-card, .wg, .inf-rango { border-radius: 20px; border: 1px solid var(--rd-borde); box-shadow: var(--rd-sombra); }
.tarjeta > h2:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; color: var(--rd-tinta); font-weight: 750; letter-spacing: -.015em; }
.tarjeta > h2:first-child::before { content: ""; width: 11px; height: 11px; border-radius: 2px 11px 2px 11px; background: var(--rd-amarillo); flex: none; }
.inf-card:hover, .wg.tocable:hover { transform: translateY(-3px); box-shadow: var(--rd-flota); border-color: var(--rd-borde); }

/* botones: píldoras; la acción principal en amarillo, como el «Guardar y subir» de la maqueta */
.btn { border-radius: 980px; font-weight: 750; }
.btn.primario { background: var(--rd-amarillo); color: var(--rd-azul-osc); border-color: var(--rd-amarillo); box-shadow: 0 6px 16px rgba(253, 185, 19, .22); }
.btn.primario:hover:not(:disabled) { background: #ffc93a; color: var(--rd-azul-osc); box-shadow: 0 8px 22px rgba(253, 185, 19, .3); }
.btn.primario:active { background: #e9aa0e; transform: scale(.98); }
.btn.secundario { background: #fff; color: var(--rd-azul-osc); border: 1.5px solid var(--rd-azul-osc); box-shadow: none; }
.btn.secundario:hover:not(:disabled) { background: var(--rd-azul-osc); color: var(--rd-crema); border-color: var(--rd-azul-osc); }
.btn.oscuro { background: var(--rd-azul-osc); color: var(--rd-crema); }
.btn.mini { border-radius: 980px; border: 1px solid var(--rd-borde); color: var(--rd-azul-osc); font-weight: 700; }
.btn.mini:hover:not(:disabled) { border-color: var(--rd-azul); color: var(--rd-azul); }
.btn.peligro { background: #b23a2e; }
@media (hover: none) {
  .btn.primario:hover:not(:disabled) { background: var(--rd-amarillo); box-shadow: 0 6px 16px rgba(253, 185, 19, .22); }
  .btn.secundario:hover:not(:disabled) { background: #fff; color: var(--rd-azul-osc); border-color: var(--rd-azul-osc); }
}
/* los botones claros del lobby y de las hojas azules siguen claros */
.lobby .btn.btn-claro, .inf-header .btn.secundario { background: rgba(249, 249, 247, .1); color: var(--rd-crema); border-color: rgba(249, 249, 247, .3); }

/* campos: 44 px, radio 13, borde suave; al escribir, filo azul de marca */
.campo input:not([type=checkbox]):not([type=radio]), .campo select, .rdt-input, textarea.firma, .rdt-dia input[type=date], .alm-elegir-dia input, .inf-in {
  border-radius: 13px; border: 1.5px solid var(--rd-borde); background: #fff; color: var(--rd-tinta); font-weight: 650;
}
.campo input:focus, .campo select:focus, .rdt-input:focus, textarea.firma:focus, .rdt-dia input[type=date]:focus, .alm-elegir-dia input:focus {
  border-color: var(--rd-azul); box-shadow: 0 0 0 3px rgba(0, 59, 92, .15); background: #fff; outline: none;
}
.campo > span, .rdt-campo { color: var(--rd-mut); }
.rdt-captura, .alm-captura { border: 1px solid var(--rd-borde); }

/* control segmentado: la opción puesta en azul de marca */
.segmentos, .rdt-segmento { background: var(--rd-suave-2); border-radius: 14px; }
.segmento.activo, .rdt-segmento button.on { background: var(--rd-azul); color: var(--rd-crema); box-shadow: 0 2px 8px rgba(0, 59, 92, .25); }
.usu-chip.on { background: var(--rd-azul); border-color: var(--rd-azul); }

/* tablas: cabecera suave con cuadrícula */
.tabla thead th { background: var(--rd-suave); color: var(--rd-tinta-2); font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--rd-borde); }
.tabla td { border-bottom-color: #ecece6; }
td.num, .tabla td.num { font-weight: 650; }

/* cifras (Widget2): hoja amarilla en el rótulo; la primera, en azul */
.kpi { border-radius: 20px; border: 1px solid var(--rd-borde); box-shadow: var(--rd-sombra); position: relative; overflow: hidden; isolation: isolate; }
.kpi::after { content: ""; position: absolute; z-index: -1; right: -26px; bottom: -30px; width: 96px; height: 96px; border-radius: 10% 100% 10% 100%; background: var(--rd-suave-2); pointer-events: none; }
.kpi-rotulo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; text-transform: none; letter-spacing: 0; color: var(--rd-tinta-2); }
.kpi-rotulo::before { content: ""; width: 11px; height: 11px; border-radius: 2px 11px 2px 11px; background: var(--rd-amarillo); flex: none; }
.kpi-valor { font-weight: 750; letter-spacing: -.03em; color: var(--rd-tinta); }
.kpis > .kpi:first-child:not(.kpi-alerta) { background: var(--rd-azul); border-color: var(--rd-azul); color: var(--rd-crema); }
.kpis > .kpi:first-child:not(.kpi-alerta) :is(.kpi-rotulo, .kpi-valor) { color: var(--rd-crema); }
.kpis > .kpi:first-child:not(.kpi-alerta) > :not(.kpi-rotulo):not(.kpi-valor) { color: rgba(249, 249, 247, .75); }
.kpis > .kpi:first-child:not(.kpi-alerta)::after { background: rgba(249, 249, 247, .08); }

/* etiquetas y avisos con los estados de la maqueta */
.etiqueta { border-radius: 980px; font-weight: 750; }
.alerta { border-radius: 16px; }
.alerta-aviso { background: #fdf0cc; border-color: #f4dc94; color: #7a5300; }
.alerta-error { background: #fbe7e4; border-color: #f0c4bd; color: #a3352a; }
.alerta-ok { background: #e3f3e8; border-color: rgba(0, 122, 51, .35); }

/* el aviso (toast): azul profundo con la hoja amarilla, abajo al centro */
.toast { background: var(--rd-azul-osc); color: var(--rd-crema); border-radius: 16px; font-size: 13.5px; font-weight: 700; padding: 12px 16px 12px 38px; box-shadow: 0 14px 34px rgba(13, 40, 64, .35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.toast::before { content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 2px 10px 2px 10px; background: var(--rd-amarillo); }
.toast.ok { background: var(--rd-azul-osc); }
.toast.ok::before { background: #6fd39a; }
.toast.error { background: #a3352a; }
.toast.error::before { background: #fff; }
.toast.aviso { background: var(--rd-amarillo); color: var(--rd-azul-osc); }
.toast.aviso::before { background: var(--rd-azul-osc); }

/* diálogos y la hoja de campo azul */
.dialogo { border-radius: 24px; }
.inf-header { background: var(--rd-azul); box-shadow: 0 14px 34px rgba(13, 40, 64, .16); }
.dchip.on { background: var(--rd-azul); border-color: var(--rd-azul); }

/* ---------- Inicio: los widgets de la maqueta ---------- */
body.con-lateral .wg-barra { justify-content: flex-end; margin: 0 2px 12px; }
body.con-lateral .wg-barra > div:first-child { display: none; }   /* finca y saludo ya van en la franja de título */
.wg { gap: 6px; padding: 14px 16px; min-height: 120px; transition: transform .2s var(--rd-curva), box-shadow .2s, border-color .2s; }
.wg-cab { font-size: 12.5px; font-weight: 700; color: var(--rd-mut); text-transform: none; letter-spacing: 0; }
.wg-cab::before { content: ""; width: 10px; height: 10px; border-radius: 2px 10px 2px 10px; background: var(--rd-amarillo); flex: none; }
.wg-ic { display: none; }
.wg-ir { color: var(--rd-mut-2); }
.wg-cifra strong, .wg-hora, .wg-clima strong { color: var(--rd-tinta); font-weight: 800; letter-spacing: -.03em; }
.wg-cifra strong { font-size: 1.75rem; }
.wg-fila { border-top-color: var(--rd-suave-2); }
.wg-fila span { color: var(--rd-mut); }
.wg-nota { color: var(--rd-mut); }
.wg.tocable:active { transform: scale(.97); }
/* la primera tarjeta va en azul (Widget2 tema azul) */
.wg-grid > .wg:first-child { background: var(--rd-azul); border-color: var(--rd-azul); color: var(--rd-crema); }
.wg-grid > .wg:first-child :is(.wg-cab, .wg-nota, .wg-fila span, .wg-cifra span, .wg-ir) { color: rgba(249, 249, 247, .78); }
.wg-grid > .wg:first-child :is(.wg-cifra strong, .wg-hora, .wg-clima strong, p, b) { color: var(--rd-crema); }
.wg-grid > .wg:first-child .wg-fila { border-top-color: rgba(249, 249, 247, .14); }
.wg-grid > .wg:first-child .wg-dias > div { background: rgba(249, 249, 247, .1); }
.wg-grid > .wg:first-child .btn.mini { background: rgba(249, 249, 247, .12); color: var(--rd-crema); border-color: rgba(249, 249, 247, .28); }
.wg-grid > .wg:first-child a { color: var(--rd-amarillo); }
@media (max-width: 899px) {
  /* el teléfono: dos columnas como la maqueta; lo grande ocupa las dos */
  .wg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wg.grande, .wg-grid > .wg:first-child { grid-column: span 2; }
  .wg { padding: 13px 14px; min-height: 112px; border-radius: 20px; }
  .wg-cifra strong { font-size: 1.5rem; }
  .wg-fila { font-size: .82rem; }
  .wg-dias small { font-size: .7rem; }
}
.wg-editar .btn.mini { min-height: 36px; }

/* Informes: el título ya va en la franja */
body.con-lateral .inf-cabeza h1 { display: none; }

/* ---------- Entrada de pantalla (solo al cambiar de sección) ----------
   La maqueta no anima la entrada («Entrada al montar: no») y la regla del
   usuario («ninguna curva de aprendizaje») pide que los campos estén quietos
   y listos: al cambiar de sección solo hay un fundido corto, sin moverse. */
@media (prefers-reduced-motion: no-preference) {
  .pantalla.entrando > * { animation: rdFunde .2s ease both; }
}

/* Salidas nuevas: la fila que se acaba de guardar entra con hojaIn .35 s
   (la marca app.js con .rd-nueva; solo forma, la fila ya está en su sitio). */
@media (prefers-reduced-motion: no-preference) {
  .rd-nueva { animation: hojaIn .35s cubic-bezier(.2, .9, .25, 1.2) both; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-nueva { animation: rdFunde .3s ease both; }
  .wg.tocable:active, .btn.primario:active, .bf-tab:active .bf-ic { transform: none; }
}

/* Presionar: las baldosas y las pestañas se hunden (.97), los botones (.98) */
.wg { transition: transform .2s cubic-bezier(.2, .9, .25, 1.5), box-shadow .2s, border-color .2s; }
.bf-ic { transition: background .2s, transform .2s cubic-bezier(.2, .9, .25, 1.5); }
.bf-tab:active .bf-ic { transform: scale(.97); }
.btn.primario { transition: background .2s, box-shadow .2s, transform .2s cubic-bezier(.2, .9, .25, 1.5); }

/* ---------- Lobby / ingreso: mismo azul de marca ---------- */
.lobby { background: var(--rd-azul); }
.lobby-input { border-radius: 16px; }
body.con-lateral .wg-barra .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Widget que todavía no llega (17 oct 2026, «saltos en el inicio»): ocupa ya su lugar, para que al llegar el dato
   las tarjetas de abajo no salten. El clima es el que más tarda (sale a internet) y el más alto. */
.wg-cargando { min-height: 44px; border-radius: 10px; background: currentColor; opacity: .06; }
.wg-cargando-clima { min-height: 264px; }   /* el de un teléfono; inicio.js recuerda el real de cada equipo */
@media (prefers-reduced-motion: no-preference) {
  .wg-cargando { animation: wgCargando 1.4s ease-in-out infinite; }
  @keyframes wgCargando { 50% { opacity: .11; } }
}

/* =====================================================================================================================
   Agrap Campo · ronda 2 (29 oct 2026, diseño «Agrap en el celular y Agrap Campo»): el cuaderno de auditorías en el lote.
   body.campo2 = se está en el cuaderno o en Riego. La franja, el pie y la barra los arma js/campo-marco.js.
   Sin backdrop-filter ni desenfoques (Android de gama baja); campos a 16 px para que iOS no haga zoom.
   ===================================================================================================================== */
:root {
  --c2-azul: #003b5c; --c2-azul-osc: #00283f; --c2-azul-vivo: #00507d; --c2-amarillo: #fdb913; --c2-verde: #007a33; --c2-crema: #f9f9f7;
  --c2-tinta: #0f2233; --c2-tinta-2: #33485c; --c2-mut: #5d6b78; --c2-tenue: #7b8b99;
  --c2-borde: #e6e5df; --c2-borde-campo: #d2d2d7; --c2-suave: #f6f6f3; --c2-suave-2: #f1f0eb;
  --c2-bien: #007a33; --c2-bien-f: #e7f3ec; --c2-ojo: #7a5300; --c2-ojo-f: #fff4d6; --c2-mal: #b23a2e; --c2-mal-f: #fbe7e4;
  --c2-info: #003b5c; --c2-info-f: #e6eef3; --c2-resalta: #fffaf0;
  --c2-alto-barra: 82px;
}
body.campo2 { background: var(--c2-crema); color: var(--c2-tinta); font-variant-numeric: tabular-nums;
  padding-bottom: calc(var(--c2-alto-barra) + var(--seguro-abajo)) !important; }
body.campo2 .cabecera, body.campo2 #cabTitulo, body.campo2 .pestanas, body.campo2 #bandaPendientes, body.campo2 #barraFinca { display: none !important; }
body.campo2:not(.lateral-abierta) #lateral, body.campo2:not(.lateral-abierta) #lateralVelo { display: none !important; }
body.campo2 main { max-width: 560px; margin: 0 auto !important; padding: 0 !important; }
body.campo2 .pantalla { padding: 0 !important; }
body.campo2 .toast { bottom: calc(var(--c2-alto-barra) + 74px + var(--seguro-abajo)); }
@media (min-width: 900px) { body.campo2.con-lateral { padding-left: 0 !important; } }

/* --- franja azul --- */
.c2-franja { position: relative; overflow: hidden; isolation: isolate; background: var(--c2-azul); color: var(--c2-crema);
  padding: calc(10px + env(safe-area-inset-top)) 16px 20px; }
.c2-hoja { position: absolute; z-index: -1; border-radius: 10% 100% 10% 100%; }
.c2-hoja1 { right: -46px; bottom: -70px; width: 180px; height: 180px; background: rgba(249, 249, 247, .06); }
.c2-hoja2 { right: 70px; top: -50px; width: 90px; height: 90px; background: rgba(253, 185, 19, .08); }
.c2-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; }
.c2-marca { display: flex; align-items: center; gap: 8px; }
.c2-marca > img { height: 24px; width: auto; }
.c2-wm { display: flex; flex-direction: column; line-height: 1; }
.c2-wm img { height: 17px; width: auto; }
.c2-wm b { font-size: 10px; letter-spacing: .18em; color: var(--c2-amarillo); margin-top: 3px; }
.c2-atras { height: 38px; padding: 0 13px 0 9px; border-radius: 20px; border: 1px solid rgba(249, 249, 247, .25); background: none;
  color: var(--c2-crema); display: flex; align-items: center; gap: 5px; font: 700 14px/1 Outfit, -apple-system, system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.c2-atras b { color: var(--c2-amarillo); font-size: 20px; line-height: 1; }
.c2-senal { height: 34px; padding: 0 12px; border-radius: 980px; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; background: rgba(249, 249, 247, .12); color: var(--c2-crema); }
.c2-senal i { width: 8px; height: 8px; border-radius: 50%; background: #5fd08a; }
.c2-senal.pendiente { background: var(--c2-amarillo); color: var(--c2-azul-osc); }
.c2-senal.pendiente i { background: var(--c2-azul-osc); }
.c2-migas { margin-top: 12px; font-size: 12.5px; color: rgba(249, 249, 247, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2-migas > * + *::before { content: ' › '; color: rgba(249, 249, 247, .6); font-weight: 400; }
.c2-migas b { color: var(--c2-amarillo); font-weight: 600; }
.c2-titulo { margin: 2px 0 0; font-size: 27px; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; color: var(--c2-crema); }
.c2-bajada { margin: 6px 0 0; font-size: 13.5px; color: rgba(249, 249, 247, .82); }

/* --- cuerpo, pie y barra --- */
.c2-cuerpo, .c2-zona { display: flex; flex-direction: column; gap: 10px; }
.c2-cuerpo { padding: 14px; }
[data-pantalla=riego] > :not(.c2-franja):not(.c2-pie) { margin-left: 14px; margin-right: 14px; }
[data-pantalla=riego] > .c2-chips, [data-pantalla=riego] > .segmentos { margin-top: 14px; }
.c2-pie { position: sticky; bottom: calc(var(--c2-alto-barra) + var(--seguro-abajo)); z-index: 30; display: flex; gap: 10px; align-items: center;
  padding: 10px 14px 12px; background: #fff; border-top: 1px solid var(--c2-borde); }
.c2-pie-total { flex: 1; min-width: 0; font-size: 13px; color: var(--c2-tinta-2); }
.c2-pie-total b { display: block; font-size: 15px; color: var(--c2-tinta); }
.c2-btn { height: 54px; border-radius: 980px; font: 700 15px/1 Outfit, -apple-system, system-ui, sans-serif; white-space: nowrap; cursor: pointer; padding: 0 18px; }
.c2-btn-pri { flex: 1.4; border: 0; background: var(--c2-amarillo); color: var(--c2-azul-osc); font-size: 17px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(253, 185, 19, .32); }
.c2-btn-pri:disabled { background: var(--c2-borde); color: var(--c2-tenue); box-shadow: none; cursor: default; }
.c2-btn-sec { flex: 1; border: 1px solid var(--c2-borde-campo); background: #fff; color: var(--c2-azul); }
.c2-barra:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(6, 1fr);   /* 30 oct 2026: + Conteo */
  height: calc(var(--c2-alto-barra) + var(--seguro-abajo)); padding: 6px max(6px, env(safe-area-inset-left)) calc(22px + var(--seguro-abajo)) max(6px, env(safe-area-inset-right));
  background: var(--c2-azul); color: var(--c2-crema); }
.c2-tab { border: 0; background: none; color: rgba(249, 249, 247, .82); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font: 600 10.5px/1.1 Outfit, -apple-system, system-ui, sans-serif; text-align: center; cursor: pointer; min-height: 44px; touch-action: manipulation; }
.c2-tab b { width: 44px; height: 30px; border-radius: 15px; display: grid; place-items: center; font-size: 16px; }
.c2-tab.activa { color: var(--c2-amarillo); }
.c2-tab.activa b { background: var(--c2-amarillo); color: var(--c2-azul-osc); }
.c2-tab:focus-visible { outline: 3px solid rgba(253, 185, 19, .8); outline-offset: -3px; border-radius: 12px; }

/* --- piezas --- */
.c2-pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.c2-paso { display: flex; flex-direction: column; gap: 5px; }
.c2-paso i { height: 6px; border-radius: 3px; background: var(--c2-borde); }
.c2-paso span { font-size: 11.5px; font-weight: 700; color: var(--c2-tenue); white-space: nowrap; }
.c2-paso.hecho i { background: var(--c2-azul); }
.c2-paso.hecho span { color: var(--c2-tinta-2); }
.c2-paso.actual i { background: var(--c2-amarillo); }
.c2-paso.actual span { color: var(--c2-tinta); }
.c2-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.c2-h i { width: 11px; height: 11px; border-radius: 2px 11px 2px 11px; background: var(--c2-amarillo); flex: none; }
.c2-h span { font-size: 12.5px; font-weight: 500; color: var(--c2-mut); }
.c2-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.c2-chips::-webkit-scrollbar { display: none; }
.c2-chip { flex: none; height: 44px; padding: 0 15px; border-radius: 980px; border: 1.5px solid var(--c2-borde-campo); background: #fff;
  color: var(--c2-tinta); font: 700 14.5px/1 Outfit, -apple-system, system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.c2-chip.on { background: var(--c2-azul); border-color: var(--c2-azul); color: #fff; }
.c2-aviso { border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.4; }
.c2-aviso.bien { background: var(--c2-bien-f); color: var(--c2-bien); }
.c2-aviso.ojo { background: var(--c2-ojo-f); color: var(--c2-ojo); }
.c2-aviso.mal { background: var(--c2-mal-f); color: var(--c2-mal); }
.c2-aviso.info { background: var(--c2-info-f); color: var(--c2-info); }
.c2-txt { font-size: 12.5px; color: var(--c2-mut); text-align: center; padding: 4px 0; }
.c2-enlace { align-self: center; min-height: 44px; border: 0; background: none; color: var(--c2-azul); font: 700 14.5px/1 Outfit, -apple-system, system-ui, sans-serif; cursor: pointer; }
.c2-enlace.c2-mas { color: var(--c2-mut); font-weight: 600; font-size: 13px; }
.c2-num { width: 30px; height: 30px; border-radius: 5px 15px 5px 15px; background: var(--c2-suave-2); color: var(--c2-tinta-2);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.c2-res { background: #fff; border: 1px solid var(--c2-borde); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.c2-res > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.c2-res > div > span { color: var(--c2-mut); white-space: nowrap; }
.c2-res b { text-align: right; }
.c2-res b.bien { color: var(--c2-bien); }
.c2-res b.mal { color: var(--c2-mal); }

/* tarjeta GPS */
.c2-gps { background: #fff; border: 1.5px solid var(--c2-borde); border-radius: 18px; padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 12px; }
.c2-gps-punto { width: 44px; height: 44px; border-radius: 50%; background: var(--c2-bien-f); display: grid; place-items: center; flex: none; }
.c2-gps-punto i { width: 14px; height: 14px; border-radius: 50%; background: var(--c2-bien); box-shadow: 0 0 0 5px rgba(0, 122, 51, .18); }
.c2-gps.ojo .c2-gps-punto { background: var(--c2-ojo-f); }
.c2-gps.ojo .c2-gps-punto i { background: var(--c2-amarillo); box-shadow: 0 0 0 5px rgba(253, 185, 19, .25); }
.c2-gps.mal { border-color: #f1c6c0; }
.c2-gps.mal .c2-gps-punto { background: var(--c2-mal-f); }
.c2-gps.mal .c2-gps-punto i { background: var(--c2-mal); box-shadow: 0 0 0 5px rgba(178, 58, 46, .16); }
.c2-gps-txt { flex: 1; min-width: 0; }
.c2-gps-txt b { display: block; font-size: 17px; letter-spacing: -.02em; }
.c2-gps-txt span { font-size: 12.5px; color: var(--c2-mut); }
.c2-gps-btn { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--c2-borde-campo); background: #fff;
  font: 700 13.5px/1 Outfit, -apple-system, system-ui, sans-serif; color: var(--c2-azul); white-space: nowrap; cursor: pointer; }
.c2-dialogo-lotes .dialogo-botones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c2-dialogo-lotes .dialogo-botones .btn { min-height: 48px; }
body.campo2 .mapa-gps-caja { max-width: none; margin: 0; }
body.campo2 .mapa-gps { border-radius: 18px; border: 1px solid #d5ddd3; }
body.campo2 .ev-borde { margin: 0; border-radius: 14px; }

/* 2a · Cuaderno */
.c2-meta { position: relative; overflow: hidden; isolation: isolate; background: var(--c2-azul); color: var(--c2-crema); border-radius: 22px; padding: 16px; }
.c2-hoja-fondo { position: absolute; z-index: -1; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 10% 100% 10% 100%; background: rgba(249, 249, 247, .07); }
.c2-meta-fila { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.c2-meta-lbl { display: block; font-size: 13px; font-weight: 600; color: rgba(249, 249, 247, .75); }
.c2-meta-n { font-size: 42px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.c2-meta-n span { font-size: 20px; color: rgba(249, 249, 247, .6); }
.c2-meta-nota { text-align: right; font-size: 12.5px; color: rgba(249, 249, 247, .78); }
.c2-meta-seg { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; margin-top: 12px; }
.c2-meta-seg i { height: 8px; border-radius: 3px; background: rgba(249, 249, 247, .18); }
.c2-meta-seg i.on { background: var(--c2-amarillo); }
.c2-meta-no { display: block; margin-top: 8px; font-size: 12px; color: rgba(249, 249, 247, .78); }
.c2-accesos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.c2-acceso { position: relative; overflow: hidden; isolation: isolate; text-align: left; background: #fff; border: 1px solid var(--c2-borde); border-radius: 20px;
  padding: 14px; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; color: var(--c2-tinta); font: inherit; cursor: pointer; }
.c2-acceso-hoja { position: absolute; z-index: -1; right: -22px; bottom: -26px; width: 76px; height: 76px; border-radius: 10% 100% 10% 100%; background: var(--c2-suave-2); }
.c2-acceso-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.c2-acceso-top > b { font-size: 22px; letter-spacing: -.03em; white-space: nowrap; }
.c2-ic { width: 40px; height: 40px; border-radius: 6px 20px 6px 20px; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.c2-ic.amarillo { background: var(--c2-amarillo); color: var(--c2-azul-osc); }
.c2-ic.azul { background: var(--c2-azul); color: var(--c2-amarillo); }
.c2-ic.suave { background: var(--c2-suave-2); color: var(--c2-tinta-2); }
.c2-ic.riego { background: var(--c2-info-f); color: #0d2840; }
.c2-acceso-txt b { display: block; font-size: 15.5px; line-height: 1.2; }
.c2-acceso-txt span { font-size: 12px; color: var(--c2-mut); }

/* 2c · labores del formato */
.c2-labores { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.c2-labor { min-height: 92px; text-align: left; border-radius: 18px; border: 1.5px solid var(--c2-borde); background: #fff; padding: 12px 13px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; font: inherit; color: var(--c2-tinta); cursor: pointer; }
.c2-labor.on { background: var(--c2-resalta); border-color: var(--c2-amarillo); }
.c2-labor.on .c2-num { background: var(--c2-amarillo); color: var(--c2-azul-osc); }
.c2-labor-top { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 6px; }
.c2-hecha { font-size: 11.5px; font-weight: 800; color: var(--c2-bien); white-space: nowrap; }
.c2-prog { font-size: 11.5px; font-weight: 800; color: var(--c2-ojo); white-space: nowrap; }
.c2-labor-txt b { display: block; font-size: 15.5px; line-height: 1.15; }
.c2-labor-txt span { font-size: 12px; color: var(--c2-mut); }

/* 2d · opciones */
.c2-opciones { display: flex; flex-direction: column; gap: 7px; }
.c2-opcion { text-align: left; min-height: 56px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1.5px solid var(--c2-borde); background: #fff;
  display: flex; gap: 12px; align-items: center; font: inherit; cursor: pointer; }
.c2-opcion > span:not(.c2-radio) { flex: 1; min-width: 0; font-size: 15px; color: var(--c2-tinta); line-height: 1.25; }
.c2-cod { width: 38px; height: 38px; border-radius: 10px; background: var(--c2-suave-2); color: var(--c2-tinta-2); display: grid; place-items: center; font-size: 16px; flex: none; }
.c2-opcion.bien .c2-cod { background: var(--c2-verde); color: #fff; }
.c2-opcion.bien > span:not(.c2-radio) { font-weight: 700; }
.c2-opcion.on { background: var(--c2-resalta); border-color: var(--c2-amarillo); }
.c2-opcion.on:not(.bien) .c2-cod { background: var(--c2-amarillo); color: var(--c2-azul-osc); }
.c2-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c4c9cf; display: grid; place-items: center; flex: none; }
.c2-radio i { width: 12px; height: 12px; border-radius: 50%; }
.on > .c2-radio { border-color: var(--c2-azul); }
.on > .c2-radio i { background: var(--c2-azul); }

/* 2e · notas, foto y campos */
.c2-notas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.c2-nota { height: 72px; border-radius: 16px; border: 1.5px solid var(--c2-borde); background: #fff; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font: inherit; cursor: pointer; }
.c2-nota b { font-size: 26px; font-weight: 800; line-height: 1; }
.c2-nota span { font-size: 11px; font-weight: 700; white-space: nowrap; }
.c2-nota.n1 { color: #b23a2e; } .c2-nota.n2 { color: #c1741a; } .c2-nota.n3 { color: #7a5300; } .c2-nota.n4 { color: #007a33; } .c2-nota.n5 { color: #00602a; }
.c2-nota.n1.on { background: #b23a2e; } .c2-nota.n2.on { background: #c1741a; } .c2-nota.n3.on { background: #7a5300; } .c2-nota.n4.on { background: #007a33; } .c2-nota.n5.on { background: #00602a; }
.c2-nota.on { color: #fff; border-color: transparent; }
.c2-foto { border: 1.5px dashed #9fb0bd; background: #fff; border-radius: 16px; min-height: 104px; display: flex; align-items: center; justify-content: center;
  gap: 10px; color: var(--c2-azul); font: 700 15px/1.2 Outfit, -apple-system, system-ui, sans-serif; text-align: center; padding: 0 16px; cursor: pointer; }
.c2-foto-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--c2-amarillo); color: var(--c2-azul-osc); display: grid; place-items: center; font-size: 18px; }
.c2-foto.con { flex-direction: column; border-style: solid; border-color: var(--c2-borde); padding: 10px; cursor: default; }
.c2-foto.con img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; }
.c2-foto-bot { display: flex; gap: 8px; width: 100%; }
.c2-foto-bot .c2-btn { height: 46px; font-size: 14px; }
.c2-campos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.c2-campo { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--c2-tinta); }
.c2-campo.ancho { grid-column: 1 / -1; }
.c2-campo input, .c2-campo select, .c2-campo textarea { width: 100%; min-width: 0; height: 50px; border: 1px solid var(--c2-borde-campo); border-radius: 12px;
  padding: 0 12px; font: 400 16px/1.3 Outfit, -apple-system, system-ui, sans-serif; background: #fff; color: var(--c2-tinta); }
.c2-campo textarea { min-height: 84px; height: auto; padding: 12px; resize: none; }

/* 2f · guardado */
.c2-sigue { min-height: 78px; border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit;
  background: #fff; color: var(--c2-tinta); border: 1.5px solid var(--c2-borde); cursor: pointer; }
.c2-sigue.pri { background: var(--c2-azul); color: var(--c2-crema); border-color: var(--c2-azul); }
.c2-sigue-ic { width: 44px; height: 44px; border-radius: 6px 22px 6px 22px; background: var(--c2-suave-2); color: var(--c2-azul); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.c2-sigue.pri .c2-sigue-ic { background: var(--c2-amarillo); color: var(--c2-azul-osc); }
.c2-sigue-txt { flex: 1; min-width: 0; }
.c2-sigue-txt b { display: block; font-size: 16.5px; line-height: 1.2; }
.c2-sigue-txt span { font-size: 12.5px; opacity: .8; }
.c2-sigue-fl { font-size: 22px; color: var(--c2-tenue); }
.c2-sigue.pri .c2-sigue-fl { color: var(--c2-amarillo); }

/* 2g · 2h · labores programadas */
.c2-prog { display: flex; flex-direction: column; gap: 8px; }
.c2-prog-lote { background: #fff; border: 1.5px solid var(--c2-borde); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px;
  text-align: left; font: inherit; color: var(--c2-tinta); cursor: pointer; }
.c2-prog-lote.aqui { border-color: var(--c2-amarillo); }
.c2-prog-lote .c2-num { width: 40px; height: 40px; border-radius: 6px 20px 6px 20px; font-size: 15px; }
.c2-prog-lote.aqui .c2-num { background: var(--c2-amarillo); color: var(--c2-azul-osc); }
.c2-prog-cab { display: flex; align-items: center; gap: 10px; }
.c2-prog-txt { flex: 1; min-width: 0; }
.c2-prog-txt b { display: block; font-size: 15.5px; }
.c2-prog-txt span { font-size: 12.5px; color: var(--c2-mut); }
.c2-prog-estado { font-size: 12px; font-weight: 800; color: var(--c2-tinta-2); white-space: nowrap; }
.c2-prog-lote.aqui .c2-prog-estado { color: var(--c2-ojo); }
.c2-etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }
.c2-et { height: 34px; padding: 0 12px; border-radius: 980px; background: #fff; color: var(--c2-tinta); border: 1px solid var(--c2-borde-campo);
  display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 Outfit, -apple-system, system-ui, sans-serif; white-space: nowrap; }
.c2-et.hecha { background: var(--c2-bien-f); color: var(--c2-bien); border-color: #bfe0cb; }
.c2-et.sigue { background: var(--c2-ojo-f); color: var(--c2-ojo); border-color: #f3d98f; }
.c2-et.otra { color: var(--c2-mut); border-style: dashed; }
button.c2-et { cursor: pointer; min-height: 40px; }
.c2-filas { display: flex; flex-direction: column; gap: 8px; }
.c2-fila-lab { text-align: left; background: #fff; border: 1.5px solid var(--c2-borde); border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px;
  align-items: center; min-height: 60px; font: inherit; cursor: pointer; }
.c2-fila-lab.on { background: var(--c2-resalta); border-color: var(--c2-amarillo); }
.c2-fila-txt { flex: 1; min-width: 0; }
.c2-fila-txt b { display: block; font-size: 15.5px; color: var(--c2-tinta); }
.c2-fila-txt span { font-size: 12.5px; color: var(--c2-mut); }
.c2-fila-estado { font-size: 12px; font-weight: 700; white-space: nowrap; }
.c2-fila-estado.bien { color: var(--c2-bien); }
.c2-fila-estado.ojo { color: var(--c2-ojo); }
.c2-otras, .c2-prog-toda { display: flex; flex-direction: column; gap: 8px; }

/* 2l · informe */
.c2-inf { display: flex; flex-direction: column; gap: 8px; }
.c2-inf-fila { background: #fff; border: 1px solid var(--c2-borde); border-radius: 16px; padding: 12px; display: flex; gap: 10px; align-items: center; }
.c2-inf-fila .c2-num { width: 40px; height: 40px; border-radius: 6px 20px 6px 20px; background: var(--c2-ojo-f); color: var(--c2-ojo); font-size: 14px; }
.c2-inf-txt { flex: 1; min-width: 0; }
.c2-inf-txt b { display: block; font-size: 14.5px; line-height: 1.25; }
.c2-inf-txt span { font-size: 12.5px; color: var(--c2-mut); }
.c2-inf-val { text-align: right; flex: none; }
.c2-inf-val b { display: block; font-size: 14.5px; white-space: nowrap; }
.c2-inf-val span { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.c2-inf-val .bien { color: var(--c2-bien); } .c2-inf-val .ojo { color: var(--c2-ojo); } .c2-inf-val .mal { color: var(--c2-mal); }
.c2-guardadas { display: flex; flex-direction: column; gap: 8px; }
.c2-g { background: #fff; border: 1px solid var(--c2-borde); border-radius: 16px; padding: 8px 8px 8px 8px; display: flex; gap: 10px; align-items: center; }
.c2-g img, .c2-g-sin { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--c2-suave-2); display: grid; place-items: center; color: var(--c2-tenue); }
.c2-g-txt { flex: 1; min-width: 0; }
.c2-g-txt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2-g-txt span { font-size: 12px; color: var(--c2-mut); }
.c2-g-nota { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.c2-g-nota.n1 { background: #b23a2e; } .c2-g-nota.n2 { background: #c1741a; } .c2-g-nota.n3 { background: #7a5300; } .c2-g-nota.n4 { background: #007a33; } .c2-g-nota.n5 { background: #00602a; }
.c2-g-anular { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--c2-mal); font: 700 12.5px/1 Outfit, -apple-system, system-ui, sans-serif; cursor: pointer; }

/* Riego dentro del cuaderno (2j · 2k): el segmentado y las tarjetas con la misma piel */
body.campo2 [data-pantalla=riego] .segmentos { display: grid; grid-template-columns: 1fr 1fr; background: rgba(120, 120, 128, .12); border-radius: 13px; padding: 3px; gap: 0; }
body.campo2 [data-pantalla=riego] .segmento { height: 44px; border: 0; border-radius: 10px; font-size: 14.5px; font-weight: 700; background: none; color: var(--c2-tinta-2); }
body.campo2 [data-pantalla=riego] .segmento.activo { background: #fff; color: var(--c2-tinta); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
body.campo2 [data-pantalla=riego] .tarjeta { border-radius: 18px; border: 1px solid var(--c2-borde); box-shadow: none; margin: 10px 14px 0; }
body.campo2 [data-pantalla=riego] .ev-guardar { position: sticky; bottom: calc(var(--c2-alto-barra) + var(--seguro-abajo)); z-index: 30; margin: 10px 0 0;
  padding: 10px 14px 12px; background: #fff; border-top: 1px solid var(--c2-borde); }
body.campo2 [data-pantalla=riego] .ev-guardar .btn { width: 100%; height: 54px; border-radius: 980px; border: 0; background: var(--c2-amarillo); color: var(--c2-azul-osc);
  font-size: 17px; font-weight: 800; box-shadow: 0 6px 16px rgba(253, 185, 19, .32); }
body.campo2 [data-pantalla=riego] input, body.campo2 [data-pantalla=riego] select, body.campo2 [data-pantalla=riego] textarea { font-size: 16px; }
button.c2-senal { border: 0; font-family: inherit; cursor: pointer; }   /* 30 oct 2026: tocarla sube ya */

/* 31 oct 2026: las 6 pestañas de la barra caben en 360 px (Labores programadas → «Programadas») */
.c2-tab { min-width: 0; padding: 1px 2px; font-size: 10.5px; }
.c2-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 380px) {
  .c2-barra:not([hidden]) { padding-left: max(2px, env(safe-area-inset-left)); padding-right: max(2px, env(safe-area-inset-right)); }
  .c2-tab { padding: 1px 0; font-size: 9.5px; letter-spacing: -.3px; }
  .c2-tab b { width: 40px; }
}
