/**
 * auditoria-informe.css
 * Pixel-perfect implementation of Figma node 22889:75578
 * "3.4.0/Auditoría en España/Informe de situación de la auditoria"
 *
 * Design tokens (from Figma):
 *  --primary:           #b91c1c  (base/primary)
 *  --secondary:         #172554  (base/secondary / tailwind blue-950)
 *  --foreground:        #0a0a0a
 *  --muted-fg:          #525252
 *  --border:            #e5e5e5  (base/border)
 *  --input-border:      #e5e5e5  (base/input)
 *  --bg-muted:          #f8fafc  (slate-50)
 *  --bg-card:           #f9fafb  (gray-50)
 *  --rounded-md:        8px
 *  --rounded-lg:        10px
 *  --rounded-2xl:       16px
 *  font: Inter, sans-serif
 */

/* Hide Drupal's global breadcrumb on this pixel-matched page; Figma uses the hero breadcrumb only. */
.breadcrumb-wrapper {
  display: none !important;
}

/* Reset Drupal wrappers inside ai-page-content */
.ai-page-content #block-icac-theme-page-title,
.ai-page-content .page-content-wrapper > h1:first-child {
  display: none;
}

.ai-page-content .page-content-wrapper {
  display: contents;
}

.ai-page-content article.page-content-wrapper {
  display: contents;
}

.ai-page-content #block-icac-theme-content {
  display: contents;
}

.ai-page-content #block-icac-theme-content > div:first-child {
  display: contents;
}

/* =====================================================
   HERO SECTION — 288px, hero bg + overlay
   Figma: 22889:75580
   ===================================================== */
.auditoria-informe-hero {
  position: relative;
  height: 288px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  background-color: #0A1413;
}

.auditoria-informe-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: #0A1413;
}

.auditoria-informe-hero__bg-img {
  width: 100%;
  height: 355.6%;
  position: absolute;
  top: -45.68%;
  left: 0;
  object-fit: cover;
  object-position: center;
}

.auditoria-informe-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 19, 0.6);
}

.auditoria-informe-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Breadcrumbs */
.auditoria-informe-hero__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auditoria-informe-hero__breadcrumb-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.auditoria-informe-hero__breadcrumb-link:hover {
  color: #f3f4f6;
  text-decoration: underline;
}

.auditoria-informe-hero__breadcrumb-current {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.auditoria-informe-hero__breadcrumb-sep {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  opacity: 0.9;
}

/* H1 */
.auditoria-informe-hero__title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
}

/* =====================================================
   PAGE WRAPPER CONTENT AREA
   Figma: 22889:75587  py=64px
   ===================================================== */
.ai-page-content {
  width: 100%;
  padding: 64px 0;
  background: #fff;
  display: flex;
  justify-content: center;
}

.ai-page-content__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
}

/* =====================================================
   FEATURED CARD — 22889:75588
   Layout: horizontal bg-slate-50, border, rounded-2xl, p-16px, gap-24px
   Imagen cuadrada 240x240, rounded-md
   ===================================================== */
.ai-featured {
  width: 100%;
}

.ai-featured__card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #f8fafc;        /* slate-50 */
  border: 1px solid #e2e8f0;  /* slate-200 */
  border-radius: 16px;        /* rounded-2xl */
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Imagen portada 240×240 */
.ai-featured__cover {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  border-radius: 8px;          /* rounded-md */
  overflow: hidden;
  position: relative;
}

.ai-featured__cover-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  background: transparent;
  border-radius: 8px;
  display: block;
}

/* Contenido derecho */
.ai-featured__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;                  /* gap-3 */
  min-width: 0;
}

/* Etiqueta roja "Auditoría 2024" */
.ai-featured__label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #b91c1c;             /* primary */
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Título grande semibold 30px */
.ai-featured__title {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  color: #0a0a0a;             /* foreground */
  margin: 0;
}

/* CTA button — azul oscuro #172554 (secondary) */
.ai-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background: #172554;        /* secondary / blue-950 */
  color: #fafafa;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background 0.15s ease, opacity 0.15s ease;
  align-self: flex-start;
}

.ai-featured__cta:hover,
.ai-featured__cta:focus-visible {
  background: #1e3a8a;
  outline: 2px solid #172554;
  outline-offset: 2px;
}

