/* === UNLIMITPDF UX PHASE 1 HUB === */
.ux-sample-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ux-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  cursor: pointer;
  transition: all 0.18s ease;
}
.ux-sample-btn:hover {
  background: rgba(37, 99, 235, 0.28);
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-1px);
}
body.light-mode .ux-sample-btn {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
}
body.light-mode .ux-sample-btn:hover {
  background: #dbeafe !important;
}

#uxSmartHub {
  width: 100%;
  max-width: 64rem;
  margin: 1.5rem auto 1.25rem;
  text-align: left;
}
.ux-search-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.ux-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ux-search-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0.8;
}
#uxToolSearch {
  width: 100%;
  padding: 11px 84px 11px 40px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.85);
  border: 1.5px solid rgba(59, 130, 246, 0.32);
  color: #f8fafc;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#uxToolSearch:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
#uxToolSearch::placeholder { color: #94a3b8; }
body.light-mode #uxToolSearch {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
body.light-mode #uxToolSearch:focus {
  border-color: #2563eb !important;
}
.ux-search-kbd {
  position: absolute;
  right: 12px;
  font-size: 10.5px;
  font-family: monospace;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid #334155;
  color: #94a3b8;
  cursor: pointer;
}
body.light-mode .ux-search-kbd {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

.ux-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ux-chip-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-right: 2px;
}
.ux-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(71, 85, 105, 0.45);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s;
}
.ux-chip:hover {
  border-color: #3b82f6;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.2);
}
body.light-mode .ux-chip {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
body.light-mode .ux-chip:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
}

/* Barra horizontal de pestañas estilo iLovePDF / Linear */
.ux-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.ux-tabs-bar::-webkit-scrollbar { display: none; }
.ux-tab-btn {
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.7);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.16s ease;
}
.ux-tab-btn:hover {
  color: #f1f5f9;
  border-color: #475569;
}
.ux-tab-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}
body.light-mode .ux-tab-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}
body.light-mode .ux-tab-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Rejilla de tarjetas optimizadas */
.ux-cards-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .ux-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ux-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ux-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 15px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(51, 65, 85, 0.65);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.ux-tool-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.35);
}
body.light-mode .ux-tool-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
body.light-mode .ux-tool-card:hover {
  border-color: #2563eb !important;
  box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.18) !important;
}

.ux-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.ux-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ux-fam-blue   { background: rgba(37, 99, 235, 0.18); border: 1px solid rgba(59, 130, 246, 0.35); }
.ux-fam-green  { background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(16, 185, 129, 0.35); }
.ux-fam-amber  { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.35); }
.ux-fam-violet { background: rgba(139, 92, 246, 0.18); border: 1px solid rgba(139, 92, 246, 0.35); }
.ux-fam-rose   { background: rgba(244, 63, 94, 0.18);  border: 1px solid rgba(244, 63, 94, 0.35); }
.ux-fam-cyan   { background: rgba(6, 182, 212, 0.18);  border: 1px solid rgba(6, 182, 212, 0.35); }

body.light-mode .ux-fam-blue   { background: #dbeafe !important; border-color: #93c5fd !important; }
body.light-mode .ux-fam-green  { background: #d1fae5 !important; border-color: #6ee7b7 !important; }
body.light-mode .ux-fam-amber  { background: #fef3c7 !important; border-color: #fcd34d !important; }
body.light-mode .ux-fam-violet { background: #ede9fe !important; border-color: #c4b5fd !important; }
body.light-mode .ux-fam-rose   { background: #ffe4e6 !important; border-color: #fda4af !important; }
body.light-mode .ux-fam-cyan   { background: #cffafe !important; border-color: #67e8f9 !important; }

.ux-pill-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2.5px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(71, 85, 105, 0.6);
  color: #38bdf8;
  white-space: nowrap;
}
body.light-mode .ux-pill-badge {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0369a1 !important;
}
.ux-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  margin-bottom: 4px;
}
body.light-mode .ux-card-title { color: #0f172a !important; }
.ux-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.38;
}
body.light-mode .ux-card-desc { color: #475569 !important; }

/* Recientes */
.ux-recent-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 11px;
  padding: 7px 11px;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px dashed rgba(16, 185, 129, 0.3);
}
body.light-mode .ux-recent-bar {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
}

/* Catálogo clásico plegado para conservar 100% SEO sin ruido visual */
.ux-legacy-seo-details {
  max-width: 64rem;
  margin: 14px auto 0;
  text-align: left;
}
.ux-legacy-seo-details > summary {
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  padding: 8px 12px;
  border-radius: 10px;
  list-style: none;
  text-align: center;
}
.ux-legacy-seo-details > summary:hover { color: #93c5fd; }

/* Modal Conserje Inteligente al soltar archivos */
#uxConciergeModal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#uxConciergeModal.open { display: flex; }
.ux-concierge-box {
  width: 100%;
  max-width: 540px;
  border-radius: 20px;
  background: #0f172a;
  border: 1px solid #334155;
  padding: 20px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}
body.light-mode .ux-concierge-box {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
.ux-concierge-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(71, 85, 105, 0.65);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.ux-concierge-btn:hover {
  border-color: #3b82f6;
  background: rgba(37, 99, 235, 0.2);
  transform: translateX(2px);
}
body.light-mode .ux-concierge-btn {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
body.light-mode .ux-concierge-btn:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
}

/* Toast flotante de ayuda contextual */
#uxFloatingToast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.45);
  display: none;
  align-items: center;
  gap: 8px;
  max-width: 92vw;
  text-align: center;
}

/* === UX FAVORITE STARS === */
.ux-tool-card.is-pinned {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 6px 20px -8px rgba(245, 158, 11, 0.28);
}
body.light-mode .ux-tool-card.is-pinned {
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%) !important;
}
.ux-card-badges-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ux-star-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1;
  color: #64748b;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(71, 85, 105, 0.45);
  transition: transform 0.15s, color 0.15s, border-color 0.15s;
}
.ux-star-toggle:hover {
  transform: scale(1.12);
  color: #fbbf24;
  border-color: #f59e0b;
}
.ux-star-toggle.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
}
body.light-mode .ux-star-toggle {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
}
body.light-mode .ux-star-toggle.active {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #d97706 !important;
}
