.judgment-page {
  margin: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(42, 169, 255, 0.13), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 48%, #ffffff 100%);
}

.judgment-main {
  color: var(--hr-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.judgment-list-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 8vw, 104px) 0 clamp(96px, 10vw, 124px);
  background:
    linear-gradient(90deg, rgba(4, 22, 39, 0.98) 0%, rgba(5, 31, 55, 0.94) 36%, rgba(7, 42, 74, 0.64) 58%, rgba(5, 27, 48, 0.2) 100%),
    radial-gradient(circle at 21% 22%, rgba(42, 169, 255, 0.34), transparent 24rem),
    linear-gradient(180deg, rgba(2, 16, 31, 0.18), rgba(2, 16, 31, 0.62)),
    url("../assets/jurisprudencia-hero.jpg") right center / cover no-repeat;
  border-bottom: 1px solid rgba(42, 169, 255, 0.22);
  box-shadow: inset 0 -80px 120px rgba(4, 22, 39, 0.24);
  overflow: hidden;
}

.judgment-list-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(238, 247, 252, 0.86));
  pointer-events: none;
}

.judgment-list-hero .judgment-container {
  position: relative;
  z-index: 1;
}

.judgment-list-hero .judgment-kicker {
  color: #9ce7ff;
}

.judgment-list-hero .judgment-kicker::after {
  background: linear-gradient(90deg, #69f2ff, transparent);
}

.judgment-list-hero .judgment-title {
  max-width: 720px;
  color: #ffffff;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.judgment-list-hero .judgment-subtitle {
  max-width: 680px;
  color: rgba(232, 248, 255, 0.9);
}

.judgment-hero {
  padding: clamp(46px, 7vw, 86px) 0 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 252, 0.84)),
    radial-gradient(circle at 88% 20%, rgba(31, 143, 229, 0.14), transparent 24rem);
  border-bottom: 1px solid rgba(21, 94, 145, 0.12);
}

.judgment-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.judgment-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 26px;
  color: #5b7288;
  font-size: 14px;
}

.judgment-breadcrumb a {
  color: #155e91;
  font-weight: 800;
  text-decoration: none;
}

.judgment-breadcrumb span {
  color: #5b7288;
}

.judgment-return-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid rgba(21, 94, 145, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.58);
  color: #155e91;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 61, 94, 0.06);
}

.judgment-return-link:hover {
  border-color: rgba(21, 94, 145, 0.28);
  background: rgba(238, 247, 252, 0.92);
  color: #0f3d5e;
}

.judgment-return-link:focus-visible {
  outline: 3px solid rgba(31, 143, 229, 0.5);
  outline-offset: 3px;
}

.judgment-hero .judgment-return-link {
  margin-bottom: 12px;
}

.judgment-return-footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.judgment-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #0f3d5e;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.judgment-kicker::after {
  content: "";
  width: 68px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f8fe5, transparent);
}

.judgment-title {
  max-width: 900px;
  margin: 0;
  color: #071d33;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.judgment-subtitle {
  max-width: 820px;
  margin: 18px 0 0;
  color: #3f5f78;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.judgment-meta-row,
.judgment-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.judgment-meta-pill,
.judgment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(21, 94, 145, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #12344f;
  font-size: 13px;
  font-weight: 800;
}

.judgment-chip {
  background: #eef7fc;
  color: #155e91;
}

.judgment-result {
  border-color: rgba(21, 94, 145, 0.22);
  background: #ffffff;
  color: #12344f;
}

.judgment-result::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: #5b7288;
}

.judgment-result.is-consumer-positive::before {
  background: #228b45;
}

.judgment-result.is-consumer-negative::before {
  background: #b42318;
}

.judgment-result.is-mixed::before {
  background: #c58a12;
}

.judgment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding: 34px 0 72px;
}

.judgment-content {
  display: grid;
  gap: 18px;
}

