/* =========================================================
   ÍNDICES PÚBLICOS · SEGUNDA NOTARÍA DE PARRAL
   CON ASIENTO EN RETIRO
   Página aislada: no redefine menú ni footer globales.
========================================================= */

:root {
  --ixp-dark: #182231;
  --ixp-dark-deep: #07111f;
  --ixp-bg: var(--retiro-form-section-bg, #f1ece4);
  --ixp-card: var(--retiro-form-card, #ebe3d7);
  --ixp-field: var(--retiro-form-field, #f2eadf);
  --ixp-field-focus: var(--retiro-form-field-focus, #f8f3eb);
  --ixp-ink: #313833;
  --ixp-muted: var(--retiro-form-muted, #625e56);
  --ixp-bronze: #a7874e;
  --ixp-bronze-deep: #866938;
  --ixp-border: rgba(126, 105, 75, .24);
  --ixp-border-soft: rgba(126, 105, 75, .16);
  --ixp-border-strong: rgba(126, 105, 75, .34);
  --ixp-ok: #2f6845;
  --ixp-error: #8a342b;
  --ixp-col-odd: rgba(167, 135, 78, .045);
  --ixp-col-even: rgba(255, 255, 255, .17);
  --ixp-col-head-odd: #d8ccb9;
  --ixp-col-head-even: #e4d9ca;
}

html {
  background: var(--ixp-dark-deep) !important;
}

body.ixp-page #indices-page {
  background: var(--ixp-bg) !important;
  padding: 4.65rem 0 6.2rem !important;
}

body.ixp-page #indices-page .ixp-wrap {
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  padding: 0 !important;
}

/* =========================================================
   ESTRUCTURA
========================================================= */

.ixp-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, .85fr);
  gap: 1.25rem;
  align-items: start;
}

.ixp-card,
.ixp-results-zone {
  border: 1px solid var(--ixp-border-soft);
  border-radius: 0 !important;
  background: var(--ixp-card) !important;
  box-shadow: 0 8px 24px rgba(31, 40, 35, .045);
  color: var(--ixp-ink);
}

.ixp-card {
  min-width: 0;
  padding: 1.65rem 1.7rem 1.75rem;
}

.ixp-card-head,
.ixp-download-head,
.ixp-results-heading-wrap {
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(126, 105, 75, .18);
}

.ixp-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
}

.ixp-card-kicker {
  margin: 0 0 .25rem;
  color: var(--ixp-bronze-deep);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ixp-card h2,
.ixp-results-zone h2 {
  margin: 0;
  color: var(--ixp-dark) !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 1.35rem + .45vw, 1.9rem);
  font-weight: 800;
  line-height: 1.12;
}

.ixp-card-copy {
  max-width: 470px;
  margin: 0;
  color: var(--ixp-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  line-height: 1.54;
  text-align: right;
}

/* =========================================================
   FORMULARIO
========================================================= */

.ixp-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(155px, .58fr);
  gap: .9rem;
}

.ixp-field,
.ixp-dynamic-field {
  min-width: 0;
}

.ixp-field label,
.ixp-dynamic-label {
  display: block;
  margin: 0 0 .42rem;
  color: var(--ixp-ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
}

.ixp-field .form-control,
.ixp-dynamic-row .form-control,
.ixp-dynamic-row .form-select,
.ix-summary-bar .form-select {
  width: 100%;
  min-height: 48px;
  padding: .72rem .82rem;
  border: 1px solid var(--ixp-border) !important;
  border-radius: 0 !important;
  background: var(--ixp-field) !important;
  color: var(--ixp-ink) !important;
  box-shadow: none !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  line-height: 1.25;
}

.ixp-field .form-control::placeholder,
.ixp-dynamic-row .form-control::placeholder {
  color: #777269 !important;
  opacity: 1;
}

.ixp-field .form-control:focus,
.ixp-dynamic-row .form-control:focus,
.ixp-dynamic-row .form-select:focus,
.ix-summary-bar .form-select:focus {
  border-color: rgba(167, 135, 78, .62) !important;
  background: var(--ixp-field-focus) !important;
  box-shadow: inset 3px 0 0 rgba(167, 135, 78, .48) !important;
  outline: none !important;
}

/* =========================================================
   FILTROS ADICIONALES
========================================================= */

.ixp-additional-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(126, 105, 75, .15);
}

