/* ============================================================
   styles.css — Portal de tickets de Tecnología ZUBA
   Colores corporativos: #005AA7 (azul) · #6FB74C (verde)

   Sin fuentes externas a propósito: la CSP no permite terceros y
   así la página no depende de que Google Fonts esté alcanzable
   desde la red interna. El stack del sistema da Segoe UI en
   Windows, San Francisco en macOS y Roboto en Android.
   ============================================================ */

:root {
  --white:        #FFFFFF;
  --bg:           #F0F4F8;
  --surface:      #FFFFFF;
  --surface-alt:  #F7F9FB;
  --border:       #D8E0E8;
  --border-soft:  #E8EDF2;
  --text:         #0F1B2D;
  --text-sub:     #4A5B6E;
  --text-muted:   #8A96A3;
  --accent:       #005AA7;
  --accent-lt:    #E8F0FA;
  --accent-dark:  #004080;
  --green:        #6FB74C;
  --green-lt:     #EDF7E8;
  --green-dark:   #4A9A2B;
  --error:        #DC2626;
  --error-bg:     #FFF1F2;
  --warn:         #B45309;
  --warn-bg:      #FFFBEB;
  --radius:       8px;
  --radius-lg:    12px;
  --radius-full:  999px;
  --shadow-sm:    0 1px 3px rgba(0,30,60,.06), 0 1px 2px rgba(0,30,60,.04);
  --shadow-md:    0 4px 16px rgba(0,30,60,.10), 0 2px 4px rgba(0,30,60,.05);
  --shadow-glow:  0 0 0 3px rgba(0,90,167,.12);
  --transition:   .18s ease;
  --fuente:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                  'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* El atributo hidden debe ganar SIEMPRE. Sin esto, cualquier clase con
   display propio (p. ej. .login-cargando con display:flex) lo pisa y el
   elemento se muestra aunque el HTML diga hidden — asi aparecia el
   "Verificando tu cuenta…" antes de elegir cuenta. */
[hidden] { display: none !important; }

html { font-size: 16px; }

img, svg, video { max-width: 100%; height: auto; }

body {
  font-family: var(--fuente);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(0,90,167,.04) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(111,183,76,.04) 0%, transparent 50%);
  background-attachment: fixed;
}

a { color: var(--accent); }

/* ─── Barra superior ───────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.marca {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.marca-punto {
  width: 9px; height: 9px;
  border-radius: var(--radius-full);
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-lt);
  flex-shrink: 0;
}

.nav-links { display: flex; gap: .25rem; margin-right: auto; }

.nav-link {
  padding: .45rem .8rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover { background: var(--surface-alt); color: var(--text); }

.nav-link.activo { background: var(--accent-lt); color: var(--accent); font-weight: 600; }

.usuario { display: flex; align-items: center; gap: .6rem; }

.avatar {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: .9rem;
  flex-shrink: 0;
}

.usuario-datos { display: flex; flex-direction: column; line-height: 1.25; }
.usuario-datos strong { font-size: .82rem; font-weight: 600; }
.usuario-datos span  { font-size: .72rem; color: var(--text-muted); }

.btn-salir {
  padding: .4rem .7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  transition: var(--transition);
}

.btn-salir:hover { background: var(--error-bg); border-color: var(--error); color: var(--error); }

/* ─── Layout ───────────────────────────────────────────────── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-header { padding: 0 .25rem; animation: fadeUp .4s ease both; }

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.page-header p {
  margin-top: .45rem;
  font-size: .95rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* ─── Tarjetas ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeUp .45s ease both;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-alt);
}

.card-header.estatico { cursor: default; }

.card-header-left { display: flex; align-items: center; gap: .7rem; }

.card-header-icon {
  width: 30px; height: 30px;
  border-radius: var(--radius);
  background: var(--accent-lt);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card-header-icon svg { width: 17px; height: 17px; }

.card-header h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }

/* ─── Formulario ───────────────────────────────────────────── */
.form-body { padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 1.15rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: .01em;
}