.judgment-card,
.judgment-aside-card {
  border: 1px solid rgba(21, 94, 145, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(15, 61, 94, 0.08);
}

.judgment-card {
  padding: clamp(22px, 3vw, 34px);
}

.judgment-card h2,
.judgment-aside-card h2 {
  margin: 0 0 14px;
  color: #071d33;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.judgment-card p,
.judgment-card li,
.judgment-aside-card p {
  color: #3f5f78;
  font-size: 16px;
  line-height: 1.75;
}

.judgment-card p {
  margin: 0;
}

.judgment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(21, 94, 145, 0.12);
  border-radius: 14px;
  background: rgba(21, 94, 145, 0.12);
}

.judgment-fact {
  min-width: 0;
  padding: 18px;
  background: #ffffff;
}

.judgment-fact span {
  display: block;
  margin-bottom: 6px;
  color: #5b7288;
  font-size: 13px;
  font-weight: 800;
}

.judgment-fact strong {
  display: block;
  color: #071d33;
  line-height: 1.45;
}

.judgment-fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.judgment-fact-chips strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(21, 94, 145, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef7fc;
  color: #12344f;
  font-size: 13px;
}

.judgment-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.judgment-list li {
  position: relative;
  padding-left: 30px;
}

.judgment-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  border: 2px solid #1f8fe5;
  border-radius: 999px;
  background: #ffffff;
}

.judgment-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.judgment-aside-card {
  padding: 22px;
}

.judgment-aside-card h2 {
  font-size: 19px;
}

.judgment-anchor-list {
  display: grid;
  gap: 10px;
}

.judgment-anchor-list a {
  color: #155e91;
  font-weight: 800;
  text-decoration: none;
}

.judgment-source-text {
  margin-bottom: 16px !important;
}

.judgment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #155e91, #1f8fe5);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(31, 143, 229, 0.22);
}

.judgment-note {
  border-left: 4px solid #1f8fe5;
  background: #eef7fc;
}

.judgment-cta {
  background:
    radial-gradient(circle at top right, rgba(42, 169, 255, 0.18), transparent 22rem),
    linear-gradient(135deg, #0f3d5e, #1d75b8);
  color: #ffffff;
}

.judgment-cta h2,
.judgment-cta p {
  color: #ffffff;
}

.judgment-cta p {
  opacity: 0.88;
}

.judgment-cta .judgment-button {
  color: #071d33;
  background: linear-gradient(135deg, #ffffff, #69f2ff);
}

.judgment-state {
  min-height: 58vh;
  padding: clamp(70px, 10vw, 120px) 0;
}

.judgment-state-card {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(21, 94, 145, 0.16);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 61, 94, 0.08);
}

.judgment-state-card h1 {
  margin: 0 0 14px;
  color: #071d33;
  font-size: clamp(32px, 5vw, 48px);
}

.judgment-state-card p {
  margin: 0;
  color: #3f5f78;
  font-size: 18px;
  line-height: 1.7;
}

.judgment-search-panel {
  position: relative;
  z-index: 2;
  margin-top: -52px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(21, 94, 145, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(15, 61, 94, 0.12);
}

.judgment-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 86px), 1fr));
  gap: 14px;
  align-items: end;
}

.judgment-search-field {
  grid-column: span 2;
}

.judgment-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.judgment-field label {
  color: #244960;
  font-size: 12px;
  font-weight: 850;
}

.judgment-field input,
.judgment-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(21, 94, 145, 0.18);
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
  color: #12344f;
  font: inherit;
  font-size: 14px;
}

.judgment-field input:focus,
.judgment-field select:focus,
.judgment-filter-submit:focus,
.judgment-filter-clear:focus,
.judgment-card-link:focus,
.judgment-pagination a:focus,
.judgment-button:focus,
.judgment-anchor-list a:focus {
  outline: 3px solid rgba(31, 143, 229, 0.38);
  outline-offset: 2px;
}

.judgment-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  grid-column: span 3;
  min-width: 0;
}

.judgment-filter-submit,
.judgment-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.judgment-filter-submit {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #155e91, #1f8fe5);
  cursor: pointer;
}

.judgment-filter-clear {
  border: 1px solid rgba(21, 94, 145, 0.18);
  color: #155e91;
  background: #ffffff;
}

.judgment-filter-note {
  margin: 14px 0 0;
  color: #5b7288;
  font-size: 14px;
  line-height: 1.6;
}

