/* El Paseo de los stickers — página de descargas del Museo del Sticker.
   Misma identidad que el Paseo: pared clara, tinta, punto rojo y Bricolage Grotesque. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fuentes/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --pared: #f3f2ef;
  --papel: #fbfaf7;
  --tinta: #18171b;
  --gris: #66636a;
  --linea: #dedad2;
  --rojo: #dd3127;
  --rojo-suave: #fbe4e1;
  --sombra: 0 1px 2px rgba(24, 23, 27, 0.06), 0 12px 32px -12px rgba(24, 23, 27, 0.22);
  --radio: 18px;
  --ancho: 1160px;
  --p1: #f2c94c; --p2: #ffe07a; --p3: #e8c4a8; --p4: #a8ddb5; --p5: #ffc2a8; --p6: #c4ccf5;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pared: #151417;
    --papel: #1e1d21;
    --tinta: #f1efea;
    --gris: #a6a2ab;
    --linea: #34323a;
    --rojo: #ff5a4f;
    --rojo-suave: #3a1d1b;
    --sombra: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--pared);
  color: var(--tinta);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--rojo); text-underline-offset: 3px; }
a:hover { color: var(--rojo); }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; border-radius: 6px; }

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

h1, h2, h3 { font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 92px); font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(32px, 4.6vw, 54px); font-variation-settings: "opsz" 72; }
h3 { font-size: 22px; font-variation-settings: "opsz" 28; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.antetitulo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris);
}
.antetitulo::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rojo); }

.seccion { padding: clamp(64px, 9vw, 120px) 0; }
.seccion-cabeza { max-width: 720px; margin-bottom: 44px; }
.seccion-cabeza h2 { margin: 14px 0 16px; }
.seccion-cabeza p { color: var(--gris); font-size: 19px; }

/* Los elementos de grilla se pueden achicar aunque tengan texto largo (comandos, sumas). */
.paradas > *, .modos > *, .descargas > *, .extras > *, .pasos > *, .creditos > *, .inspeccion > * { min-width: 0; }

/* --- encabezado ------------------------------------------------------------------------- */

