/* ============================================================
   Diplomas para Formaciones — estilos específicos del módulo
   Extiende style.css. No repite ninguna regla base.
   ============================================================ */

/* ── Botón primario en línea ── */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 24px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.btn-action:hover { background: var(--brand); color: var(--white); text-decoration: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
  padding: 0;
}
.btn-icon:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-icon-danger:hover { border-color: #fecdd3; color: var(--brand); background: #fff1f2; }

/* ── Dropdown de botón ── */
.btn-dropdown { position: relative; display: inline-flex; }
.btn-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  min-width: 200px;
  z-index: 100;
  padding: 4px 0;
}
.btn-dropdown-menu.open { display: block; }
.btn-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
  transition: background .1s;
}
.btn-dropdown-item:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.btn-dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ── Módulo header ── */
.mod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
/* Títulos principales alineados con .page-header h2 de la home */
.mod-header h2 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 2px;
}
.mod-header .page-subtitle { margin: 0; }
.mod-header-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Topbar: breadcrumb izquierda + acciones derecha ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .topbar-actions { width: 100%; flex-wrap: wrap; }
  .topbar-actions .btn-outline,
  .topbar-actions .btn-action { flex: 1; justify-content: center; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  font-size: 12px;
}
.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background .12s, color .12s;
}
.breadcrumb a:hover {
  color: var(--text);
  background: var(--bg);
  text-decoration: none;
}
.breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: var(--border);
  margin: 0 1px;
  flex-shrink: 0;
}
/* El último elemento (página actual) */
.breadcrumb > span:last-child,
.breadcrumb > .edition-tag:last-child {
  color: var(--text);
  padding: 3px 6px;
}

/* ── File upload estilizado ── */
.file-upload {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .15s;
  cursor: pointer;
}
.file-upload:hover,
.file-upload:focus-within { border-color: var(--brand); }
.file-upload input[type=file] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
}
.file-upload-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
}
.file-upload-name {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.file-upload-name.has-file { color: var(--text); }
[data-theme="dark"] .file-upload-btn { background: var(--surface); border-color: var(--border); }

/* ── Heading de categoría — mismo tamaño que .project-name de la home ── */
.cat-heading {
  font-family: 'Bebas Neue', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 24px 0 10px;
}
.cat-heading:first-child { margin-top: 0; }

/* ── Grid de cursos ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.course-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.course-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(206,37,88,.07);
  text-decoration: none;
}
.course-card-name { font-size: 13px; font-weight: 400; color: var(--text); line-height: 1.4; }
.course-card-meta { font-size: 11px; color: var(--text-light); margin-top: auto; }

/* ── Sección label (pequeño, uppercase) ── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ── Separador ── */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Asset row ── */
.asset-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.asset-item { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.asset-label { color: var(--text-light); }
.asset-ok   { color: #166534; }
.asset-miss { color: var(--brand); }

/* ── Meta chips ── */
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.meta-chip {
  font-size: 11px;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-light);
  background: var(--bg);
  white-space: nowrap;
}

/* ── Tag (edition name) — 2pt más pequeño que el contexto ── */
.edition-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-light);
  background: var(--bg);
  white-space: nowrap;
}

/* ── Tabla de asistentes ── */
/* table-layout:fixed + anchos en th garantizan que name/org no wrappeen */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.data-table th {
  text-align: left;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
}
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  font-size: 12px;
  font-weight: 400;
  /* Previene overflow en todas las celdas */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg); }

/* Anchos de columna — email y cargo ocultos, espacio redistribuido */
.data-table .col-name    { width: 36%; }
.data-table .col-org     { width: 30%; }
.data-table .col-status  { width: 12%; }
.data-table .col-actions { width: 22%; white-space: nowrap; overflow: visible; }