.judgment-results-section {
  padding: 30px 0 76px;
}

.judgment-results-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.judgment-results-bar h2 {
  margin: 0;
  color: #071d33;
  font-size: clamp(20px, 3vw, 28px);
}

.judgment-results-bar p {
  margin: 0;
  color: #5b7288;
  font-size: 14px;
}

.judgment-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

.judgment-list-grid > .judgment-list-card:only-child {
  max-width: 760px;
}

.judgment-list-card,
.judgment-empty-card {
  border: 1px solid rgba(21, 94, 145, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(15, 61, 94, 0.08);
}

.judgment-list-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
}

.judgment-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.judgment-card-topline span {
  color: #155e91;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.judgment-list-card h3 {
  margin: 0;
  color: #071d33;
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.2;
}

.judgment-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
}

.judgment-card-meta div {
  min-width: 0;
}

.judgment-card-meta dt {
  color: #5b7288;
  font-size: 12px;
  font-weight: 850;
}

.judgment-card-meta dd {
  margin: 3px 0 0;
  color: #12344f;
  font-size: 14px;
  font-weight: 800;
}

.judgment-list-card p {
  margin: 0;
  color: #3f5f78;
  line-height: 1.68;
}

.judgment-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.judgment-card-tags span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #eef7fc;
  color: #155e91;
  font-size: 12px;
  font-weight: 850;
}

.judgment-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.judgment-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 12px;
  color: #155e91;
  font-weight: 900;
  text-decoration: none;
}

.judgment-card-link::after {
  content: "→";
  margin-left: 8px;
}

.judgment-card-link:hover {
  background: #eef7fc;
}

.judgment-empty-card {
  padding: clamp(24px, 4vw, 34px);
}

.judgment-empty-card h3 {
  margin: 0 0 10px;
  color: #071d33;
  font-size: clamp(22px, 3vw, 30px);
}

.judgment-empty-card p {
  margin: 0;
  color: #3f5f78;
  font-size: 16px;
  line-height: 1.7;
}

.judgment-pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.judgment-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(21, 94, 145, 0.16);
  border-radius: 10px;
  padding: 0 18px;
  color: #155e91;
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 61, 94, 0.08);
}

@media (max-width: 1200px) {
  .judgment-filter-form {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  }

  .judgment-search-field,
  .judgment-filter-actions {
    grid-column: span 2;
  }

  .judgment-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .judgment-layout {
    grid-template-columns: 1fr;
  }

  .judgment-sidebar {
    position: static;
    order: -1;
  }

  .judgment-filter-form,
  .judgment-list-grid {
    grid-template-columns: 1fr 1fr;
  }

  .judgment-search-field,
  .judgment-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .judgment-container {
    width: min(100% - 24px, 1180px);
  }

  .judgment-facts {
    grid-template-columns: 1fr;
  }

  .judgment-title {
    font-size: clamp(34px, 12vw, 48px);
  }

  .judgment-list-hero {
    padding: 54px 0 84px;
    background:
      linear-gradient(90deg, rgba(4, 22, 39, 0.99) 0%, rgba(5, 31, 55, 0.94) 56%, rgba(5, 31, 55, 0.74) 100%),
      radial-gradient(circle at 14% 18%, rgba(42, 169, 255, 0.28), transparent 17rem),
      linear-gradient(180deg, rgba(2, 16, 31, 0.22), rgba(2, 16, 31, 0.68)),
      url("../assets/jurisprudencia-hero.jpg") 72% center / cover no-repeat;
  }

  .judgment-list-hero .judgment-title {
    max-width: 100%;
  }

  .judgment-list-hero .judgment-subtitle {
    max-width: 100%;
  }

  .judgment-search-panel {
    width: min(100% - 24px, 1180px);
    margin-top: -44px;
  }

  .judgment-filter-form,
  .judgment-list-grid {
    grid-template-columns: 1fr;
  }

  .judgment-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .judgment-filter-submit,
  .judgment-filter-clear {
    width: 100%;
  }

  .judgment-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .judgment-return-link {
    width: 100%;
    justify-content: center;
    padding-inline: 12px;
    text-align: center;
  }
}
