/* Pruebas de fondo (idea de Iñigo, 4 nov 2026): se activan con ?fondo=negativo o ?fondo=sepia en la URL.
   negativo: textura real de negativo 35 mm (Magnific) · sepia: solo el color de la base del negativo, grano y perforaciones tenues */

/* ---- A · NEGATIVO ---- */
html.fondo-negativo{--black:#170f05;--base:#1a1206;background:var(--base)}
html.fondo-negativo body{background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='40' viewBox='0 0 28 40'><rect x='4' y='9' width='20' height='22' rx='4' fill='%23000' fill-opacity='.55'/><rect x='4.5' y='9.5' width='19' height='21' rx='3.5' fill='none' stroke='%23e8c57a' stroke-opacity='.10'/></svg>") left 10px top / 28px 40px repeat-y,url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='40' viewBox='0 0 28 40'><rect x='4' y='9' width='20' height='22' rx='4' fill='%23000' fill-opacity='.55'/><rect x='4.5' y='9.5' width='19' height='21' rx='3.5' fill='none' stroke='%23e8c57a' stroke-opacity='.10'/></svg>") right 10px top / 28px 40px repeat-y,radial-gradient(120% 80% at 50% 0%, rgba(90,60,20,.18), transparent 60%),var(--base)}
html.fondo-negativo .hero{background:url("tex/film-h.jpg") center / cover no-repeat}
html.fondo-negativo .hero::before{content:"";position:absolute;inset:0;background:radial-gradient(80% 70% at 50% 50%, transparent 55%, rgba(0,0,0,.35));pointer-events:none}
html.fondo-negativo .gate{inset:clamp(78px,9.5vh,100px) var(--pad) clamp(56px,7vh,72px);box-shadow:0 20px 60px rgba(0,0,0,.6)}
html.fondo-negativo .slate{bottom:calc(clamp(56px,7vh,72px) + clamp(18px,4vh,48px))}
html.fondo-negativo .top{background:linear-gradient(to bottom,rgba(20,12,4,.75),rgba(20,12,4,0))}
html.fondo-negativo .top.away{background:rgba(23,15,5,.92)}
html.fondo-negativo .work .frame{background:#0b0803}
html.fondo-negativo .index,html.fondo-negativo .screening{background:rgba(23,15,5,.96)}
@media (max-width:980px){
  html.fondo-negativo .slide,html.fondo-negativo .hero,html.fondo-negativo .work{background:var(--base)}
  html.fondo-negativo .hero{background:none}
  html.fondo-negativo .gate{inset:0}
  html.fondo-negativo .slate{bottom:62px}
  html.fondo-negativo #about .bgwrap .bg,html.fondo-negativo #film .bgwrap .bg{content:url("tex/film-v.jpg");filter:none;object-fit:cover}
  html.fondo-negativo #about .bgwrap .scrim,html.fondo-negativo #film .bgwrap .scrim{background:linear-gradient(to top,rgba(23,15,5,.72),rgba(23,15,5,.25))}
}

/* ---- B · SEPIA ---- */
html.fondo-sepia{--black:#15100a;--base:#15100a;background:var(--base)}
html.fondo-sepia body{background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='40' viewBox='0 0 28 40'><rect x='4' y='9' width='20' height='22' rx='4' fill='%23000' fill-opacity='.55'/><rect x='4.5' y='9.5' width='19' height='21' rx='3.5' fill='none' stroke='%23e8c57a' stroke-opacity='.10'/></svg>") left 10px top / 28px 40px repeat-y,url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='40' viewBox='0 0 28 40'><rect x='4' y='9' width='20' height='22' rx='4' fill='%23000' fill-opacity='.55'/><rect x='4.5' y='9.5' width='19' height='21' rx='3.5' fill='none' stroke='%23e8c57a' stroke-opacity='.10'/></svg>") right 10px top / 28px 40px repeat-y,var(--base)}
html.fondo-sepia body::after{content:"";position:fixed;inset:-60px;pointer-events:none;z-index:0;opacity:.09;mix-blend-mode:overlay;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
html.fondo-sepia .hero{background:var(--base)}
html.fondo-sepia .top{background:linear-gradient(to bottom,rgba(21,16,10,.75),rgba(21,16,10,0))}
html.fondo-sepia .top.away{background:rgba(21,16,10,.92)}
html.fondo-sepia .work .frame{background:#0b0803}
html.fondo-sepia .index,html.fondo-sepia .screening{background:rgba(21,16,10,.96)}
@media (max-width:980px){
  html.fondo-sepia .slide,html.fondo-sepia .hero,html.fondo-sepia .work{background:var(--base)}
  html.fondo-sepia #about .bgwrap,html.fondo-sepia #film .bgwrap{display:none}
}
