/* ==========================================================
   TAXONOMÍA CONTABILIDAD — Listing + Detail pages
   Design system: Inter, CSS variables matching contabilidad.css
   Figma nodes: 22889:179653 (listing), 22889:179795 (detail)
   ========================================================== */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --tc-primary: #b91c1c;
  --tc-primary-hover: #991b1b;
  --tc-primary-fg: #fafafa;
  --tc-dark-bg: #172554;
  --tc-dark-bg-fg: #ffffff;
  --tc-gray-bg: #f9fafb;
  --tc-gray-border: #e5e7eb;
  --tc-foreground: #0a0a0a;
  --tc-muted: #525252;
  --tc-border: #e5e5e5;
  --tc-shadow-xs: 0px 1px 2px 0px rgba(0,0,0,0.05);
  --tc-radius-sm: 8px;
  --tc-radius-md: 10px;
  --tc-max-w: 1280px;
}

/* ── Listing Page ───────────────────────────────────────── */
.taxonomia-listing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.taxonomia-listing-page__container {
  max-width: var(--tc-max-w);
  width: 100%;
  padding: 64px 0 28px;
}

.taxonomia-listing-page__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 28px;
}

/* ── Breadcrumb ────────────────────────────────────────── */
.taxonomia-listing-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.taxonomia-listing-page__breadcrumb-item {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--tc-foreground);
  white-space: nowrap;
}

.taxonomia-listing-page__breadcrumb-item--muted {
  color: var(--tc-muted);
}

.taxonomia-listing-page__breadcrumb-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  color: var(--tc-muted);
}

/* ── Title ─────────────────────────────────────────────── */
.taxonomia-listing-page__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--tc-foreground);
  margin: 0;
  letter-spacing: 0;
}

