/* Bilibob Tareas. Una columna de celular; en pantallas anchas, la misma columna centrada.
   Marca: la de la app de depósitos y la web de Bilibob (papel, tinta, azul petróleo, coral; Cormorant Garamond + Inter).
   Sigue el modo claro u oscuro del celular. */
:root {
  --paper: #FDFCFA; --surface: #FFFFFF; --tint: #F2EFE9; --ink: #171614; --muted: #6E6A64; --line: #E6E1D8;
  --blue: #1F5F73; --blue-dark: #184B5C; --blue-soft: #D9E6EA; --blue-wash: #EEF4F5;
  --coral: #A65744; --coral-soft: #F5E6E0; --sun: #685427; --sun-soft: #F1EAD3; --ok: #276857; --ok-soft: #DDEBE5;
  --on-accent: #FFFFFF; --shadow: rgba(23, 22, 20, .12); --scrim: rgba(23, 22, 20, .38);
  --c1: #1F5F73; --c2: #A65744; --c3: #276857; --c4: #8A6A1F; --c5: #7A5334; --c6: #27488F; --c7: #6B3F6E; --c8: #3F6B5E;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ancho: 560px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131413; --surface: #1C1D1C; --tint: #252624; --ink: #ECE9E3; --muted: #A5A19A; --line: #33322F;
    --blue: #80B4C3; --blue-dark: #A6CCD7; --blue-soft: #22373E; --blue-wash: #1A2629;
    --coral: #E3937F; --coral-soft: #3B2520; --sun: #D9BA67; --sun-soft: #352E1B; --ok: #7DC3A7; --ok-soft: #1C3129;
    --on-accent: #0E1516; --shadow: rgba(0, 0, 0, .45); --scrim: rgba(0, 0, 0, .55);
    --c1: #80B4C3; --c2: #E3937F; --c3: #7DC3A7; --c4: #D9BA67; --c5: #C99D78; --c6: #96B0E8; --c7: #C79BCB; --c8: #8FC4B4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--texto); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
body.ocupado [data-a] { cursor: progress; }

.pantalla { max-width: var(--ancho); margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 150px) max(16px, env(safe-area-inset-left, 0px)); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); background: var(--surface); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 8px) max(6px, env(safe-area-inset-left, 0px)); }
.tabs-dentro { display: contents; }
.tab { appearance: none; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px; position: relative; cursor: pointer; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--blue); }
.badge { position: absolute; top: 1px; left: calc(50% + 5px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--coral); color: var(--on-accent); font-size: 10.5px; font-weight: 700; line-height: 17px; padding: 0 5px; }
.fab { position: fixed; right: max(18px, calc((100vw - var(--ancho)) / 2 + 18px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 21; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--blue); color: var(--on-accent); box-shadow: 0 12px 26px -8px var(--shadow); display: grid; place-items: center; cursor: pointer; }
.fab svg { width: 26px; height: 26px; }
.pie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 14px) max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.pie > * { max-width: calc(var(--ancho) - 32px); margin: 0 auto; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); z-index: 40; max-width: min(92vw, 480px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px -8px var(--shadow); text-align: center; }
.toast.mal { background: var(--coral); color: var(--on-accent); }

/* Entrada */
.entrada { max-width: 400px; margin: 10vh auto 0; display: grid; gap: 12px; }
.marca b { display: block; font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; }
.marca small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-top: 6px; }
.entrada p { margin: 0; color: var(--muted); font-size: 14.5px; }
.formulario { display: grid; gap: 12px; }
.enlace { border: 0; background: none; color: var(--blue); font-weight: 600; padding: 4px 0; cursor: pointer; text-align: left; }
.error { color: var(--coral); font-size: 13.5px; font-weight: 500; }