.encabezado {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--pared) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--linea) 70%, transparent);
}
.encabezado .contenedor { display: flex; align-items: center; gap: 24px; height: 66px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.marca .punto { width: 14px; height: 14px; border-radius: 50%; background: var(--rojo); }
.navegacion { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.navegacion a { text-decoration: none; color: var(--gris); font-weight: 500; }
.navegacion a:hover { color: var(--tinta); }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.boton:active { transform: translateY(1px); }
.boton-primario { background: var(--tinta); color: var(--papel); box-shadow: var(--sombra); }
.boton-primario:hover { background: var(--rojo); color: #fff; }
.boton-secundario { background: transparent; color: var(--tinta); border-color: var(--linea); }
.boton-secundario:hover { border-color: var(--tinta); color: var(--tinta); }
.boton-chico { min-height: 38px; padding: 0 16px; font-size: 14px; }
.boton svg { width: 18px; height: 18px; }

/* --- portada ---------------------------------------------------------------------------- */

.portada { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.portada .dos-columnas { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.portada h1 { margin: 18px 0 22px; }
.portada h1 em { font-style: normal; color: var(--rojo); }
.portada .bajada { font-size: clamp(19px, 2.1vw, 22px); color: var(--gris); max-width: 540px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 16px; }
.nota-chica { font-size: 14px; color: var(--gris); }

/* El video de portada va "troquelado", como un sticker gigante. */
.escenario { position: relative; }
.lamina {
  position: relative; border-radius: 26px; padding: 10px; background: #fff;
  box-shadow: var(--sombra), 0 0 0 1px rgba(24, 23, 27, 0.05);
  transform: rotate(1.6deg);
}
.lamina video, .lamina img { border-radius: 18px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #cfd8c8; }
.flotante {
  position: absolute; width: clamp(64px, 9vw, 112px); height: auto;
  filter: drop-shadow(0 10px 14px rgba(24, 23, 27, 0.25));
  animation: flotar 6s ease-in-out infinite;
}
.flotante.f1 { top: -34px; left: -28px; transform: rotate(-12deg); }
.flotante.f2 { bottom: -38px; left: 14%; animation-delay: -2s; }
.flotante.f3 { top: -26px; right: 10%; animation-delay: -4s; width: clamp(54px, 7vw, 92px); }
.flotante.f4 { bottom: -30px; right: -22px; animation-delay: -1s; }
@keyframes flotar {
  0%, 100% { translate: 0 0; rotate: -4deg; }
  50% { translate: 0 -12px; rotate: 4deg; }
}
@media (prefers-reduced-motion: reduce) { .flotante { animation: none; } }

.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linea); border-radius: var(--radio); overflow: hidden; margin-top: clamp(48px, 7vw, 80px); }
.cifra { background: var(--papel); padding: 22px 24px; }
.cifra b { display: block; font-size: clamp(34px, 4.4vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.cifra span { color: var(--gris); font-size: 15px; }

/* --- paradas ------------------------------------------------------------------------------ */

.paradas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.parada {
  background: var(--papel); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra);
  display: flex; flex-direction: column; transition: transform 0.25s;
}
.parada:hover { transform: translateY(-4px); }
.parada .medio { position: relative; aspect-ratio: 16 / 10; background: #cfd8c8; overflow: hidden; }
.parada .medio video, .parada .medio img { width: 100%; height: 100%; object-fit: cover; }
.parada .numero {
  position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tinta); color: var(--papel); font-weight: 800;
}
.parada .texto { padding: 20px 22px 24px; border-top: 6px solid var(--color, var(--rojo)); flex: 1; }
.parada h3 { margin-bottom: 8px; }
.parada p { color: var(--gris); font-size: 15.5px; margin: 0; }
.parada .tipo { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }

/* --- modos y controles ------------------------------------------------------------------------ */

.banda { background: var(--papel); border-block: 1px solid var(--linea); }
.modos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.modo { padding: 28px; border-radius: var(--radio); background: var(--pared); border: 1px solid var(--linea); }
.modo .icono { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tinta); color: var(--papel); margin-bottom: 18px; }
.modo .icono svg { width: 26px; height: 26px; }
.modo h3 { margin-bottom: 10px; }
.modo p { color: var(--gris); font-size: 16px; }
.teclas { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--gris); }

kbd {
  display: inline-block; min-width: 26px; padding: 2px 7px; border-radius: 7px; text-align: center;
  font: 600 13px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: var(--papel); color: var(--tinta); border: 1px solid var(--linea); box-shadow: 0 2px 0 var(--linea);
}

.inspeccion { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 88px); }
.inspeccion .lamina { transform: rotate(-1.2deg); }
.lista-controles { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.lista-controles li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--linea); }
.lista-controles li span:first-child { display: flex; flex-wrap: wrap; gap: 4px; }

/* --- descargas ------------------------------------------------------------------------------ */

.descargas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.descarga {
  position: relative; padding: 28px; border-radius: var(--radio); background: var(--papel);
  box-shadow: var(--sombra); border: 2px solid transparent; display: flex; flex-direction: column;
}
.descarga.recomendada { border-color: var(--rojo); }
.descarga .sello {
  display: none; position: absolute; top: -13px; right: 22px; padding: 4px 12px; border-radius: 999px;
  background: var(--rojo); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.descarga.recomendada .sello { display: inline-block; }
.descarga .cabeza { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.descarga .so { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--pared); }
.descarga .so svg { width: 26px; height: 26px; }
.descarga .datos { font-size: 14px; color: var(--gris); }
.descarga ol { padding-left: 20px; margin: 4px 0 20px; color: var(--gris); font-size: 15.5px; }
.descarga ol li { margin-bottom: 6px; }
.descarga ol li b { color: var(--tinta); }
.descarga .pie { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.descarga.no-disponible { opacity: 0.8; box-shadow: none; border: 1px dashed var(--linea); background: transparent; }

.comando {
  display: flex; align-items: center; gap: 8px; margin: 6px 0; padding: 8px 8px 8px 14px;
  border-radius: 10px; background: var(--tinta); color: var(--papel);
  font: 500 13.5px/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.comando code { flex: 1; min-width: 0; white-space: pre; overflow-x: auto; }
.copiar {
  flex: none; border: 0; border-radius: 7px; padding: 4px 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: inherit; font: 600 12px/1.4 "Bricolage Grotesque", sans-serif;
}
.copiar:hover { background: var(--rojo); }
.huella { margin-top: 14px; font-size: 12.5px; color: var(--gris); word-break: break-all; }
.huella code { font-family: ui-monospace, Menlo, Consolas, monospace; }

.extras { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-top: 22px; }
.manual { display: flex; gap: 22px; align-items: center; padding: 26px 28px; border-radius: var(--radio); background: var(--tinta); color: var(--papel); }
.manual img { width: 108px; border-radius: 6px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.6); transform: rotate(-4deg); background: #fff; }
.manual h3 { margin-bottom: 6px; }
.manual p { color: color-mix(in srgb, var(--papel) 72%, transparent); font-size: 15px; margin-bottom: 14px; }
.manual .boton-primario { background: var(--papel); color: var(--tinta); }
.manual .boton-primario:hover { background: var(--rojo); color: #fff; }
.otras { padding: 26px 28px; border-radius: var(--radio); border: 1px solid var(--linea); }
.otras ul { margin: 10px 0 0; padding-left: 18px; color: var(--gris); font-size: 15px; }

/* --- instructivo y preguntas ------------------------------------------------------------------------ */

.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: paso; }
.paso { padding: 26px; border-radius: var(--radio); background: var(--papel); box-shadow: var(--sombra); counter-increment: paso; }
.paso::before {
  content: counter(paso); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--rojo); color: #fff; font-weight: 800; font-size: 18px;
}
.paso h3 { font-size: 19px; margin-bottom: 8px; }
.paso p { color: var(--gris); font-size: 15.5px; margin: 0; }

.preguntas { max-width: 820px; }
details { border-bottom: 1px solid var(--linea); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--rojo); font-size: 24px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--gris); margin: 12px 0 0; }

/* --- créditos y pie ------------------------------------------------------------------------- */

.creditos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; font-size: 15px; }
.credito { padding: 20px 22px; border-radius: 14px; background: var(--papel); border: 1px solid var(--linea); }
.credito b { display: block; margin-bottom: 4px; }
.credito span { color: var(--gris); }

.pie-pagina { padding: 40px 0 56px; color: var(--gris); font-size: 14px; border-top: 1px solid var(--linea); }
.pie-pagina .contenedor { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* --- aparición al hacer scroll ------------------------------------------------------------------- */

.revelar { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; transition: none; } }

.aviso-copiado {
  position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--tinta); color: var(--papel); font-weight: 600;
  transition: opacity 0.2s, translate 0.2s; z-index: 30;
}
.aviso-copiado.visible { opacity: 1; translate: -50% 0; }

/* --- pantallas chicas ------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .portada .dos-columnas, .inspeccion, .extras { grid-template-columns: 1fr; }
  .paradas, .modos { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .creditos { grid-template-columns: 1fr 1fr; }
  .navegacion { display: none; }
  .escenario { margin-top: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .paradas, .modos, .descargas, .pasos, .creditos { grid-template-columns: 1fr; }
  .cifras { grid-template-columns: 1fr 1fr; }
  .lista-controles li { grid-template-columns: 1fr; gap: 6px; }
  .manual { flex-direction: column; align-items: flex-start; }
  .flotante.f1 { left: -8px; } .flotante.f4 { right: -6px; }
  .encabezado .boton { display: none; }
}
