/**
 * @file
 * Página Criterios en Materia de Independencia — Figma 22889:75526.
 */

.criterios-ind-header,
.criterios-ind-feature,
.criterios-ind-table-section {
  width: 100%;
  font-family: 'Inter', sans-serif;
}

/* ===== Header: y=150, h=160 ===== */
.criterios-ind-header {
  background: #ffffff;
  padding: 64px 0 28px;
}

.criterios-ind-header__inner {
  width: 1280px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.criterios-ind-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.criterios-ind-breadcrumb__item {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #525252;
  text-decoration: none;
}

.criterios-ind-breadcrumb__item:hover {
  color: #0a0a0a;
  text-decoration: underline;
}

.criterios-ind-breadcrumb__item--current {
  font-weight: 500;
  color: #0a0a0a;
}

.criterios-ind-breadcrumb__sep {
  display: flex;
  align-items: center;
}

.criterios-ind-breadcrumb__sep svg {
  width: 15px;
  height: 15px;
}

.criterios-ind-header__title {
  margin: 0;
  color: #0a0a0a;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
}

/* ===== Feature: y=310, h=580 ===== */
.criterios-ind-feature {
  background: #ffffff;
  padding: 28px 0 96px;
}

.criterios-ind-feature__container {
  width: 1280px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.criterios-ind-feature__image-wrapper {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 240 / 180;
  border-radius: 16px;
  overflow: hidden;
}

.criterios-ind-feature__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.criterios-ind-feature__image--overlay {
  z-index: 1;
}

.criterios-ind-feature__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.criterios-ind-feature__text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.criterios-ind-feature__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.criterios-ind-feature__title {
  margin: 0;
  color: #0a0a0a;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0;
}

.criterios-ind-feature__desc {
  width: 100%;
  margin: 0;
  color: #525252;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.criterios-ind-feature__desc p {
  margin: 0;
}

.criterios-ind-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background-color: #b91c1c;
  border: 1px solid #b91c1c;
  border-radius: 8px;
  color: #fafafa;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  white-space: nowrap;
}

.criterios-ind-btn-primary:hover:not(:disabled) {
  background-color: #991b1b;
  border-color: #991b1b;
  color: #fafafa;
}

.criterios-ind-btn-primary:disabled,
.criterios-ind-btn-outline:disabled {
  opacity: 1;
  cursor: not-allowed;
}

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

/* ===== Table Section: y=890, h=764 ===== */
.criterios-ind-table-section {
  background: #f1f5f9;
  padding: 64px 0;
}

.criterios-ind-table__container {
  width: 1280px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.criterios-ind-table__header {
  width: 684px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.criterios-ind-table__tag {
  width: 100%;
  color: #b91c1c;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.criterios-ind-table__title {
  width: 100%;
  margin: 0;
  color: #0a0a0a;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
}

.criterios-ind-table {
  width: 100%;
  height: 508px;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  background: transparent;
}

.criterios-ind-table colgroup col:nth-child(1) { width: 101px; }
.criterios-ind-table colgroup col:nth-child(2) { width: 985px; }
.criterios-ind-table colgroup col:nth-child(3) { width: 194px; }

.criterios-ind-table--admin colgroup col:nth-child(2) { width: 859px; }
.criterios-ind-table--admin colgroup col:nth-child(3) { width: 320px; }

.criterios-ind-table thead tr,
.criterios-ind-table thead th {
  height: 40px;
}

.criterios-ind-table tbody tr,
.criterios-ind-table tbody td {
  height: 52px;
}

.criterios-ind-table thead th,
.criterios-ind-table tbody td {
  padding: 8px;
  vertical-align: middle;
  border-bottom: 1px solid #e5e5e5;
  color: #0a0a0a;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.criterios-ind-table thead th {
  color: #525252;
  font-weight: 500;
  text-align: left;
}

.criterios-ind-table tbody td {
  font-weight: 500;
}

.criterios-ind-table thead th:last-child,
.criterios-ind-table tbody td:last-child {
  text-align: right;
}

.criterios-ind-table tbody td:last-child {
  overflow: visible;
  white-space: normal;
}

.criterios-ind-table tbody tr:last-child td {
  border-bottom: 0;
}

.criterios-ind-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 8px 12px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.criterios-ind-btn-outline:hover:not(:disabled) {
  background-color: #f8fafc;
  color: #0a0a0a;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .criterios-ind-feature__container {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .criterios-ind-header {
    padding: 40px 0 20px;
  }

  .criterios-ind-header__title {
    font-size: 28px;
    line-height: 32px;
  }

  .criterios-ind-feature {
    padding-bottom: 56px;
  }

  .criterios-ind-feature__container {
    flex-direction: column;
  }

  .criterios-ind-feature__image-wrapper,
  .criterios-ind-feature__content {
    width: 100%;
    flex-basis: auto;
  }

  .criterios-ind-feature__title,
  .criterios-ind-table__title {
    font-size: 24px;
    line-height: 30px;
  }

  .criterios-ind-table-section {
    padding: 40px 0;
  }

  .criterios-ind-table {
    display: block;
    height: auto;
    overflow-x: auto;
  }

  .criterios-ind-table colgroup col:nth-child(1) { width: 72px; }
  .criterios-ind-table colgroup col:nth-child(2) { width: 720px; }
  .criterios-ind-table colgroup col:nth-child(3) { width: 150px; }

  .criterios-ind-table--admin colgroup col:nth-child(2) { width: 620px; }
  .criterios-ind-table--admin colgroup col:nth-child(3) { width: 250px; }
}
