/* ==========================================================================
   07 · CRITERIOS Y JURADO
   ========================================================================== */

.categories,
.criteria {
  position: relative;
  background: var(--ink);
}
.criteria {
  background:
    radial-gradient(
      circle at 12% 80%,
      rgba(40, 100, 255, 0.18),
      transparent 27%
    ),
    #070b1c;
}
.criteria-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(45px, 8vw, 140px);
}
.criteria-feature {
  position: relative;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(65, 229, 255, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 32% 17%,
      rgba(65, 229, 255, 0.64),
      rgba(40, 100, 255, 0.34) 30%,
      rgba(131, 56, 255, 0.18) 55%,
      transparent 68%
    ),
    rgba(255, 255, 255, 0.035);
}
.criteria-feature::before {
  position: absolute;
  top: -20%;
  left: -8%;
  width: 72%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 42% 58% 65% 35% / 44% 35% 65% 56%;
  transform: rotate(24deg);
}
.criteria-feature > span {
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.criteria-feature > strong {
  display: block;
  margin: 18px 0 8px;
  font-size: clamp(5.5rem, 9vw, 9.2rem);
  letter-spacing: -0.09em;
  line-height: 0.8;
}
.criteria-feature > strong small {
  color: var(--cyan);
  font-size: 0.28em;
}
.criteria-feature h3 {
  max-width: 380px;
  margin: 22px 0 9px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.15;
}
.criteria-feature p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.82rem;
  line-height: 1.6;
}
.criteria-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.jury-strip {
  display: grid;
  grid-template-columns: 1.3fr repeat(5, 1fr);
  gap: 25px;
  margin-top: 90px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.jury-strip span {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.jury-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}
.ai-criteria-note {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.ai-criteria-note span {
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.45;
}
.ai-criteria-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  line-height: 1.4;
}
.jury-decision {
  margin: 19px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-style: italic;
}
@media (max-width: 1024px) {
  .jury-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .ai-criteria-note {
    grid-template-columns: repeat(3, 1fr);
  }
  .ai-criteria-note span {
    grid-column: 1 / -1;
  }
}
@media (max-width: 820px) {
  .criteria-layout {
    grid-template-columns: 1fr;
  }
  .criteria-feature {
    min-height: 430px;
  }
  .jury-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .jury-strip span {
    grid-column: 1 / -1;
  }
  .ai-criteria-note {
    grid-template-columns: repeat(2, 1fr);
  }
}
.criteria {
  color: #ffffff;
  background: #0a0a0a;
}
.criteria-feature {
  min-height: 500px;
  padding: 38px;
  color: #0a0a0a;
  border: 0;
  background: #ffffff;
}
.criteria-feature > span,
.criteria-feature > strong small,
.criteria-feature p {
  color: #0a0a0a;
}
.criteria-feature > strong {
  font-size: clamp(7rem, 11vw, 12rem);
}
.jury-strip,
.ai-criteria-note {
  border-color: #777777;
  background: transparent;
}
.jury-strip > span,
.ai-criteria-note > span,
.ai-criteria-note p {
  color: #ffffff;
}
.criteria {
  position: relative;
  isolation: isolate;
  background-color: #000000 !important;
  background-image:
    radial-gradient(
      circle at 18% 30%,
      rgba(0, 174, 217, 0.11),
      transparent 33%
    ),
    radial-gradient(circle at 88% 74%, rgba(0, 225, 164, 0.1), transparent 30%),
    linear-gradient(145deg, #000000, rgba(0, 174, 217, 0.055) 52%, #000000) !important;
}
.criteria-feature {
  background-color: #f9fffc !important;
  background-image: linear-gradient(145deg, #ffffff, #eafff7) !important;
}
@media (max-width: 820px) {
  .categories::after,
  .categories::before,
  .criteria::after,
  .timeline::after {
    display: none !important;
  }
}

.criterion-row {
  display: grid;
  grid-template-columns: 44px 1fr 70px;
  gap: 20px;
  align-items: center;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}
.criterion-index {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.62rem;
  font-weight: 700;
}
.criterion-row h3 {
  margin: 0 0 13px;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 400;
}
.criterion-row > strong {
  justify-self: end;
  color: var(--cyan);
  font-size: 1.15rem;
}
.criterion-bar {
  height: 2px;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.criterion-bar span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.criterion-index {
  color: #888888;
}
.criterion-row > strong {
  color: #ffffff;
}
.criterion-bar {
  background: #444444;
}
.criterion-bar span {
  background: #ffffff;
}
.criterion-bar span {
  background-color: var(--ta-green) !important;
  background-image: linear-gradient(
    90deg,
    var(--ta-green),
    var(--ta-cyan)
  ) !important;
  transform-origin: left center;
  animation: ta-bar-glow 3.8s ease-in-out infinite alternate;
}
@keyframes ta-bar-glow {
  from {
    transform: scaleY(0.76);
    opacity: 0.82;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* --- Jurado / criterios IA (cliente): más grande y centrado bajo su columna --- */
.jury-strip,
.ai-criteria-note {
  align-items: center;
}
.jury-strip > span,
.ai-criteria-note > span {
  font-size: var(--fs-body) !important;
  text-align: left;
  line-height: 1.4;
}
.jury-strip > p,
.ai-criteria-note > p {
  font-size: var(--fs-caption) !important;
  text-align: center;
}

/* --- Línea de decisiones del jurado (cliente): más grande y con aire --- */
.jury-decision {
  font-size: var(--fs-caption) !important;
  line-height: 1.6 !important;
  margin-top: 22px !important;
}

/* --- Jurado/criterios IA en móvil: título a lo ancho y items ordenados --- */
@media (max-width: 640px) {
  .jury-strip,
  .ai-criteria-note {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 12px !important;
    align-items: start;
  }
  .jury-strip > span,
  .ai-criteria-note > span {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    margin-bottom: 4px;
  }
  .jury-strip > p,
  .ai-criteria-note > p {
    text-align: center !important;
  }
}

/* --- Jurado: se oculta en móvil por decisión del cliente --- */
@media (max-width: 640px) {
  .jury-strip,
  .ai-criteria-note,
  .jury-decision {
    display: none !important;
  }
}

/* --- Jurado técnico como TABLA estructurada (cliente); tamaños del PDF --- */
.jury-table {
  width: 100%;
  margin-top: clamp(48px, 6vw, 90px);
  border-collapse: collapse;
  table-layout: fixed;
}
.jury-table th,
.jury-table td {
  padding: 22px 18px 22px 0;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: var(--fs-cuerpo);
  line-height: 1.3;
}
.jury-table tr:last-child th,
.jury-table tr:last-child td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.jury-table th {
  width: 24%;
  color: #fff;
  font-weight: 700;
}
.jury-table td {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 400;
}
@media (max-width: 820px) {
  .jury-table,
  .jury-table tbody,
  .jury-table tr,
  .jury-table th,
  .jury-table td {
    display: block;
  }
  .jury-table tr {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }
  .jury-table th {
    width: auto;
    border: 0;
    padding: 0 0 8px;
    text-align: center;
  }
  .jury-table td {
    border: 0;
    padding: 4px 0;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .jury-table,
  .jury-decision {
    display: none !important;
  }
}

/* --- Tamaños de criterios (derecha) + jurado (guía PDF) --- */
.criterion-row h3 {
  font-size: var(--fs-cuerpo) !important;
}
.criterion-index {
  font-size: var(--fs-nota) !important;
}
.criterion-row > strong {
  font-size: var(--fs-subtitulo) !important;
}
.jury-decision {
  font-size: var(--fs-cuerpo) !important;
  line-height: 1.5 !important;
}
.criteria-feature h3 {
  font-size: var(--fs-subtitulo) !important;
  line-height: 1.16 !important;
}
.criteria-feature > span {
  font-size: var(--fs-nota) !important;
}
.criteria-feature p {
  font-size: var(--fs-cuerpo) !important;
  line-height: 1.5 !important;
}
