:root {
  --bg: #eef1ed;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --line: #d7ddd4;
  --line-strong: #b6c1b6;
  --ink: #17211d;
  --muted: #64726b;
  --accent: #0c6661;
  --accent-soft: #dbeae5;
  --warm: #dd9a2c;
  --warm-soft: #f6ead7;
  --shadow: 0 18px 40px rgba(22, 35, 32, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(12, 102, 97, 0.09), transparent 28%),
    radial-gradient(circle at bottom right, rgba(160, 180, 150, 0.12), transparent 24%),
    linear-gradient(180deg, #f5f6f2 0%, #e8ece7 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

html {
  scrollbar-gutter: stable;
}

body {
  padding: clamp(0.85rem, 1.5vw, 1.25rem);
  overflow-x: clip;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88em;
  background: #eef5f3;
  border: 1px solid #d8e3e0;
  border-radius: 7px;
  padding: 0.1rem 0.35rem;
}

.page-shell {
  width: min(1480px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

.page-shell > * {
  min-width: 0;
}

.brand-bar,
.panel,
.summary-card,
.dataset-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.brand-bar {
  border-radius: calc(var(--radius) + 4px);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at top left, rgba(126, 200, 196, 0.14), transparent 26%),
    linear-gradient(135deg, #103a39 0%, #0c5450 52%, #0c6661 100%);
  border-color: rgba(8, 53, 50, 0.62);
  box-shadow:
    0 22px 44px rgba(16, 43, 41, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.brand-bar::after {
  content: "";
  position: absolute;
  inset: auto -5% -35% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 223, 217, 0.18) 0%, rgba(151, 223, 217, 0) 68%);
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem 0.9rem;
  flex-wrap: wrap;
}

.brand-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-nav {
  margin-left: auto;
}

.brand-nav-checkbox,
.brand-nav-toggle {
  display: none;
}

.brand-mark {
  width: 30px;
  height: 38px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #b9f0f2 0%, #59b3b7 42%, #13857f 100%);
  border-radius: 55% 55% 60% 60% / 72% 72% 42% 42%;
  transform: rotate(45deg);
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 10px 20px rgba(6, 31, 31, 0.22);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 10px auto auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.brand-kicker,
.eyebrow,
.table-empty {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-kicker {
  color: rgba(230, 255, 250, 0.76);
}

.eyebrow {
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  color: #f7fffd;
}

h2 {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.brand-subtitle,
.section-copy,
.summary-copy,
.dataset-copy,
.meta-copy,
.table-empty {
  color: var(--muted);
  line-height: 1.5;
}

.brand-subtitle {
  max-width: 760px;
  margin-top: 0.4rem;
  color: rgba(234, 252, 248, 0.82);
}

.brand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(198, 241, 235, 0.32);
  border-radius: 14px;
  background: rgba(246, 253, 251, 0.12);
  color: #f1fcfa;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  text-decoration: none;
}

.brand-button:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.brand-nav-toggle:focus-visible {
  outline: 2px solid rgba(213, 248, 244, 0.46);
  outline-offset: 2px;
}

.brand-button-secondary {
  background: rgba(246, 253, 251, 0.08);
}

.brand-button-current {
  background: rgba(245, 255, 252, 0.95);
  color: #0d3f3d;
  border-color: rgba(198, 241, 235, 0.5);
}

.brand-button[data-emoji] {
  position: relative;
  overflow: hidden;
}

.brand-button[data-emoji]::after {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #f4fffc;
  font-size: 1.1rem;
  transition: opacity 120ms ease;
}

.brand-button-current[data-emoji]::after {
  color: #0d3f3d;
}

@media (hover: hover) {
  .brand-button[data-emoji]:hover {
    color: transparent;
  }

  .brand-button[data-emoji]:hover::after {
    opacity: 1;
  }
}

.panel {
  border-radius: var(--radius);
  padding: 1.2rem;
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 247, 0.96)),
    var(--surface);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head > * {
  min-width: 0;
}

.section-copy {
  max-width: 56ch;
}

.hero-intro {
  width: 100%;
}

.hero-copy {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
  width: 100%;
  max-width: none;
}

.hero-copy .section-copy {
  max-width: none;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legend-grid,
.summary-grid,
.content-grid,
.dataset-grid {
  display: grid;
  gap: 1rem;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.legend-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

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

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

.summary-card,
.dataset-card,
.legend-card {
  border-radius: 18px;
  padding: 1rem;
}

.summary-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 246, 0.95) 100%);
}

.summary-value {
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin-top: 0.3rem;
}

.summary-copy {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.dataset-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 247, 0.92) 100%);
}

.legend-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 244, 0.94) 100%);
  border: 1px solid rgba(218, 226, 219, 0.72);
}