/* ── Modal de edición ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: 14px; font-weight: 500; color: var(--text); margin: 0;
}
.modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  border: none; background: transparent;
  font-size: 18px; color: var(--text-light); cursor: pointer;
  transition: background .12s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body  { padding: 20px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--border);
  background: var(--bg);
}
[data-theme="dark"] .modal-card { background: var(--surface); }
[data-theme="dark"] .modal-footer { background: #161f2e; }

/* Celdas truncables con tooltip en hover */
.trunc-cell {
  position: relative;
  cursor: default;
  display: block;           /* necesario para que ellipsis funcione en td con fixed */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trunc-cell .cell-tooltip {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  background: var(--text);
  color: var(--white);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trunc-cell:hover .cell-tooltip { display: block; }

/* Mantener compatibilidad con .email-cell existente */
.email-cell { position: relative; cursor: default; }
.email-cell .email-tooltip {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  background: var(--text);
  color: var(--white);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
}
.email-cell:hover .email-tooltip { display: block; }

/* ── Acciones de fila ── */
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ── Badge de estado ── */
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.badge-sent     { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.badge-unsent   { background: var(--bg); color: var(--text-light); border: 1px solid var(--border); }
.badge-feedback { background: #16a34a; color: #ffffff; border: 1px solid #15803d; font-weight: 600; }

/* ── Stats ── */
.stats-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-light);
}
.stats-row strong { color: var(--text); font-weight: 500; }

/* ── Inline add form ── */
.inline-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.field-group { display: flex; flex-direction: column; gap: 4px; }
.field-group label {
  font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-light);
}
.field-hint { font-size: 10px; color: var(--text-light); margin-top: 2px; }

/* ── Empty state ── */
.editions-empty { padding: 32px 0; text-align: center; color: var(--text-light); font-size: 13px; }
.editions-empty a { color: var(--brand); }

/* ── Table toolbar ── */
.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.table-toolbar-left {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-light);
}
.table-toolbar-right { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Edition actions (ZIP + enviar + probar) ── */
.edition-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Dark mode ── */
[data-theme="dark"] .course-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .course-card:hover { box-shadow: 0 2px 8px rgba(206,37,88,.15); }
[data-theme="dark"] .inline-form { background: #161f2e; border-color: var(--border); }
[data-theme="dark"] .data-table tbody tr:hover td { background: #161f2e; }
[data-theme="dark"] .badge-sent     { background: #052e16; border-color: #166534; color: #86efac; }
[data-theme="dark"] .badge-unsent  { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .badge-feedback { background: #15803d; border-color: #166534; color: #f0fdf4; }
[data-theme="dark"] .meta-chip,
[data-theme="dark"] .edition-tag   { background: var(--surface); }
[data-theme="dark"] .btn-action    { background: var(--text); }
[data-theme="dark"] .btn-action:hover { background: var(--brand); }
[data-theme="dark"] .btn-dropdown-menu { background: var(--surface); border-color: var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.4); }
[data-theme="dark"] .btn-dropdown-item:hover { background: #374151; }
[data-theme="dark"] .email-cell .email-tooltip { background: var(--text); color: var(--bg); }

/* ── Avatar iniciales ── */
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  text-transform: uppercase;
  user-select: none;
}

/* ── Dropdown section label ── */
.btn-dropdown-section-label {
  padding: 6px 14px 3px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-light);
}

/* ── Row dropdown (per-attendee) ── */
.row-dropdown { position: relative; }
.row-dropdown .btn-dropdown-menu {
  top: calc(100% + 4px);
  z-index: 200;
}

/* ── Stats bar (index de formaciones) ── */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 24px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 80px;
}
.stat-num {
  font-family: 'Bebas Neue', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 20px;
  flex-shrink: 0;
}

/* ── Search input ── */
.search-input {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  color: var(--text);
  background: var(--surface);
  width: 220px;
  outline: none;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--brand); }
.search-input::placeholder { color: var(--text-light); }

/* ── Row link (course name in table) ── */
.row-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  white-space: normal;
  word-break: break-word;
}
.row-link:hover { color: var(--brand); text-decoration: none; }

/* ── Language badge ── */
.badge-lang {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-light);
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Language badges (edition table) ── */
.lang-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.lang-es { background: #f3f4f6; color: #6b7280; }
.lang-pt { background: #fef3c7; color: #92400e; }
.lang-en { background: #dbeafe; color: #1d4ed8; }

/* ── Modalidad badges (edition table) ── */
.mod-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.mod-online     { background: #dcfce7; color: #15803d; }
.mod-presencial { background: #dbeafe; color: #1d4ed8; }

/* ── Date badge (edition table) ── */
.date-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  background: var(--bg-section, #f3f4f6);
  color: var(--text-main);
}

/* ── Category badges (index formaciones) ── */
.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
/* Category badges — neutral palette (Diego 2026-07-08) */
.cat-cn, .cat-gc, .cat-gs, .cat-ia, .cat-tv, .cat-sec, .cat-obs {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}
/* Date badges — future in green, past in gray */
.date-badge-future {
  background: #dcfce7 !important;
  color: #15803d !important;
  font-weight: 600;
}
.date-badge-past {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}

/* ── Courses table column widths ── */
.courses-table col.col-curso-nombre  { width: auto; }
.courses-table col.col-curso-cat     { width: 115px; }
.courses-table col.col-curso-num     { width: 80px; }
.courses-table col.col-curso-fecha   { width: 170px; }
.courses-table col.col-curso-actions { width: 72px; }

/* ── text-muted helper ── */
.text-muted { color: var(--text-light) !important; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-4  { grid-template-columns: repeat(2, 1fr); }
  .form-grid-3  { grid-template-columns: repeat(2, 1fr); }
  .courses-table col.col-curso-cat   { display: none; }
  .courses-table .col-curso-cat      { display: none; }
}

/* Pantallas medianas: ocultar email y cargo, repartir el espacio entre nombre y org */
@media (max-width: 720px) {
  .data-table .col-hide-mobile,
  .data-table th.col-hide-mobile,
  .data-table td.col-hide-mobile { display: none; }
  /* Con 2 columnas menos, nombre y org tienen más espacio */
  .data-table .col-name    { width: 35%; }
  .data-table .col-org     { width: 30%; }
  .data-table .col-status  { width: 14%; }
  .data-table .col-actions { width: 21%; }
}

@media (max-width: 600px) {
  .courses-grid { grid-template-columns: 1fr; }
  .mod-header   { flex-direction: column; align-items: flex-start; }
  .edition-actions { width: 100%; }
  .edition-actions .btn-action,
  .edition-actions .btn-outline { flex: 1; justify-content: center; }
  .form-grid-4, .form-grid-3, .form-grid-2 { grid-template-columns: 1fr; }
  /* Ocultar email y cargo en pantallas pequeñas */
  .data-table .col-hide-mobile,
  .data-table th.col-hide-mobile,
  .data-table td.col-hide-mobile { display: none; }
  .table-toolbar { flex-direction: column; align-items: flex-start; }
  .table-toolbar-right { width: 100%; }
  .stats-row { gap: 10px; }
  .stats-bar { padding: 14px 16px; gap: 0; }
  .stat-divider { margin: 0 12px; height: 28px; }
  .stat-num { font-size: 22px; }
  .search-input { width: 100%; }
  .courses-table col.col-curso-fecha { display: none; }
  .courses-table .col-curso-fecha    { display: none; }
}



/* ── Split lists /formaciones (Diego 2026-07-08) ── */
.list-heading {
  font-size: 14px;
  font-weight: 600;
  margin: 28px 0 10px 0;
  padding: 0 0 6px 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}
.list-heading .list-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #6b7280;
}
.list-heading-active {
  color: #15803d;
}
.list-heading-active .list-count {
  background: #dcfce7;
  color: #15803d;
}
.list-heading-inactive {
  color: #6b7280;
}

/* Columna Próxima edición — sin ellipsis para que quepa entero (Diego 2026-07-08) */
.courses-table .col-curso-fecha,
.courses-table tbody tr td:nth-child(4) {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}


/* Badge interesados pendientes de convocatoria (Diego 2026-07-09 v2) */
.badge-interesados {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  vertical-align: middle;
  cursor: pointer;
  text-decoration: none !important;
  position: relative;
  transition: background 120ms;
}
.badge-interesados:hover {
  background: #fde68a;
  color: #78350f;
}
/* Tooltip flotante badge-interesados (JS-driven, display none/block para simplicidad) */
.badge-interesados-tooltip {
  display: none;
  position: fixed;
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 340px;
  min-width: 180px;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  pointer-events: none;
  white-space: pre-line;
}
.badge-interesados-tooltip.visible { display: block; }
.badge-interesados-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a1a;
}

