/* Provisional: Kroma pasa antes de que esto lo vea alguien de afuera. Sobrio y legible en el teléfono, a oscuras tras la tarima. */
:root {
  --fondo: #f6f5f2;
  --superficie: #ffffff;
  --borde: #dedbd3;
  --texto: #1c1b19;
  --suave: #6b6760;
  --acento: #1f6f5c;
  --acento-texto: #ffffff;
  --pendiente: #b4531c;
  --hecho-fondo: #e7f2ee;
  --nuevo: #8a3ffc;
  --aviso-fondo: #fff4d6;
  --aviso-texto: #6b4e00;
  --radio: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #121211;
    --superficie: #1d1c1a;
    --borde: #34322e;
    --texto: #f1efe9;
    --suave: #a29e95;
    --acento: #4fb89b;
    --acento-texto: #0d1f1a;
    --pendiente: #f0905a;
    --hecho-fondo: #17302a;
    --nuevo: #b98cff;
    --aviso-fondo: #3a2f10;
    --aviso-texto: #f3d98a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 16px 16px 64px; }
h1 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 1.05rem; margin: 0; }
p { margin: 0 0 12px; }
.suave { color: var(--suave); }
.pequeno { font-size: .875rem; }
.oculto { display: none !important; }

button, .boton {
  font: inherit;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--texto);
  border-radius: var(--radio);
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.primario { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); font-weight: 600; }
.ancho { width: 100%; }
input, select {
  font: inherit;
  color: var(--texto);
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
label.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
label.check input { width: 20px; height: 20px; min-height: 0; }
form.fila { display: grid; gap: 8px; }

.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; margin: 0 0 12px; }
.aviso { background: var(--aviso-fondo); color: var(--aviso-texto); border-radius: var(--radio); padding: 10px 12px; margin: 0 0 12px; font-size: .925rem; }

.barra { height: 8px; background: var(--borde); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.barra > i { display: block; height: 100%; background: var(--acento); border-radius: 99px; transition: width .3s; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips button { white-space: nowrap; min-height: 36px; padding: 6px 12px; border-radius: 99px; font-size: .9rem; }
.chips button[aria-pressed="true"] { background: var(--texto); color: var(--fondo); border-color: var(--texto); }

.etiqueta { font-size: .75rem; font-weight: 700; letter-spacing: .02em; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.etiqueta.nuevo { background: var(--nuevo); color: #fff; }
.etiqueta.imprevisto { border: 1px solid var(--pendiente); color: var(--pendiente); }

/* Una tarea: toda la fila es el botón, para atinarle con prisa y con una mano. */
.tarea {
  width: 100%;
  min-height: 64px;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 14px;
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.tarea .caja {
  flex: 0 0 28px; height: 28px;
  border: 2px solid var(--suave);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 700;
}
.tarea .cuerpo { flex: 1; display: grid; gap: 4px; }
.tarea[aria-pressed="true"] { background: var(--hecho-fondo); border-color: transparent; }
.tarea[aria-pressed="true"] .caja { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }
.tarea[aria-pressed="true"] .titulo { color: var(--suave); text-decoration: line-through; }

.momento { margin: 20px 0 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.momento h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }

/* Panel */
.persona-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 0; padding: 0; min-height: 0; background: none; text-align: left; }
.cuenta { font-weight: 700; color: var(--pendiente); white-space: nowrap; }
.cuenta.listo { color: var(--acento); }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.acciones > * { flex: 1 1 auto; }
.linea { display: flex; align-items: center; gap: 8px; }
.linea .tarea { margin: 0; flex: 1; }
.quitar { flex: 0 0 auto; min-width: 44px; color: var(--suave); }
.quitar.confirmar { color: #fff; background: #b42318; border-color: #b42318; }
.hora { font-size: .8rem; color: var(--suave); }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--acento); font-weight: 600; }
.estado-red { position: sticky; top: 0; z-index: 2; }
.aviso-texto { color: var(--pendiente); }
.tarjeta > p:last-child { margin-bottom: 0; }
a { color: var(--acento); }
.cab h2 { text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