/* ── Grid layout for taxonomy cards ───────────────────── */
.taxonomia-listing-page .views-element-container > [class*="js-view-dom-id"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Remove the old margin-bottom from stacked layout */
.taxonomia-listing-page .views-row {
  margin-bottom: 0;
}

/* ── Card v2 (Figma 22889:77421) — gray outer + navy panel ── */
.taxonomia-card-v2 {
  background: var(--tc-gray-bg);
  border: 1px solid var(--tc-gray-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
  transition: box-shadow 0.2s;
}

.taxonomia-card-v2:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Navy top panel — 263px tall */
.taxonomia-card-v2__panel {
  background: #172554;
  height: 263px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.taxonomia-card-v2__title {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  color: #ffffff;
  margin: 0;
}

/* Decorative diagonal lines (////), centered in gap between horizontal lines */
.taxonomia-card-v2__icon-group {
  position: absolute;
  bottom: 28px;
  left: 61%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
}

/* Horizontal decorative lines near bottom */
.taxonomia-card-v2__deco-line {
  position: absolute;
  top: 223px;
  height: 2px;
  background: rgba(255,255,255,0.15);
}
.taxonomia-card-v2__deco-line--left {
  left: -1px;
  width: 307px;
}
.taxonomia-card-v2__deco-line--right {
  left: 461px;
  right: 0;
  width: auto;
  background: rgba(255,255,255,0.08);
}

/* Description text */
.taxonomia-card-v2__desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #525252;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taxonomia-card-v2__desc p,
.taxonomia-card-v2__desc span {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}

.taxonomia-card-v2__desc a,
.taxonomia-card-v2__desc .taxonomia-card__desc-link {
  color: #b91c1c;
  text-decoration: none;
}
.taxonomia-card-v2__desc a:hover {
  text-decoration: underline;
}

/* CTA button row */
.taxonomia-card-v2__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Red "Ir a Taxonomía" button */
.taxonomia-card-v2__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background: #b91c1c;
  color: #fafafa;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.05);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.taxonomia-card-v2__btn:hover {
  background: #991b1b;
  color: #fafafa;
  text-decoration: none;
}
.taxonomia-card-v2__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Card (legacy classes kept for safety) ───────────────── */
.taxonomia-card {
  background: var(--tc-gray-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
  transition: box-shadow 0.2s;
}

.taxonomia-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Card top — tall dark blue header (263px) */
.taxonomia-card__header {
  background: var(--tc-dark-bg);
  height: 263px;
  border-radius: var(--tc-radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.taxonomia-card__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  color: var(--tc-dark-bg-fg);
  margin: 0;
  max-width: 560px;
}

.taxonomia-card__title a {
  color: inherit;
  text-decoration: none;
}

.taxonomia-card__title a:hover {
  text-decoration: underline;
}

/* Decorative icon group (centered) */
.taxonomia-card__icon-group {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.8;
}

/* Bottom decorative lines */
.taxonomia-card__deco-lines {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  padding: 0 24px;
}

/* Card bottom — description + actions */
.taxonomia-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 4px;
}

.taxonomia-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--tc-muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rich text description — BOE links in red */
.taxonomia-card__excerpt a {
  color: var(--tc-primary);
  text-decoration: none;
}

.taxonomia-card__excerpt a:hover {
  text-decoration: underline;
}

.taxonomia-card__excerpt p {
  margin: 0;
}

.taxonomia-card__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Primary Button ────────────────────────────────────── */
.btn-primary,
a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background: var(--tc-primary);
  color: var(--tc-primary-fg);
  border: none;
  border-radius: var(--tc-radius-sm);
  box-shadow: var(--tc-shadow-xs);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover,
a.btn-primary:hover {
  background: var(--tc-primary-hover);
  text-decoration: none;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* External link badge */
.btn-external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 8px 12px;
  background: transparent;
  color: var(--tc-muted);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-external:hover {
  background: var(--tc-gray-bg);
  border-color: var(--tc-muted);
  color: var(--tc-foreground);
  text-decoration: none;
}

/* ── Detail Page (Figma 22889:77563) ──────────────────── */
.taxonomia-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Hero — white background, breadcrumb + title */
.taxonomia-detail__hero-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 64px 0 28px;
}


.taxonomia-detail__hero-container {
  max-width: var(--tc-max-w);
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Breadcrumb */
.taxonomia-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.taxonomia-detail__breadcrumb-item {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.taxonomia-detail__breadcrumb-item--muted {
  color: var(--tc-muted);
}

.taxonomia-detail__breadcrumb-item--muted a {
  color: var(--tc-muted);
  text-decoration: none;
}

.taxonomia-detail__breadcrumb-item--muted a:hover {
  text-decoration: underline;
}

.taxonomia-detail__breadcrumb-item--active {
  color: var(--tc-foreground);
  font-weight: 400;
}

.taxonomia-detail__breadcrumb-sep {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tc-muted);
}

.taxonomia-detail__breadcrumb-sep svg {
  width: 100%;
  height: 100%;
}

.taxonomia-detail__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--tc-foreground);
  margin: 0 0 0;
  letter-spacing: 0;
}

/* Main content */
.taxonomia-detail__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 64px;
  width: 100%;
}

.taxonomia-detail__content {
  max-width: var(--tc-max-w);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 24px;
}

/* ── Table Section — Card-style (Figma 23117:47677) ─── */
.taxonomia-table-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.taxonomia-table-section__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--tc-foreground);
  margin: 0;
}

.taxonomia-table-section__description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--tc-muted);
  margin: 0;
}

/* Table container — slate-50 card with rounded corners */
.taxonomia-table-section__container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Row — two card cells with gap */
.taxonomia-table-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

