@font-face {
  font-family: "Free Fat Font";
  src: url("/fonts/FREEFATFONT-Regular.woff2") format("woff2"),
       url("/fonts/FREEFATFONT-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --red: #EA2929;
  --bg: #161514;
  --bg-2: #1f1d1b;
  --ink: #ece6dc;
  --ink-dim: #a39b8f;
  --line: #3a3632;
  --fat: "Free Fat Font", Impact, "Arial Black", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(16px, 3vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--mono);
  overflow-x: hidden;
}

/* Grano de papel viejo sobre todo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
::selection { background: var(--red); color: var(--bg); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  isolation: isolate;
  background: #8a7a72;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  z-index: -2;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero__img.is-loaded, noscript .hero__img { opacity: 1; }

/* fundido hacia el gris de la página */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
}

.title {
  margin: 0;
  font-family: var(--fat);
  font-weight: 400;
  color: var(--red);
  /* altura de mayúscula de la fuente = .64em: las líneas casi se tocan */
  line-height: .64;
  padding: 0 0 .1em;
  text-transform: uppercase;
  /* cada línea ocupa todo el ancho; en pantallas muy apaisadas manda la altura */
  font-size: calc((100vw - 2 * var(--gutter)) / 3.85);
  font-size: min(100cqw / 3.85, (100svh - 2 * var(--gutter) - 72px) / 1.62);
}
.hero { container-type: inline-size; }
.title__line { display: block; white-space: nowrap; }
.title__line + .title__line { font-size: 1.247em; margin-top: .012em; }

/* Escritorio: título abajo, deja ver la cara de la foto por arriba */
@media (min-width: 900px) {
  .hero { justify-content: flex-end; gap: clamp(16px, 2vw, 28px); }
  .title { font-size: min(100cqw / 3.85, (82svh - 2 * var(--gutter) - 72px) / 1.62); }
}

.hero__tag {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero__tag span {
  background: var(--bg);
  color: var(--ink);
  padding: 8px 12px;
  border: 2px solid var(--bg);
}
.hero__down {
  margin-left: auto;
  background: var(--red);
  color: var(--bg);
  text-decoration: none;
  font: 700 26px/1 var(--mono);
  padding: 6px 16px;
  display: grid;
  place-items: center;
}
.hero__down:hover { background: var(--ink); }

/* ---------- BLOQUES ---------- */
main { padding: 0 var(--gutter); }

.block {
  border-top: 4px solid var(--red);
  padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 7vw, 96px);
}

.block__title {
  margin: 0 0 clamp(20px, 3vw, 40px);
  font: 400 clamp(56px, 12vw, 180px)/.82 var(--fat);
  color: var(--red);
  text-transform: uppercase;
  display: flex;
  align-items: flex-start;
  gap: .12em;
}
.num {
  font: 700 clamp(12px, 1.3vw, 16px)/1 var(--mono);
  color: var(--ink-dim);
  letter-spacing: .1em;
  padding-top: .4em;
}

/* ---------- VÍDEO ---------- */
.player {
  border: 4px solid var(--ink);
  background: #000;
  aspect-ratio: 16 / 9;
}
.player video { display: block; width: 100%; height: 100%; background: #000; }

/* ---------- DESCARGAS ---------- */
.dl-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }

.dl {
  display: grid;
  grid-template-columns: minmax(5ch, auto) 1fr auto;
  align-items: center;
  gap: clamp(12px, 3vw, 48px);
  padding: clamp(14px, 2.2vw, 26px) clamp(8px, 1.5vw, 20px);
  border-bottom: 2px solid var(--line);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.dl__fmt {
  font: 400 clamp(44px, 8vw, 120px)/.85 var(--fat);
  color: var(--red);
  min-width: 2.6em;
}
.dl__meta {
  font-size: clamp(13px, 1.3vw, 16px);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-dim);
}
.dl__arrow { font: 400 clamp(40px, 6vw, 90px)/.8 var(--fat); color: var(--ink); }

.dl:hover, .dl:focus-visible { background: var(--red); outline: none; }
.dl:hover .dl__fmt, .dl:focus-visible .dl__fmt,
.dl:hover .dl__meta, .dl:focus-visible .dl__meta,
.dl:hover .dl__arrow, .dl:focus-visible .dl__arrow { color: var(--bg); }

.note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--ink-dim);
  max-width: 60ch;
}
.note:empty { display: none; }

/* ---------- COMPARTIR ---------- */
.share { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  appearance: none;
  border: 3px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 15px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 16px 20px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--bg); }
#share-native { border-color: var(--red); background: var(--red); color: var(--bg); }
#share-native:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- PROMPT ---------- */
.lead {
  margin: 0 0 20px;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  max-width: 40ch;
}
.prompt { border: 3px solid var(--ink); max-width: 1100px; background: var(--bg-2); }
.prompt__bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border-bottom: 3px solid var(--ink);
  font: 700 13px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.prompt__bar span { padding: 14px 16px; color: var(--ink-dim); }
.prompt__copy {
  appearance: none;
  border: 0;
  border-left: 3px solid var(--ink);
  background: var(--red);
  color: var(--bg);
  font: inherit;
  padding: 0 22px;
  cursor: pointer;
}
.prompt__copy:hover { background: var(--ink); }
.prompt__body {
  margin: 0;
  padding: clamp(16px, 2.5vw, 28px);
  max-height: 26em;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: 400 14px/1.65 var(--mono);
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--line); max-width: 1100px; }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: clamp(16px, 2vw, 24px) 0;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font: 400 1.6em/.6 var(--fat);
  color: var(--red);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--red); }
.faq p { margin: 0 0 1em; max-width: 68ch; color: var(--ink); }
.faq details p:last-child { margin-bottom: clamp(20px, 2.5vw, 30px); }

/* ---------- PIE ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: var(--red);
  color: var(--bg);
  font: 700 13px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 560px) {
  .dl { grid-template-columns: auto 1fr auto; }
  .dl__fmt { min-width: 0; }
  .hero__tag { font-size: 11px; }
}

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