/* Qué hacemos, "el taller" (prompts/deltas/que-hacemos-taller.md).
   Five scenes telling the making of a Volume, in the landing's grammar.
   Shares landing.css tokens, washes and chrome; this file carries only the
   taller-specific blocks. Choreography entrance states live under `.js` so
   with JavaScript off every scene is simply visible. */

/* The taller folio sits top-right (the landing keeps MENÚ there; no menu here). */
.taller .chrome--folio {
  top: 16px;
  bottom: auto;
  left: auto;
  right: 18px;
  transform: none;
}
a.chrome--wordmark { text-decoration: none; }

/* ---------- Shared taller type ---------- */

.taller__head {
  font-family: var(--serif);
  font-size: clamp(26px, 6vw, 30px);
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  margin: 0;
}
.taller__accent { font-style: italic; color: var(--accent); }
.taller__foot {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--ink-quiet);
  text-align: center;
  margin: 0;
}
.taller__promesa {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
  margin: 0;
}

/* ---------- Choreography bases (this page only) ---------- */

.js .scene .word {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scene.on .word { opacity: 1; transform: none; }

.js .bub {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scene.on .bub { opacity: 1; transform: none; }

/* ---------- Scene 1, la conversación ---------- */

.charla { width: min(420px, 100%); }
.charla .taller__head { margin-bottom: clamp(36px, 8vh, 64px); }
.charla__hilo { width: min(320px, 88vw); margin: 0 auto; }
.bub {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.45;
  padding: 11px 14px;
}
.bub--cliente {
  max-width: 250px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px 14px 14px 4px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #3c3122;
}
.bub--curador {
  max-width: 180px;
  background: var(--ink);
  border-radius: 14px 14px 4px 14px;
  color: var(--bone);
  margin: 10px 0 0 auto;
}

/* ---------- Scene 2, la investigación ---------- */

.ruta { width: min(440px, 100%); text-align: center; }
.ruta .taller__head { margin-bottom: clamp(20px, 5vh, 40px); }
.ruta__mapa {
  position: relative;
  width: min(400px, 88vw);
  aspect-ratio: 400 / 220;
  margin: 0 auto;
}
.ruta__mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ruta__mapa path {
  stroke: var(--ink-muted);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 2.6s ease 0.8s;
}
.scene--ruta.on .ruta__mapa path { stroke-dashoffset: 0; }
/* Leaving the scene resets the route instantly so re-entry redraws it. */
.js .scene--ruta:not(.on) .ruta__mapa path { transition: none; }
.ruta__mapa circle { fill: var(--accent); }
.ruta__nota,
.ruta__coord {
  position: absolute;
  margin: 0;
}
.js .ruta__nota,
.js .ruta__coord { opacity: 0; transition: opacity 0.8s ease; }
.scene--ruta.on .ruta__nota,
.scene--ruta.on .ruta__coord { opacity: 1; }
.ruta__nota {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11.5px;
  color: var(--ink-2);
}
.ruta__nota--a { left: 4%; top: 54%; transform: rotate(-2deg); }
.ruta__nota--b { right: 2.5%; top: 32%; transform: rotate(1.5deg); }
.ruta__coord {
  left: 32.5%;
  bottom: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(90, 77, 57, 0.6);
}
.ruta .taller__foot { margin-top: 18px; }

/* ---------- Scene 3, la escritura ---------- */

.pagina { width: min(360px, 100%); text-align: center; }
.pagina .taller__head { margin-bottom: clamp(24px, 5vh, 44px); }
.pagina__carta {
  width: min(300px, 84vw);
  margin: 0 auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 22px 24px;
  box-shadow: 0 20px 40px rgba(90, 64, 30, 0.22);
}
.pagina__eyebrow {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin: 0;
}
.pagina__inicio { display: flex; gap: 10px; margin-top: 10px; align-items: flex-start; }
.pagina__capital {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--accent);
  line-height: 0.9;
}
.pagina__col { flex: 1; }
.ln {
  height: 7px;
  border-radius: 4px;
  background: rgba(34, 26, 16, 0.14);
  margin-top: 8px;
}
.js .ln {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.scene.on .ln { transform: scaleX(1); }
.pagina .taller__promesa { margin-top: 24px; }

/* ---------- Scene 4, la edición única ---------- */

.edicion { text-align: center; }
.edicion .taller__head { margin-bottom: clamp(24px, 5vh, 44px); }
.edicion__obj { position: relative; width: 150px; height: 206px; margin: 0 auto; }
.edicion__carta {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 26px 48px rgba(90, 64, 30, 0.32);
  background: var(--ink) url('/landing/assets/covers/vol-02-card.jpg') center/cover no-repeat;
  animation: tallerFloat 6s ease-in-out infinite;
}
.edicion__plate {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 11px;
  background: rgba(247, 238, 216, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: block;
  text-align: left;
}
.edicion__vol {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.edicion__pais {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}
.edicion__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.45), transparent 58%);
}
.edicion__sello {
  position: absolute;
  right: -26px; bottom: -14px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
  box-shadow: 0 12px 22px rgba(90, 64, 30, 0.25);
}
@keyframes tallerFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.edicion .taller__promesa { margin-top: 40px; }

/* ---------- Scene 5, el cierre ---------- */

.cierre { text-align: center; }
.cierre__title {
  font-family: var(--serif);
  font-size: clamp(38px, 9vw, 44px);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.cierre__accion { margin-top: 6px; }
.cierre__foot { margin-top: 26px; letter-spacing: 0.22em; }

/* ---------- Reduced motion: everything visible, no motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .bub,
  .js .ln,
  .js .ruta__nota,
  .js .ruta__coord {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ruta__nota--a { transform: rotate(-2deg) !important; }
  .ruta__nota--b { transform: rotate(1.5deg) !important; }
  .ruta__mapa path { stroke-dashoffset: 0 !important; transition: none !important; }
  .edicion__carta { animation: none !important; }
}
