/* DistroX - selector de logo. Estilo del sitio, no de la marca. */

:root {
  --bg:        #08080C;
  --surface:   #101018;
  --surface-2: #16161F;
  --line:      #23232F;
  --line-soft: #1B1B25;
  --text:      #ECECF2;
  --muted:     #8C8CA0;
  --faint:     #5C5C70;

  --logo-dark:  #0A0A14;   /* fondo oscuro de evaluacion */
  --logo-light: #F5F5F7;   /* fondo claro de evaluacion */

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.mono {
  font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  font-variant-ligatures: none;
}

/* ------------------------------------------------------------ cabecera */
.site-head {
  padding: 72px 0 44px;
  border-bottom: 1px solid var(--line-soft);
}
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
.site-head h1 { font-size: clamp(30px, 5vw, 46px); }
.site-head p {
  color: var(--muted);
  max-width: 56ch;
  margin: 14px 0 0;
}

/* ------------------------------------------------------------ grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 0 80px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--card-accent, #3A3A4C);
}
.card:focus-visible {
  outline: 2px solid var(--card-accent, #6C6CFF);
  outline-offset: 3px;
}

.card-stage {
  background: var(--logo-dark);
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}
.card-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 18px;
}
.card-meta h2 { font-size: 17px; }
.card-file {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 3px;
  word-break: break-all;
}
.dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
}

/* ------------------------------------------------------------ lamina */
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8,8,12,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.sheet-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color .15s var(--ease);
}
.back:hover { color: var(--text); }
.pager { display: flex; align-items: center; gap: 8px; }
.pager span { font-size: 12.5px; color: var(--faint); }
.pager a, .pager .off {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14px;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.pager a:hover { border-color: #3A3A4C; color: var(--text); }
.pager .off { opacity: .3; }

.sheet-title { padding: 52px 0 6px; }
.sheet-title h1 { font-size: clamp(28px, 4.5vw, 40px); }
.sheet-title .sub { color: var(--muted); font-size: 14px; margin-top: 8px; }

section { padding: 44px 0; }
.sec-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.sec-label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  opacity: .8;
  flex-shrink: 0;
}

/* dos fondos lado a lado */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stage {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: 56px 40px;
  display: grid;
  place-items: center;
  min-height: 230px;
}
.stage img { max-width: 100%; max-height: 150px; object-fit: contain; }
.stage.dark  { background: var(--logo-dark); }
.stage.light { background: var(--logo-light); border-color: #DDDDE3; }
.stage-tag {
  font-size: 11px;
  color: var(--faint);
  margin-top: 10px;
  letter-spacing: .04em;
}

/* swatches */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.sw {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: border-color .15s var(--ease);
}
.sw:hover { border-color: #3A3A4C; }
.sw-chip { height: 84px; border-bottom: 1px solid var(--line); }
.sw-info { padding: 11px 13px 13px; }
.sw-hex { font-size: 13px; letter-spacing: .02em; }
.sw-sub { font-size: 11px; color: var(--faint); margin-top: 3px; }
.sw.derived .sw-chip { height: 54px; }

.note {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 22px;
  max-width: 68ch;
}

/* aplicacion de ejemplo */
.apply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}
.demo-h {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  background: var(--accent);
  color: var(--on-accent);
  transition: filter .15s var(--ease);
}
.btn:hover { filter: brightness(1.12); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  margin-left: 10px;
}
.btn-ghost:hover { background: var(--accent-tint); filter: none; }

.mock-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}
.mock-art {
  aspect-ratio: 5 / 2;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--accent-wash);
}
.mock-art img { max-width: 62%; max-height: 76px; object-fit: contain; }
.mock-body { padding: 18px 20px 20px; }
.mock-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-readable);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 11px;
}
.mock-body h3 { font-size: 18px; }
.mock-body p { color: var(--muted); font-size: 13.5px; margin: 7px 0 16px; }
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--faint);
}
.bar {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-top: 14px;
}
.bar i { display: block; height: 100%; background: var(--accent); }

footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 60px;
  color: var(--faint);
  font-size: 12.5px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.error {
  margin: 80px auto;
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  background: var(--surface);
}
.error code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .contrast, .apply { grid-template-columns: 1fr; }
  .stage { padding: 38px 26px; min-height: 0; }
  .site-head { padding: 46px 0 32px; }
}