.ixp-additional-wrap[hidden] {
  display: none !important;
}

.ixp-additional-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .65rem;
  color: var(--ixp-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .9rem;
  font-weight: 700;
}

#ixpAdditionalCount {
  color: var(--ixp-bronze-deep);
  font-size: .82rem;
  font-weight: 700;
}

.ixp-additional-list {
  display: grid;
  gap: .65rem;
}

.ixp-dynamic-row {
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(0, 1.65fr) 42px;
  gap: .65rem;
  align-items: end;
  padding: .72rem;
  border: 1px solid rgba(126, 105, 75, .15);
  background: rgba(255, 255, 255, .12);
}

.ixp-remove-filter {
  width: 42px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ixp-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #735c47;
  font: 1.35rem/1 Arial, sans-serif;
  cursor: pointer;
}

.ixp-remove-filter:hover,
.ixp-remove-filter:focus-visible {
  border-color: var(--ixp-error) !important;
  background: var(--ixp-error) !important;
  color: #fff;
  outline: none;
}

.ixp-filter-toolbar {
  margin-top: .8rem;
}

.ixp-add-filter {
  min-height: 38px;
  padding: .35rem 0;
  border: 0;
  border-bottom: 1px solid rgba(134, 105, 56, .42);
  border-radius: 0;
  background: transparent;
  color: var(--ixp-bronze-deep);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .98rem;
  font-weight: 800;
  cursor: pointer;
}

.ixp-add-filter span {
  display: inline-block;
  margin-right: .28rem;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
}

.ixp-add-filter:hover,
.ixp-add-filter:focus-visible {
  color: var(--ixp-dark);
  border-bottom-color: var(--ixp-dark);
  outline: none;
}

/* =========================================================
   BOTONES / ESTADO
========================================================= */

.ixp-form-actions,
.ixp-results-actions .ixp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  justify-content: flex-start;
}

.ixp-form-actions {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(126, 105, 75, .16);
}

.ixp-btn,
.ixp-results-zone .btn,
.ixp-guide-return .btn,
.ixp-download-link {
  min-height: 44px;
  padding: .64rem 1.15rem;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}

.ixp-btn-primary {
  border: 1px solid var(--ixp-dark) !important;
  background: var(--ixp-dark) !important;
  color: #fff !important;
}

.ixp-btn-primary:hover,
.ixp-btn-primary:focus-visible {
  background: var(--ixp-dark-deep) !important;
  border-color: var(--ixp-dark-deep) !important;
  color: #fff !important;
  outline: none;
}

.ixp-btn-secondary {
  border: 1px solid var(--ixp-border-strong) !important;
  background: transparent !important;
  color: var(--ixp-dark) !important;
}

.ixp-btn-secondary:hover,
.ixp-btn-secondary:focus-visible,
.ixp-results-zone .btn:hover,
.ixp-results-zone .btn:focus-visible,
.ixp-guide-return .btn:hover,
.ixp-guide-return .btn:focus-visible {
  background: var(--ixp-dark) !important;
  border-color: var(--ixp-dark) !important;
  color: #fff !important;
  outline: none;
}

.ixp-btn:disabled {
  opacity: .46;
  cursor: not-allowed;
}

.ixp-status {
  margin-top: .85rem;
  padding: .75rem .85rem;
  border-left: 3px solid rgba(134, 105, 56, .45);
  background: rgba(255, 255, 255, .18);
  color: var(--ixp-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .94rem;
  line-height: 1.45;
}

.ixp-status[data-state="loading"] {
  border-left-color: var(--ixp-bronze);
  color: var(--ixp-dark);
}

.ixp-status[data-state="success"] {
  border-left-color: var(--ixp-ok);
  background: rgba(47, 104, 69, .08);
  color: var(--ixp-ok);
}

.ixp-status[data-state="error"] {
  border-left-color: var(--ixp-error);
  background: rgba(138, 52, 43, .08);
  color: var(--ixp-error);
}

/* =========================================================
   DESCARGABLES
========================================================= */

.ixp-download-card {
  position: sticky;
  top: 92px;
}

.ixp-download-copy {
  margin: 0 0 .9rem;
  color: var(--ixp-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .96rem;
  line-height: 1.45;
}

.ixp-download-list {
  max-height: 340px;
  overflow-y: auto;
  border-top: 1px solid rgba(126, 105, 75, .16);
}

.ixp-download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(126, 105, 75, .16);
}

.ixp-download-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
}

