/* YamataGit · web de descargas. Gama de la marca: casi negro morado, naranja claro → naranja oscuro → malva */
:root {
  --bg: #0f0e13;
  --bg-2: #141219;
  --panel: #1a181e;
  --panel-2: #221f28;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #eee9f4;
  --dim: #98949d;
  --violet: #9a4fa6;
  --violet-2: #b967c0;
  --copper: #eb8f62;
  --copper-2: #efa46f;
  --ember: #e4674b;
  --radius: 16px;
  --font: Outfit, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--copper-2);
  text-decoration: none;
}
code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}
.muted {
  color: var(--dim);
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
/* rejilla de fondo muy tenue */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(185, 103, 192, 0.28), transparent 65%),
    radial-gradient(700px 500px at -10% 20%, rgba(239, 164, 111, 0.2), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(#000 0%, #000 55%, transparent 100%);
}

/* ---------- cabecera ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 10, 18, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo b {
  font-weight: 800;
  color: var(--copper-2);
}
.logo-sm {
  font-size: 16px;
}
.menu {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.menu a {
  color: var(--dim);
  font-weight: 500;
  font-size: 15px;
}
.menu a:hover {
  color: var(--text);
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-fox {
  color: #1b0d06;
  background: linear-gradient(135deg, var(--copper-2), var(--copper) 55%, var(--ember));
  box-shadow: 0 10px 30px -10px rgba(228, 103, 75, 0.7);
}
.btn-fox:hover {
  box-shadow: 0 14px 38px -10px rgba(228, 103, 75, 0.9);
}
.btn-line {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.btn-line:hover {
  border-color: var(--copper-2);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 15px;
}
.btn-lg {
  padding: 16px 30px;
  font-size: 18px;
}
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- portada ---------- */
.hero {
  padding: 80px 0 30px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font-size: 14px;
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper-2);
  box-shadow: 0 0 10px var(--copper-2);
}
h1 {
  margin: 20px 0 18px;
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.fire {
  background: linear-gradient(95deg, var(--copper-2), var(--ember) 45%, var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 580px;
  margin: 0;
  color: var(--dim);
  font-size: clamp(17px, 1.8vw, 20px);
}
.lead b {
  color: var(--text);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 14px;
}
.hero-emblem {
  position: relative;
  justify-self: center;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-emblem img {
  position: relative;
  width: 88%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
}
.ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 103, 192, 0.35), transparent 62%);
  box-shadow:
    0 0 0 1px rgba(181, 106, 214, 0.25),
    0 0 80px 10px rgba(185, 103, 192, 0.25);
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-emblem img {
    animation: none;
  }
}

/* ventana con captura */
.window {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: #141219;
  overflow: hidden;
  box-shadow:
    0 40px 120px -40px rgba(185, 103, 192, 0.55),
    0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.window-cap {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #0f0e13;
  border-bottom: 1px solid var(--line);
}
.window-cap span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3b3544;
}
.window-cap em {
  margin-left: 10px;
  font: 12.5px var(--mono);
  font-style: normal;
  color: var(--dim);
}
.window-hero {
  margin-top: 64px;
}

/* ---------- secciones ---------- */
.section {
  padding: 110px 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%), var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 10px;
  text-align: center;
  color: var(--copper-2);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-lead {
  margin: 14px auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--dim);
  font-size: 18px;
}

/* las nueve colas */
.tails {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tail {
  position: relative;
  padding: 26px 26px 26px 78px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.tail:hover {
  border-color: rgba(235, 143, 98, 0.45);
  transform: translateY(-3px);
}
.tail-n {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  color: var(--copper-2);
  background: rgba(235, 143, 98, 0.12);
  border: 1px solid rgba(235, 143, 98, 0.3);
}
.tail:nth-child(3n + 2) .tail-n {
  color: var(--copper-2);
  background: rgba(239, 164, 111, 0.14);
  border-color: rgba(79, 196, 187, 0.3);
}
.tail:nth-child(3n) .tail-n {
  color: var(--violet-2);
  background: rgba(185, 103, 192, 0.16);
  border-color: rgba(181, 106, 214, 0.32);
}
.tail h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}
.tail p {
  margin: 0;
  color: var(--dim);
  font-size: 15.5px;
}

/* galería */
.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 22px;
}
.gal-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.gal-tab:hover {
  color: var(--text);
}
.gal-tab.active {
  color: #1a1016;
  background: var(--copper-2);
  border-color: var(--copper-2);
}
.window-gal img {
  transition: opacity 0.2s;
}
.gal-text {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--dim);
}

/* ---------- descargar ---------- */
.os-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: max-content;
  margin: 40px auto 26px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.os-switch button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.os-switch button.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(235, 143, 98, 0.28), rgba(185, 103, 192, 0.28));
  box-shadow: inset 0 0 0 1px rgba(240, 165, 111, 0.4);
}
.dl-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.dl-row[hidden] {
  display: none;
}
.dl-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.dl-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.dl-card h3 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.02em;
}
.dl-card p {
  margin: 10px 0 22px;
  color: var(--dim);
}
.badge {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--copper-2);
  background: rgba(235, 143, 98, 0.14);
}
.badge-violet {
  color: var(--violet-2);
  background: rgba(185, 103, 192, 0.18);
}
.dl-file {
  display: block;
  min-height: 1.4em;
  margin-top: 10px;
  color: var(--dim);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.term {
  width: 100%;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #08070c;
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 13px;
}
.term code {
  padding: 0;
  background: none;
  color: #d9d3e2;
}
.dl-hint {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  text-align: center;
  color: var(--dim);
  font-size: 14.5px;
}
.dl-status {
  min-height: 1em;
  margin-top: 26px;
  text-align: center;
  color: var(--dim);
  font-size: 15px;
}
.dl-status.err {
  color: #f08a7a;
}
.older {
  max-width: 960px;
  margin: 18px auto 0;
  color: var(--dim);
}
.older summary {
  text-align: center;
  cursor: pointer;
  font-weight: 600;
}
.older-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.older-row b {
  min-width: 70px;
  color: var(--text);
}

/* ---------- preguntas ---------- */

/* ---------- pie ---------- */
.foot {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

/* ---------- pantallas estrechas ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-emblem {
    order: -1;
    width: min(240px, 60vw);
  }
  .tails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .menu {
    display: none;
  }
  .top-inner .btn {
    margin-left: auto;
  }
  .hero {
    padding-top: 40px;
  }
  .tails,
  .dl-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 76px 0;
  }
  .os-switch {
    width: 100%;
  }
  .os-switch button {
    flex: 1;
    justify-content: center;
    padding: 10px;
  }
  .dl-card {
    padding: 24px;
  }
}