/* Label cell */
.taxonomia-table-row__label-cell {
  background: white;
  border-radius: 8px;
  padding: 14px;
  width: 190px;
  min-width: 85px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.taxonomia-table-row__label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--tc-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Value cell */
.taxonomia-table-row__value-cell {
  background: white;
  border-radius: 8px;
  padding: 14px;
  flex: 1;
  min-width: 85px;
  display: flex;
  align-items: flex-start;
}

.taxonomia-table-row__value {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--tc-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Links inside values */
.taxonomia-table-row__value a {
  color: var(--tc-primary);
  text-decoration: none;
}

.taxonomia-table-row__value a:hover {
  text-decoration: underline;
}

/* ── Download Button ─────────────────────────────────────── */
a.taxonomia-download-btn,
a.taxonomia-download-btn:link,
a.taxonomia-download-btn:visited,
a.taxonomia-download-btn:active,
a.taxonomia-download-btn:focus,
.taxonomia-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 8px 12px;
  background: #b91c1c !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.05);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

a.taxonomia-download-btn:hover,
.taxonomia-download-btn:hover {
  background: #991b1b !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.taxonomia-download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #ffffff;
}

/* ── Nested Table (Prefijo/Namespace, Related taxonomies) ── */
.taxonomia-nested-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.taxonomia-nested-row {
  display: flex;
  gap: 0;
  width: 100%;
}

.taxonomia-nested-cell {
  background: #e2e8f0;
  padding: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--tc-foreground);
  min-width: 85px;
}

.taxonomia-nested-cell:first-child {
  border-radius: 8px 0 0 8px;
  flex-shrink: 0;
}

.taxonomia-nested-cell:last-child {
  border-radius: 0 8px 8px 0;
  flex: 1;
}

.taxonomia-nested-header {
  font-weight: 500;
}

.taxonomia-nested-cell a {
  color: #b91c1c;
  text-decoration: none;
}

.taxonomia-nested-cell a:hover {
  text-decoration: underline;
}

.taxonomia-subtext {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--tc-muted);
  margin: 0 0 12px;
}

/* ── Version Badges ──────────────────────────────────────── */
.taxonomia-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.taxonomia-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 2px 8px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--tc-foreground);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.taxonomia-badge:hover {
  background: #f8fafc;
  text-decoration: underline;
}

/* Badge / pill styling (legacy) */
.taxonomia-table-row__value .badge,
.badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--tc-gray-bg);
  border: 1px solid var(--tc-border);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--tc-muted);
}

/* Body after sections */
.taxonomia-detail__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--tc-border);
}

.taxonomia-detail__body .rich-text-content {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: var(--tc-foreground);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .taxonomia-detail__content {
    padding: 0 24px;
  }
  .taxonomia-table-row__label-cell {
    width: 200px;
  }
  .taxonomia-listing-page__container {
    padding: 48px 24px 28px;
  }
}

@media (max-width: 768px) {
  /* Switch to single column on mobile */
  .taxonomia-listing-page .views-element-container > [class*="js-view-dom-id"] {
    grid-template-columns: 1fr;
  }

  .taxonomia-listing-page__container {
    padding: 32px 16px 20px;
  }

  .taxonomia-listing-page__title {
    font-size: 28px;
  }

  .taxonomia-card__header {
    height: 200px;
  }

  .taxonomia-card__title {
    font-size: 20px;
  }

  .taxonomia-detail__hero {
    padding-top: 32px;
  }
  .taxonomia-detail__title {
    font-size: 28px;
    line-height: 32px;
  }
  .taxonomia-detail__main {
    padding: 0 0 32px;
  }
  .taxonomia-detail__content {
    padding: 0 16px;
    gap: 24px;
  }
  .taxonomia-table-row {
    flex-direction: column;
  }
  .taxonomia-table-row__label-cell {
    width: 100%;
  }
  .taxonomia-table-section__container {
    padding: 12px;
  }
  .taxonomia-card__body {
    padding: 8px 4px 4px;
  }
}

/* ── taxonomia-section (new template classes) ────────────────────── */
.taxonomia-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid #e2e8f0;
}
.taxonomia-section:last-child { border-bottom: none; }

.taxonomia-section__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: #0a0a0a;
  margin: 0;
}

.taxonomia-section__desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
  margin: 0;
}

