/* Web pública "cinematográfica" de Panadería 1988 */
body.cine { background: #0d0b0a; color: var(--crema); overflow-x: hidden; }
.cine ::selection { background: var(--oro); color: #000; }
.dorado { background: linear-gradient(100deg, #f6d48a 0%, var(--oro) 40%, #fff0c4 50%, var(--oro) 60%, #b07a2a 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: oro-brilla 7s linear infinite; }
@keyframes oro-brilla { to { background-position: -250% 0; } }
.texto-claro { color: rgba(246, 239, 228, .78); font-size: 1.08rem; max-width: 52ch; }
.titulo-seccion { font: 900 clamp(2.2rem, 6vw, 4.2rem)/1 var(--fuente); text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.cine .antetitulo { color: var(--oro); }

/* grano de película */
.grano { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grano 1s steps(4) infinite; }
@keyframes grano { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }

/* barra: transparente arriba, sólida al bajar */
.cine .barra { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; transition: background .4s, backdrop-filter .4s; }
.cine .barra.solida { background: rgba(13, 11, 10, .82); backdrop-filter: blur(12px); }

/* ESCENA portada */
.escena-portada { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 600px at 70% 30%, rgba(217, 138, 30, .35), transparent 65%), radial-gradient(700px 500px at 10% 90%, rgba(201, 151, 63, .18), transparent 60%), #0d0b0a; }
.portada-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s; z-index: -2; filter: saturate(1.1) contrast(1.05); }
.portada-video.lista { opacity: .38; }
.escena-portada::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 11, 10, .2) 0%, rgba(13, 11, 10, .1) 50%, #0d0b0a 100%); }
.harina { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.luz { position: absolute; top: -30%; right: -10%; width: 80vmax; height: 80vmax; z-index: 0; pointer-events: none; opacity: .5;
  background: conic-gradient(from 200deg at 50% 50%, transparent 0deg, rgba(255, 200, 110, .18) 18deg, transparent 40deg, transparent 80deg, rgba(255, 200, 110, .12) 95deg, transparent 120deg);
  filter: blur(30px); animation: luz-gira 28s linear infinite; }
@keyframes luz-gira { to { transform: rotate(360deg); } }
.numero-gigante { position: absolute; right: -3vw; bottom: -5vw; z-index: 0; font: 900 clamp(10rem, 34vw, 30rem)/.8 var(--fuente); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px rgba(201, 151, 63, .16); pointer-events: none; will-change: transform; }
.portada-contenido { position: relative; z-index: 1; padding: 7.5rem 0 5rem; }
.portada-sello { width: clamp(84px, 11vw, 130px); margin-bottom: 1.4rem; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.titulo-cine { font: 900 clamp(2.9rem, 9.5vw, 7.4rem)/.92 var(--fuente); text-transform: uppercase; letter-spacing: -.035em; margin: .3rem 0 1.4rem; }
.titulo-cine .linea { display: block; overflow: hidden; padding-bottom: .04em; }
.titulo-cine .linea > span { display: inline-block; transform: translateY(110%); animation: subir 1.1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0s); }
.titulo-cine em { font-style: italic; font-weight: 300; padding-right: .08em; }
@keyframes subir { to { transform: none; } }
.aparecer { opacity: 0; transform: translateY(18px); animation: aparecer 1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes aparecer { to { opacity: 1; transform: none; } }
.escena-portada .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(246, 239, 228, .82); max-width: 40ch; margin-bottom: 1.8rem; }
.boton-vidrio { background: rgba(246, 239, 228, .08); color: var(--crema); border: 1px solid rgba(246, 239, 228, .25); backdrop-filter: blur(8px); }
.boton-vidrio:hover { background: rgba(246, 239, 228, .16); }
.boton-brillo { position: relative; overflow: hidden; }
.boton-brillo::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: barrido 3.6s ease-in-out infinite; }
@keyframes barrido { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.reloj { margin-top: 2rem; display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: 999px; font-size: .92rem;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(201, 151, 63, .3); backdrop-filter: blur(6px); }
.reloj b { color: var(--oro-claro); }
.punto-vivo { width: 10px; height: 10px; border-radius: 50%; background: #36d07a; box-shadow: 0 0 0 0 rgba(54, 208, 122, .6); animation: latido 1.8s infinite; flex: none; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px rgba(54, 208, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(54, 208, 122, 0); } }
.bajar { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid rgba(246, 239, 228, .45); border-radius: 20px; z-index: 1; }
.bajar span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--oro); animation: rueda 1.8s infinite; }
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* cinta */
.cinta { background: var(--oro); color: #0d0b0a; overflow: hidden; transform: rotate(-1.6deg) scale(1.03); margin: -1.2rem 0 0; position: relative; z-index: 2; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.cinta-pista { display: flex; width: max-content; gap: 1.6rem; padding: .9rem 0; animation: cinta 26s linear infinite; font: 900 clamp(1.1rem, 2.6vw, 1.6rem) var(--fuente); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.cinta-pista i { font-style: normal; opacity: .55; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* aparición al bajar */
.revelar { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.revelar.visible { opacity: 1; transform: none; }

/* sorteo */
.escena-sorteo { padding-top: 5rem; }
.sorteo-cine { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; border-radius: 30px; padding: clamp(1.6rem, 4vw, 3rem);
  background: radial-gradient(600px 300px at 0% 0%, rgba(255, 215, 120, .18), transparent 60%), linear-gradient(135deg, #8f1515, #5a0b0b); overflow: hidden; isolation: isolate; }
.sorteo-cine::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, #ffd779 40%, transparent 60%) 0 0 / 300% 100%; animation: borde 4s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes borde { to { background-position: -300% 0; } }
.sorteo-cine h2 { font: 900 clamp(1.8rem, 4.5vw, 3rem)/1 var(--fuente); text-transform: uppercase; margin: .6rem 0; }
.sorteo-premio { font-size: 1.25rem; font-weight: 800; color: #ffd779; }
.sorteo-cine .nuevo { display: inline-block; background: #ffd779; color: #5a0e0e; font-weight: 900; font-size: .75rem; letter-spacing: .12em; padding: .3em .8em; border-radius: 999px; }
.cuenta { text-align: center; }
.cuenta-numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.cuenta-numeros div { background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 215, 120, .3); border-radius: 16px; padding: .8rem .2rem; }
.cuenta-numeros b { display: block; font: 900 clamp(1.8rem, 4vw, 2.6rem)/1 var(--fuente); color: #ffd779; font-variant-numeric: tabular-nums; }
.cuenta-numeros span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
@media (max-width: 800px) { .sorteo-cine { grid-template-columns: 1fr; } }

/* club */
.escena-club { padding-top: 6rem; }
.club-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.pasos { list-style: none; counter-reset: paso; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 1rem; }
.pasos li { counter-increment: paso; position: relative; padding: 1rem 1rem 1rem 4.2rem; border-radius: 18px; background: rgba(246, 239, 228, .04); border: 1px solid rgba(201, 151, 63, .2); color: rgba(246, 239, 228, .85); }
.pasos li::before { content: counter(paso); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--oro); color: #0d0b0a; font-weight: 900; }
.pasos b { color: var(--crema); }
.tarjeta-3d-escena { perspective: 1200px; display: grid; justify-items: center; gap: 1rem; }
.tarjeta-3d { --rx: 8deg; --ry: -14deg; --mx: 50%; --my: 30%; position: relative; width: min(340px, 82vw); aspect-ratio: .63; border-radius: 28px; padding: 1.4rem;
  background: radial-gradient(400px 260px at 100% 0%, rgba(217, 138, 30, .55), transparent 60%), linear-gradient(160deg, #1d1814, #0b0908);
  border: 1px solid rgba(201, 151, 63, .45); box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(201, 151, 63, .15);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .2s ease-out; display: flex; flex-direction: column; overflow: hidden;
  animation: flota 7s ease-in-out infinite; }
@keyframes flota { 50% { translate: 0 -12px; } }
.t3d-brillo { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255, 230, 170, .22), transparent 45%); }
.t3d-fila { display: flex; align-items: center; justify-content: space-between; }
.t3d-fila img { width: 58px; }
.t3d-nivel { padding: .3em .9em; border-radius: 999px; background: linear-gradient(135deg, #ffe39a, var(--oro)); color: #0d0b0a; font-weight: 900; font-size: .8rem; letter-spacing: .12em; }
.t3d-puntos { font: 900 3.6rem/1 var(--fuente); color: var(--oro-claro); margin-top: 1.4rem; font-variant-numeric: tabular-nums; }
.t3d-puntos small { font-size: 1rem; color: var(--crema); margin-left: .4rem; font-weight: 700; }
.t3d-nombre { letter-spacing: .18em; font-weight: 700; font-size: .85rem; opacity: .75; margin-top: .4rem; }
.t3d-qr { margin: auto auto .8rem; width: 58%; aspect-ratio: 1; border-radius: 14px; background-color: #fff;
  background-image: linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%), linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%);
  background-size: 18px 18px; background-position: 0 0, 9px 9px; border: 10px solid #fff; opacity: .92; }
.t3d-pie { text-align: center; font-size: .72rem; letter-spacing: .3em; opacity: .6; }
.t3d-nota { color: rgba(246, 239, 228, .7); font-weight: 600; min-height: 1.5em; }
@media (max-width: 860px) { .club-grid { grid-template-columns: 1fr; } .tarjeta-3d-escena { order: -1; } }

/* premios */
.grilla-premios { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin: 1.4rem 0 3rem; }
.premio-cine { position: relative; padding: 1.4rem; border-radius: 22px; background: linear-gradient(160deg, #1b1613, #110e0c); border: 1px solid rgba(201, 151, 63, .2);
  transition: transform .35s, border-color .35s, box-shadow .35s; overflow: hidden; }
.premio-cine:hover { transform: translateY(-6px); border-color: rgba(201, 151, 63, .7); box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 40px rgba(201, 151, 63, .15); }
.premio-cine .emoji { font-size: 2.6rem; display: block; margin-bottom: .8rem; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.premio-cine h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.premio-cine p { color: rgba(246, 239, 228, .6); font-size: .88rem; margin: 0 0 1rem; }
.premio-cine .pts { font: 900 1.7rem/1 var(--fuente); color: var(--oro-claro); }
.premio-cine .pts small { font-size: .8rem; color: rgba(246, 239, 228, .6); margin-left: .3rem; }
.niveles-cine { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.nivel-cine { border-radius: 22px; padding: 1.5rem; color: #0d0b0a; position: relative; overflow: hidden; }
.nivel-cine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%) 0 0 / 250% 100%; animation: oro-brilla 6s linear infinite; }
.nivel-cine h3 { font: 900 1.6rem/1 var(--fuente); text-transform: uppercase; margin-bottom: .5rem; }
.nivel-cine p { margin: 0; font-weight: 600; }

/* lo que hacemos */
.escena-oficio { background: linear-gradient(180deg, #0d0b0a, #1a120b 50%, #0d0b0a); }
.oficio { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.oficio-item { position: relative; padding: 1.6rem 1.4rem 1.4rem; border-radius: 24px; background: rgba(246, 239, 228, .04); border: 1px solid rgba(246, 239, 228, .08); overflow: hidden; }
.oficio-hora { position: absolute; right: .8rem; top: .2rem; font: 900 3.4rem/1 var(--fuente); color: transparent; -webkit-text-stroke: 1px rgba(201, 151, 63, .35); }
.oficio-emoji { font-size: 2.6rem; margin-bottom: .8rem; }
.oficio-item p { color: rgba(246, 239, 228, .7); margin: 0; }

/* comentarios */
.voces { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1.4rem max(4vw, calc((100vw - 1100px) / 2)) 1rem; scrollbar-width: none; }
.voces::-webkit-scrollbar { display: none; }
.voz { flex: 0 0 min(340px, 80vw); scroll-snap-align: start; margin: 0; padding: 1.6rem; border-radius: 24px; background: var(--crema); color: var(--texto); font-size: 1.1rem; font-weight: 600; line-height: 1.4; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.voz::before { content: "“"; display: block; font: 900 4rem/.5 Georgia, serif; color: var(--oro); margin: .6rem 0 .4rem; }
.voz cite { display: block; margin-top: .9rem; font-size: .8rem; font-style: normal; color: var(--suave); }

/* ubicación */
.mapa-cine { position: relative; display: block; aspect-ratio: 4/3; border-radius: 28px; overflow: hidden; background: #15110f; border: 1px solid rgba(201, 151, 63, .25);
  background-image: linear-gradient(rgba(201, 151, 63, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 151, 63, .07) 1px, transparent 1px); background-size: 36px 36px; }
.mapa-via { position: absolute; left: -10%; right: -10%; top: 38%; height: 14px; transform: rotate(-24deg);
  background: repeating-linear-gradient(90deg, rgba(246, 239, 228, .35) 0 14px, transparent 14px 22px); border-top: 2px solid rgba(246, 239, 228, .25); border-bottom: 2px solid rgba(246, 239, 228, .25); }
.mapa-calle { position: absolute; left: -10%; right: -10%; top: 56%; height: 26px; transform: rotate(-24deg); background: rgba(201, 151, 63, .25); }
.mapa-pin { position: absolute; left: 52%; top: 52%; width: 22px; height: 22px; border-radius: 50%; background: var(--oro); transform: translate(-50%, -50%); box-shadow: 0 0 0 0 rgba(201, 151, 63, .7); animation: pin 2s infinite; }
@keyframes pin { 70% { box-shadow: 0 0 0 28px rgba(201, 151, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 151, 63, 0); } }
.mapa-etiqueta { position: absolute; left: 52%; top: 64%; transform: translateX(-50%); white-space: nowrap; background: var(--oro); color: #0d0b0a; font-weight: 800; font-size: .82rem; padding: .4em .9em; border-radius: 999px; }

.final-cine { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; background: radial-gradient(700px 380px at 50% 60%, rgba(217, 138, 30, .3), transparent 70%); }

/* quien prefiere menos movimiento lo respeta */
@media (prefers-reduced-motion: reduce) {
  .cine *, .cine *::before, .cine *::after { animation: none !important; transition: none !important; }
  .titulo-cine .linea > span, .aparecer, .revelar { transform: none !important; opacity: 1 !important; }
  .grano { display: none; }
}
