/* ==========================================================================
   Página Normativa de auditoría de cuentas (Patrón Transformación / Documentación)
   ========================================================================== */

/* Full-width container */
.page-content-wrapper:has(.normativa-page) .layout-container,
.page-content-wrapper:has(.normativa-page) .page-content {
  max-width: 100%;
  padding: 0;
}

body:has(.normativa-page) .breadcrumb-wrapper,
body:has(.normativa-page) #block-icac-theme-page-title {
  display: none;
}

body:has(.normativa-auditoria-figma) .breadcrumb-wrapper,
body:has(.normativa-auditoria-figma) #block-icac-theme-page-title {
  display: none;
}

.normativa-auditoria-figma {
  color: #0a0a0a;
  background: #ffffff;
  overflow-x: hidden;
}

.normativa-auditoria-figma__hero-inner,
.normativa-auditoria-figma__layout {
  width: min(100%, 1280px);
  padding-left: 0;
  padding-right: 0;
}

.normativa-auditoria-figma__content {
  width: min(100%, 976px);
}

.normativa-auditoria-figma__feature-image {
  width: 100%;
  aspect-ratio: 976 / 549;
  height: auto;
  overflow: hidden;
}

.normativa-auditoria-figma__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.normativa-auditoria-figma__cards .normativa-auditoria-card {
  min-height: 228px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #f9fafb;
  box-shadow: none;
  transform: none;
  transition: none;
}

.normativa-auditoria-figma__cards .normativa-auditoria-card:nth-child(-n + 2) {
  height: 256px;
  min-height: 256px;
}

.normativa-auditoria-card:hover {
  box-shadow: none;
  transform: none;
}

