/* ==========================================================
   VORAROSA — poster atelier · 2026
   Crema cálida, rosa empolvado, tinta. Serif Didone + grotesk.
   Compartido por index.html, shop.html, thanks.html, 404.html,
   privacy.html y las páginas /poster/ que genera el Worker.
   ========================================================== */

:root {
  --paper: #F7F3EC;        /* fondo general */
  --cream: #F1EBE1;        /* paneles crema */
  --rose: #E9A9AE;         /* rosa principal */
  --rose-deep: #D98E96;    /* rosa oscuro (olas, hovers) */
  --rose-soft: #F2CDD0;    /* rosa pálido */
  --ink: #23252E;          /* tinta: texto y bloques oscuros */
  --ink-soft: #565964;     /* texto secundario */
  --hairline: rgba(35, 37, 46, 0.16);
  --hairline-cream: rgba(247, 243, 236, 0.22);
  --ok: #4C7A5C;
  --err: #A94438;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  /* 1rem, no 16px: respeta el tamaño de letra elegido en el navegador */
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

/* Los "display" de autor de este archivo no deben poder anular nunca el
   atributo hidden (ya pasó con .btn y con .lightbox-media img) */
[hidden] { display: none !important; }

/* ---------- Barra de anuncio + cabecera ---------- */

.announce {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

.masthead {
  position: relative;
  text-align: center;
  padding: 1.5rem clamp(1.2rem, 4vw, 4rem) 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.brand {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: 0.16em;
  line-height: 1;
}
.brand-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: lowercase;
  color: var(--ink-soft);
}

.cart-btn {
  position: absolute;
  top: 1.6rem;
  right: clamp(1.2rem, 4vw, 4rem);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.6rem 0;
  min-height: 44px;
}
.cart-btn:hover { color: var(--rose-deep); }

.mainnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(1.2rem, 3vw, 2.6rem);
  margin-top: 1.1rem;
}
.mainnav a {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.mainnav a:hover, .mainnav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--rose-deep);
}

@media (max-width: 640px) {
  .masthead { padding-top: 1.1rem; }
  .cart-btn { top: 1.9rem; }
  .brand-name { letter-spacing: 0.12em; }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 1rem 2rem;
  cursor: pointer;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--ink); }
.btn-ghost { background: none; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: 0.5; cursor: default; }

.linkline {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0.25rem;
  display: inline-flex;
  align-items: flex-end;
  min-height: 40px;
}
.linkline:hover { color: var(--rose-deep); border-bottom-color: var(--rose-deep); }

/* ---------- Cabeceras de sección compartidas ---------- */

.section-eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 1.6rem;
  color: var(--ink);
}

/* ---------- Hero de portada ---------- */

.hero {
  position: relative;
  background: var(--rose);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 4rem) clamp(4rem, 8vw, 7rem);
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.hero-intro {
  max-width: 27rem;
  margin: 1.6rem 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.1rem; }
.hero-lexicon {
  margin: 2.6rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  line-height: 2;
}

.hero-frame {
  justify-self: center;
  width: min(100%, 460px);
  background: var(--paper);
  padding: clamp(0.8rem, 1.6vw, 1.3rem);
  box-shadow: 0 30px 60px rgba(35, 37, 46, 0.28);
  transform: rotate(0.6deg);
}
.hero-frame img { display: block; width: 100%; height: auto; }

/* ola inferior del hero: enlaza el rosa con el papel */
.hero-wave { display: block; width: 100%; height: clamp(40px, 7vw, 90px); position: absolute; bottom: -1px; left: 0; color: var(--paper); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-frame { order: -1; width: min(100%, 340px); }
}

/* ---------- Franja de categorías ---------- */