.legend-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.legend-copy {
  color: var(--muted);
  line-height: 1.5;
}

.dataset-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.pill-bucket {
  position: relative;
  min-height: 34px;
  padding: 0.36rem 0.78rem 0.36rem 0.66rem;
  gap: 0.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pill-bucket::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.68);
}

.pill-hackathon {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #c5ddd5;
}

.pill-external {
  background: var(--warm-soft);
  color: #8a5a16;
  border-color: #e4cda7;
}

.pill-integrado {
  background: #edf6ef;
  color: #356341;
  border-color: #cfe0d1;
}

.pill-soporte {
  background: #eef2f7;
  color: #45607b;
  border-color: #d7e0ea;
}

.pill-explorado {
  background: #f8efe6;
  color: #8c5f32;
  border-color: #e8d7c4;
}

.dataset-copy {
  font-size: 0.97rem;
}

.meta-list {
  display: grid;
  gap: 0.7rem;
}

.meta-item {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(183, 194, 185, 0.42);
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-copy code {
  word-break: break-word;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 36px;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-weight: 800;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.filter-chip.is-active {
  background: var(--accent-soft);
  border-color: #c5ddd5;
  color: var(--accent);
}

.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(182, 193, 182, 0.58);
  background: rgba(255, 255, 255, 0.78);
}

.sources-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.sources-table th,
.sources-table td {
  padding: 0.88rem 1rem;
  border-bottom: 1px solid rgba(183, 194, 185, 0.46);
  text-align: left;
  vertical-align: top;
}

.sources-table thead th {
  position: sticky;
  top: 0;
  background: #f7faf8;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sources-table tbody tr:nth-child(odd) {
  background: rgba(247, 250, 247, 0.62);
}

.sources-table tbody tr:hover {
  background: rgba(220, 235, 229, 0.38);
}

.dataset-title {
  font-weight: 800;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.dataset-path {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.origin-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.origin-link:hover {
  color: #084d49;
}

.bucket-cell,
.status-cell {
  display: grid;
  gap: 0.42rem;
}

.bucket-cell {
  justify-items: start;
}

.table-empty {
  text-align: center;
  padding: 1.4rem;
}

@media (max-width: 1120px) {
  .summary-grid,
  .content-grid,
  .dataset-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-copy,
  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 720px) {
  body {
    padding: 0.6rem;
  }

  .brand-bar,
  .panel {
    padding: 0.95rem;
  }

  .brand-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .brand-lockup {
    width: 100%;
    gap: 0.7rem;
  }

  .brand-mark {
    width: 24px;
    height: 30px;
  }

  .brand-mark::after {
    inset: 6px 8px auto auto;
    width: 6px;
    height: 6px;
  }

  .brand-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .brand-copy h1 {
    font-size: 1.65rem;
  }

  .brand-title-row {
    gap: 0.5rem 0.65rem;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-actions {
    width: 100%;
    margin-left: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 0.65rem;
  }

  .brand-nav {
    width: 100%;
    margin-left: 0;
  }

  .brand-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 0.68rem 0.84rem;
    border: 1px solid rgba(198, 241, 235, 0.32);
    border-radius: 14px;
    background: rgba(239, 251, 248, 0.14);
    color: #f4fffc;
    font-weight: 800;
    cursor: pointer;
  }

  .brand-nav-toggle::after {
    content: "+";
    font-size: 1rem;
    line-height: 1;
  }

  .brand-nav-checkbox:checked + .brand-nav-toggle::after {
    content: "−";
  }

  .brand-nav-checkbox:checked + .brand-nav-toggle + .brand-actions {
    display: grid;
  }

  .brand-button {
    width: 100%;
    min-height: 40px;
    padding: 0.62rem 0.82rem;
    font-size: 0.92rem;
  }

  .intro-tags {
    gap: 0.45rem;
  }
}
