/* Ruleta Federal — tokens, reset, shared primitives */
:root {
  --blue: #2157e8;
  --cyan: #20e0f2;
  --cyan-deep: #0aa8b8;
  --navy: #0b1f4a;
  --ink: #0b1f4a;
  --muted: #3a5078;
  --white: #ffffff;
  --paper: #f3fbff;
  --mist: #dff6fb;
  --ice: #c8f3fa;
  --panel: #ffffff;
  --danger: #e23b4a;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 80px;
  --radius: 18px;
  --border: 3px;
  --shadow: 7px 7px 0 var(--navy);
  --shadow-sm: 4px 4px 0 var(--navy);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --wrap: 1120px;
  --text: 1.0625rem;
  --lh: 1.62;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 56px;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 var(--s4);
  color: var(--navy);
}

p { margin: 0 0 var(--s4); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: var(--navy);
  padding: var(--s2) var(--s4);
  z-index: 80;
}
.skip:focus { left: var(--s4); top: var(--s4); }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.prose { max-width: 70ch; }

a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
a:hover { color: var(--cyan-deep); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: var(--border) solid var(--navy);
  box-shadow: var(--shadow-sm), var(--inner);
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: var(--cyan);
  color: var(--navy);
}
.btn:hover { color: var(--navy); background: #7af0fb; }
.btn--ghost {
  background: var(--white);
  color: var(--navy);
}
.btn--ghost:hover { background: var(--mist); color: var(--navy); }
.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: #163068; color: var(--white); }
.btn--wide { min-width: 180px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  background: var(--cyan);
  color: var(--navy);
  border: 0;
}
.badge--navy { background: var(--navy); color: var(--white); }
.badge--blue { background: var(--blue); color: var(--white); }
.badge--white { background: var(--white); color: var(--navy); }
.badge--juris { background: var(--navy); color: var(--cyan); }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s3);
}

.media {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border) solid var(--navy);
  box-shadow: var(--shadow), var(--inner);
  background: var(--mist);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.pull {
  margin: var(--s6) 0;
  padding: var(--s5) var(--s6);
  background: var(--white);
  border-radius: var(--radius);
  border: var(--border) solid var(--navy);
  box-shadow: var(--shadow), var(--inner);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--navy);
  position: relative;
}
.pull::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: 18px;
  font-size: 3rem;
  color: var(--cyan);
  line-height: 1;
}
.pull cite {
  display: block;
  margin-top: var(--s3);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.dyk {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  align-items: start;
  margin: var(--s6) 0;
  padding: var(--s5);
  background: var(--ice);
  border: var(--border) solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--inner);
}
.dyk-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan);
  border: 3px solid var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  transform: rotate(-8deg);
}
.dyk h3 { font-size: 1rem; margin-bottom: var(--s2); }
.dyk p { margin: 0; color: var(--muted); }

.motif {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: var(--s5) 0;
  list-style: none;
}
.motif i,
.motif span {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border: 2px solid var(--navy);
  transform: rotate(45deg);
  display: block;
}

.stars {
  --fill: 80%;
  position: relative;
  display: inline-block;
  font-size: 1.15rem;
  letter-spacing: 2px;
  line-height: 1;
  color: #c5d0e4;
}
.stars::before { content: "★★★★★"; }
.stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  width: var(--fill);
  color: var(--blue);
  white-space: nowrap;
  letter-spacing: 2px;
  line-height: 1;
}
.stars-fill::before { content: "★★★★★"; }
.stars-meta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  margin-left: 8px;
}

.list {
  list-style: none;
  margin: 0 0 var(--s5);
  padding: 0;
}
.list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}
.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  border: 2px solid var(--navy);
  transform: rotate(45deg);
}

.note-18 {
  font-size: 0.78rem;
  color: var(--muted);
  margin: var(--s3) 0 0;
  font-weight: 600;
}

.layer {
  position: relative;
}
.layer-back {
  position: absolute;
  inset: 14px -12px -12px 14px;
  background: var(--cyan);
  border: var(--border) solid var(--navy);
  border-radius: var(--radius);
  z-index: 0;
}
.layer-front {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: var(--border) solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--inner);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  .dyk { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