.ai-featured__cta svg {
  flex-shrink: 0;
}

/* =====================================================
   TOOLBAR (ordenar + ver como lista)
   Figma: 22889:75595
   ===================================================== */
.ai-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
}

.ai-toolbar__ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background: transparent;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.ai-toolbar__ghost-btn:hover {
  background: #f1f5f9;
}

.ai-toolbar__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ai-toolbar__select {
  -webkit-appearance: none;
  appearance: none;
  height: 36px;
  padding: 8px 36px 8px 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #525252;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
  min-width: 120px;
}

.ai-toolbar__chevron {
  position: absolute;
  right: 8px;
  pointer-events: none;
}

/* Separator line */
.ai-separator {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
}

/* =====================================================
   LISTING — 2 cols: sidebar 305px + grid
   Figma: 22889:75599
   ===================================================== */
.ai-listing {
  width: 100%;
}

.ai-listing__inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

/* ─── Sidebar 305px ─── */
.ai-listing__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 305px;
  flex-shrink: 0;
  align-items: flex-end;
}

.ai-listing__filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.ai-listing__filters-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #000;
  margin: 0;
  white-space: nowrap;
}

/* Search input con borde inferior */
.ai-listing__search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 12px;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
  box-sizing: border-box;
}

.ai-listing__search-icon {
  flex-shrink: 0;
  opacity: 0.5;
}

.ai-listing__search {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #525252;
  line-height: 20px;
  -webkit-appearance: none;
  appearance: none;
}

.ai-listing__search::placeholder {
  color: #525252;
}

/* Select grupos */
.ai-listing__select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.ai-listing__select-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #0a0a0a;
  width: 100%;
}

.ai-listing__select-wrap {
  position: relative;
  width: 100%;
}

.ai-listing__select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 36px;
  padding: 8px 36px 8px 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #525252;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
  box-sizing: border-box;
}

.ai-listing__chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Botón "Buscar Informe" — rojo full-width */
.ai-listing__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  width: 100%;
  padding: 8px 16px;
  background: #b91c1c;        /* primary */
  color: #fafafa;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.ai-listing__search-btn:hover,
.ai-listing__search-btn:focus-visible {
  background: #991b1b;
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
}

.ai-listing__clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background: transparent;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.ai-listing__clear-btn:hover,
.ai-listing__clear-btn:focus-visible {
  background: #f1f5f9;
  outline: 2px solid #172554;
  outline-offset: 2px;
}

.ai-listing--list .ai-listing__clear-btn {
  display: inline-flex;
}

/* ─── Grid de resultados 3 cols ─── */
.ai-listing__main,
.ai-listing__results {
  flex: 1;
  min-width: 0;
}

.ai-listing__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-listing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Mensaje sin resultados */
.ai-listing__empty {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #525252;
  grid-column: 1/-1;
  padding: 24px 0;
  text-align: center;
}

.ai-listing__empty--hidden {
  display: none;
}

.ai-listing__results > .ai-listing__empty {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 915px;
  background: #fff;
  z-index: 2;
}

/* =====================================================
   CARD — tarjeta de informe
   Figma: BlocksComponentsMessage  22889:75610
   bg-gray-50, border, rounded-lg (10px), p-16px, gap-16px
   ===================================================== */
.ai-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  background: #f9fafb;        /* gray-50 */
  border: 1px solid #e5e5e5;
  border-radius: 10px;        /* rounded-lg */
  padding: 16px;
  box-sizing: border-box;
}

/* Badge idioma — Figma 22889:75625: outline white, border #e5e5e5, radius 8, px 8 py 4 */
.ai-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: none;
  flex-shrink: 0;
}

.ai-flag-spain {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  overflow: hidden;
  flex: 0 0 12px;
  line-height: 0;
}

.ai-flag-spain__yellow {
  position: absolute;
  left: 0;
  right: 0;
  top: 28.26%;
  bottom: 28.26%;
  width: 100%;
  height: 43.48%;
  display: block;
}

.ai-flag-spain__red {
  position: absolute;
  left: 3.11%;
  right: 3.11%;
  top: 0;
  bottom: 0;
  width: 93.78%;
  height: 100%;
  display: block;
}