/* The table grid */
.taxonomia-section__table {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taxonomia-section__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.taxonomia-section__cell {
  background: white;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.taxonomia-section__cell--label {
  width: 190px;
  flex-shrink: 0;
  font-weight: 500;
  color: #0a0a0a;
}

.taxonomia-section__cell--value {
  flex: 1;
  font-weight: 400;
  color: #525252;
}

.taxonomia-section__cell--value a {
  color: #b91c1c;
  text-decoration: none;
}
.taxonomia-section__cell--value a:hover { text-decoration: underline; }
.taxonomia-section__cell--value p { margin: 0 0 4px; }

/* ── Prefijos component (rendered inside value cell) ── */
.taxonomia-prefijos { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.taxonomia-prefijos__intro { font-size: 14px; color: #525252; margin: 0 0 4px; }
.taxonomia-prefijos__table { display: flex; flex-direction: column; gap: 6px; }
.taxonomia-prefijos__header {
  display: flex; gap: 8px;
  background: #e2e8f0; border-radius: 8px; padding: 10px 14px;
  font-weight: 600; font-size: 13px; color: #0a0a0a;
}
.taxonomia-prefijos__header span { flex: 1; }
.taxonomia-prefijos__row {
  display: flex; gap: 8px; align-items: flex-start;
  background: #f8fafc; border-radius: 8px; padding: 10px 14px;
}
.taxonomia-prefijos__prefix {
  flex-shrink: 0; width: 140px;
  font-weight: 500; font-size: 13px; color: #0a0a0a;
}
.taxonomia-prefijos__ns {
  flex: 1; font-size: 12px; color: #b91c1c;
  text-decoration: none; word-break: break-all;
}
.taxonomia-prefijos__ns:hover { text-decoration: underline; }
.taxonomia-prefijos__footer { font-weight: 600; font-size: 13px; color: #0a0a0a; margin: 8px 0 4px; }
.taxonomia-prefijos__models { display: flex; flex-direction: column; gap: 6px; }
.taxonomia-prefijos__model-row {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; line-height: 20px;
}
.taxonomia-prefijos__model-row span { flex-shrink: 0; width: 240px; color: #0a0a0a; font-weight: 500; }
.taxonomia-prefijos__model-row a { color: #b91c1c; text-decoration: none; word-break: break-all; }
.taxonomia-prefijos__model-row a:hover { text-decoration: underline; }

/* ── Descargas buttons ────────────── */
.taxonomia-descargas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.taxonomia-descargas__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12px;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.05);
}
.taxonomia-descargas__btn--primary,
.taxonomia-descargas__btn--primary:hover,
.taxonomia-descargas__btn--primary:focus,
.taxonomia-descargas__btn--primary:active,
.taxonomia-descargas__btn--primary:visited {
  background: #b91c1c !important;
  color: #ffffff !important;
  text-decoration: none !important;
}
.taxonomia-descargas__btn--primary svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Localización ─────────────────── */
.taxonomia-localizacion__intro { font-size: 14px; color: #525252; margin: 0 0 8px; }
.taxonomia-localizacion__table { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.taxonomia-localizacion__row {
  display: flex; gap: 12px; align-items: flex-start;
  background: #f8fafc; border-radius: 8px; padding: 10px 14px;
  font-size: 13px;
}
.taxonomia-localizacion__row span { flex-shrink: 0; width: 160px; font-weight: 500; color: #0a0a0a; }
.taxonomia-localizacion__row a { color: #b91c1c; text-decoration: none; }
.taxonomia-localizacion__row a:hover { text-decoration: underline; }
.taxonomia-localizacion__subtitle { font-weight: 600; font-size: 14px; color: #0a0a0a; margin: 8px 0 4px; }
.taxonomia-localizacion__desc { font-size: 13px; color: #525252; margin: 0; }

/* ── Versiones badges ─────────────── */
.taxonomia-versiones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.taxonomia-versiones__badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 2px 8px;
  background: white; border: 1px solid #e5e5e5; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px;
  color: #0a0a0a; text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.taxonomia-versiones__badge:hover { background: #f8fafc; text-decoration: underline; }
.taxonomia-versiones__badge--current {
  background: #0a0a0a; color: white; border-color: #0a0a0a;
  text-decoration: underline;
}
.taxonomia-versiones__badge--current:hover { background: #172554; color: white; }

/* ── Responsive detail ────────────── */
@media (max-width: 768px) {
  .taxonomia-detail__hero-wrap { padding: 32px 0 16px; }
  .taxonomia-section__row { flex-direction: column; }
  .taxonomia-section__cell--label { width: 100%; }
  .taxonomia-prefijos__row { flex-direction: column; }
  .taxonomia-prefijos__prefix { width: 100%; }
  .taxonomia-prefijos__model-row { flex-direction: column; }
  .taxonomia-prefijos__model-row span { width: 100%; }
}
