/* Hub de guías — visual e interactivo */
.page-guides-hub {
  --gh-accent: #60a5fa;
  --gh-accent2: #a78bfa;
  --gh-mu: #b21aff;
  --gh-mu2: #ff2bd6;
  --gh-ok: #34d399;
  --gh-warn: #fbbf24;
}

.page-guides-hub .guides-hero {
  position: relative;
  margin: 0 0 28px;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 40px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 80% 120% at 10% 20%, rgba(96, 165, 250, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(178, 26, 255, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(18, 26, 42, 0.95), rgba(10, 14, 24, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.page-guides-hub .guides-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.9;
}

.page-guides-hub .guides-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-guides-hub .guides-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  background: linear-gradient(90deg, #fff, var(--gh-accent), var(--gh-mu2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-guides-hub .guides-hero .lead {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(240, 244, 252, 0.82);
  max-width: 58ch;
}

.page-guides-hub .guides-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-guides-hub .guides-search-wrap {
  flex: 1;
  min-width: min(100%, 260px);
  max-width: 400px;
  position: relative;
}

.page-guides-hub .guides-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.45;
  pointer-events: none;
}

.page-guides-hub #guidesSearch {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-guides-hub #guidesSearch:focus {
  outline: none;
  border-color: var(--gh-accent);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.page-guides-hub #guidesSearch::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

.page-guides-hub .guides-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-guides-hub .guides-filter-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.page-guides-hub .guides-filter-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
}

.page-guides-hub .guides-filter-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(167, 139, 250, 0.25));
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.2);
}

.page-guides-hub .guides-filter-btn[data-filter="mu"][aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(178, 26, 255, 0.35), rgba(255, 43, 214, 0.2));
  border-color: rgba(178, 26, 255, 0.5);
  box-shadow: 0 8px 24px rgba(178, 26, 255, 0.2);
}

.page-guides-hub .guides-filter-btn[data-filter="tools"][aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(96, 165, 250, 0.2));
  border-color: rgba(52, 211, 153, 0.4);
}

.page-guides-hub .guides-stats {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.page-guides-hub .guides-stats strong {
  color: var(--gh-accent);
  font-weight: 700;
}

.page-guides-hub .guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: 8px;
}

.page-guides-hub .guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s cubic-bezier(0.2, 0.85, 0.2, 1), border-color 0.28s, box-shadow 0.28s;
  text-decoration: none;
  color: inherit;
  opacity: 1;
  transform: scale(1);
}

.page-guides-hub .guide-card[hidden] {
  display: none !important;
}

.page-guides-hub .guide-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.page-guides-hub .guide-card[data-category="mu"]:hover {
  border-color: rgba(178, 26, 255, 0.45);
  box-shadow: 0 24px 56px rgba(178, 26, 255, 0.12), 0 0 0 1px rgba(255, 43, 214, 0.1);
}

.page-guides-hub .guide-card-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(15, 23, 42, 0.6));
}

.page-guides-hub .guide-card[data-category="mu"] .guide-card-visual {
  background: linear-gradient(135deg, rgba(178, 26, 255, 0.22), rgba(255, 43, 214, 0.1), rgba(15, 23, 42, 0.5));
}

.page-guides-hub .guide-card[data-category="tools"] .guide-card-visual {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(96, 165, 250, 0.12), rgba(15, 23, 42, 0.55));
}

.page-guides-hub .guide-card-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-guides-hub .guide-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.page-guides-hub .guide-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(240, 244, 252, 0.85);
}

.page-guides-hub .guide-card[data-category="mu"] .guide-tag {
  border-color: rgba(178, 26, 255, 0.35);
  color: #e9d5ff;
}

.page-guides-hub .guide-card[data-category="tools"] .guide-tag {
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.page-guides-hub .guide-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #fff;
}

.page-guides-hub .guide-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.78);
  flex: 1;
}

.page-guides-hub .guide-card-cta {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-guides-hub .guide-card:hover .guide-card-cta {
  color: #93c5fd;
}

.page-guides-hub .guide-card[data-category="mu"]:hover .guide-card-cta {
  color: #e879f9;
}

.page-guides-hub .guides-section-title {
  margin: 40px 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-guides-hub .guides-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
}

.page-guides-hub .guides-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.page-guides-hub .guides-quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.page-guides-hub .guides-quick a:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.1);
  text-decoration: none;
}

.page-guides-hub .guides-empty {
  display: none;
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  margin-top: 20px;
}

.page-guides-hub .guides-empty.is-visible {
  display: block;
}

@media (max-width: 640px) {
  .page-guides-hub .guides-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .page-guides-hub .guides-search-wrap {
    max-width: none;
  }
}

/* Pie: contraste sobre el hub de guías (sin page-mu-brand) */
.page-guides-hub .footer {
  border-top-color: rgba(96, 165, 250, 0.2);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.page-guides-hub .footer-copy {
  color: rgba(226, 232, 240, 0.88);
}

.page-guides-hub .footer a,
.page-guides-hub .footer-mu-strip a {
  color: #7dd3fc;
}

.page-guides-hub .footer a:hover,
.page-guides-hub .footer-mu-strip a:hover {
  color: #fff;
}

.page-guides-hub .footer-mu-strip {
  border-top-color: rgba(96, 165, 250, 0.12);
}

.page-guides-hub .footer-mu-label {
  color: rgba(167, 139, 250, 0.95);
}
