/* Sísifo · /grupos, el escaparate de preparadores (templates/grupos_lista.html, opos/grupos.py). Prefijo gl-.
   Tokens de app.css (claro y oscuro ya resueltos allí). */
.gl { max-width: 1040px; margin: 0 auto; }
.gl .ico { width: 18px; height: 18px; flex: none; }

/* cabecera: qué es, a la izquierda; las tres razones, a la derecha */
.gl-cab { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 32px; align-items: center; margin: 4px 0 22px; }
.gl-ante { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.gl-cab h1 { margin: 0 0 10px; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.1; }
.gl-lead { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; max-width: 36em; }
.gl-que { list-style: none; margin: 0; padding: 16px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.gl-que li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.gl-que .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.gl-que b { display: block; color: var(--text); font-size: 15px; }

/* filtros */
.gl-filtros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.gl-campo { display: block; min-width: 0; }
.gl-campo select { width: 100%; }
.gl-q { position: relative; }
.gl-q .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.gl-q input { width: 100%; min-height: 42px; padding: 8px 10px 8px 36px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface); color: var(--text); font: inherit; }
.gl-filtros .btn { min-height: 42px; }
.gl-n { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* tarjetas */
.gl-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 16px; }
.gl-tarjeta { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.gl-tarjeta:hover { border-color: var(--line-2); box-shadow: var(--shadow-l); }
@media (prefers-reduced-motion: no-preference) { .gl-tarjeta:hover { transform: translateY(-2px); } }
.gl-tarjeta.completo { opacity: .82; }
.gl-prep { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gl-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; background: #b4432a; }
.gl-avatar.t1 { background: #2c7339; } .gl-avatar.t2 { background: #875300; } .gl-avatar.t3 { background: #3d5a80; }
.gl-avatar.t4 { background: #7a3e65; } .gl-avatar.t5 { background: #4a3b33; }
.gl-prep-txt { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.gl-prep-txt b { font-size: 15.5px; overflow-wrap: anywhere; }
.gl-prep-txt small { color: var(--muted); font-size: 12.5px; }
.gl-plazas { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.gl-plazas.lleno { background: var(--old-soft); color: var(--old); }
.gl-tarjeta h2 { margin: 2px 0 0; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.gl-op { align-self: flex-start; max-width: 100%; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 13px; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-op:hover { text-decoration: underline; }
.gl-desc { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.gl-desc.vacia { color: var(--muted); font-style: italic; }
.gl-datos { list-style: none; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.gl-datos li { display: inline-flex; align-items: center; gap: 5px; }
.gl-datos .ico { width: 15px; height: 15px; }
.gl-acc { display: grid; gap: 6px; }
.gl-acc .btn { width: 100%; justify-content: center; gap: 8px; }
.gl-denunciar { justify-self: end; padding: 4px 2px; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.gl-denunciar:hover, .gl-denunciar:focus-visible { color: var(--text); text-decoration: underline; }
.gl-esperan { color: var(--mid); font-weight: 600; }
.gl-lleno-txt { display: block; text-align: center; padding: 10px; color: var(--muted); font-size: 14px; }

/* vacío y llamada para preparadores */
.gl-vacio { text-align: center; padding: 40px 16px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.gl-vacio .ico { width: 40px; height: 40px; color: var(--accent); }
.gl-vacio h2 { margin: 10px 0 6px; font-size: 20px; }
.gl-vacio p { margin: 0 0 14px; color: var(--muted); }
.gl-prepara { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.gl-prepara > div:first-child { flex: 1 1 380px; min-width: 0; }
.gl-prepara h2 { margin: 0 0 6px; font-size: 21px; }
.gl-prepara p { margin: 0; color: var(--muted); line-height: 1.5; }
.gl-prepara-acc { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .gl-cab { grid-template-columns: 1fr; }
  .gl-filtros { grid-template-columns: 1fr; }
  .gl-filtros .btn { width: 100%; }
}
@media (max-width: 480px) {
  .gl-prepara { padding: 18px 16px; }
  .gl-prepara-acc, .gl-prepara-acc .btn { width: 100%; justify-content: center; }
}
