/* Plantillas de las pantallas. Todo se dibuja en un escenario fijo de 1920x1080 (o 1080x1920 vertical)
   que después se escala a la tele, así se ve igual en cualquier tamaño.
   --e = escala del texto según la distancia del público (cerca .85 · media 1 · lejos 1.25).
   Colores de la marca: --p principal · --s secundario · --f fondo · --t texto.
   Ojo: se evita `gap` en flex y otras cosas nuevas porque los navegadores de teles son antiguos. */

.escenario {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  overflow: hidden;
  transform-origin: 0 0;
  background: var(--f, #fff7ed);
  color: var(--t, #1c1917);
  font-family: var(--fuente, 'Poppins'), 'Segoe UI', Arial, sans-serif;
  --e: 1;
}
.escenario.vertical { width: 1080px; height: 1920px; }
.escenario.cerca { --e: .85; }
.escenario.lejos { --e: 1.25; }
.escenario * { box-sizing: border-box; }

.slide {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity .9s ease;
  overflow: hidden;
}
.slide.activa { opacity: 1; }
.slide.activa .entra { animation: entra .9s ease both; }
.slide.activa .entra.d1 { animation-delay: .15s; }
.slide.activa .entra.d2 { animation-delay: .3s; }
.slide.activa .entra.d3 { animation-delay: .45s; }
@keyframes entra { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Barra inferior con logo y nombre del local */
.pie {
  position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  display: flex; align-items: center; padding: 0 64px;
  background: var(--s, #1f2937); color: #fff; z-index: 5;
  font-size: calc(34px * var(--e)); font-weight: 600;
}
.pie img { height: 64px; max-width: 240px; object-fit: contain; margin-right: 24px; border-radius: 8px; background: #fff; padding: 4px; }
.pie .reloj { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.cuerpo { position: absolute; left: 0; top: 0; right: 0; bottom: 96px; }

.etiqueta {
  display: inline-block; padding: 14px 36px; border-radius: 999px;
  background: var(--p, #c2410c); color: #fff;
  font-size: calc(40px * var(--e)); font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.precio-grande { font-weight: 900; line-height: .95; color: var(--p, #c2410c); letter-spacing: -4px; white-space: nowrap; }
.precio-grande .peso { font-size: .5em; vertical-align: .55em; margin-right: 8px; letter-spacing: 0; }

/* ── precio ── */
.t-precio .texto { position: absolute; left: 110px; top: 0; bottom: 0; width: 900px; display: flex; flex-direction: column; justify-content: center; }
.t-precio.sin-foto .texto { left: 0; right: 0; width: auto; align-items: center; text-align: center; }
.t-precio h1 { margin: 36px 0 12px; font-size: calc(130px * var(--e)); line-height: 1; font-weight: 800; color: var(--s, #1f2937); }
.t-precio p { margin: 0 0 30px; font-size: calc(48px * var(--e)); font-weight: 500; }
.t-precio .precio-grande { font-size: calc(260px * var(--e)); }
.t-precio .foto { position: absolute; right: 0; top: 0; bottom: 0; width: 860px; background-size: cover; background-position: center; border-top-left-radius: 360px; }
.vertical .t-precio .texto { left: 0; right: 0; top: auto; bottom: 60px; width: auto; padding: 0 80px; align-items: center; text-align: center; }
.vertical .t-precio .foto { left: 0; width: auto; bottom: 46%; border-radius: 0 0 50% 50% / 0 0 120px 120px; }
.vertical .t-precio.sin-foto .texto { top: 0; bottom: 0; }

/* ── lista ── */
.t-lista .cabeza { padding: 70px 110px 30px; }
.t-lista h1 { margin: 0; font-size: calc(110px * var(--e)); font-weight: 800; color: var(--s, #1f2937); }
.t-lista .linea-acento { width: 180px; height: 12px; border-radius: 6px; background: var(--p, #c2410c); margin-top: 18px; }
.t-lista ul { list-style: none; margin: 0; padding: 0 110px; }
.t-lista li { display: flex; align-items: baseline; padding: 20px 0; border-bottom: 3px dashed rgba(0,0,0,.15); }
.t-lista li:last-child { border-bottom: 0; }
.t-lista .nombre { font-size: calc(64px * var(--e)); font-weight: 700; }
.t-lista .detalle { display: block; font-size: calc(36px * var(--e)); font-weight: 500; opacity: .8; }
.t-lista .precio { margin-left: auto; padding-left: 40px; font-size: calc(80px * var(--e)); font-weight: 900; color: var(--p, #c2410c); white-space: nowrap; }
.t-lista.muchos li { padding: 12px 0; }
.t-lista.muchos .nombre { font-size: calc(52px * var(--e)); }
.t-lista.muchos .precio { font-size: calc(64px * var(--e)); }
.vertical .t-lista .cabeza { padding: 100px 70px 40px; }
.vertical .t-lista ul { padding: 0 70px; }
.vertical .t-lista li { padding: 34px 0; }

/* ── producto (foto grande) ── */
.t-producto .foto, .t-frase .foto, .t-imagen .foto { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: cover; background-position: center; }
.t-producto .velo { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0)); }
.t-producto .texto { position: absolute; left: 110px; right: 110px; bottom: 80px; color: #fff; }
.t-producto h1 { margin: 24px 0 8px; font-size: calc(120px * var(--e)); font-weight: 800; line-height: 1; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.t-producto p { margin: 0; font-size: calc(46px * var(--e)); font-weight: 500; max-width: 1100px; }
.t-producto .placa { position: absolute; right: 110px; bottom: 80px; background: var(--p, #c2410c); color: #fff; padding: 30px 56px; border-radius: 36px; font-size: calc(130px * var(--e)); font-weight: 900; box-shadow: 0 20px 50px rgba(0,0,0,.35); white-space: nowrap; }
.t-producto .placa .peso { font-size: .5em; vertical-align: .55em; margin-right: 6px; }
.t-producto.sin-foto .foto { background: var(--s, #1f2937); }
.vertical .t-producto .texto { left: 70px; right: 70px; bottom: 380px; }
.vertical .t-producto .placa { right: auto; left: 70px; bottom: 90px; }

/* ── frase ── */
.t-frase { background: var(--p, #c2410c); color: #fff; }
.t-frase .foto + .velo { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); }
.t-frase .texto { position: absolute; left: 150px; right: 150px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.t-frase h1 { margin: 0; font-size: calc(120px * var(--e)); line-height: 1.08; font-weight: 800; }
.t-frase p { margin: 40px 0 0; font-size: calc(52px * var(--e)); font-weight: 600; opacity: .95; }
.t-frase .comilla { font-size: 220px; line-height: .6; font-family: Georgia, serif; opacity: .35; }
.vertical .t-frase .texto { left: 80px; right: 80px; }

/* ── info ── */
.t-info { background: var(--s, #1f2937); color: #fff; }
.t-info .texto { position: absolute; left: 130px; right: 130px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.t-info h1 { margin: 0 0 40px; font-size: calc(110px * var(--e)); font-weight: 800; }
.t-info .lineas div { font-size: calc(62px * var(--e)); font-weight: 600; padding: 10px 0; }
.t-info .lineas div:before { content: ''; display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--p, #c2410c); margin-right: 30px; vertical-align: middle; }
.t-info .extra { margin-top: 44px; font-size: calc(46px * var(--e)); font-weight: 500; opacity: .9; }

/* ── carrusel ── */
.t-carrusel { background: #000; }
.t-carrusel .foto { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.t-carrusel .foto.visible { opacity: 1; }
.t-carrusel .foto.visible.mueve { animation: acerca 14s ease-out both; }
@keyframes acerca { from { transform: scale(1); } to { transform: scale(1.08); } }
.t-carrusel .rotulo { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 110px 60px; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0)); color: #fff; font-size: calc(64px * var(--e)); font-weight: 700; z-index: 2; }
.t-carrusel .titulo { position: absolute; left: 110px; top: 70px; z-index: 2; }
.t-carrusel .puntos { position: absolute; right: 110px; top: 80px; z-index: 2; }
.t-carrusel .puntos span { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.45); margin-left: 14px; }
.t-carrusel .puntos span.visible { background: #fff; }

/* ── carteles (feria) ── */
.t-carteles { background: #2b2116; }
.t-carteles .foto { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: cover; background-position: center; }
.t-carteles .velo { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.t-carteles.sin-foto .foto { background: var(--s, #1f2937); }
.t-carteles .titulo { position: absolute; left: 90px; top: 70px; z-index: 2; }
.t-carteles .fila-carteles { position: absolute; left: 60px; right: 60px; bottom: 0; display: flex; justify-content: center; align-items: flex-end; }
.t-carteles .cartel { margin: 0 26px; display: flex; flex-direction: column; align-items: center; }
.t-carteles .cartel:nth-child(odd) .carton { transform: rotate(-3deg); }
.t-carteles .cartel:nth-child(even) .carton { transform: rotate(2.5deg); }
.t-carteles .carton {
  width: 400px; padding: 28px 24px 30px; text-align: center;
  background: #e8cf9d; color: #1c1209; border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 40px rgba(120,80,30,.35);
  font-family: 'Permanent Marker', 'Comic Sans MS', cursive;
}
.t-carteles .nombre { font-size: calc(54px * var(--e)); line-height: 1.05; }
.t-carteles .precio { font-size: calc(104px * var(--e)); line-height: 1.05; color: #c1121f; margin-top: 8px; white-space: nowrap; }
.t-carteles .precio .peso { font-size: .55em; vertical-align: .5em; margin-right: 4px; }
.t-carteles .detalle { font-size: calc(36px * var(--e)); margin-top: 4px; }
.t-carteles .palo { width: 22px; height: 150px; background: #a8763e; box-shadow: inset -5px 0 0 rgba(0,0,0,.18); }
.t-carteles .n1 .carton { width: 560px; }
.t-carteles .n4 .carton { width: 340px; }
.t-carteles .n4 .cartel { margin: 0 14px; }
.vertical .t-carteles .fila-carteles { flex-wrap: wrap; left: 30px; right: 30px; }
.vertical .t-carteles .carton { width: 420px; }
.vertical .t-carteles .palo { height: 70px; }

/* ── imagen ── */
.t-imagen { background: #000; }
.t-imagen .foto.contener { background-size: contain; background-repeat: no-repeat; }
.t-imagen .rotulo { position: absolute; left: 0; right: 0; bottom: 0; padding: 100px 110px 50px; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0)); color: #fff; font-size: calc(60px * var(--e)); font-weight: 700; }

/* Pantalla sin contenido todavía */
.t-vacia { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--s, #1f2937); color: #fff; }
.t-vacia h1 { font-size: 90px; margin: 0 0 20px; }
.t-vacia p { font-size: 46px; margin: 0; opacity: .9; }
.t-vacia .codigo { margin-top: 50px; font-size: 120px; font-weight: 900; letter-spacing: 12px; color: var(--p, #f97316); }
.t-carteles .n4 .precio { font-size: calc(86px * var(--e)); }
.t-carteles .n4 .nombre { font-size: calc(48px * var(--e)); }