.normativa-auditoria-card__icon {
  width: 44px;
  height: 44px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.normativa-auditoria-card__icon > div {
  width: 32px;
  height: 32px;
}

.normativa-auditoria-card__title {
  color: #0a0a0a;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.normativa-auditoria-card__desc {
  color: #525252;
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.normativa-auditoria-card__button {
  height: 36px;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.normativa-auditoria-figma__cards p {
  white-space: normal;
}

.normativa-auditoria-figma a:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
}

.normativa-auditoria-figma__consultas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 182px;
  align-items: center;
}

.normativa-auditoria-figma__consultas-text {
  width: auto;
  min-width: 0;
}

.normativa-auditoria-figma__consultas-actions,
.normativa-auditoria-figma__consultas-actions > div {
  width: 100%;
}

@media (max-width: 1344px) {
  .normativa-auditoria-figma__hero-inner,
  .normativa-auditoria-figma__layout {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1024px) {
  .normativa-auditoria-figma__layout {
    gap: 32px;
  }

  .normativa-auditoria-figma__sidebar {
    max-width: 220px;
  }

  .normativa-auditoria-figma__consultas,
  .normativa-auditoria-figma__consultas-text {
    width: 100%;
  }

  .normativa-auditoria-figma__consultas {
    grid-template-columns: 1fr;
  }

  .normativa-auditoria-figma__consultas-actions {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .normativa-auditoria-figma__main {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .normativa-auditoria-figma__layout {
    display: block;
  }

  .normativa-auditoria-figma__sidebar {
    display: none;
  }

  .normativa-auditoria-figma__content {
    width: 100%;
  }

  .normativa-auditoria-figma__cards {
    grid-template-columns: 1fr;
  }

  .normativa-auditoria-figma__cards > div {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  body:has(.normativa-auditoria-figma) {
    overflow-x: hidden;
  }

  .normativa-auditoria-figma .site-header {
    max-width: 100vw;
    overflow-x: clip;
  }

  .normativa-auditoria-figma__hero {
    height: 248px;
  }

  .normativa-auditoria-figma__hero-inner,
  .normativa-auditoria-figma__layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .normativa-auditoria-figma__hero h1 {
    font-size: 28px;
    line-height: 32px;
  }

  .normativa-auditoria-figma__feature-image {
    aspect-ratio: 16 / 11;
    border-radius: 12px;
  }

  .normativa-auditoria-figma__consultas-actions > div {
    width: 100%;
  }

  .normativa-auditoria-figma .footer-newsletter > div,
  .normativa-auditoria-figma .footer-bottom-icac > div {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .normativa-auditoria-figma .footer-newsletter__content,
  .normativa-auditoria-figma .footer-bottom-icac > div > div {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .normativa-auditoria-figma .footer-newsletter__form,
  .normativa-auditoria-figma .footer-newsletter__form > div {
    width: 100% !important;
    max-width: 100%;
  }

  .normativa-auditoria-figma .footer-bottom-icac__brand {
    align-items: center;
  }
}

/* ===== Hero Section ===== */
.normativa-page__hero {
  position: relative;
  width: 100%;
  height: 288px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.normativa-page__hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.normativa-page__hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.normativa-page__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.normativa-page__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Breadcrumb in Hero */
.normativa-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.normativa-page__breadcrumb-item {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #fafafa;
}

.normativa-page__breadcrumb-sep {
  color: #fafafa;
  display: flex;
  align-items: center;
}

.normativa-page__breadcrumb-sep svg {
  width: 15px;
  height: 15px;
}

.normativa-page__hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #fafafa;
  margin: 0;
}

/* ===== Main Layout: Sidebar + Content ===== */
.normativa-page__main {
  width: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0;
}

.normativa-page__container {
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* ===== Sidebar ===== */
.normativa-page__sidebar {
  width: 256px;
  flex-shrink: 0;
  position: sticky;
  top: 100px; /* Offset for header */
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0;
}

.normativa-page__sidebar-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #0a0a0a;
  margin: 0;
}

.normativa-page__sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.normativa-page__sidebar-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #525252;
  text-decoration: none;
  transition: color 0.2s ease;
}

.normativa-page__sidebar-link:hover,
.normativa-page__sidebar-link.active {
  color: #b91c1c;
}

/* ===== Content Area ===== */
.normativa-page__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0; /* Prevent flex overflow */
}

.normativa-page__section {
  width: 100%;
  margin-bottom: 0 !important;
}

.normativa-page__section-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #0a0a0a;
  margin: 0 0 14px 0;
}

/* Editorial content */
.normativa-page__editorial {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #0a0a0a;
}

.normativa-page__editorial p {
  margin-bottom: 24px;
}

.normativa-page__image-wrapper {
  width: 100%;
  height: 549px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.normativa-page__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.normativa-page__image--overlay {
  position: absolute;
  inset: 0;
}

/* Separator */
.normativa-page__separator {
  width: 100%;
  height: 1px;
  background-color: #e5e5e5;
  margin: 24px 0;
}

/* ===== Cards Grid ===== */
.normativa-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.normativa-card {
  background: #f9fafb;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.normativa-card--1,
.normativa-card--2 {
  min-height: 256px;
}

.normativa-card--3,
.normativa-card--4 {
  min-height: 228px;
}

.normativa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.normativa-card__icon-wrapper {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.normativa-card__icon-wrapper img,
.normativa-card__icon-wrapper svg {
  width: 32px;
  height: 32px;
  display: block;
}

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

.normativa-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #525252;
  margin: 0;
  flex-grow: 1;
}

/* Outline button for cards */
.normativa-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #0a0a0a;
  text-decoration: none;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease, border-color 0.15s ease;
  width: fit-content;
}

.normativa-btn-outline:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #0a0a0a;
}

.normativa-btn-outline svg {
  width: 16px;
  height: 16px;
}

/* ===== Consultas Section ===== */
.normativa-page__consultas {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 30px;
}

.normativa-page__consultas-text {
  width: 770px;
  flex: 0 0 770px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.normativa-page__consultas-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #0a0a0a;
  margin: 0;
}

.normativa-page__consultas-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #0a0a0a;
  margin: 0;
}

.normativa-page__consultas-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  justify-content: center;
}

.normativa-page__consultas-actions a {
  width: 100%;
}

/* Primary Button */
.normativa-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background-color: #b91c1c;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #fafafa;
  text-decoration: none;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.normativa-btn-primary:hover {
  background-color: #991b1b;
  color: #fafafa;
}

.normativa-btn-primary svg {
  width: 16px;
  height: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .normativa-page__grid {
    grid-template-columns: 1fr;
  }
  
  .normativa-page__consultas {
    flex-direction: column;
    align-items: flex-start;
  }

  .normativa-page__consultas-text {
    width: 100%;
    flex-basis: auto;
  }
  
  .normativa-page__consultas-actions {
    width: 100%;
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .normativa-page__sidebar {
    display: none; /* Hide sidebar on mobile */
  }

  .normativa-page__container {
    padding: 0 16px;
  }
  
  .normativa-page__hero-content {
    padding: 0 16px;
  }

  .normativa-page__hero-title {
    font-size: 28px;
    line-height: 32px;
  }

  .normativa-page__consultas-actions {
    flex-direction: column;
  }
}

/* ===== Listing Layout (Figma 22889:75092) ===== */

/* Actions bar (top right sort) */
.normativa-page__actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.normativa-page__sort-wrapper {
  position: relative;
  display: inline-block;
}

.normativa-page__sort-select {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 36px 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #525252;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Listing content: sidebar + results */
.normativa-page__listing-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* Filter sidebar */
.normativa-page__filter-sidebar {
  width: 305px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  padding: 0;
}

.normativa-page__filter-form {
  display: flex;
  flex-direction: column;
}

.normativa-page__filter-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #0a0a0a;
  margin: 0 0 24px 0;
}

/* Search field */
.normativa-page__search-wrapper {
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  gap: 12px;
}

.normativa-page__search-wrapper svg {
  flex-shrink: 0;
}

.normativa-page__search-input {
  border: none;
  background: transparent;
  flex: 1;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #525252;
  min-width: 0;
}

.normativa-page__search-input::placeholder {
  color: #9ca3af;
}

.normativa-page__search-clear {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.normativa-page__search-clear:hover {
  opacity: 1;
}

/* Filter select group */
.normativa-page__filter-select-group {
  margin-top: 24px;
}

.normativa-page__filter-label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
  margin-bottom: 12px;
  display: block;
}

.normativa-page__filter-select {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #0a0a0a;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Search button */
.normativa-page__btn-search {
  height: 48px;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #fafafa;
  background-color: #b91c1c;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.normativa-page__btn-search:hover {
  background-color: #991b1b;
}

/* Clear filters button */
.normativa-page__btn-clear {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  transition: color 0.15s;
}

.normativa-page__btn-clear:hover {
  color: #b91c1c;
}

/* Results area */
.normativa-page__results {
  flex: 1;
  min-width: 0;
}

/* Empty state */
.normativa-page__empty-state {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  margin-top: 16px;
}

.normativa-page__empty-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #525252;
  margin: 16px 0 8px;
}

.normativa-page__empty-hint {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

/* Breadcrumb active state */
.normativa-page__breadcrumb-item--active {
  font-weight: 600;
}

/* Responsive listing */
@media (max-width: 900px) {
  .normativa-page__listing-content {
    flex-direction: column;
  }

  .normativa-page__filter-sidebar {
    width: 100%;
  }
}

/* ===== Figma 22889:75092 corrections ===== */
.normativa-page__hero-bg {
  height: 355.73%;
  top: -207.33%;
  object-fit: cover;
  object-position: center center;
}

.normativa-page__main {
  padding: 64px 0 0;
}

.normativa-page__container {
  display: block;
  max-width: 1280px;
  padding: 0;
}

.normativa-page__actions-bar {
  width: 100%;
  height: 36px;
  margin: 0 0 32px;
  justify-content: flex-end;
}

.normativa-page__listing-content {
  display: grid;
  grid-template-columns: 305px minmax(0, 955px);
  gap: 20px;
  align-items: start;
  width: 100%;
}

.normativa-page__filter-sidebar {
  width: 305px;
  padding: 0;
}

.normativa-page__filter-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 32px;
}

.normativa-page__search-wrapper {
  height: 48px;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.normativa-page__search-input {
  font-size: 18px;
  line-height: 28px;
}

.normativa-page__filter-label {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 12px;
}

.normativa-page__filter-select {
  height: 58px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 28px;
  box-shadow: 0 0 0 1px #e5e5e5;
}

.normativa-page__btn-search {
  height: 36px;
  margin-top: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
}

.normativa-page__btn-clear {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
}

.normativa-page__results {
  width: 955px;
  min-height: 1068px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #ffffff;
  padding: 20px;
  overflow: hidden;
}

/* We render the exposed filters in the custom sidebar; hide Views' duplicate form. */
.normativa-page__results .views-exposed-form,
.normativa-page__results form.views-exposed-form {
  display: none !important;
}

.normativa-page__results table,
.normativa-page__results .views-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Inter', sans-serif;
}

.normativa-page__results thead th {
  height: 40px;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e5e5;
  background: #f8fafc;
  color: #525252;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
}

.normativa-page__results tbody td {
  min-height: 72px;
  height: 72px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
  color: #0a0a0a;
  font-size: 14px;
  line-height: 20px;
  vertical-align: middle;
}

.normativa-page__results tbody tr:last-child td {
  border-bottom: 0;
}

.normativa-page__results th.views-field-title,
.normativa-page__results td.views-field-title {
  width: 602px;
}

.normativa-page__results th.views-field-langcode,
.normativa-page__results td.views-field-langcode {
  width: 116px;
}

.normativa-page__results th.views-field-nothing,
.normativa-page__results td.views-field-nothing {
  width: 150px;
  text-align: center;
}

.normativa-page__results .contabilidad-actions {
  justify-content: center;
}

.normativa-page__results .pager {
  margin-top: 16px;
}

@media (max-width: 1320px) {
  .normativa-page__container {
    padding: 0 24px;
  }

  .normativa-page__listing-content {
    grid-template-columns: 305px minmax(0, 1fr);
  }

  .normativa-page__results {
    width: auto;
  }
}

@media (max-width: 900px) {
  .normativa-page__listing-content {
    grid-template-columns: 1fr;
  }

  .normativa-page__filter-sidebar,
  .normativa-page__results {
    width: 100%;
  }
}

/* ===== Figma 22889:75092 precision pass ===== */
.normativa-page__actions-bar {
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 16px;
}

.normativa-page__filter-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  margin-bottom: 12px;
}

.normativa-page__search-wrapper {
  height: 48px;
  padding: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.normativa-page__search-input {
  font-size: 14px;
  line-height: 20px;
}

.normativa-page__filter-select-group {
  margin-top: 0;
}

.normativa-page__filter-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}

.normativa-page__filter-select {
  height: 36px;
  border-radius: 8px;
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background-position: right 12px center;
}

.normativa-page__btn-search {
  height: 36px;
  margin-top: 16px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
}

.normativa-page__btn-clear {
  display: none;
}

.normativa-page__view-toggle {
  height: 36px;
  min-width: 157px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.normativa-page__sort-select {
  width: 207px;
  height: 36px;
}

/* ===== Results table: match Figma reference exactly ===== */
.normativa-page__results {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
}

.normativa-page__results table,
.normativa-page__results table.cols-2,
.normativa-page__results table.cols-3 {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
}

.normativa-page__results thead,
.normativa-page__results tbody,
.normativa-page__results tr {
  background: transparent;
}

.normativa-page__results thead th {
  height: 52px;
  padding: 0 12px 20px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  color: #525252;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  text-align: left;
}

.normativa-page__results tbody td {
  height: 96px;
  min-height: 96px;
  padding: 22px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  vertical-align: middle;
}

.normativa-page__results th.views-field-title,
.normativa-page__results td.views-field-title {
  width: 68%;
}

.normativa-page__results th.views-field-langcode,
.normativa-page__results td.views-field-langcode {
  width: 18%;
  text-align: left;
}

.normativa-page__results th.views-field-nothing,
.normativa-page__results td.views-field-nothing {
  width: 14%;
  text-align: center;
}

.normativa-page__results td.views-field-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.normativa-page__lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 2px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.normativa-page__lang-flag {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.normativa-page__results .contabilidad-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.normativa-page__results .contabilidad-action-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.normativa-page__results .contabilidad-action-btn img {
  width: 18px;
  height: 18px;
}

/* Exact custom table emitted by the page template. */
.normativa-page__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
  font-family: 'Inter', sans-serif;
}

.normativa-page__table thead th {
  height: 52px;
  padding: 0 12px 20px 12px;
  border-bottom: 1px solid #e5e5e5;
  color: #525252;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  text-align: left;
}

.normativa-page__table tbody td {
  height: 96px;
  padding: 22px 12px;
  border-bottom: 1px solid #e5e5e5;
  color: #0a0a0a;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  vertical-align: middle;
}

.normativa-page__table .normativa-page__col-consulta {
  width: 68%;
}

.normativa-page__table .normativa-page__col-idioma {
  width: 18%;
}

.normativa-page__table .normativa-page__col-acciones {
  width: 14%;
  text-align: center;
}

.normativa-page__row-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.normativa-page__row-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.normativa-page__action-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.normativa-page__action-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