.cats-strip {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.2rem, 4vw, 4rem);
  max-width: 1500px;
  margin: 0 auto;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
}
.cat-tile {
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  padding: 1.6rem 0.8rem;
  border-left: 1px solid var(--hairline);
  transition: background 0.15s;
}
.cat-tile:first-child { border-left: none; }
.cat-tile:hover { background: var(--cream); }
.cat-tile svg { width: 40px; height: 40px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.cat-tile h3 {
  margin: 1rem 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
}
.cat-tile span {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.2rem;
}
.cat-tile:hover span { color: var(--rose-deep); border-bottom-color: var(--rose-deep); }
@media (max-width: 720px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-tile { border-left: none; border-top: 1px solid var(--hairline); }
  .cat-tile:nth-child(even) { border-left: 1px solid var(--hairline); }
  .cat-tile:nth-child(-n+2) { border-top: none; }
}

/* ---------- Sección editorial (Beyond decoration + featured) ---------- */

.editorial {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  max-width: 1500px;
  margin: 0 auto;
}
.edit-panel {
  background: var(--rose);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.edit-panel .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.edit-panel p { margin: 0 0 1.2rem; font-size: 0.95rem; line-height: 1.8; max-width: 30rem; text-wrap: pretty; }
.edit-panel .linkline { align-self: flex-start; }

.edit-featured {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.edit-featured .feat-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 1.1rem;
}
.edit-featured p { margin: 0 0 1.6rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.75; max-width: 26rem; }

.edit-image { background: var(--ink); min-height: 320px; }
.edit-image a { display: block; height: 100%; }
.edit-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 980px) {
  .editorial { grid-template-columns: 1fr 1fr; }
  .edit-image { grid-column: 1 / -1; max-height: 420px; }
}
@media (max-width: 640px) {
  .editorial { grid-template-columns: 1fr; }
}

/* ---------- Banda de manifiesto ---------- */

.manifesto {
  position: relative;
  background: var(--ink);
  color: var(--rose-soft);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 4vw, 4rem);
  overflow: hidden;
}
.manifesto blockquote {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 46rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  line-height: 1.4;
  text-wrap: balance;
}
.manifesto figcaption {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
}
.manifesto .wave-svg {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(30px, 6vw, 70px);
  color: var(--rose-deep);
  opacity: 0.55;
}
.manifesto .wave-top { top: 0; transform: scaleY(-1); }
.manifesto .wave-bottom { bottom: 0; }

/* ---------- About ---------- */

.about { padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 4rem); }
.about-inner { max-width: 1200px; margin: 0 auto; }
.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 3rem;
  align-items: center;
}
.about-text p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.85; max-width: 40rem; text-wrap: pretty; }
.about-text p:first-of-type { color: var(--ink); font-size: 1.05rem; }
.about-photo { margin: 0; background: var(--cream); padding: 1rem; }
.about-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .about-cols { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

/* ---------- FAQ ---------- */

.faq { padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 4rem); border-top: 1px solid var(--hairline); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0.2rem;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose-deep); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.2rem; padding: 0 0.2rem; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.75; max-width: 40rem; }

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--cream);
  border-top: 1px solid var(--hairline);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.2rem, 4vw, 4rem);
}
.news-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr);
  gap: 2rem 3rem;
  align-items: center;
}
.news-inner h2 {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.news-inner .news-lede { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; max-width: 26rem; }
.news-form { display: flex; gap: 1.4rem; align-items: flex-end; flex-wrap: wrap; }
.news-form .field { flex: 1; min-width: 220px; }
.news-form label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.news-form input[type="email"] {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 0.55rem 0.1rem;
  font: inherit;
  color: var(--ink);
}
.news-form input[type="email"]::placeholder { color: var(--ink-soft); opacity: 0.7; }
/* honeypot para bots: fuera de la vista, no display:none (algunos lo detectan) */
.news-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.news-msg { margin: 0.8rem 0 0; font-size: 0.86rem; }
.news-msg.ok { color: var(--ok); }
.news-msg.err { color: var(--err); }
@media (max-width: 720px) {
  .news-inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--rose);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.2rem, 4vw, 4rem) 1.8rem;
}
.footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.2rem;
}
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand p { color: var(--ink); font-size: 0.82rem; margin: 0.8rem 0 0; opacity: 0.85; }
.site-footer h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer ul a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.site-footer ul a:hover { opacity: 1; text-decoration: underline; }
/* toda fila flex con contenido variable lleva flex-wrap (lección aprendida) */
.footer-social { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.colophon {
  max-width: 1200px;
  margin: 2.6rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(35, 37, 46, 0.25);
  color: var(--ink);
  opacity: 0.75;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

/* ==========================================================
   TIENDA (shop.html)
   ========================================================== */

.shop-head { padding: clamp(2rem, 5vw, 3.2rem) clamp(1.2rem, 4vw, 4rem) 1.6rem; max-width: 1500px; margin: 0 auto; text-align: center; }
.shop-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
}
.tagline { max-width: 40rem; margin: 1rem auto 0; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.7; text-wrap: pretty; }

/* Barra de salas — en escritorio SIEMPRE visible con salto de línea;
   solo en móvil se desliza (con degradado de aviso). Lección 19bis. */
.room-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(0.9rem, 1.4vw, 1.7rem);
  padding: 0 clamp(1.2rem, 4vw, 4rem);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  scrollbar-width: none;
}
.room-rail::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .room-rail {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
  .room-rail.at-end { -webkit-mask-image: none; mask-image: none; }
}
.room-btn {
  flex: 0 0 auto;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 0.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.room-btn:hover { color: var(--ink); }
.room-btn[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--rose-deep); font-weight: 600; }
.room-btn .count { opacity: 0.55; margin-left: 0.3em; font-size: 0.9em; }

