:root {
  color-scheme: light;
  --text-muted: #554d47;
  --line: rgba(20, 16, 13, 0.18);
  --accent-text: #9e3c15;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.58;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

section[id],
article[id],
#descarga {
  scroll-margin-top: 8px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--text, #14100d);
  color: #fff;
  font: 400 12px/1.2 var(--mono, "JetBrains Mono", monospace);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

::selection {
  background: var(--accent, #e15d27);
  color: #fff;
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent, #e15d27);
  outline-offset: 4px;
}

nav {
  box-shadow: 0 1px 0 rgba(20, 16, 13, 0.06);
}

.menu .link,
.back {
  color: #514943;
}

.menu .link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-block: 10px;
}

.menu .link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--accent, #e15d27);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.menu .link:hover::after,
.menu .link:focus-visible::after,
.menu .link[aria-current="page"]::after {
  transform: scaleX(1);
}

.burger,
.resource-dialog__close,
.modal .x {
  width: 44px;
  height: 44px;
}

.burger span,
.burger span::before,
.burger span::after {
  left: 11px;
}

.burger span {
  top: 21px;
}

.burger span::before,
.burger span::after {
  left: 0;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  line-height: 1.5;
}

.btn {
  min-height: 48px;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(112, 49, 22, 0.16);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(112, 49, 22, 0.22);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.questions {
  gap: 18px;
}

.q {
  position: relative;
  min-height: 150px;
  cursor: pointer;
  overflow: hidden;
  border-color: rgba(20, 16, 13, 0.42);
  background: linear-gradient(145deg, #ffffff 0%, #fffaf6 100%);
  box-shadow: 0 16px 42px rgba(51, 35, 26, 0.08);
}

.q small {
  color: #5d534d;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.q-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  color: var(--accent-text, #9e3c15);
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.q-action b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent, #e15d27);
  color: #14100d;
  font: 500 17px/1 var(--display, "Space Grotesk", sans-serif);
  transition: transform 180ms ease;
}

.q:hover {
  border-color: var(--accent, #e15d27);
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(112, 49, 22, 0.14);
}

.q:hover .q-action b {
  transform: translateX(4px);
}

.q:active {
  transform: translateY(-1px) scale(0.99);
}

.card > p,
.box p,
.step-lead,
.eb-intro,
.tier span,
.tl span,
.item span,
.reason p,
.tut-body p,
.reg-band p,
.g-note,
.assume,
.m span,
.flow-note {
  line-height: 1.62;
}

.card > p {
  font-size: 17px;
}

.fact span {
  font-size: 14px;
  line-height: 1.58;
}

.item span {
  font-size: 15.5px;
}

.reason p,
.box p {
  font-size: 16.5px;
}

.more {
  border-top: 1px solid var(--line, rgba(20, 16, 13, 0.18));
}

.more p span {
  color: #5d534d;
  font-size: 12px;
}

.more .btn.outline {
  border-color: var(--accent, #e15d27);
  background: var(--accent, #e15d27);
  color: #14100d;
}

.more .btn.outline:hover {
  border-color: #c94c1d;
  background: #c94c1d;
  color: #14100d;
}

.chip,
.tier small,
.tl .d,
.chart-legend,
.kpi .cap,
.src,
.g-label span,
.g-ticks,
.saved,
.bar em,
.m small,
.fl .n,
.flow-note {
  font-size: 12.5px;
}

.par-l {
  font-size: 12px;
}

.gate .lead {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.64;
}

.gate small,
.index-head span {
  color: rgba(255, 255, 255, 0.74);
}

.grp {
  color: rgba(255, 255, 255, 0.67);
}

.ix {
  color: rgba(255, 255, 255, 0.94);
}

.gate:target {
  box-shadow: inset 0 4px 0 var(--accent, #e15d27);
}

.gate:target .gate-top > div:first-child {
  padding-left: 24px;
  border-left: 3px solid var(--accent, #e15d27);
}

.q,
.card,
.tut,
.form,
.agenda,
.keybox,
.tier,
.kpi {
  box-shadow: 0 18px 60px rgba(51, 35, 26, 0.045);
}

.q,
.btn,
.card,
.tut,
.form,
.agenda,
.keybox,
.tier,
.kpi,
details {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.legal-note {
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--line, rgba(20, 16, 13, 0.12));
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-muted, #6b6058);
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 12.5px;
  line-height: 1.65;
}

.legal-note a {
  color: var(--accent-text, #b4461a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-error {
  margin-top: 14px;
  color: #a72d21;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 12px;
  line-height: 1.5;
}

.resource-dialog {
  width: min(640px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  border: 1px solid var(--text, #14100d);
  background: var(--bg, #f7f3ee);
  color: var(--text, #14100d);
  box-shadow: 0 32px 100px rgba(20, 16, 13, 0.28);
}

.resource-dialog::backdrop {
  background: rgba(20, 16, 13, 0.64);
  backdrop-filter: blur(6px);
}

.resource-dialog__inner {
  position: relative;
  padding: clamp(28px, 6vw, 54px);
}

.resource-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line, rgba(20, 16, 13, 0.12));
  border-radius: 50%;
  background: #fff;
  color: var(--text, #14100d);
  font: 500 22px/1 var(--display, "Space Grotesk", sans-serif);
  cursor: pointer;
}

.resource-dialog h2 {
  max-width: 500px;
  margin: 8px 0 10px;
  font: 500 clamp(30px, 6vw, 48px)/0.98 var(--display, "Space Grotesk", sans-serif);
  letter-spacing: -0.045em;
}

.resource-dialog p {
  color: var(--text-muted, #6b6058);
}

.resource-dialog .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.resource-dialog .field {
  display: grid;
  gap: 7px;
}

.resource-dialog .field.full {
  grid-column: 1 / -1;
}

.resource-dialog label {
  font: 400 11px/1.4 var(--mono, "JetBrains Mono", monospace);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-dialog input,
.resource-dialog select {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(20, 16, 13, 0.24);
  border-radius: 0;
  background: #fff;
  color: var(--text, #14100d);
  font: 400 16px/1.3 var(--display, "Space Grotesk", sans-serif);
}

.resource-dialog .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted, #6b6058);
  font: 400 14px/1.45 var(--display, "Space Grotesk", sans-serif);
  letter-spacing: 0;
  text-transform: none;
}

.resource-dialog .consent input {
  min-height: auto;
  margin-top: 3px;
}

.resource-dialog .dialog-submit {
  margin-top: 22px;
}

.resource-dialog__done {
  padding-block: 30px;
}

.resource-dialog__done[hidden],
.resource-dialog form[hidden] {
  display: none;
}

@media (max-width: 620px) {
  .resource-dialog .fields {
    grid-template-columns: 1fr;
  }

  .resource-dialog .field.full {
    grid-column: auto;
  }
}

.submit button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.68;
}

.admin-link {
  color: inherit;
  opacity: 0.6;
  text-decoration: none;
}

.admin-link:hover {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .q:hover {
    box-shadow: 0 24px 70px rgba(51, 35, 26, 0.08);
  }
}

.f > label,
.f .lbl,
.resource-dialog label,
.poster .soon,
.vp .soon,
.sim span,
.tag,
.dur,
.tut .learn {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.poster .soon,
.sim span {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 760px) {
  .fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .fact span {
    font-family: var(--display, "Space Grotesk", sans-serif);
    font-size: 15.5px;
    line-height: 1.55;
  }

  .par-l {
    font-size: 0;
  }
}

@media (max-width: 420px) {
  .q {
    min-height: 104px;
    padding-inline: 18px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
