:root {
  color-scheme: dark;
  --green: #00b64f;
  --green-bright: #19d269;
  --ink: #020604;
  --panel: #0a1510;
  --line: rgba(255,255,255,.14);
  --muted: #a8b7ae;
  --white: #f6fbf8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(0,182,79,.08) 0 1px, transparent 1px 54px),
    radial-gradient(circle at 78% 18%, rgba(0,182,79,.18), transparent 31rem),
    var(--ink);
  background-size: 54px 54px, auto, auto;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(22px, 5vw, 82px);
  border-bottom: 1px solid var(--line);
  background: rgba(2,6,4,.84);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.025em;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand strong { color: var(--green-bright); }

main { width: min(1320px, calc(100% - 44px)); margin: 0 auto; }

.hero {
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(30px, 6vw, 100px);
  padding: clamp(58px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-bright);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .18em;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 7.3rem);
  line-height: .91;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green-bright);
}

.intro {
  max-width: 620px;
  margin: 30px 0 34px;
  color: #c6d2cb;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  padding: 14px 24px;
  border: 1px solid var(--green-bright);
  background: var(--green);
  color: #001d0c;
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}

.primary:hover, .primary:focus-visible { background: var(--green-bright); transform: translateY(-2px); }
.primary:focus-visible, .card:focus-visible { outline: 3px solid white; outline-offset: 4px; }

.crest-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
}

.crest-wrap img {
  position: relative;
  z-index: 2;
  width: min(100%, 490px);
  filter: drop-shadow(0 32px 70px rgba(0,0,0,.65));
}

.halo {
  position: absolute;
  width: min(92%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(25,210,105,.32);
  box-shadow: inset 0 0 80px rgba(0,182,79,.14), 0 0 90px rgba(0,182,79,.1);
}

.access { padding: clamp(70px, 8vw, 115px) 0; }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; }

h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17,35,25,.93), rgba(7,15,10,.96));
  text-decoration: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -40px -90px auto;
  width: 210px;
  height: 210px;
  border: 38px solid rgba(0,182,79,.08);
  transform: rotate(15deg);
}

.card.active { transition: border-color .2s ease, transform .2s ease; }
.card.active:hover { border-color: var(--green-bright); transform: translateY(-4px); }

.card-number { color: rgba(255,255,255,.35); font-size: .9rem; font-weight: 800; }

.card-label {
  width: fit-content;
  margin: 38px 0 18px;
  padding: 5px 10px;
  border: 1px solid rgba(25,210,105,.5);
  color: var(--green-bright);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.card h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; line-height: 1.05; }
.card p { max-width: 570px; margin: 18px 0 30px; color: var(--muted); font-size: 1rem; }
.card-action { margin-top: auto; color: var(--green-bright); font-weight: 900; }
.card-action b { margin-left: 10px; }

/* Archivo histórico */

.campaigns-page {
  background:
    linear-gradient(135deg, rgba(0,182,79,.06) 0 1px, transparent 1px 54px),
    radial-gradient(circle at 88% 8%, rgba(0,182,79,.2), transparent 34rem),
    var(--ink);
  background-size: 54px 54px, auto, auto;
}

.campaigns-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
}

.back-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: #dce7e0;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 800;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

.campaigns-main { width: min(1760px, calc(100% - 44px)); }

.campaigns-hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding: clamp(70px, 8vw, 126px) 0 clamp(56px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
}

.campaigns-hero h1 { max-width: 1040px; font-size: clamp(4rem, 8vw, 8rem); }

.campaigns-lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: #c6d2cb;
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
}

.ranking-mark {
  min-width: 190px;
  display: grid;
  justify-items: end;
  line-height: .8;
}

.ranking-mark b {
  color: transparent;
  font-size: clamp(8rem, 15vw, 15rem);
  letter-spacing: -.1em;
  -webkit-text-stroke: 2px rgba(25,210,105,.7);
}

.ranking-mark span {
  margin-top: 22px;
  color: var(--green-bright);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .24em;
}