.ai-download-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.ai-card__badge-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #0a0a0a;
  white-space: nowrap;
}

/* Título tarjeta */
.ai-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #0a0a0a;
  margin: 0;
  word-break: break-word;
}

/* Link "Descargar PDF" — rojo, sin borde, ghost */
.ai-card__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px 8px 0;   /* pr-16 pl-0 per Figma */
  background: transparent;
  color: #b91c1c;             /* primary */
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.ai-card__download:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet (≤1024px): 2 columnas grid */
@media (max-width: 1024px) {
  .auditoria-informe-hero__content {
    padding: 0 24px;
  }

  .ai-page-content__inner {
    padding: 0 24px;
  }

  .ai-listing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-featured__title {
    font-size: 24px;
    line-height: 32px;
  }
}

/* Tablet pequeño (≤768px): sidebar encima, grid 2 cols */
@media (max-width: 768px) {
  .ai-listing__inner {
    flex-direction: column;
  }

  .ai-listing__sidebar {
    width: 100%;
  }

  .ai-featured__card {
    gap: 16px;
  }

  .ai-featured__cover {
    width: 160px;
    height: 160px;
  }
}

/* Móvil (≤480px): 1 columna */
@media (max-width: 480px) {
  .auditoria-informe-hero {
    height: 220px;
  }

  .auditoria-informe-hero__title {
    font-size: 24px;
  }

  .ai-featured__card {
    flex-direction: column;
  }

  .ai-featured__cover {
    width: 100%;
    height: 200px;
  }

  .ai-listing__grid {
    grid-template-columns: 1fr;
  }

  .ai-featured__title {
    font-size: 20px;
  }
}

/* =====================================================
   FIGMA NODE 22889:75578 OVERRIDES
   Featured report + cards screen geometry from Figma metadata.
   ===================================================== */
@media (min-width: 1280px) {
  .ai-page-content {
    min-height: 1616px;
    padding: 64px 0;
    box-sizing: border-box;
    align-items: flex-start;
  }

  .ai-page-content__inner {
    max-width: 1280px;
    min-height: 1488px;
    padding: 0;
    gap: 0;
    position: relative;
  }

  .auditoria-informe-hero__content {
    padding: 0;
  }

  .ai-featured,
  .ai-featured__card {
    height: 272px;
  }

  .ai-toolbar {
    width: 296px;
    height: 36px;
    margin-top: 16px;
    margin-left: auto;
    gap: 8px;
  }

  .ai-toolbar__ghost-btn {
    width: 156px;
    justify-content: center;
    padding: 8px 16px;
  }

  .ai-toolbar__select-wrap,
  .ai-toolbar__select {
    width: 132px;
    min-width: 132px;
  }

  .ai-separator {
    margin-top: 16px;
    height: 1px;
    background: #e5e5e5;
  }

  .ai-listing {
    margin-top: 15px;
    height: 1184px;
  }

  .ai-listing__inner {
    height: 1184px;
    gap: 20px;
  }

  .ai-listing__sidebar {
    width: 305px;
    gap: 16px;
    align-items: stretch;
  }

  .ai-listing__filters {
    height: 220px;
    gap: 12px;
  }

  .ai-listing__search-wrap {
    height: 48px;
  }

  .ai-listing__select-group {
    gap: 8px;
  }

  .ai-listing__select {
    height: 36px;
  }

  .ai-listing__main {
    width: 955px;
    flex: 0 0 955px;
  }

  .ai-listing__results {
    width: 955px;
    height: 1132px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
  }

  .ai-table-shell {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 915px;
    height: 976px;
    overflow: hidden;
  }

  .ai-listing__grid {
    position: absolute;
    left: 0;
    top: 0;
    width: 955px;
    height: 1132px;
    overflow: hidden;
    grid-template-columns: repeat(3, 305px);
    grid-auto-rows: 172px;
    gap: 20px;
    align-content: start;
  }

  .ai-listing__grid .ai-card {
    width: 305px;
    height: 172px;
  }

  .ai-listing__results[data-view="list"] .ai-table-shell {
    position: static;
    width: 100%;
    height: 976px;
    overflow: hidden;
  }
}

