/* Glosario — índice y ficha de término */
.glossary-term-page {
  padding-bottom: 3rem;
  background: linear-gradient(180deg, #fef8f9 0%, var(--bg) 28%, var(--bg2) 100%);
}
.glossary-term-hero {
  background: linear-gradient(135deg, rgba(225,29,72,.07) 0%, rgba(251,113,133,.04) 45%, transparent 70%);
  border-bottom: 1px solid rgba(17,24,39,.06);
}
.glossary-term-hero__breadcrumb .breadcrumb-item a { color: var(--muted); }
.glossary-term-hero__breadcrumb .breadcrumb-item a:hover { color: var(--brand); }
.glossary-term-badge {
  display: inline-block;
  padding: .4rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid rgba(225,29,72,.18);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(225,29,72,.08);
}
a.glossary-term-badge:hover { border-color: rgba(225,29,72,.35); color: var(--brand); }
.glossary-term-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .85rem;
  max-width: 18ch;
}
.glossary-term-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #4b5563;
  max-width: 42rem;
  margin-bottom: 1.25rem;
}
.glossary-term-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: .875rem;
  color: var(--muted);
}
.glossary-term-hero__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.glossary-term-hero__meta i { color: var(--brand); }
.glossary-term-article { border-radius: var(--radius); overflow: hidden; }
.glossary-term-body { font-size: 1.0625rem; line-height: 1.75; color: #374151; max-width: 68ch; }
.glossary-content p { margin-bottom: 1.15rem; }
.glossary-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 .85rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(17,24,39,.08);
}
.glossary-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.glossary-content h3 { font-size: 1.1rem; font-weight: 600; color: #1f2937; margin: 1.5rem 0 .65rem; }
.glossary-content ul, .glossary-content ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
.glossary-content li { margin-bottom: .45rem; }
.glossary-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.glossary-content strong { color: var(--ink); font-weight: 600; }
.glossary-term-disclaimer {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(59,130,246,.06) 0%, rgba(59,130,246,.03) 100%);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.55;
  color: #1e40af;
}
.glossary-term-disclaimer i { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.glossary-term-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.glossary-term-empty i { font-size: 2.5rem; display: block; margin-bottom: .75rem; opacity: .5; }
.glossary-term-section-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.glossary-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.glossary-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225,29,72,.2);
  box-shadow: 0 10px 28px rgba(17,24,39,.08);
  color: inherit;
}
.glossary-product-card__img { aspect-ratio: 1; overflow: hidden; background: #f8f9fa; }
.glossary-product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.glossary-product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9ca3af;
  font-size: 2rem;
}
.glossary-product-card__body { padding: .75rem .85rem; display: flex; flex-direction: column; gap: .25rem; }
.glossary-product-card__name {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.glossary-product-card__price { font-size: .95rem; font-weight: 700; color: var(--brand); }
.glossary-term-sidebar { position: sticky; top: 1rem; }
.glossary-sidebar-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.glossary-sidebar-title i { color: var(--brand); }
.glossary-related-list { list-style: none; padding: 0; margin: 0; }
.glossary-related-list li { border-bottom: 1px solid rgba(17,24,39,.06); }
.glossary-related-list li:last-child { border-bottom: 0; }
.glossary-related-list a { display: block; padding: .65rem 0; text-decoration: none; color: inherit; }
.glossary-related-list a:hover .glossary-related-list__term { color: var(--brand); }
.glossary-related-list__term { display: block; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.glossary-related-list__cat { display: block; font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.glossary-sidebar-cta {
  background: linear-gradient(160deg, rgba(225,29,72,.06) 0%, #fff 55%);
  border: 1px solid rgba(225,29,72,.1) !important;
}
.glossary-sidebar-cta__icon { font-size: 2rem; color: var(--brand); display: block; margin-bottom: .5rem; }
.glossary-page .card.shadow-sm { border-radius: var(--radius); }
@media (max-width: 991.98px) {
  .glossary-term-sidebar { position: static; }
  .glossary-term-title { max-width: none; }
}