.method,
.audit {
  display: grid;
  grid-template-columns: minmax(230px, .34fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 120px);
  padding: clamp(58px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.method-grid p {
  margin: 0;
  padding: clamp(22px, 3vw, 32px);
  background: rgba(7,15,10,.96);
  color: var(--muted);
}

.method-grid strong { display: block; margin-bottom: 5px; color: var(--white); }

.ranking-section { padding: clamp(64px, 8vw, 110px) 0; }
.ranking-heading { gap: 24px; }
.table-help { margin: 0; color: var(--muted); font-size: .92rem; }

.campaign-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(5,12,8,.94);
  box-shadow: 0 34px 90px rgba(0,0,0,.24);
}

.campaign-table {
  width: 100%;
  min-width: 1510px;
  border-collapse: collapse;
  font-size: .88rem;
}

.campaign-table thead { background: #102219; }

.campaign-table th,
.campaign-table td {
  padding: 16px 13px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  vertical-align: top;
  text-align: left;
}

.campaign-table thead th {
  position: sticky;
  top: 87px;
  z-index: 10;
  color: #c4d3ca;
  font-size: .67rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.campaign-table tbody tr { transition: background .18s ease; }
.campaign-table tbody tr:hover { background: rgba(25,210,105,.055); }
.campaign-table tbody tr:last-child > * { border-bottom: 0; }
.campaign-table .podium-row { background: rgba(0,182,79,.035); }

.campaign-table th[scope="row"] { min-width: 132px; }
.campaign-table th[scope="row"] b { display: block; color: var(--white); font-size: 1.08rem; }
.campaign-table th[scope="row"] small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.campaign-table td:nth-child(n+4):nth-child(-n+10) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.campaign-table td:nth-child(12) { min-width: 180px; }
.campaign-table td:nth-child(13) { min-width: 150px; }
.campaign-table td:last-child { min-width: 145px; }

.rank {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  color: #b8c5bd;
  font-weight: 900;
}

.rank-1 { border-color: #d9ae47; background: #d9ae47; color: #161003; }
.rank-2 { border-color: #bdc5c1; background: #bdc5c1; color: #111713; }
.rank-3 { border-color: #b97745; background: #b97745; color: #1d0d03; }
.pct { color: var(--green-bright); font-size: .98rem; white-space: nowrap; }

.campaign-table details { position: relative; }

.campaign-table summary {
  width: max-content;
  cursor: pointer;
  color: var(--green-bright);
  font-weight: 900;
  list-style: none;
  white-space: nowrap;
}

.campaign-table summary::-webkit-details-marker { display: none; }
.campaign-table summary::after { content: " +"; }
.campaign-table details[open] summary::after { content: " −"; }

.detail-body {
  width: min(660px, 72vw);
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(25,210,105,.28);
  background: #0d1b13;
  color: #d9e4dd;
  box-shadow: 0 18px 45px rgba(0,0,0,.38);
  font-size: .88rem;
  line-height: 1.55;
}

.detail-body p { margin: 12px 0 0; }
.detail-body .caveat { color: var(--muted); font-size: .8rem; }

.evidence {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.16);
  color: #d9e4dd;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.evidence.complete { border-color: rgba(25,210,105,.55); color: var(--green-bright); }
.evidence.base { border-color: rgba(214,174,74,.55); color: #e6c776; }
.evidence.partial { border-color: rgba(113,165,227,.5); color: #9cc8f4; }
.evidence.missing { color: #a6b1aa; }

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.source-links a {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.16);
  color: #dbe7df;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
}

.source-links a:hover,
.source-links a:focus-visible { border-color: var(--green-bright); color: var(--green-bright); }

.audit { border-top: 1px solid var(--line); border-bottom: 0; }
.audit-copy { max-width: 980px; color: var(--muted); }
.audit-copy > p { margin: 0 0 18px; }
.global-sources { margin-top: 28px; }

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(22px, 5vw, 82px);
  border-top: 1px solid var(--line);
  color: #9caaa2;
  font-size: .9rem;
}

footer span { color: var(--white); font-weight: 900; }
footer p { margin: 0; }

@media (max-width: 820px) {
  .topbar { min-height: 76px; padding-inline: 18px; }
  .brand img { width: 48px; height: 48px; }
  main { width: min(100% - 34px, 680px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 54px 0 68px; }
  .hero-copy { text-align: left; }
  h1 { font-size: clamp(3rem, 15vw, 5.8rem); }
  .crest-wrap { min-height: 280px; order: -1; }
  .crest-wrap img { width: min(78vw, 330px); }
  .halo { width: min(82vw, 340px); }
  .primary { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 300px; }
  .campaigns-main { width: min(100% - 28px, 680px); }
  .campaigns-hero { min-height: auto; grid-template-columns: 1fr; padding: 58px 0; }
  .campaigns-hero h1 { font-size: clamp(3.45rem, 17vw, 6rem); }
  .campaigns-lead { margin-top: 24px; }
  .ranking-mark { display: none; }
  .method,
  .audit { grid-template-columns: 1fr; gap: 28px; }
  .method-grid { grid-template-columns: 1fr; }
  .ranking-heading { align-items: flex-start; flex-direction: column; }

  .campaign-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .campaign-table { min-width: 0; display: block; }
  .campaign-table thead { display: none; }
  .campaign-table tbody { display: grid; gap: 14px; }
  .campaign-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(17,35,25,.93), rgba(7,15,10,.96));
  }
  .campaign-table th,
  .campaign-table td {
    min-width: 0 !important;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.075) !important;
    font-size: .86rem;
  }
  .campaign-table th::before,
  .campaign-table td::before {
    content: attr(data-label);
    color: #73827a;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .campaign-table tr > :nth-child(-n+3),
  .campaign-table tr > :nth-child(n+12) { grid-column: 1 / -1; }
  .campaign-table tr > :first-child { align-items: center; }
  .campaign-table td:last-child { border-bottom: 0 !important; }
  .campaign-table details,
  .campaign-table summary { width: 100%; }
  .detail-body { width: 100%; padding: 16px; }
  footer { align-items: flex-start; flex-direction: column; padding: 28px 18px; }
}

@media (max-width: 500px) {
  .campaigns-topbar .brand span { font-size: .82rem; }
  .back-link { padding: 8px 10px; font-size: .75rem; }
  .campaign-table tr { grid-template-columns: 1fr; padding: 16px; }
  .campaign-table tr > * { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
