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

body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0e1116;
  color: #e6edf3;
  min-height: 100vh;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2d333b;
  margin-bottom: 24px;
}

h1 { font-size: 24px; font-weight: 600; }
.brand { color: #2ea043; font-weight: 700; }

.resumen { display: flex; gap: 12px; flex-wrap: wrap; }
.metric {
  background: #161b22;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 110px;
  border-left: 3px solid #58a6ff;
}
.metric.pos { border-left-color: #2ea043; }
.metric.neg { border-left-color: #f85149; }
.metric-label { font-size: 11px; opacity: 0.7; text-transform: uppercase; }
.metric-value { font-size: 22px; font-weight: 700; margin-top: 4px; }

.seccion { margin-bottom: 32px; }
.seccion h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b949e;
}
.seccion h2 small { font-weight: 400; opacity: 0.6; }

.plataformas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: #161b22;
  border: 1px solid #2d333b;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2d333b;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.card-head h3 { font-size: 16px; font-weight: 600; }
.badge {
  background: #30363d;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Colores especificos por plataforma */
.platform-instagram .card-head h3 { color: #e1306c; }
.platform-tiktok    .card-head h3 { color: #25f4ee; }
.platform-linkedin  .card-head h3 { color: #0a66c2; }
.platform-whatsapp  .card-head h3 { color: #25d366; }

.platform-instagram { border-top: 3px solid #e1306c; }
.platform-tiktok    { border-top: 3px solid #25f4ee; }
.platform-linkedin  { border-top: 3px solid #0a66c2; }
.platform-whatsapp  { border-top: 3px solid #25d366; }

.lead-list { list-style: none; flex: 1; overflow-y: auto; max-height: 360px; }
.lead-list li {
  padding: 8px 10px;
  border-bottom: 1px solid #21262d;
  font-size: 13px;
}
.lead-list li:last-child { border-bottom: none; }
.lead-list li.lead-li {
  cursor: pointer;
  transition: background 0.1s;
}
.lead-list li.lead-li:hover { background: #1c2129; }
.lead-list li.empty {
  text-align: center;
  opacity: 0.5;
  padding: 30px 10px;
  font-style: italic;
}
.lead-name { font-weight: 600; }
.lead-meta { font-size: 11px; opacity: 0.6; margin-top: 2px; }
.lead-estado {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  background: #30363d;
  margin-left: 6px;
}

/* Atendidos */
.lista-atendidos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.atendido {
  background: #161b22;
  border: 1px solid #2d333b;
  border-left: 3px solid #d29922;
  border-radius: 8px;
  padding: 12px 14px;
}
.atendido .agente {
  font-weight: 600;
  color: #d29922;
  font-size: 13px;
  text-transform: uppercase;
}
.atendido .lead-info { margin-top: 6px; font-size: 14px; }
.atendido .meta { font-size: 11px; opacity: 0.6; margin-top: 6px; }
.atendido .estado-tag {
  display: inline-block;
  background: #30363d;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Esperando cita */
.lista-citas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.cita-card {
  background: #161b22;
  border: 1px solid #2d333b;
  border-left: 3px solid #6e3ec0;
  border-radius: 8px;
  padding: 12px 14px;
}
.cita-card.cita-inmediata { border-left-color: #2ea043; }
.cita-card.cita-programada { border-left-color: #1f6feb; }
.cita-card.cita-no_listo { border-left-color: #6e7681; }
.cita-card .cita-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  background: #6e3ec0;
  color: white;
}
.cita-card.cita-inmediata .cita-tag { background: #2ea043; }
.cita-card.cita-programada .cita-tag { background: #1f6feb; }
.cita-card.cita-no_listo .cita-tag { background: #6e7681; }
.cita-card .producto-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #30363d;
  margin-left: 6px;
  font-family: monospace;
}
.cita-card .lead-info { margin-top: 6px; font-size: 14px; font-weight: 600; }
.cita-card .meta { font-size: 11px; opacity: 0.6; margin-top: 6px; }
.cita-card .cita-fecha {
  font-size: 12px;
  margin-top: 4px;
  color: #58a6ff;
  font-weight: 600;
}
.cita-card .actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Catalogo en modal enviar-info */
.catalogo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 14px;
}
.catalogo-row {
  background: #0e1116;
  border: 1px solid #2d333b;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.1s;
}
.catalogo-row:hover { border-color: #58a6ff; }
.catalogo-row.seleccionado {
  border-color: #2ea043;
  background: rgba(46, 160, 67, 0.10);
  box-shadow: 0 0 0 1px #2ea043;
}
.catalogo-row .cat-id {
  font-size: 10px;
  font-family: monospace;
  opacity: 0.6;
  text-transform: uppercase;
}
.catalogo-row .cat-nombre { font-weight: 600; font-size: 13px; margin-top: 2px; }
.catalogo-row .cat-precio {
  font-size: 11px;
  color: #58a6ff;
  margin-top: 4px;
  font-weight: 600;
}
.catalogo-row .cat-sub { font-size: 10px; opacity: 0.6; }

.modal-preview {
  background: #0e1116;
  border: 1px solid #2d333b;
  border-radius: 6px;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
  font-family: "Consolas", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hidden { display: none !important; }

/* Cerrados */
.lista-cerrados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.cerrado {
  background: #161b22;
  border: 1px solid #2d333b;
  border-radius: 8px;
  padding: 12px 14px;
}
.cerrado.positivo { border-left: 3px solid #2ea043; }
.cerrado.negativo { border-left: 3px solid #f85149; }
.cerrado .resultado-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
}
.cerrado.positivo .resultado-tag { background: #2ea043; color: white; }
.cerrado.negativo .resultado-tag { background: #f85149; color: white; }
.cerrado .lead-info { margin-top: 6px; font-size: 14px; font-weight: 600; }
.cerrado .agente-resp { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.cerrado .meta { font-size: 11px; opacity: 0.6; margin-top: 6px; }
.cerrado .notas { font-size: 12px; margin-top: 6px; opacity: 0.85; font-style: italic; }
.cerrado .ver-transc {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: #1f6feb;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  border: none;
}
.cerrado .ver-transc:hover { background: #388bfd; }
.cerrado .sin-transc {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.5;
  font-style: italic;
}

.empty {
  background: #161b22;
  border: 1px dashed #2d333b;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  opacity: 0.5;
  font-style: italic;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden { display: none; }
.modal-content {
  background: #161b22;
  border: 1px solid #2d333b;
  border-radius: 10px;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.modal-content h3 { margin-bottom: 12px; padding-right: 30px; }
.modal-content .close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #e6edf3;
  font-size: 22px;
  cursor: pointer;
}
.modal-content pre {
  background: #0e1116;
  padding: 14px;
  border-radius: 6px;
  white-space: pre-wrap;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}

/* Botones de accion en cards */
.lead-list li {
  position: relative;
}
.lead-list li .actions {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}
.btn-asignar, .btn-confirmar, .btn-cerrar {
  background: #1f6feb;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.btn-asignar:hover, .btn-confirmar:hover, .btn-cerrar:hover { background: #388bfd; }
.btn-confirmar { background: #d29922; }
.btn-confirmar:hover { background: #e3b341; }
.btn-cerrar { background: #6e7681; }
.btn-cerrar:hover { background: #8b949e; }

/* Modal asignar - lista de agentes */
.modal-sub { opacity: 0.7; font-size: 13px; margin-bottom: 14px; }
.agente-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.agente-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #0e1116;
  border: 1px solid #2d333b;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.1s;
}
.agente-row:hover { border-color: #58a6ff; }
.agente-row.no-disp { opacity: 0.55; }
.agente-row.seleccionado {
  border-color: #2ea043;
  background: rgba(46, 160, 67, 0.10);
  box-shadow: 0 0 0 1px #2ea043;
}
.agente-row .agente-info { flex: 1; }
.agente-row .agente-name { font-weight: 600; font-size: 14px; }
.agente-row .agente-meta { font-size: 11px; opacity: 0.7; margin-top: 2px; }
.agente-row .disp-tag {
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.agente-row .disp-tag.disp-yes { background: #2ea043; color: white; }
.agente-row .disp-tag.disp-no  { background: #6e7681; color: white; }

.modal-foot {
  padding-top: 10px;
  border-top: 1px solid #2d333b;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-foot-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.modal-foot-actions .btn {
  flex: 0 0 auto;
  min-width: 110px;
  padding: 9px 16px;
  font-size: 12px;
}
.modal-foot-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.check {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Modal cerrar */
.modal-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  color: white;
}
.btn-pos { background: #2ea043; }
.btn-pos:hover { background: #3fb950; }
.btn-neg { background: #f85149; }
.btn-neg:hover { background: #ff6961; }
.btn-esp { background: #d29922; }
.btn-esp:hover { background: #e3b341; }

.modal-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
  margin-top: 8px;
}
.modal-content textarea, .modal-content input[type="file"] {
  width: 100%;
  background: #0e1116;
  color: #e6edf3;
  border: 1px solid #2d333b;
  border-radius: 6px;
  padding: 8px;
  font-family: inherit;
  font-size: 13px;
}
.modal-hint { font-size: 11px; opacity: 0.55; margin-top: 6px; }

/* Bots WSP */
.btn-bot {
  background: #25d366;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.btn-bot:hover { background: #3ddb7c; }
.btn-bot-ig {
  background: #e1306c;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.btn-bot-ig:hover { background: #f04085; }
.btn-bot-claude {
  background: linear-gradient(135deg, #9b58e0, #6e3ec0);
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 700;
}
.btn-bot-claude:hover { filter: brightness(1.15); }

/* Modal historial */
.historial-info {
  background: #0e1116;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #2d333b;
  margin-bottom: 14px;
}
.historial-info > div { margin-top: 6px; }
.historial-info > div:first-child { margin-top: 0; font-size: 16px; }
.historial-meta { font-size: 12px; opacity: 0.7; }
.historial-notas {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #2d333b;
  font-size: 13px;
  font-style: italic;
}
.historial-h {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.6;
  letter-spacing: 0.5px;
}
.historial-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.historial-toolbar .btn-bot-ig:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Burbujas historial: estilo WhatsApp */
#modal-historial-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
  background: #0a0d12;
  border-radius: 8px;
}
.hist-msg {
  max-width: 72%;
  padding: 8px 12px 10px;
  border-radius: 10px;
  position: relative;
  word-wrap: break-word;
}
.hist-msg-cliente {
  background: #1f3a26;
  border: 1px solid #2ea043;
  align-self: flex-start;
  border-top-left-radius: 2px;
}
.hist-msg-sistema {
  background: #1f3a5f;
  border: 1px solid #58a6ff;
  align-self: flex-end;
  color: #e6edf3;
  border-top-right-radius: 2px;
}
.hist-msg-header {
  font-size: 10px;
  opacity: 0.85;
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
}
.hist-msg-cliente .hist-msg-header { color: #56d364; }
.hist-msg-sistema .hist-msg-header { color: #79c0ff; }
.hist-tipo {
  font-family: monospace;
  text-transform: none;
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
}
.hist-msg-body {
  font-family: inherit;
  font-size: 13px;
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.5;
  color: #e6edf3;
}

.lista-bots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.bot-card {
  background: #161b22;
  border: 1px solid #2d333b;
  border-left: 3px solid #25d366;
  border-radius: 8px;
  padding: 12px 14px;
}
.bot-card.bot-FINALIZADO { border-left-color: #2ea043; opacity: 0.85; }
.bot-card.bot-RECHAZADO  { border-left-color: #6e7681; opacity: 0.7; }
.bot-card.bot-EXPIRADO   { border-left-color: #f85149; opacity: 0.7; }
.bot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.bot-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #25d366;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
}
.bot-card.bot-FINALIZADO .bot-tag { background: #2ea043; }
.bot-card.bot-RECHAZADO  .bot-tag { background: #6e7681; }
.bot-card.bot-EXPIRADO   .bot-tag { background: #f85149; }
.bot-tel { font-family: monospace; font-size: 12px; opacity: 0.7; }
.bot-info { font-size: 14px; }
.bot-meta { font-size: 11px; opacity: 0.65; margin-top: 6px; line-height: 1.5; }

/* Chat modal */
.bot-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.bot-msg {
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 80%;
}
.bot-msg-out {
  background: #1f6feb;
  align-self: flex-start;
  color: white;
}
.bot-msg-in {
  background: #1d2a1f;
  border: 1px solid #2ea043;
  align-self: flex-end;
}
.bot-msg-header {
  font-size: 10px;
  opacity: 0.65;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bot-msg-body {
  font-family: inherit;
  font-size: 13px;
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Pagina reportes ---------- */
.filtros {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  background: #161b22;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #2d333b;
}
.filtros label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.7;
  gap: 4px;
}
.filtros input[type="date"], .filtros select {
  background: #0e1116;
  color: #e6edf3;
  border: 1px solid #2d333b;
  border-radius: 6px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 13px;
  text-transform: none;
}
.presets {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.presets button {
  background: #21262d;
  color: #e6edf3;
  border: none;
  padding: 7px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.presets button:hover { background: #30363d; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #2d333b;
  padding-bottom: 0;
}
.tab {
  background: transparent;
  color: #8b949e;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: #e6edf3; }
.tab.activa {
  color: #e6edf3;
  border-bottom-color: #2ea043;
}

.tabla-wrap {
  overflow-x: auto;
  background: #161b22;
  border: 1px solid #2d333b;
  border-radius: 8px;
}
.report-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.report-tabla th {
  background: #0e1116;
  text-align: left;
  padding: 8px 10px;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.7;
  border-bottom: 1px solid #2d333b;
}
.report-tabla td {
  padding: 8px 10px;
  border-bottom: 1px solid #21262d;
}
.report-tabla tr:last-child td { border-bottom: none; }
.report-tabla tr:hover { background: #1c2129; }

.estado-positivo { background: #2ea043; color: white; }
.estado-negativo { background: #f85149; color: white; }
.estado-en_espera { background: #d29922; color: white; }
.estado-rechazado { background: #6e7681; color: white; }

.closer-header {
  background: #161b22;
  border: 1px solid #2d333b;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.closer-header h3 { margin-bottom: 4px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #161b22;
  border: 1px solid #2d333b;
  border-left: 3px solid #2ea043;
  padding: 12px 18px;
  border-radius: 6px;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 13px;
  max-width: 360px;
}
.toast.error { border-left-color: #f85149; }
.toast.hidden { display: none; }

/* ---------- Pagina closers ---------- */
.back-link {
  font-size: 14px;
  color: #58a6ff;
  text-decoration: none;
  margin-right: 12px;
  font-weight: 400;
}
.back-link:hover { text-decoration: underline; }

.btn-primary {
  background: #2ea043;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.btn-primary:hover { background: #3fb950; }

.btn-cancel {
  background: #30363d;
  color: #e6edf3;
}
.btn-cancel:hover { background: #484f58; }

.closers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.closer-card {
  background: #161b22;
  border: 1px solid #2d333b;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.closer-card.inactivo { opacity: 0.55; }
.closer-card.inactivo .closer-status { background: #6e7681; }

.closer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.closer-name { font-size: 17px; font-weight: 700; }
.closer-tel { font-size: 12px; opacity: 0.7; margin-top: 2px; font-family: monospace; }
.closer-notas { font-size: 12px; opacity: 0.7; margin-top: 6px; font-style: italic; }
.closer-status {
  background: #2ea043;
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.closer-meta {
  font-size: 11px;
  opacity: 0.55;
  margin-top: 8px;
  border-top: 1px solid #21262d;
  padding-top: 8px;
}

.closer-horarios {
  margin-top: 10px;
  font-size: 12px;
}
.closer-horarios .dia-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px dashed #21262d;
}
.closer-horarios .dia-row:last-child { border-bottom: none; }
.closer-horarios .dia-name { font-weight: 600; min-width: 36px; }
.closer-horarios .dia-franjas { opacity: 0.85; }
.closer-horarios .dia-franjas.libre { opacity: 0.4; font-style: italic; }

.closer-actions {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.closer-actions button {
  flex: 1;
  min-width: 80px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-edit { background: #1f6feb; color: white; }
.btn-edit:hover { background: #388bfd; }
.btn-toggle { background: #d29922; color: white; }
.btn-toggle:hover { background: #e3b341; }
.btn-horario { background: #6e3ec0; color: white; }
.btn-horario:hover { background: #8957e5; }
.btn-del { background: #f85149; color: white; }
.btn-del:hover { background: #ff6961; }

.modal-content input[type="text"] {
  width: 100%;
  background: #0e1116;
  color: #e6edf3;
  border: 1px solid #2d333b;
  border-radius: 6px;
  padding: 8px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 4px;
}

.modal-wide { max-width: 720px; }

.horario-tabla {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}
.horario-tabla th, .horario-tabla td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid #21262d;
  font-size: 12px;
}
.horario-tabla th {
  background: #0e1116;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  opacity: 0.7;
}
.horario-tabla input[type="text"] {
  width: 75px;
  padding: 4px 6px;
  font-size: 12px;
  margin: 0;
  font-family: monospace;
}
.horario-tabla button {
  background: #2ea043;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.horario-tabla button:hover { background: #3fb950; }
.horario-tabla button.btn-del-row { background: #6e7681; }
.horario-tabla button.btn-del-row:hover { background: #8b949e; }
.horario-tabla button.btn-row-copy { background: #6e3ec0; }
.horario-tabla button.btn-row-copy:hover { background: #8957e5; }
.horario-tabla button.btn-row-paste { background: #1f6feb; }
.horario-tabla button.btn-row-paste:hover:not(:disabled) { background: #388bfd; }
.horario-tabla button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.acciones-cell {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* Fila origen de copia: resaltada */
tr.origen-copia td:first-child b {
  color: #6e3ec0;
}
tr.origen-copia {
  background: rgba(110, 62, 192, 0.08);
}

/* Barra superior con el horario copiado */
.copia-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(110, 62, 192, 0.14);
  border: 1px solid #6e3ec0;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.copia-info code {
  background: #0e1116;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}
.copia-info .btn-pegar-todos {
  margin-left: auto;
  background: #6e3ec0;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.copia-info .btn-pegar-todos:hover { background: #8957e5; }
.copia-info .btn-cancel-copia {
  background: transparent;
  color: #e6edf3;
  border: 1px solid #2d333b;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.copia-info .btn-cancel-copia:hover { background: #21262d; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