.ai-listing__results {
  position: relative;
}

.ai-table-shell {
  position: static;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ai-listing__grid {
  position: static;
  width: 100%;
  height: auto;
  overflow: visible;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(172px, auto);
  gap: 20px;
  align-content: start;
}

.ai-listing__grid .ai-card {
  width: auto;
  height: auto;
}

.ai-listing__results[data-view="list"] .ai-listing__grid,
.ai-listing__results[data-view="cards"] .ai-table-shell {
  display: none;
}

.ai-listing__results[data-view="cards"] .ai-listing__grid {
  display: grid;
}

.ai-listing__results[data-view="list"] .ai-table-shell {
  display: block;
}

.ai-listing__results[data-view="list"] {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-sizing: border-box;
}

.ai-listing__results[data-view="list"] .ai-table-shell {
  position: static;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ai-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  font-family: 'Inter', sans-serif;
  color: #0a0a0a;
}

.ai-table__head {
  height: 40px;
  padding: 0 8px;
  background: transparent;
  border-bottom: 1px solid #e5e5e5;
  color: #525252;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  box-sizing: border-box;
}

.ai-table__head--title,
.ai-table__cell--title { width: auto; }
.ai-table__head--year,
.ai-table__cell--year { width: 92px; }
.ai-table__head--language,
.ai-table__cell--language { width: 120px; }
.ai-table__head--action,
.ai-table__cell--action { width: 92px; }

.ai-table__row {
  height: 52px;
}

.ai-table__cell {
  height: 52px;
  padding: 8px;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  vertical-align: middle;
  box-sizing: border-box;
}

.ai-table__cell--title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-table__language-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.ai-table__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-table__action-btn,
.ai-table__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #0a0a0a;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.ai-table__action-btn .ai-download-icon,
.ai-open-icon {
  color: #0a0a0a;
}

.ai-table__action-btn .ai-download-icon {
  filter: brightness(0);
}

.ai-table__action-btn:hover,
.ai-table__action-btn:focus-visible,
.ai-table__download:hover,
.ai-table__download:focus-visible {
  background: #f8fafc;
  outline: 2px solid #172554;
  outline-offset: 2px;
}

.ai-pagination {
  position: static;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
}

.ai-pagination__page-size,
.ai-pagination__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-pagination__page-size {
  font-weight: 500;
}

.ai-pagination__nav {
  gap: 4px;
}

.ai-pagination__select,
.ai-pagination__btn,
.ai-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  min-width: 36px;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: transparent;
  color: #0a0a0a;
  box-shadow: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.ai-pagination__btn:disabled {
  color: #0a0a0a;
  cursor: not-allowed;
  opacity: 0.5;
}

.ai-pagination__num--active {
  background: #f3f4f6;
  border-color: transparent;
  color: #b91c1c;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ai-pagination__num--ellipsis {
  border-color: transparent;
  cursor: default;
}

.ai-pagination__select,
.ai-pagination__btn--next {
  background: #fff;
  border-color: #e5e5e5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ai-pagination__btn--next {
  background: #e2e8f0;
  border-color: #e2e8f0;
}

/* =====================================================
   RESPONSIVE OVERRIDES FOR THE TABLE FIGMA LAYOUT
   ===================================================== */
@media (max-width: 1279px) {
  .ai-page-content__inner {
    padding: 0 24px;
  }

  .ai-listing__inner {
    flex-direction: column;
  }

  .ai-listing__sidebar,
  .ai-listing__main,
  .ai-listing__results {
    width: 100%;
    flex: none;
  }

  .ai-listing__results {
    min-height: 640px;
    overflow-x: auto;
  }

  .ai-table-shell,
  .ai-listing__grid,
  .ai-pagination {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }

  .ai-pagination {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .ai-toolbar {
    align-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .ai-table-shell,
  .ai-listing__grid,
  .ai-table,
  .ai-pagination {
    width: 760px;
  }

  .ai-listing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-table__head--title,
  .ai-table__cell--title { width: 430px; }
}

/* =====================================================
   ACCESIBILIDAD: reducción de movimiento
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .ai-card,
  .ai-featured__cta,
  .ai-listing__search-btn {
    transition: none;
  }
}
