/* ============ Hoja de contactos ============ */
.sheet-sec {
  position: relative;
  background: var(--ink);
  color: var(--glow);
  padding: 62vh var(--pad) clamp(6rem, 10vw, 10rem);
  overflow: hidden;
  isolation: isolate;
}
/* Degradado de entrada: el papel de la presentación se oscurece con manchas de color hasta llegar a la mesa */
.sheet-sec::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 115vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 26% at 14% 46%, rgba(217,72,31,.62), transparent 72%),
    radial-gradient(ellipse 55% 24% at 88% 40%, rgba(52,84,220,.5), transparent 72%),
    radial-gradient(ellipse 45% 20% at 55% 34%, rgba(244,150,140,.3), transparent 72%),
    linear-gradient(to bottom, var(--paper) 0%, #e4d9c9 14%, #8d8379 38%, #2b2622 60%, var(--ink) 82%);
}
/* luz cálida de lámpara sobre la mesa */
.sheet-sec::before {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; top: 58%;
  width: 120vmax; height: 90vmax;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(246, 214, 180, .13), rgba(217, 72, 31, .06) 55%, transparent);
  pointer-events: none;
}

.sheet-wrap {
  max-width: 1180px;
  margin: 0 auto;
}
/* el papel fotográfico */
.sheet {
  position: relative;
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.2rem, 3.4vw, 3rem);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .5), transparent 60%),
    #f2ede3;
  color: #1a1512;
  border-radius: 2px;
  transform: rotate(-1.1deg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 2px 4px rgba(0, 0, 0, .3),
    0 40px 90px rgba(0, 0, 0, .55);
}
.sheet::after { /* grano del papel */
  content: "";
  position: absolute; inset: 0;
  background: var(--noise); background-size: 160px;
  mix-blend-mode: multiply; opacity: .12;
  pointer-events: none;
}
.tape {
  position: absolute; z-index: 3;
  width: 120px; height: 34px;
  background: rgba(240, 232, 210, .72);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.tape.t1 { top: -14px; left: 9%; rotate: -6deg; }
.tape.t2 { top: -12px; right: 11%; rotate: 4deg; }

/* tiras de película */
.strips {
  display: grid;
  grid-template-columns: repeat(var(--count, 7), minmax(0, 1fr));
  gap: clamp(.4rem, 1.1vw, 1rem);
}
.strip {
  position: relative;
  display: grid;
  grid-template-columns: 15% 1fr 15%;
  background: #0c0b0a;
  padding: 7% 0;
  border-radius: 1px;
}
/* perforaciones, apenas visibles en una copia por contacto */
.strip::before, .strip::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 6%;
  background: repeating-linear-gradient(180deg, transparent 0 5px, #1d1b19 5px 11px, transparent 11px 15px);
}
.strip::before { left: 4%; }
.strip::after { right: 4%; }
.strip .edge {
  writing-mode: vertical-rl;
  display: flex; justify-content: space-around;
  font: 600 clamp(.4rem, .6vw, .55rem) var(--f-sans);
  letter-spacing: .12em;
  color: rgba(242, 236, 224, .62);
  padding-top: 2%;
  white-space: nowrap;
  overflow: hidden;
}
.strip .edge.r { transform: rotate(180deg); }
.strip .frames { display: grid; gap: 5px; }
.cf {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #000;
  transform-origin: center;
  will-change: transform;
  transition: box-shadow .4s var(--ease);
}
.cf button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.cf img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.06) saturate(.9) sepia(.06);
  transition: filter .5s var(--ease);
}
.cf.up { box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 2px #0c0b0a; }
.cf.up img { filter: contrast(1.04) saturate(1) sepia(0); }

/* final del rollo: cuadros sin exponer */
.cf.blank { background: #050404; }
.cf.blank.leak { background: linear-gradient(100deg, #050404 30%, #3a1d10 60%, #c9774a 88%, #f1c9a0); opacity: .9; }

/* ---------- Segunda hoja: paisajes, tiras horizontales ---------- */
.sheet-wrap.second { max-width: 1060px; margin-top: clamp(4rem, 8vw, 7rem); }
.sheet-wrap.second .sheet {
  transform: rotate(.9deg);
  background:
    radial-gradient(ellipse at 70% 15%, rgba(255, 255, 255, .45), transparent 60%),
    #efe6d6;
}
.sheet-wrap.second .tape.t1 { left: 14%; rotate: 5deg; }
.sheet-wrap.second .tape.t2 { right: 8%; rotate: -4deg; }
.sheet.h .strips { grid-template-columns: 1fr; gap: clamp(.6rem, 1.4vw, 1.2rem); }
.sheet.h .strip { grid-template-columns: none; grid-template-rows: auto 1fr auto; padding: 0 3%; }
.sheet.h .strip::before, .sheet.h .strip::after {
  top: auto; bottom: auto; left: 0; right: 0; width: auto; height: 5%;
  min-height: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, #1d1b19 5px 11px, transparent 11px 15px);
}
.sheet.h .strip::before { top: 3%; left: 0; }
.sheet.h .strip::after { bottom: 3%; right: 0; }
.sheet.h .strip .edge {
  writing-mode: horizontal-tb;
  padding: clamp(.5rem, 1.2vw, 1rem) 0 clamp(.3rem, .6vw, .5rem);
  transform: none;
}
.sheet.h .strip .edge.r { padding: clamp(.3rem, .6vw, .5rem) 0 clamp(.5rem, 1.2vw, 1rem); }
.sheet.h .strip .frames { grid-template-columns: repeat(var(--per, 5), minmax(0, 1fr)); gap: 6px; }
.sheet.h .cf { aspect-ratio: 3 / 2; }

/* marcas de lápiz graso */
.mark {
  position: absolute; z-index: 2;
  inset: -16% -22%;
  width: 144%; height: 132%;
  overflow: visible;
  pointer-events: none;
}
.mark path { fill: none; stroke: #d0351f; stroke-linecap: round; stroke-linejoin: round; opacity: .88; }

@media (max-width: 760px) {
  .sheet-sec { padding-top: 46vh; }
  .sheet-sec::after { height: 90vh; }
  .sheet { transform: rotate(-.6deg); }
  .tape { width: 80px; height: 24px; }
  .strip .frames { gap: 3px; }
  .strip .edge { font-size: .3rem; }
}