/* Bloques comunes */
.fecha-hoy { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--coral); margin-top: 6px; }
h1.titulo { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.05; margin: 2px 0 14px; text-wrap: balance; overflow-wrap: anywhere; }
h1.titulo.det-t { font-size: 29px; margin-top: 6px; }
.sub { font-size: 13.5px; color: var(--muted); margin: -6px 0 14px; }
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.cifra { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 10px 8px; text-align: left; cursor: pointer; min-width: 0; }
div.cifra { cursor: default; }
.cifra b { display: block; font-family: var(--display); font-size: 32px; line-height: 1; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.cifra span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; line-height: 1.25; margin-top: 3px; }
.cifra.mal b { color: var(--coral); } .cifra.ojo b { color: var(--sun); } .cifra.azul b { color: var(--blue); } .cifra.okc b { color: var(--ok); }
.segmento { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 12px; padding: 3px; margin-bottom: 4px; }
.segmento button { border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 8px 6px; border-radius: 9px; cursor: pointer; }
.segmento button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }
.grupo-tit { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 2px 8px; }
.grupo-tit.mal { color: var(--coral); }
.lista { display: flex; flex-direction: column; gap: 8px; }
.vacio { text-align: center; color: var(--muted); font-size: 13.5px; padding: 28px 12px; }

.tarjeta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; cursor: pointer; transition: transform .12s ease; }
.tarjeta:active { transform: scale(.985); }
.tarjeta h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tarjeta.hecha h3, .tarjeta.cancelada h3 { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted); }
.t-meta { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); white-space: nowrap; }
.chip.mal { background: var(--coral-soft); color: var(--coral); } .chip.ojo { background: var(--sun-soft); color: var(--sun); } .chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.azul { background: var(--blue-soft); color: var(--blue-dark); }
.origen { font-size: 11.5px; color: var(--muted); }
.check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: none; display: grid; place-items: center; color: transparent; cursor: pointer; padding: 0; }
.check:hover { border-color: var(--ok); color: var(--ok); }
.check.si { background: var(--ok); border-color: var(--ok); color: var(--on-accent); }
.check.recien { animation: pop .4s ease; }
.check svg { width: 15px; height: 15px; }
@keyframes pop { 0% { transform: scale(.55); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

.av { --c: var(--c1); width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: var(--on-accent); display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: 0 0 auto; line-height: 1; }
.av.g { width: 52px; height: 52px; font-size: 21px; }
.av.s { width: 22px; height: 22px; font-size: 10.5px; }
.c1 { --c: var(--c1); } .c2 { --c: var(--c2); } .c3 { --c: var(--c3); } .c4 { --c: var(--c4); } .c5 { --c: var(--c5); } .c6 { --c: var(--c6); } .c7 { --c: var(--c7); } .c8 { --c: var(--c8); }
.pila { display: flex; } .pila .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); } .pila .av:first-child { margin-left: 0; }