.req { color: var(--error); }

.ayuda { font-size: .74rem; color: var(--text-muted); }

input[type=text], input[type=email], textarea, select {
  width: 100%;
  padding: .65rem .8rem;
  font-family: var(--fuente);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A96A3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  background-size: 15px;
  padding-right: 2.1rem;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 100px; line-height: 1.55; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

.form-divider { height: 1px; background: var(--border-soft); }

.form-footer {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-alt);
  display: flex;
  justify-content: flex-end;
}

.skeleton-group .skeleton {
  height: 40px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-alt) 25%, var(--border-soft) 50%, var(--surface-alt) 75%);
  background-size: 200% 100%;
  animation: brillo 1.4s ease-in-out infinite;
}

/* ─── Prioridad ────────────────────────────────────────────── */
.priority-group { display: flex; gap: .5rem; flex-wrap: wrap; }

.priority-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
  font-family: var(--fuente);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.priority-punto {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-prioridad, var(--text-muted));
}

.priority-btn:hover { border-color: var(--color-prioridad); }

.priority-btn.activa {
  border-color: var(--color-prioridad);
  color: var(--text);
  font-weight: 600;
  background: var(--surface-alt);
  background: color-mix(in srgb, var(--color-prioridad) 8%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-prioridad) 14%, transparent);
}

/* ─── Adjuntos ─────────────────────────────────────────────── */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.6rem 1rem;
  text-align: center;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition);
}

.dropzone svg { width: 26px; height: 26px; color: var(--text-muted); }
.dropzone p { font-size: .875rem; }
.dropzone small { font-size: .72rem; color: var(--text-muted); }

.dropzone:hover, .dropzone:focus-visible, .dropzone.activa {
  border-color: var(--accent);
  background: var(--accent-lt);
  outline: none;
}

.file-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin-top: .6rem; }

.file-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .7rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-size: .82rem;
}