/* Cuadrícula */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 3rem 2.2rem;
  padding: 2.6rem clamp(1.2rem, 4vw, 4rem) 4.5rem;
  max-width: 1500px;
  margin: 0 auto;
}
.work {
  margin: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.work.is-visible { opacity: 1; transform: none; }
.work-frame {
  position: relative;
  background: var(--cream);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  transition: background 0.2s;
}
.work:hover .work-frame { background: var(--rose-soft); }
.work-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 14px 32px rgba(35, 37, 46, 0.22);
}
.placard {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--hairline);
  padding-top: 0.6rem;
}
.placard h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.placard h3 a.worklink { color: inherit; text-decoration: none; }
.placard .meta { margin: 0.2rem 0 0; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.placard .price { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 1rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(35, 37, 46, 0.55); }
.lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  width: min(1150px, 94vw);
  height: min(88vh, 820px);
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: 0 40px 90px rgba(35, 37, 46, 0.35);
}
.lightbox-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  min-height: 0;
  min-width: 0;
  padding: 1.5rem;
  overflow: hidden;
}
.lightbox-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 16px 40px rgba(35, 37, 46, 0.25);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.lightbox-media.zoomed img { transform: scale(2.2); cursor: zoom-out; box-shadow: none; }
.lightbox-placard { padding: 2.2rem 2rem; overflow-y: auto; min-height: 0; }
.lightbox-placard h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.lb-meta { color: var(--ink-soft); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 1.3rem; }
.lb-price { font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin: 0 0 1rem; }
.lb-ship { color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.04em; margin: 0.9rem 0 0; }
.lb-desc {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-line;
  border-top: 1px solid var(--hairline);
  padding-top: 1.2rem;
}
.lightbox-close {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2;
  background: var(--ink); color: var(--paper);
  border: none; font-size: 1.4rem; line-height: 1;
  width: 44px; height: 44px; cursor: pointer;
}
.lightbox-close:hover { background: var(--rose-deep); color: var(--ink); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--hairline);
  font-size: 1.6rem; line-height: 1;
  width: 44px; height: 44px; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.lightbox-prev { left: 0.6rem; }
.lightbox-next { right: 0.6rem; }
.lightbox-nav:hover { color: var(--rose-deep); border-color: var(--rose-deep); }