.aviso-card { border-radius: 16px; padding: 12px 14px; margin: 4px 0 10px; display: grid; gap: 8px; font-size: 13.5px; }
.aviso-card strong { font-weight: 600; font-size: 14px; line-height: 1.3; }
.aviso-card.azul { background: var(--blue-wash); border: 1px solid var(--blue-soft); }
.aviso-card.ojo { background: var(--sun-soft); }
.aviso-card.mal { background: var(--coral-soft); }
.aviso-card.plano { background: var(--surface); border: 1px solid var(--line); }
.mini { display: grid; gap: 1px; text-align: left; border: 0; background: var(--surface); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.mini span { font-weight: 500; font-size: 12px; color: var(--muted); }
.mini-t { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.aviso-card .mini-t, .panel .mini-t { margin: 4px 0 0; }
.mini-n { display: block; font-size: 12px; color: var(--muted); }

.btn { appearance: none; border: 1px solid transparent; font-size: 14px; font-weight: 600; border-radius: 12px; padding: 11px 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; text-decoration: none; }
.btn svg { width: 17px; height: 17px; }
.btn.prim { background: var(--blue); color: var(--on-accent); } .btn.prim:hover:not(:disabled) { background: var(--blue-dark); }
.btn.borde { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn.suave { background: var(--tint); color: var(--ink); }
.btn.peligro { color: var(--coral); background: none; border-color: var(--line); }
.btn:disabled { opacity: .42; cursor: default; }
.btn.ancho { width: 100%; }
.btn.chico { font-size: 12.5px; padding: 7px 10px; border-radius: 10px; }
.botones { display: flex; flex-wrap: wrap; gap: 6px; }
.botones.col { flex-direction: column; }

.barra-sup { position: sticky; top: env(safe-area-inset-top, 0px); background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; z-index: 3; }
.volver { border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; padding: 6px 4px 6px 0; }
.volver svg { width: 20px; height: 20px; }
.det-origen { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
span.det-origen { cursor: default; }
.datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.dato { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; min-width: 0; margin: 0; }
.dato dt { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dato dd { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; }
.elip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sello-ok { display: flex; align-items: center; gap: 8px; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 600; margin: 4px 0 6px; }
.sello-ok svg { width: 16px; height: 16px; flex: 0 0 auto; }
.nota-c { border-radius: 12px; padding: 9px 12px; font-size: 13px; margin-top: 8px; }
.nota-c.ojo { background: var(--sun-soft); color: var(--sun); } .nota-c.mal { background: var(--coral-soft); color: var(--coral); }
.seccion-tit { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.estados { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.estados button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: 12px; font-weight: 600; padding: 10px 2px; color: var(--muted); cursor: pointer; }
.estados button[aria-pressed="true"] { color: var(--on-accent); border-color: transparent; }
.estados .e-pendiente[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.estados .e-curso[aria-pressed="true"] { background: var(--blue); }
.estados .e-hecha[aria-pressed="true"] { background: var(--ok); }
.estados .e-bloqueada[aria-pressed="true"] { background: var(--sun); }
.panel { margin-top: 10px; display: grid; gap: 8px; }
.campo { font-size: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 12px; width: 100%; min-width: 0; }
.campo.grande { padding: 12px 14px; }
.campo::placeholder { color: var(--muted); }
textarea.campo { resize: vertical; min-height: 44px; }
.escribir { display: flex; gap: 6px; align-items: flex-end; }
.escribir .btn { padding: 11px 12px; }
.coment { display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.burbuja { background: var(--tint); border-radius: 4px 14px 14px 14px; padding: 8px 10px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.burbuja small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.texto-coment { display: block; }
.foto-enlace { display: block; margin: 6px 0 4px; }
.foto { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.boton-foto { position: relative; cursor: pointer; }
.oculto { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; opacity: 0; }
.horario { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.horario select { width: auto; padding: 6px 8px; font-size: 14px; }

.linea { list-style: none; margin: 0; padding: 0; }
.linea li { position: relative; padding: 0 0 13px 22px; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.linea li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.linea li.auto::before { background: var(--surface); border: 2px solid var(--muted); }
.linea li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.linea li:last-child::after { display: none; }
.linea time { display: block; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.linea b { font-weight: 600; }
.sello { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; letter-spacing: .02em; text-transform: none; font-weight: 600; }
.sello svg { width: 12px; height: 12px; }

/* Equipo */
.equipo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 10px; cursor: pointer; text-align: left; min-width: 0; }
.per-cab { display: flex; gap: 8px; align-items: center; min-width: 0; }
.persona .nom { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.persona .rol { font-size: 11.5px; color: var(--muted); }
.tu { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.nums b { display: block; font-family: var(--display); font-size: 23px; line-height: 1; color: var(--ink); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.nums .mal b { color: var(--coral); } .nums .ok b { color: var(--ok); }
.barra { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--tint); gap: 2px; }
.barra i { display: block; height: 100%; border-radius: 3px; }
.barra .ok, .ley .ok { background: var(--ok); } .barra .azul, .ley .azul { background: var(--blue); } .barra .mal, .ley .mal { background: var(--coral); }
.ley { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); margin: 12px 2px 0; }
.ley span { display: inline-flex; align-items: center; gap: 5px; }
.ley i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.per-cab-g { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; }
.per-cab-g h1.titulo { margin: 0; }
.fila-persona { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; text-align: left; margin-bottom: 6px; }
.fila-persona b { display: block; font-weight: 600; }
.fila-persona span { font-size: 12px; color: var(--muted); }
.opciones { display: grid; gap: 6px; }
.opcion { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; }
.opcion[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue); }
.opcion b { display: block; font-weight: 600; font-size: 14px; }
.opcion span { font-size: 12.5px; color: var(--muted); }
.opcion .punto { margin-top: 3px; }

/* Reuniones */
.empezar { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 18px; background: var(--blue); color: var(--on-accent); padding: 14px; cursor: pointer; text-align: left; margin-bottom: 16px; }
.empezar .emp-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: 0 0 auto; }
.empezar svg { width: 22px; height: 22px; }
.empezar b { display: block; font-size: 16px; font-weight: 600; }
.empezar small { display: block; font-size: 12.5px; opacity: .85; }
.reunion { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; cursor: pointer; text-align: left; width: 100%; }
.r-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.r-fecha { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.reunion h3 { font-family: var(--display); font-size: 23px; font-weight: 600; margin: 1px 0 0; line-height: 1.1; overflow-wrap: anywhere; }
.progreso { height: 8px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.progreso i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 4px; transition: width .5s ease; }
.r-pie { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.r-pie b { color: var(--ink); font-weight: 600; }
.acta-p { margin-top: 14px; }
.acta-p .ap-cab { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.fila { width: 100%; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; cursor: pointer; text-align: left; font-size: 13.5px; margin-bottom: 6px; }
.fila .ft { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.punto { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); display: inline-grid; place-items: center; }
.punto.ok { background: var(--ok); border-color: var(--ok); color: var(--on-accent); }
.punto.ok svg { width: 9px; height: 9px; }
.punto.mal { border-color: var(--coral); background: var(--coral); }
.punto.azul { border-color: var(--blue); }
.punto.ojo { border-color: var(--sun); border-style: dashed; }
.punto.lleno { border-color: var(--blue); background: var(--blue); }

/* Modo reunión */
.envivo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--coral); }
.envivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: late 1.4s infinite; }
@keyframes late { 50% { opacity: .25; } }
.selector { display: flex; flex-wrap: wrap; gap: 6px; }
.selector button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 12px 3px 3px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.selector button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-dark); box-shadow: inset 0 0 0 1px var(--blue); }
.fechas { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.fechas button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 10px; cursor: pointer; font-size: 13px; font-weight: 600; display: grid; text-align: left; line-height: 1.2; }
.fechas button small { font-size: 11px; font-weight: 500; color: var(--muted); }
.fechas button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-dark); box-shadow: inset 0 0 0 1px var(--blue); }
.fecha-otra { width: auto; flex: 1 1 140px; padding: 6px 10px; font-size: 14px; }
.captura { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.fila-urg { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; font-size: 14px; font-weight: 600; }
.switch { width: 44px; height: 26px; border-radius: 13px; border: 0; background: var(--line); position: relative; cursor: pointer; flex: 0 0 auto; padding: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px var(--shadow); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.pend { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 8px; margin-bottom: 8px; }
.pend-t { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pend-t .t-meta { margin-top: 4px; }
.acuerdo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--blue-wash); border-radius: 14px; padding: 10px; margin-top: 8px; }
.acuerdo b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.acuerdo span { font-size: 12px; color: var(--muted); }
.quitar { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* Avisos */
.av-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.35; cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.av-item b { display: block; font-weight: 600; }
.av-item .cuando { display: block; font-size: 11.5px; color: var(--muted); }
.av-item.nuevo b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-left: 6px; vertical-align: middle; }
.app-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color: var(--on-accent); font-family: var(--display); font-weight: 700; font-size: 19px; display: grid; place-items: center; line-height: 1; }
.ajuste { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ajuste:last-child { border-bottom: 0; }
.ajuste select { width: auto; padding: 6px 10px; font-size: 14px; }
.tarjeta-plana { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; }
.reglas-app { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.reglas-app li { padding: 9px 0; border-bottom: 1px solid var(--line); display: grid; gap: 1px; }
.reglas-app li:last-child { border-bottom: 0; }
.reglas-app b { font-weight: 600; }
.reglas-app span { color: var(--muted); }
.pasos-ios { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* Hoja que sube desde abajo */
.velo { position: fixed; inset: 0; background: var(--scrim); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.hoja { width: 100%; max-width: var(--ancho); max-height: 90%; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(18px, env(safe-area-inset-left, 0px)); animation: sube .24s ease-out; cursor: default; }
.hoja::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.hoja-t { font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.1; margin: 0 0 6px; }
.hoja p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.resumen { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.resumen li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
@keyframes sube { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