.file-nombre { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-peso   { color: var(--text-muted); font-size: .75rem; flex-shrink: 0; }

.file-quitar {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.file-quitar:hover { background: var(--error-bg); color: var(--error); }

/* ─── Botones ──────────────────────────────────────────────── */
.btn-primario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  font-family: var(--fuente);
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primario:hover:not(:disabled) { background: var(--accent-dark); box-shadow: var(--shadow-md); }
.btn-primario:disabled { opacity: .6; cursor: not-allowed; }

.btn-enlace {
  padding: 0;
  font-family: var(--fuente);
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

.btn-enlace:hover { text-decoration: underline; }

/* ─── Avisos ───────────────────────────────────────────────── */
.aviso {
  padding: .8rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  line-height: 1.55;
  border-left: 3px solid;
}

.aviso code {
  padding: .1rem .3rem;
  border-radius: 4px;
  background: rgba(0,0,0,.06);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .8em;
}

.aviso-info  { background: var(--accent-lt); border-color: var(--accent);  color: var(--accent-dark); }
.aviso-ok    { background: var(--green-lt);  border-color: var(--green);   color: var(--green-dark); }
.aviso-error { background: var(--error-bg);  border-color: var(--error);   color: #991B1B; }
.aviso-warn  { background: var(--warn-bg);   border-color: #F59E0B;        color: var(--warn); }

/* ─── Login ────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeUp .45s ease both;
}

.login-header { text-align: center; display: flex; flex-direction: column; gap: .5rem; }

.login-logo { height: 34px; width: auto; margin: 0 auto .6rem; object-fit: contain; }

.login-header h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }

.login-header p { font-size: .875rem; color: var(--text-sub); line-height: 1.55; }

.login-boton { display: flex; justify-content: center; min-height: 44px; }

.login-cargando {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .875rem;
  color: var(--text-sub);
  min-height: 44px;
}

.login-nota {
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ─── Resumen y filtros ────────────────────────────────────── */
.resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }

.resumen-item {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .15rem;
  align-items: center;
}

.resumen-numero { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--accent); }

.resumen-etiqueta {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.filtros { display: flex; gap: .4rem; }

.filtro {
  padding: .45rem .9rem;
  font-family: var(--fuente);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filtro:hover { border-color: var(--accent); color: var(--accent); }

.filtro.activo {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 600;
}

/* ─── Tickets ──────────────────────────────────────────────── */
.ticket-lista { display: flex; flex-direction: column; gap: .85rem; }

.ticket {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: var(--transition);
  animation: fadeUp .35s ease both;
}

.ticket:hover { box-shadow: var(--shadow-md); border-color: #C4D2E0; }

.ticket-cerrado { opacity: .82; }
.ticket-cerrado .ticket-titulo { color: var(--text-sub); }

.ticket-cab { display: flex; align-items: flex-start; gap: .7rem; flex-wrap: wrap; }

.ticket-numero {
  padding: .2rem .5rem;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ticket-titulo {
  flex: 1;
  min-width: 180px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.pastilla {
  padding: .25rem .7rem;
  border-radius: var(--radius-full);
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--color-estado, var(--accent));
  /* Fallback primero: color-mix() no existe en navegadores anteriores a 2023. */
  background: var(--accent-lt);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--color-estado, #005AA7) 12%, white);
  border: 1px solid color-mix(in srgb, var(--color-estado, #005AA7) 28%, white);
}

.ticket-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }

.ticket-meta-item { display: flex; flex-direction: column; gap: .05rem; }

.ticket-meta-k {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ticket-meta-v { font-size: .82rem; color: var(--text-sub); }

.ticket-desc {
  padding: .7rem .85rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--text-sub);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  max-height: 8.5rem;
  overflow-y: auto;
}

.ticket-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-top: .6rem;
  border-top: 1px solid var(--border-soft);
}

.ticket-cerrado-en { font-size: .76rem; color: var(--text-muted); }

/* ─── Línea de tiempo ──────────────────────────────────────── */
.historial { padding-top: .3rem; font-size: .84rem; color: var(--text-sub); }

.linea-tiempo { list-style: none; display: flex; flex-direction: column; gap: .8rem; padding-left: .2rem; }

.linea-tiempo li { display: flex; gap: .75rem; position: relative; }

.linea-tiempo li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: -.8rem;
  width: 1px;
  background: var(--border);
}

.linea-punto {
  width: 9px; height: 9px;
  margin-top: 4px;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
  z-index: 1;
}

.linea-texto { display: flex; flex-direction: column; gap: .1rem; }
.linea-texto strong { font-size: .84rem; font-weight: 600; color: var(--text); }
.linea-fecha { font-size: .74rem; color: var(--text-muted); }

/* ─── Estado vacío y carga ─────────────────────────────────── */
.estado-vacio {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.estado-vacio h3 { font-size: 1.05rem; font-weight: 600; }
.estado-vacio p  { font-size: .875rem; color: var(--text-sub); margin-bottom: .5rem; }

.cargando-bloque {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 3rem 1rem;
  font-size: .875rem;
  color: var(--text-sub);
}

.spinner {
  width: 15px; height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--radius-full);
  animation: girar .7s linear infinite;
  flex-shrink: 0;
  display: inline-block;
}

.btn-primario .spinner { border-color: var(--white); border-top-color: transparent; }

/* ─── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 130%);
  max-width: min(520px, calc(100vw - 2rem));
  padding: .85rem 1.15rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
  background: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  z-index: 100;
  pointer-events: none;
}

.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.toast-success { background: var(--green-dark); }
.toast-error   { background: var(--error); }
.toast-info    { background: var(--accent); }

/* ─── Animaciones ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes girar { to { transform: rotate(360deg); } }

@keyframes brillo {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ─── Responsive ─────────────────────────────────────────────
   Tres cortes: tablet chica (760px), celular (640px) y celular
   angosto (420px). El layout base ya es fluido (max-width + flex/grid);
   aca solo se ajusta lo que no se acomoda solo. */

@media (max-width: 760px) {
  .page       { max-width: 100%; }
  .form-body  { padding: 1.25rem 1rem; }
  .card-header, .form-footer { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 640px) {
  /* Barra superior: la navegacion baja a una fila propia */
  .topbar-inner  { flex-wrap: wrap; gap: .5rem .9rem; padding: .6rem .85rem; }
  .nav-links     { order: 3; width: 100%; margin-right: 0; }
  .nav-link      { flex: 1; text-align: center; }
  .usuario       { margin-left: auto; }
  .usuario-datos { display: none; }

  .page           { padding: 1.25rem .85rem 3rem; }
  .page-header h1 { font-size: 1.45rem; }
  .page-header p  { font-size: .9rem; }

  /* Formulario: una sola columna y botón a lo ancho */
  .form-row     { grid-template-columns: 1fr; }
  .form-footer  { justify-content: stretch; }
  .form-footer .btn-primario { width: 100%; }
  .dropzone     { padding: 1.25rem .85rem; }

  /* Prioridades: dos por fila, tocables con el pulgar */
  .priority-group { display: grid; grid-template-columns: 1fr 1fr; }
  .priority-btn   { justify-content: center; padding: .6rem .5rem; }

  /* Resumen y tickets */
  .resumen        { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .resumen-item   { padding: .8rem .4rem; }
  .resumen-numero { font-size: 1.3rem; }
  .filtros        { overflow-x: auto; padding-bottom: .25rem; }
  .filtro         { flex-shrink: 0; }
  .ticket         { padding: .9rem .85rem; }
  .ticket-meta    { gap: .3rem 1rem; }
  .ticket-titulo  { min-width: 100%; order: 3; }

  /* Login */
  .login-wrap { padding: 1rem .75rem; align-items: flex-start; }
  .login-card { padding: 1.6rem 1.15rem; }

  /* Instalador: comandos y log con scroll propio, nunca de la pagina */
  .comando, .log { font-size: .7rem; }
  .fila-accion input  { min-width: 0; }
  .fila-accion button { width: 100%; }

  .toast { bottom: .75rem; }
}

@media (max-width: 420px) {
  html { font-size: 15px; }

  .marca span:last-child { font-size: .85rem; }
  .avatar   { width: 30px; height: 30px; font-size: .8rem; }
  .resumen-etiqueta { font-size: .62rem; }
  .ticket-numero    { font-size: .7rem; }
  .ticket-pie       { flex-wrap: wrap; }
}

/* ─── Instalador (instalar.php) ─────────────────────────────── */
.chk-lista { list-style: none; display: flex; flex-direction: column; gap: .45rem; }

.chk {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  line-height: 1.5;
}

.chk-i {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: .1rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  color: var(--white);
}

.chk-ok    .chk-i { background: var(--green-dark); }
.chk-mal   .chk-i { background: var(--error); }
.chk-aviso .chk-i { background: #F59E0B; }

.chk-mal   { color: #991B1B; }
.chk-aviso { color: var(--warn); }

.accion {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
  padding-top: 1rem;
  margin-top: .4rem;
  border-top: 1px solid var(--border-soft);
}

.fila-accion { display: flex; gap: .5rem; width: 100%; flex-wrap: wrap; }
.fila-accion input { flex: 1; min-width: 200px; }

.comando, .log {
  padding: .8rem 1rem;
  background: var(--text);
  color: #E2E8F0;
  border-radius: var(--radius);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .78rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.log { max-height: 22rem; overflow-y: auto; font-size: .72rem; }

.etiqueta-opcional {
  margin-left: .5rem;
  padding: .15rem .5rem;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cierre-instalador {
  padding: 1rem 1.25rem;
  font-size: .85rem;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.6;
}

/* ─── Ticket eliminado en ClickUp ───────────────────────────── */
.ticket-eliminado .ticket-titulo {
  text-decoration: line-through;
  color: var(--text-muted);
}

.ticket-eliminado .ticket-desc { opacity: .7; }

.ticket-eliminado .pastilla {
  --color-estado: #94A3B8;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .68rem;
}
