/* Judo hub / glosario — mismo lenguaje gráfico que Fundamentos / Kata */

.judo-page {
  --judo-bg: #f5f7f9;
  --judo-card: #ffffff;
  --judo-border: rgba(13, 59, 102, 0.12);
  --judo-accent: rgb(72, 148, 179);
  --judo-accent-soft: rgba(72, 148, 179, 0.12);
  --judo-text: #1e2430;
  --judo-muted: #5c6570;
  --judo-radius: 14px;

  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(72, 148, 179, 0.12), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(13, 59, 102, 0.06), transparent 50%),
    var(--judo-bg);
  color: var(--judo-text);
  padding: 1.25rem 0 3.5rem;
  min-height: 70vh;
}

.judo-page * {
  box-sizing: border-box;
}

.judo-inner {
  width: min(1100px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.judo-hero {
  margin-bottom: 1.5rem;
  padding: 0.5rem 0 0.25rem;
}

.judo-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--judo-accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.judo-hero h1 {
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  color: #0d3b66;
}

.judo-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--judo-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.judo-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--judo-accent);
  font-weight: 700;
  margin: 1.5rem 0 0.85rem;
}

.judo-cards {
  display: grid;
  gap: 0.85rem;
}

.judo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.15rem 1.25rem;
  border-radius: var(--judo-radius);
  background: var(--judo-card);
  border: 1px solid var(--judo-border);
  box-shadow: 0 6px 18px rgba(13, 59, 102, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.judo-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--judo-accent), transparent 85%);
}

a.judo-card:hover {
  color: inherit;
  text-decoration: none;
  border-color: rgba(72, 148, 179, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 59, 102, 0.1);
}

.judo-card-icon {
  font-size: 1.6rem;
  color: var(--judo-accent);
  margin-bottom: 0.5rem;
}

.judo-card h2 {
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  font-weight: 700;
  margin: 0 0 0.45rem;
  line-height: 1.25;
  color: #0d3b66;
}

.judo-card p {
  margin: 0;
  color: var(--judo-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.judo-kyu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.judo-kyu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  border: 2px solid rgba(13, 59, 102, 0.12);
  font-weight: 700;
  text-decoration: none;
  color: #1e2430;
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.06);
}

.judo-kyu-btn:hover {
  color: #1e2430;
  text-decoration: none;
  border-color: #0d3b66;
}

.judo-glossary-block {
  margin-bottom: 1.25rem;
}

.judo-glossary-block h2 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--judo-accent);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.judo-glossary-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--judo-card);
  border: 1px solid var(--judo-border);
  border-radius: var(--judo-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(13, 59, 102, 0.06);
}

.judo-glossary-table th,
.judo-glossary-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--judo-border);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.judo-glossary-table th {
  background: rgba(72, 148, 179, 0.08);
  color: #0d3b66;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.judo-glossary-table tr:last-child td {
  border-bottom: 0;
}

.judo-glossary-table td:first-child {
  font-weight: 700;
  color: #0d3b66;
  white-space: nowrap;
}

.judo-back {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .judo-page {
    padding: 2rem 0 4.5rem;
  }

  .judo-inner {
    width: min(1100px, calc(100% - 2.5rem));
  }

  .judo-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .judo-kyu-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 992px) {
  .judo-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