/* tira de miniaturas (posters con varias fotos) */
.lb-strip {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 12px;
  z-index: 2;
}
.lb-strip button {
  width: 52px; height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  padding: 0;
  background: var(--paper);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s;
}
.lb-strip button:hover { opacity: 0.9; }
.lb-strip button.active { opacity: 1; outline: 2px solid var(--rose-deep); outline-offset: 1px; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-media.zoomed .lb-strip { display: none; }

/* selector de tamaño + cantidad (lightbox y página /poster/) */
.buy-form { margin: 0.4rem 0 0; }
.buy-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.size-select, .qty-input {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
}
.size-select { width: 100%; }
.buy-row { display: flex; gap: 0.8rem; margin-top: 1rem; align-items: stretch; flex-wrap: wrap; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; }
.qty-box button {
  background: none; border: none; cursor: pointer;
  font-size: 1.05rem; color: var(--ink);
  width: 40px; height: 44px; line-height: 1;
}
.qty-box button:hover { color: var(--rose-deep); }
.qty-box .qty-n { min-width: 2ch; text-align: center; font-weight: 600; font-size: 0.95rem; }
.buy-row .btn { flex: 1; min-width: 180px; }
.added-note { color: var(--ok); font-size: 0.86rem; margin: 0.7rem 0 0; }

/* Aviso "de qué tamaños" en tarjeta */
.from-price { white-space: nowrap; }

/* móvil / apaisado: alto por dvh y todo desplazable (lección 19quater) */
@media (max-width: 760px) {
  .lightbox-panel { grid-template-columns: 1fr; height: auto; max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
  .lightbox-media { padding: 1rem; }
  .lightbox-media img { max-height: 46vh; max-height: 46dvh; }
  .lightbox-placard { overflow-y: visible; }
  .lightbox-next { right: 0.5rem; top: 24vh; }
  .lightbox-prev { left: 0.5rem; top: 24vh; }
  .lb-strip { gap: 6px; padding: 0 8px; }
  .lb-strip button { width: clamp(36px, 11.5vw, 52px); height: clamp(36px, 11.5vw, 52px); }
}

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

/* ==========================================================
   CARRITO — cajón lateral (cart.js)
   ========================================================== */

.cd-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(35, 37, 46, 0.5);
  display: none;
}
.cd-overlay.open { display: block; }
.cd-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 61;
  width: min(430px, 94vw);
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  box-shadow: -30px 0 70px rgba(35, 37, 46, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.25s ease;
}
.cd-panel.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .cd-panel { transition: none; } }
.cd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
}
.cd-head h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.25rem; }
.cd-close { background: none; border: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--ink-soft); width: 44px; height: 44px; }
.cd-close:hover { color: var(--ink); }
.cd-items { flex: 1; overflow-y: auto; padding: 0.6rem 1.4rem; min-height: 0; }
.cd-empty { color: var(--ink-soft); text-align: center; padding: 3rem 1rem; font-size: 0.92rem; }
.cd-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
}
.cd-item img { width: 64px; height: 80px; object-fit: contain; background: var(--cream); display: block; }
.cd-item h4 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 0.98rem; line-height: 1.25; }
.cd-item .cd-size { margin: 0.15rem 0 0.5rem; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.cd-item .qty-box button { width: 32px; height: 36px; }
.cd-line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cd-line-price { font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.cd-remove { background: none; border: none; cursor: pointer; color: var(--ink-soft); font-size: 1rem; padding: 0.3rem 0.4rem; }
.cd-remove:hover { color: var(--err); }
.cd-foot { border-top: 1px solid var(--hairline); padding: 1.1rem 1.4rem 1.3rem; background: var(--cream); }
.cd-subtotal { display: flex; justify-content: space-between; font-size: 0.95rem; margin: 0 0 0.3rem; }
.cd-subtotal strong { font-family: var(--display); font-size: 1.15rem; }
.cd-shipnote { color: var(--ink-soft); font-size: 0.76rem; margin: 0 0 1rem; }
.cd-checkout { width: 100%; }

/* ==========================================================
   CHECKOUT — modal de país (cart.js)
   ========================================================== */

.ck-overlay {
  position: fixed; inset: 0; z-index: 65;
  display: none; align-items: center; justify-content: center;
  background: rgba(35, 37, 46, 0.6);
  padding: 1.2rem;
  overflow-y: auto;
}
.ck-overlay.open { display: flex; }
.ck-panel {
  position: relative;
  width: min(30rem, 100%);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 2rem clamp(1.2rem, 4vw, 2.2rem);
  box-shadow: 0 30px 80px rgba(35, 37, 46, 0.4);
  /* móvil apaisado: nunca más alto que la ventana, contenido desplazable */
  max-height: calc(100vh - 2.4rem);
  max-height: calc(100dvh - 2.4rem);
  overflow-y: auto;
}
.ck-panel h3 { font-family: var(--display); font-weight: 500; color: var(--ink); font-size: 1.35rem; margin: 0 2rem 0.4rem 0; }
.ck-item { color: var(--ink-soft); margin: 0 0 1.2rem; font-size: 0.92rem; }
.ck-label {
  display: block; color: var(--ink-soft);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 0.4rem;
}
#ck-country {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}
.ck-total { color: var(--ink); margin: 1rem 0 0; }
.ck-total .ck-breakdown { color: var(--ink-soft); font-size: 0.9em; }
.ck-err {
  color: var(--err);
  background: rgba(169, 68, 56, 0.08);
  border: 1px solid rgba(169, 68, 56, 0.3);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.ck-err a { color: inherit; }
.ck-go { width: 100%; margin-top: 1.2rem; cursor: pointer; border: 1px solid var(--ink); }
.ck-note { color: var(--ink-soft); font-size: 0.78rem; margin: 0.9rem 0 0; text-align: center; }
.ck-close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); font-size: 1.6rem; line-height: 1;
  padding: 0.3rem 0.5rem;
}
.ck-close:hover { color: var(--ink); }

/* ==========================================================
   BANNER DE COOKIES (consent.js)
   ========================================================== */

.cc-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 70;
  width: min(620px, calc(100vw - 2rem));
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(35, 37, 46, 0.45);
  padding: 1.1rem 1.3rem;
  display: flex;
  gap: 1rem 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.cc-banner p { margin: 0; flex: 1; min-width: 240px; font-size: 0.82rem; line-height: 1.55; }
.cc-banner a { color: var(--rose-soft); }
.cc-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cc-actions .btn { padding: 0.7rem 1.3rem; font-size: 0.68rem; }
.cc-accept { background: var(--rose); color: var(--ink); border-color: var(--rose); }
.cc-accept:hover { background: var(--rose-soft); border-color: var(--rose-soft); color: var(--ink); }
.cc-decline { background: none; color: var(--cream); border-color: var(--hairline-cream); }
.cc-decline:hover { background: rgba(247, 243, 236, 0.12); color: var(--cream); }

/* ==========================================================
   Página /poster/ (la genera el Worker)
   ========================================================== */

.pp { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 24px) 60px; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 40px; align-items: start; }
.pp-main { background: var(--cream); padding: clamp(1.2rem, 3vw, 2.5rem); }
.pp-main img { max-width: 100%; height: auto; display: block; margin: 0 auto; box-shadow: 0 18px 44px rgba(35, 37, 46, 0.22); }
.pp-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; justify-content: center; }
.pp-thumbs img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--hairline); box-shadow: none; }
.pp h1 { font-family: var(--display); font-weight: 500; color: var(--ink); font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; margin: 0 0 6px; }
.pp-meta { color: var(--ink-soft); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 18px; }
.pp-price { font-family: var(--display); color: var(--ink); font-size: 1.6rem; font-weight: 500; margin: 0 0 14px; }
.pp-ship { color: var(--ink-soft); font-size: 0.85rem; margin: 14px 0 0; }
.pp-note { color: var(--ink-soft); font-size: 0.78rem; margin-top: 10px; }
.pp-desc { color: var(--ink-soft); line-height: 1.75; margin-top: 30px; max-width: 70ch; white-space: pre-line; }
.pp-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; border-top: 1px solid var(--hairline); padding-top: 18px; flex-wrap: wrap; }
.pp-nav a { color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.pp-nav a:hover { color: var(--rose-deep); }
/* En móvil la foto no debe empujar el bloque de compra fuera de pantalla */
@media (max-width: 820px) {
  .pp-grid { grid-template-columns: 1fr; gap: 22px; }
  .pp-main img { max-height: 44vh; max-height: 44dvh; width: auto; }
}

/* ---------- 404 y páginas simples ---------- */

.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.nf h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; }
.nf p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 28px; }
.nf .btn { margin: 0 6px 10px; }

.prose { max-width: 720px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 24px 70px; }
.prose h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin-top: 2.2rem; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.8; }

/* ---------- Página de gracias ---------- */

.thanks-wrap {
  min-height: 65vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem clamp(1.2rem, 4vw, 4rem);
}
.thanks-wrap h1 { font-family: var(--display); font-weight: 500; color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.thanks-wrap p { color: var(--ink-soft); max-width: 36rem; line-height: 1.7; margin: 0 0 1rem; }
.thanks-wrap .btn { margin-top: 1.2rem; }