.ixp-download-name {
  min-width: 0;
  color: var(--ixp-ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: normal;
}

.ixp-download-year {
  display: block;
  color: var(--ixp-bronze-deep);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.ixp-download-link {
  min-height: 36px;
  padding: .45rem .75rem;
  border: 1px solid var(--ixp-border-strong) !important;
  background: transparent !important;
  color: var(--ixp-dark) !important;
  white-space: nowrap;
}

.ixp-download-link:hover,
.ixp-download-link:focus-visible {
  background: var(--ixp-dark) !important;
  border-color: var(--ixp-dark) !important;
  color: #fff !important;
  outline: none;
}

.ixp-download-loading,
.ixp-download-empty,
.ixp-download-error {
  padding: 1rem 0;
  color: var(--ixp-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .94rem;
  line-height: 1.45;
}

.ixp-download-error {
  color: var(--ixp-error);
}

/* =========================================================
   RESULTADOS
========================================================= */

.ixp-results-zone {
  margin-top: 1.25rem;
  padding: 1.55rem 1.7rem 1.7rem;
}

.ixp-results-zone[hidden] {
  display: none !important;
}

.ix-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .85rem;
  padding: .72rem .82rem;
  border: 1px solid rgba(126, 105, 75, .16);
  background: rgba(255, 255, 255, .18);
  color: var(--ixp-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .94rem;
}

.ix-summary-left {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.15rem;
}

.ix-summary-left strong {
  color: var(--ixp-ink);
}

.ix-show-wrap {
  display: flex;
  align-items: center;
  gap: .48rem;
  white-space: nowrap;
}

.ix-show-wrap label {
  margin: 0;
  font-weight: 700;
}

.ix-summary-bar .form-select {
  width: 92px;
  min-height: 38px;
  padding: .4rem 1.8rem .4rem .6rem;
  font-size: .9rem;
}

.ix-results-card {
  border: 1px solid var(--ixp-border-soft);
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.ix-table {
  width: 100%;
  min-width: 1110px;
  margin: 0 !important;
  border-collapse: collapse !important;
  table-layout: fixed;
  color: var(--ixp-ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .88rem;
}

.ix-table col.ix-colgroup-fecha { width: 112px; }
.ix-table col.ix-colgroup-partes { width: 205px; }
.ix-table col.ix-colgroup-contrapartes { width: 215px; }
.ix-table col.ix-colgroup-materia { width: 245px; }
.ix-table col.ix-colgroup-repertorio { width: 115px; }
.ix-table col.ix-colgroup-fojas { width: 90px; }
.ix-table col.ix-colgroup-anio { width: 78px; }

.ix-table > :not(caption) > * > * {
  padding: .7rem .68rem;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(126, 105, 75, .14) !important;
  border-right: 1px solid rgba(126, 105, 75, .18) !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.ix-table > :not(caption) > * > *:last-child {
  border-right: 0 !important;
}

.ix-table thead th {
  padding: 0 !important;
  color: var(--ixp-dark);
  font-weight: 800;
  white-space: nowrap;
}

.ix-table thead th:nth-child(odd) {
  background: var(--ixp-col-head-odd) !important;
}

.ix-table thead th:nth-child(even) {
  background: var(--ixp-col-head-even) !important;
}

.ix-table tbody td:nth-child(odd) {
  background: var(--ixp-col-odd) !important;
}

.ix-table tbody td:nth-child(even) {
  background: var(--ixp-col-even) !important;
}

.ix-table tbody tr:hover td {
  background: rgba(255, 255, 255, .34) !important;
}

.ix-table tbody td {
  text-align: center;
}

.ix-date-nowrap {
  display: inline-block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ix-sort-btn {
  position: relative;
  width: 100%;
  min-height: 43px;
  padding: .62rem 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.ix-sort-btn:hover,
.ix-sort-btn:focus-visible,
.ix-sort-btn.active {
  background: rgba(24, 34, 49, .065);
  outline: none;
}

.ix-sort-indicator {
  position: absolute;
  top: 50%;
  right: .55rem;
  transform: translateY(-50%);
  color: var(--ixp-bronze-deep);
  font-family: Arial, sans-serif;
  font-size: .75rem;
}

.ix-empty-state {
  padding: 1.5rem 1rem;
  border: 1px solid var(--ixp-border-soft);
  background: rgba(255, 255, 255, .15);
  text-align: center;
  color: var(--ixp-muted);
  font-family: "EB Garamond", Georgia, serif;
}

.ix-empty-title {
  margin-bottom: .25rem;
  color: var(--ixp-dark);
  font-size: 1.08rem;
  font-weight: 800;
}

.ix-empty-text {
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.ix-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin-top: 1rem;
  align-items: center;
}

.ix-page-gap {
  padding: 0 .15rem;
  color: var(--ixp-muted);
}

.ix-page-btn {
  min-width: 38px;
  min-height: 38px;
  padding: .35rem .65rem;
  border: 1px solid var(--ixp-border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ixp-dark);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.ix-page-btn:hover,
.ix-page-btn:focus-visible,
.ix-page-btn.active {
  background: var(--ixp-dark);
  border-color: var(--ixp-dark);
  color: #fff;
  outline: none;
}

.ix-page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  background: transparent !important;
  color: var(--ixp-muted) !important;
  border-color: var(--ixp-border) !important;
}

.ixp-results-actions {
  margin-top: 1rem;
  padding: 0;
}

.ixp-results-actions .ixp-actions {
  margin: 0;
  padding: 0;
}

.ixp-results-actions .btn {
  margin: 0 !important;
}

/* =========================================================
   NOTAS INFERIORES / NAVEGACIÓN CONTEXTUAL
========================================================= */

.ixp-support-notes {
  margin-top: 1.25rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(126, 105, 75, .18);
  color: var(--ixp-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  line-height: 1.62;
}

.ixp-support-notes p {
  margin: 0;
}

.ixp-support-notes a {
  color: var(--ixp-ink) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.ixp-support-notes a:hover,
.ixp-support-notes a:focus {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.ixp-guide-return {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1.25rem;
  padding: 0 !important;
}

.ixp-guide-return[hidden] {
  display: none !important;
}

.ixp-guide-return .btn {
  margin: 0 !important;
  min-height: 48px;
  padding: .84rem 1.55rem !important;
  border: 1px solid rgba(110, 88, 60, .26) !important;
  background: var(--retiro-form-button, #d5caba) !important;
  color: #4e5750 !important;
  font-weight: 700 !important;
}

.ixp-guide-return .btn:hover,
.ixp-guide-return .btn:focus {
  background: var(--ixp-dark) !important;
  border-color: var(--ixp-dark) !important;
  color: var(--retiro-ivory, #f4eadb) !important;
}

/* =========================================================
   SWEETALERT · MODALES INSTITUCIONALES
========================================================= */

html.swal2-shown {
  overflow: visible !important;
}

body.ixp-page.swal2-shown {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  overflow: auto !important;
  padding-right: 0 !important;
}

.swal2-container {
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: contain;
}

.swal2-container.swal2-backdrop-show {
  background: rgba(8, 14, 22, .25) !important;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.swal2-container .swal2-popup.ixp-swal-popup {
  border: 1px solid rgba(143, 123, 82, .20) !important;
  border-radius: 0 !important;
  background: var(--ixp-card, #ebe3d7) !important;
  color: var(--ixp-ink) !important;
  box-shadow: 0 18px 40px rgba(31, 40, 35, .16) !important;
  padding: 1.35rem 1.25rem 1.2rem !important;
  font-family: "EB Garamond", Georgia, serif !important;
}

.swal2-container .swal2-title.ixp-swal-title {
  margin-bottom: .45rem !important;
  color: var(--ixp-dark) !important;
  font-family: "EB Garamond", Georgia, serif !important;
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  line-height: 1.15 !important;
}

.swal2-container .swal2-html-container.ixp-swal-text {
  margin-top: 0 !important;
  color: var(--ixp-muted) !important;
  font-family: "EB Garamond", Georgia, serif !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}

.swal2-container button.swal2-confirm.ixp-swal-confirm.swal2-styled {
  min-height: 44px !important;
  padding: .72rem 1.25rem !important;
  border: 1px solid rgba(110, 88, 60, .28) !important;
  border-radius: 0 !important;
  background: var(--retiro-form-button, #d5caba) !important;
  color: #41483f !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05) !important;
  font-family: "EB Garamond", Georgia, serif !important;
  font-weight: 800 !important;
}

.swal2-container button.swal2-confirm.ixp-swal-confirm.swal2-styled:hover,
.swal2-container button.swal2-confirm.ixp-swal-confirm.swal2-styled:focus {
  border-color: var(--ixp-dark) !important;
  background: var(--ixp-dark) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(31, 40, 35, .20) !important;
}

.swal2-container .swal2-icon.swal2-warning {
  border-color: rgba(182, 160, 113, .75) !important;
  color: #9b7842 !important;
}

.swal2-container .swal2-icon.swal2-error {
  border-color: rgba(168, 86, 74, .55) !important;
  color: #9f4d41 !important;
}

.swal2-container .swal2-icon.swal2-success {
  border-color: rgba(86, 139, 105, .45) !important;
  color: #4e8a66 !important;
}

/* Modal específico para criterios sin coincidencias. */
.swal2-container .swal2-popup.ixp-swal-search-popup {
  width: min(505px, calc(100% - 30px)) !important;
  padding: 1.38rem 1.45rem 1.22rem !important;
  border-top: 3px solid rgba(167, 135, 78, .82) !important;
}

.swal2-container .swal2-title.ixp-swal-search-title {
  position: relative;
  padding-bottom: .72rem !important;
  margin-bottom: .12rem !important;
  font-size: clamp(1.5rem, 1.35rem + .4vw, 1.82rem) !important;
}

.swal2-container .swal2-title.ixp-swal-search-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .15rem;
  width: 44px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(167, 135, 78, .66);
}

.swal2-container .swal2-html-container.ixp-swal-search-text {
  margin: .25rem 0 0 !important;
  overflow: visible !important;
  text-align: left !important;
}

.ixp-modal-search-message {
  width: 100%;
}

.ixp-modal-intro,
.ixp-modal-note {
  margin: 0;
  color: var(--ixp-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  line-height: 1.55;
}

.ixp-modal-intro {
  text-align: center;
}

.ixp-modal-criteria {
  display: grid;
  gap: .48rem;
  margin: .82rem 0 .78rem;
}

.ixp-modal-criterion {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr) auto;
  gap: .7rem;
  align-items: center;
  padding: .62rem .72rem;
  border: 1px solid rgba(126, 105, 75, .16);
  background: rgba(255, 255, 255, .18);
}

.ixp-modal-criterion-label {
  color: var(--ixp-bronze-deep);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .025em;
}

.ixp-modal-criterion-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ixp-ink);
  font-size: .98rem;
  font-weight: 700;
}

.ixp-modal-criterion-state {
  white-space: nowrap;
  color: #7b3d36;
  font-size: .78rem;
  font-weight: 800;
}

.ixp-modal-note {
  padding-top: .72rem;
  border-top: 1px solid rgba(126, 105, 75, .15);
  text-align: center;
}

.swal2-container .swal2-actions {
  margin-top: .98rem !important;
}

.swal2-container button.swal2-confirm.ixp-swal-search-confirm.swal2-styled {
  min-width: 190px;
}

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

@media (max-width: 1099.98px) {
  .ixp-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .ixp-card-head {
    display: block;
  }

  .ixp-card-copy {
    max-width: none;
    margin-top: .45rem;
    text-align: left;
  }

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

  .ixp-field-compact {
    grid-column: 1 / -1;
    width: min(320px, 100%);
  }

}

@media (max-width: 991.98px) {
  /* Fija el interlineado sobre el <p> real; global.css establece
     line-height:1 en los párrafos y evita heredar el del contenedor. */
  .ixp-support-notes p {
    line-height: 1.58;
  }

  body.ixp-page #indices-page {
    padding: 3.8rem 0 4.8rem !important;
  }

  body.ixp-page #indices-page .ixp-wrap {
    width: min(100% - 36px, 860px);
  }

  .ixp-layout {
    grid-template-columns: 1fr;
  }

  .ixp-download-card {
    position: static;
  }

  .ixp-download-list {
    max-height: 280px;
  }

  .ixp-card-head > div,
  .ixp-download-head,
  .ixp-results-heading-wrap {
    text-align: center;
  }

  .ixp-card-copy {
    text-align: justify;
    text-align-last: left;
    line-height: 1.56;
  }

  .ixp-download-card,
  .ixp-download-copy,
  .ixp-download-loading,
  .ixp-download-empty,
  .ixp-download-error {
    text-align: center;
  }

  .ixp-download-item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: .55rem;
  }

  .ixp-download-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: .18rem;
    text-align: center;
  }

  .ixp-download-name {
    font-size: .94rem;
    line-height: 1.3;
  }

  .ixp-download-year {
    display: inline;
    font-size: .84rem;
    line-height: 1.3;
  }

  .ixp-download-year::before {
    content: "·";
    margin-right: .24rem;
  }

  .ixp-download-link {
    justify-self: center;
  }

  .ixp-support-notes p {
    text-align: justify;
    text-align-last: left;
  }

  .ixp-guide-return {
    justify-content: center;
  }

}

@media (max-width: 767.98px) {
  body.ixp-page #indices-page .ixp-wrap {
    width: min(100% - 28px, 720px);
  }

  .ixp-card,
  .ixp-results-zone {
    padding: 1.35rem 1.2rem 1.4rem;
  }

  .ixp-primary-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .ixp-field-compact {
    grid-column: auto;
    width: 100%;
  }

  .ixp-dynamic-row {
    grid-template-columns: 1fr 1.4fr 42px;
  }

  .ix-summary-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ix-show-wrap {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 575.98px) {
  .ixp-support-notes p {
    line-height: 1.55;
  }

  body.ixp-page #indices-page {
    padding: 3rem 0 3.8rem !important;
  }

  body.ixp-page #indices-page .ixp-wrap {
    width: calc(100% - 20px);
  }

  .ixp-card,
  .ixp-results-zone {
    padding: 1.15rem 1rem 1.2rem;
  }

  .ixp-dynamic-row {
    grid-template-columns: 1fr 42px;
  }

  .ixp-dynamic-row .ixp-dynamic-field:first-child {
    grid-column: 1 / -1;
  }

  .ixp-remove-filter {
    grid-column: 2;
    grid-row: 2;
  }

  .ixp-form-actions,
  .ixp-results-actions .ixp-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ixp-btn,
  .ixp-results-zone .btn,
  .ixp-guide-return .btn {
    width: 100%;
  }

  .ixp-download-item {
    grid-template-columns: 1fr;
  }

  .ixp-download-meta {
    justify-content: center;
    align-items: baseline;
  }


  .ixp-download-link {
    width: 100%;
    text-align: center;
  }

  .ix-summary-left {
    display: grid;
    gap: .2rem;
  }

  .ix-show-wrap {
    justify-content: space-between;
  }

  .ixp-support-notes {
    padding-top: .9rem;
  }


  .swal2-container .swal2-popup.ixp-swal-search-popup {
    width: min(94%, 460px) !important;
    padding: 1.18rem .95rem 1.05rem !important;
  }

  .swal2-container .swal2-title.ixp-swal-search-title {
    font-size: 1.42rem !important;
  }

  .swal2-container .swal2-html-container.ixp-swal-search-text,
  .ixp-modal-intro,
  .ixp-modal-note {
    font-size: .96rem !important;
  }

  .ixp-modal-criterion {
    grid-template-columns: 1fr;
    gap: .2rem;
    padding: .65rem .7rem;
    text-align: center;
  }

  .ixp-modal-criterion-state {
    white-space: normal;
  }

  .swal2-container button.swal2-confirm.ixp-swal-search-confirm.swal2-styled {
    width: 100%;
    min-width: 0;
  }
}
