/* =====================================================================
   ESTILOS · app de la cuadrilla. Pensada para usarse al sol: alto
   contraste, botones grandes (mínimo 48 px) y letra de 17 px.
   ===================================================================== */

:root {
  --verde: #1f5f3a;
  --verde-2: #2d7a4c;
  --verde-claro: #e6f1ea;
  --fondo: #f4f6f2;
  --tarjeta: #ffffff;
  --texto: #17231b;
  --texto-2: #4f5d54;
  --borde: #cfd8d2;
  --rojo: #b3261e;
  --rojo-claro: #fbe9e7;
  --ambar: #7a4f00;
  --ambar-claro: #fff4d6;
  --ambar-borde: #e8c56b;
  --ok: #1e7a3f;
  --radio: 14px;
  --alto-pestanas: 64px;
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--texto);
  font-size: 17px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; cursor: pointer; }
.texto-2 { color: var(--texto-2); }
.centro { display: flex; align-items: center; justify-content: center; min-height: 60vh; }

/* ---------- Barra superior ---------- */
.barra {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--verde);
  color: #fff;
}
.marca { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.marca img { border-radius: 8px; flex: none; }
.acciones { display: flex; gap: 8px; flex: none; }
.chip {
  min-height: 36px;
  max-width: 44vw;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aviso-config {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid #f0b9b3;
  border-radius: 12px;
  background: var(--rojo-claro);
  color: var(--rojo);
  font-weight: 600;
  font-size: 15px;
}

main { max-width: 560px; margin: 0 auto; padding: 16px; }
.pestana { padding-bottom: calc(var(--alto-pestanas) + 24px + env(safe-area-inset-bottom)); }
h1 { font-size: 22px; margin: 4px 0 14px; }
h2 { font-size: 18px; margin: 0 0 10px; }

/* ---------- Login ---------- */
.lista-nombres { display: grid; gap: 8px; margin-top: 16px; }
.lista-nombres button {
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--tarjeta);
  color: var(--texto);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}
.lista-nombres button:active { background: var(--verde-claro); border-color: var(--verde); }
.enlace { padding: 8px 0; border: 0; background: none; color: var(--verde); font-weight: 600; text-decoration: underline; }

.puntos { display: flex; justify-content: center; gap: 18px; margin: 24px 0 8px; }
.puntos span { width: 18px; height: 18px; border: 2px solid var(--verde); border-radius: 50%; }
.puntos span.lleno { background: var(--verde); }
.pin-mensaje { min-height: 2.8em; margin: 8px 0; text-align: center; font-weight: 600; color: var(--rojo); }
.pin-mensaje.neutro { color: var(--texto-2); }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.teclado button {
  min-height: 64px;
  border: 1.5px solid var(--borde);
  border-radius: 14px;
  background: var(--tarjeta);
  color: var(--texto);
  font-size: 26px;
  font-weight: 600;
}
.teclado button:active { background: var(--verde-claro); }
.teclado button:disabled { opacity: 0.5; }

/* ---------- Foto ---------- */
.foto {
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  border: 2px dashed var(--verde-2);
  border-radius: var(--radio);
  background: var(--verde-claro);
  cursor: pointer;
}
.foto.con-foto { border-style: solid; background: #000; }
.foto input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.foto input:focus-visible ~ .foto-vacia { outline: 3px solid #f2c14e; outline-offset: -6px; }
.foto-vacia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  color: var(--verde);
  font-size: 18px;
}
.foto-vacia svg { width: 48px; height: 48px; }
.foto img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.foto-cambiar {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
}

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Formulario ---------- */
.grupo { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
legend, .campo > span { display: block; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; }
.campo { display: block; margin-top: 18px; }
select, textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--tarjeta);
  color: var(--texto);
  font: inherit;
  font-size: 17px;
}
select { min-height: 50px; }
textarea { min-height: 64px; resize: vertical; }
select:focus, textarea:focus { outline: 3px solid #f2c14e; outline-offset: 1px; border-color: var(--verde); }

.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat { position: relative; cursor: pointer; }
.cat input, .segmentos input { position: absolute; opacity: 0; pointer-events: none; }
.caja {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 78px;
  padding: 8px 4px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--tarjeta);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.caja svg { width: 28px; height: 28px; color: var(--verde); }
.cat input:checked + .caja { background: var(--verde); border-color: var(--verde); color: #fff; }
.cat input:checked + .caja svg { color: #fff; }
.cat input:focus-visible + .caja,
.segmentos input:focus-visible + span { outline: 3px solid #f2c14e; outline-offset: 2px; }

.segmentos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--tarjeta);
}
.segmentos label { position: relative; cursor: pointer; }
.segmentos span { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 15px; font-weight: 600; }
.segmentos label + label span { border-left: 1.5px solid var(--borde); }
.segmentos input:checked + span { background: var(--verde); color: #fff; }
.segmentos input[value="alta"]:checked + span { background: var(--rojo); }

.gps { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--texto-2); font-size: 15px; }
.punto { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #9aa59e; }
.gps.ok .punto { background: var(--ok); }
.gps.debil .punto { background: #d89a00; }
.gps.mal .punto { background: var(--rojo); }

.error-form { min-height: 1.4em; margin: 10px 0 0; color: var(--rojo); font-weight: 600; font-size: 15px; }

/* ---------- Botones ---------- */
.enviar {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--radio);
  background: var(--verde);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.enviar:active { transform: scale(0.99); }
.enviar:disabled { opacity: 0.65; cursor: progress; }
.enviar.peligro { background: var(--rojo); }
#btn-enviar {
  position: sticky;
  bottom: calc(var(--alto-pestanas) + 12px + env(safe-area-inset-bottom));
  box-shadow: 0 6px 18px rgba(31, 95, 58, 0.3);
}
.secundario {
  width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  border: 1.5px solid var(--ambar);
  border-radius: 12px;
  background: var(--ambar-claro);
  color: var(--ambar);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Avisos ----------
   Rojo = importante sin confirmar · Amarillo = aviso nuevo ·
   Blanco = ya visto. Siempre con icono y palabra, nunca solo color. */
:root {
  --rojo-aviso: #a32d2d;
  --rojo-aviso-claro: #fcebeb;
  --amarillo-aviso: #ef9f27;
  --amarillo-aviso-claro: #faeeda;
  --amarillo-aviso-texto: #412402;
}
.caja-avisos {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1.5px solid var(--verde);
  border-radius: 16px;
  background: var(--tarjeta);
}
.caja-avisos-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--verde);
  color: #fff;
}
.caja-avisos-cabecera h1 { margin: 0; font-size: 18px; color: #fff; }
.contador-nuevos {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--verde);
  font-size: 13px;
  font-weight: 700;
}
.lista-avisos { display: grid; gap: 12px; margin: 0; padding: 12px; list-style: none; }
.aviso { overflow: hidden; border: 1px solid var(--borde); border-radius: 14px; background: var(--tarjeta); }
.aviso-tira {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #f1f3f1;
  color: var(--texto-2);
  font-size: 14px;
  font-weight: 700;
}
.aviso-tira svg { width: 18px; height: 18px; flex: none; }
.aviso-texto { margin: 0; padding: 12px 14px 4px; font-size: 21px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.aviso-meta { padding: 0 14px 12px; color: var(--texto-2); font-size: 15px; }
.aviso.imp { border: 2px solid var(--rojo-aviso); background: var(--rojo-aviso-claro); }
.aviso.imp .aviso-tira { background: var(--rojo-aviso); color: #fff; }
.aviso.nor { border: 2px solid var(--amarillo-aviso); background: var(--amarillo-aviso-claro); }
.aviso.nor .aviso-tira { background: var(--amarillo-aviso); color: var(--amarillo-aviso-texto); }
/* Vistos: conservan su color, pero suave y con borde fino */
.aviso.vis.imp-v { border: 1.5px solid #e6b3b3; background: #fff8f8; }
.aviso.vis.imp-v .aviso-tira { background: #f7dede; color: #8a2a2a; }
.aviso.vis.nor-v { border: 1.5px solid #f3d39b; background: #fffcf6; }
.aviso.vis.nor-v .aviso-tira { background: #fbefd9; color: #7a5410; }
.btn-entendido {
  display: block;
  width: calc(100% - 28px);
  min-height: 54px;
  margin: 0 14px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--verde);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.confirmado { padding: 0 14px 12px; color: var(--ok); font-weight: 700; }

/* ---------- Letra grande (botón Aa) ----------
   Agranda todo el contenido de las pestañas y de la entrada. */
.letra-grande .pestana,
.letra-grande #vista-login main { zoom: 1.2; }
.chip[aria-pressed="true"] { background: #fff; color: var(--verde); font-weight: 700; }

/* ---------- Mis reportes ---------- */
.lista { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lista li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--tarjeta);
}
.lista li.vacio, .lista-avisos li.vacio {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--texto-2);
  font-size: 15px;
}
.li-titulo { font-weight: 600; }
.li-meta { grid-column: 1; color: var(--texto-2); font-size: 14px; }
.estado { grid-row: 1 / span 2; grid-column: 2; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.estado.pendiente { background: var(--ambar-claro); color: var(--ambar); }
.estado.nuevo { background: #eef1ef; color: var(--texto-2); }
.estado.en_proceso { background: var(--ambar-claro); color: var(--ambar); }
.estado.resuelto { background: var(--verde-claro); color: var(--ok); }
.li-error { grid-column: 1 / -1; color: var(--rojo); font-size: 13px; overflow-wrap: anywhere; }
.estado.descartado { background: #eef1ef; color: var(--texto-2); text-decoration: line-through; }
.lista li.novedad { border: 2px solid var(--ok); background: #f1f8f3; }
.li-novedad { grid-column: 1 / -1; justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 13px; font-weight: 700; }
.li-gracias { grid-column: 1 / -1; margin-top: 4px; color: var(--ok); font-size: 14px; font-weight: 700; }
#zona { margin-top: 6px; }
#zona.ok { color: var(--ok); font-weight: 600; }
#zona.mal { color: var(--rojo); font-weight: 600; }

/* ---------- Barra de pestañas (abajo) ---------- */
.pestanas {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: calc(var(--alto-pestanas) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--borde);
  background: var(--tarjeta);
}
.pestanas button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: none;
  color: var(--texto-2);
  font-size: 13px;
  font-weight: 600;
}
.pestanas svg { width: 26px; height: 26px; }
.pestanas button[aria-current="page"] { color: var(--verde); }
.pestanas button[aria-current="page"] svg { stroke-width: 2.4; }
.icono-badge { position: relative; display: inline-flex; }
.badge {
  position: absolute;
  top: -6px;
  right: -12px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rojo);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* ---------- Avisos flotantes y ventanas ---------- */
.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--alto-pestanas) + 84px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: 528px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: #17231b;
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.toast.ambar { background: var(--ambar-claro); color: var(--ambar); border: 1px solid var(--ambar-borde); }

.velo {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 20, 14, 0.55);
}
.tarjeta { width: 100%; max-width: 400px; padding: 20px; border-radius: 16px; background: var(--tarjeta); }
.botones-dialogo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.botones-dialogo .secundario { margin: 0; min-height: 56px; border-color: var(--borde); background: #fff; color: var(--texto); }
.botones-dialogo .enviar { margin: 0; }

/* ---------- Tarjetas informativas (notificaciones, fin de semana) ---------- */
.pequeno { font-size: 14px; margin-top: -6px; }
.tarjeta-info {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--borde);
  border-radius: 14px;
  background: var(--tarjeta);
}
.tarjeta-info p { margin: 0 0 8px; }
.tarjeta-info .enviar { margin-top: 4px; min-height: 50px; font-size: 16px; }
.tarjeta-info .enlace { display: block; margin-top: 6px; font-size: 14px; }
.tarjeta-info.activas { border-color: var(--verde-2); background: var(--verde-claro); }
.finde h2 { font-size: 17px; margin: 0 0 10px; }
.finde-dias { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.finde-dia { padding: 10px 12px; border-radius: 12px; background: var(--fondo); }
.finde-dia strong { display: block; font-size: 15px; }
.finde-dia span { font-size: 15px; font-weight: 700; }
.finde-dia.trabaja { background: var(--verde-claro); }
.finde-dia.trabaja span { color: var(--ok); }
.finde-dia.libre span { color: var(--texto-2); }
.finde-dia .cambio { display: block; margin-top: 4px; color: var(--ambar); font-size: 13px; font-weight: 700; }
.finde-quien { margin-top: 10px; font-size: 15px; }
.finde-quien summary { cursor: pointer; color: var(--verde); font-weight: 600; }
.finde-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; font-size: 14px; }
.finde-lista ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Tareas ---------- */
.lista-tareas { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lista-tareas li.vacio { color: var(--texto-2); font-size: 15px; }
.tarea { overflow: hidden; border: 1px solid var(--borde); border-radius: 14px; background: var(--tarjeta); }
.tarea.alta { border: 2px solid var(--rojo); }
.tarea.hecha { opacity: 0.7; }
.tarea img { display: block; width: 100%; max-height: 220px; object-fit: cover; background: #dfe5e1; }
.tarea-cuerpo { padding: 12px 14px 14px; }
.tarea-titulo { font-size: 18px; font-weight: 700; }
.tarea-meta { margin-top: 2px; color: var(--texto-2); font-size: 14px; }
.tarea-nota { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tarea-enlaces { margin-top: 8px; font-size: 14px; }
.tarea-enlaces a { color: var(--verde); font-weight: 600; }
.tarea .enviar { margin-top: 12px; min-height: 52px; font-size: 16px; }
.pill-alta { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--rojo); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.li-foto { grid-column: 1 / -1; margin-top: 4px; }
.li-foto button { padding: 0; border: 0; background: none; color: var(--verde); font-size: 14px; font-weight: 600; text-decoration: underline; }
.li-foto img { display: block; width: 100%; max-height: 240px; margin-top: 8px; border-radius: 10px; object-fit: cover; }

/* ---------- Franja "activa las notificaciones" ---------- */
.linea-notif {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--ambar-borde);
  border-radius: 12px;
  background: var(--ambar-claro);
  color: var(--ambar);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.linea-notif::after { content: '›'; margin-left: auto; font-size: 22px; line-height: 1; }

/* =====================================================================
   MI TRABAJO
   ===================================================================== */
/* Barra: "Hola, Luis" con su color (toca para cambiar el color) */
.yo-barra {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
}
.yo-barra > span { min-width: 0; }
.yo-barra #yo-hola { display: block; font-size: 18px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yo-barra small { display: block; font-size: 12px; font-weight: 600; color: #cfe3d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yo-punto { flex: none; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #4fbf72; }

/* Cinta roja de aviso urgente */
.urgente {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: #b3261e;
  color: #fff;
  text-align: left;
  box-shadow: 0 4px 14px rgba(179, 38, 30, 0.3);
}
.urgente svg { flex: none; width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.urgente b { display: block; font-size: 12px; letter-spacing: 0.12em; opacity: 0.9; }
.urgente p { margin: 2px 0 0; font-size: 17px; font-weight: 800; line-height: 1.2; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Mío | Todos */
.seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; padding: 4px; border-radius: 14px; background: #e3e9e5; }
.seg button { min-height: 44px; border: 0; border-radius: 11px; background: none; color: var(--texto-2); font-size: 17px; font-weight: 800; }
.seg button[aria-selected="true"] { background: #fff; color: var(--verde); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

/* Hoy | Mañana */
.dias-trabajo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.dias-trabajo button { padding: 6px 10px; border: 1.5px solid var(--borde); border-radius: 12px; background: #fff; color: var(--texto); text-align: left; }
.dias-trabajo button b { display: block; font-size: 16px; }
.dias-trabajo button span { display: block; font-size: 13px; color: var(--texto-2); }
.dias-trabajo button[aria-pressed="true"] { border-color: var(--verde); background: var(--verde-claro); }
.dias-trabajo button[aria-pressed="true"] b { color: var(--verde); }

#trabajo-titulo { margin: 2px 0 2px; font-size: 24px; }
.sub-trabajo { margin: 0 0 10px; color: var(--texto-2); font-size: 14px; }
.sub-trabajo:empty { display: none; }
.cambio-trabajo { margin-bottom: 10px; padding: 8px 10px; border: 1.5px solid #ff7a1a; border-radius: 12px; background: #fff1e6; color: #8a3d00; font-size: 15px; font-weight: 700; }
.ayudante { margin-bottom: 10px; padding: 7px 10px; border-radius: 10px; background: var(--verde-claro); color: var(--verde); font-size: 15px; font-weight: 700; }

/* Tarjetas de trabajo (borde completo del color de la persona) */
.lista-trabajo { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lista-trabajo li.vacio { padding: 14px; border: 1.5px dashed var(--borde); border-radius: 14px; color: var(--texto-2); font-size: 16px; }
.tj { position: relative; padding: 12px; border: 2.5px solid var(--p, #4fbf72); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.tj .c1 { display: flex; align-items: center; gap: 12px; }
.tj .ic { display: flex; flex: none; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: #14261b; }
.tj b.t { display: block; font-size: 21px; line-height: 1.15; }
.tj span.e { display: block; font-size: 14px; color: var(--texto-2); }
.num { font-style: normal; font-weight: 800; }
.tj .ho { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 8px; background: var(--verde-claro); color: var(--verde); font-size: 15px; font-weight: 800; }
.tj .nota { margin-top: 8px; padding: 7px 10px; border-radius: 10px; background: #fff8e1; color: #5b4300; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tj .nota b { color: #7a4f00; }
.tj.nuevo { box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.3); }
.tj .nv { position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 6px; background: #ff7a1a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }

/* Dentro de "Ayudar a Juan" */
.ayuda { margin-top: 10px; padding: 10px; border: 2px dashed var(--q, #4fbf72); border-radius: 14px; background: #f7faf8; }
.ayuda .qn { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--texto-2); font-size: 15px; font-weight: 700; }
.ayuda .qn i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--q, #4fbf72); }
.ay { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ay .ic { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: #14261b; }
.ay b { display: block; font-size: 17px; line-height: 1.2; }
.ay em { display: block; font-style: normal; font-size: 14px; font-weight: 800; color: var(--verde); }
.ay span { display: block; font-size: 13.5px; color: var(--texto-2); }

/* Nota "solo para ti" */
.privada { margin-top: 10px; padding: 8px 12px; border: 1.5px solid #8aa8e6; border-radius: 12px; background: #eef3ff; color: #1d3566; }
.privada b { display: block; font-size: 12px; letter-spacing: 0.06em; color: #3456a6; }
.privada p { margin: 2px 0 0; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }

.titulo-seccion { margin: 22px 0 8px; color: var(--verde); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
#pestana-trabajo .pequeno { margin-top: -4px; }

/* Todos */
.buscar { width: 100%; min-height: 46px; margin-bottom: 8px; padding: 9px 12px; border: 1.5px solid var(--borde); border-radius: 12px; background: #fff; color: var(--texto); font: inherit; font-size: 16px; }
.lista-todos .vacio { color: var(--texto-2); }
.letra { margin: 10px 2px 4px; color: var(--verde); font-size: 14px; font-weight: 800; letter-spacing: 0.1em; }
.fila-t { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 7px; padding: 8px 10px; border: 2px solid var(--p, #4fbf72); border-radius: 14px; background: #fff; }
.fila-t.yo { background: #f2faf4; box-shadow: 0 0 0 3px rgba(31, 95, 58, 0.25); }
.fila-t .nm { display: flex; flex-direction: column; flex: none; width: 104px; min-width: 0; }
.fila-t .nm strong { font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.fila-t .nm small { align-self: flex-start; margin-top: 3px; padding: 1px 6px; border-radius: 6px; background: var(--verde); color: #fff; font-size: 11px; font-weight: 800; }
.fila-t .nm em { margin-top: 2px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--texto-2); }
.fila-t .js { flex: 1; min-width: 0; }
.j1 { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.j1 svg { flex: none; }
.j1 b { display: block; font-size: 15px; line-height: 1.2; }
.j1 span { display: block; font-size: 12.5px; font-weight: 800; color: var(--verde); }

/* Notas del día (Avisos) */
.notas-dia { margin-bottom: 16px; }
.notas-dia .titulo-seccion { margin-top: 0; }
.lista-notas { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.nota-dia { padding: 9px 12px; border: 1.5px solid; border-radius: 12px; font-size: 16px; font-weight: 800; line-height: 1.25; white-space: pre-wrap; overflow-wrap: anywhere; }
.nota-dia.amarilla { border-color: #e8c56b; background: #fff6dc; color: #4a3300; }
.nota-dia.roja { border-color: #e57369; background: #fbe9e7; color: #7a1712; }

/* Insignia naranja "!" cuando cambió el trabajo */
.badge.naranja { background: #ff7a1a; }

/* Mi color (hoja que sube desde abajo) */
.hoja-velo { align-items: flex-end; padding: 0; }
.hoja { width: 100%; max-width: 560px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; }
.hoja h2 { margin: 0; font-size: 21px; }
.hoja > p { margin: 4px 0 12px; font-size: 14px; }
.paleta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; justify-items: center; margin-bottom: 14px; }
.paleta button { width: 48px; height: 48px; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 50%; }
.paleta button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #17231b; }
.vista-tv { display: flex; justify-content: center; padding: 12px; border-radius: 14px; background: #0f1a14; }
.tarjeta-tv { width: 240px; padding: 10px 12px; border: 3px solid var(--p, #4fbf72); border-radius: 14px; background: #16251c; color: #eef4f0; }
.tarjeta-tv .pn { margin-bottom: 6px; font-size: 22px; font-weight: 800; }
.tarjeta-tv .jb { display: flex; align-items: center; gap: 8px; }
.tarjeta-tv .jb b { display: block; font-size: 15px; }
.tarjeta-tv .jb span { display: block; font-size: 12px; color: #a9c2b2; }

/* Pantalla de "Cargando…" con botón de rescate */
.cargando-caja { display: grid; gap: 14px; justify-items: center; padding: 0 24px; text-align: center; }
.cargando-caja .enviar small { font-weight: 600; opacity: 0.85; }
