/* Diseños festivos (compartidos por la caja web y el salvapantallas del Administrativo). Hoy: Buen Fin. */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('/admin/fuentes/Anton-latin.woff2') format('woff2'); }
@keyframes fbfGira { to { transform: rotate(360deg) } }
@keyframes fbfBalan { from { transform: rotate(-7deg) } to { transform: rotate(7deg) } }
@keyframes fbfCae { from { transform: translate3d(0, -12vh, 0) rotate(0) } to { transform: translate3d(var(--dx, 30px), 112vh, 0) rotate(var(--rot, 360deg)) } }
@keyframes fbfCinta { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- banda de arriba (caja web) ---------- */
.fbf-banda { flex: none; position: relative; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; color: #fff;
  background: linear-gradient(90deg, #B3261E 0%, #D9381E 45%, #F26A21 100%); box-shadow: 0 2px 0 rgba(0, 0, 0, .12); z-index: 5 }
.fbf-banda::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; z-index: 5; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .15));
  background: linear-gradient(135deg, #F26A21 50%, transparent 50%) 0 0 / 16px 9px repeat-x, linear-gradient(225deg, #F26A21 50%, transparent 50%) 8px 0 / 16px 9px repeat-x }
.fbf-banda > * { position: relative; z-index: 2 }
.fbf-marca { display: flex; align-items: center; gap: 10px; font-family: 'Anton', 'Impact', sans-serif; font-size: 24px; letter-spacing: 1.5px; text-transform: uppercase; text-shadow: 2px 2px 0 rgba(0, 0, 0, .22); white-space: nowrap }
.fbf-marca small { font-family: 'Segoe UI', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2.4px; background: #FFD43B; color: #7A1210; padding: 3px 10px; border-radius: 3px; text-shadow: none; transform: rotate(-2deg) }
.fbf-sol { width: 34px; height: 34px; border-radius: 50%; background: #FFD43B; color: #B3261E; display: grid; place-items: center; font: 900 17px 'Segoe UI', sans-serif; text-shadow: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 3px 8px rgba(0, 0, 0, .3); animation: fbfGira 7s linear infinite }
.fbf-fechas { font-weight: 800; font-size: 13px; letter-spacing: .5px; background: rgba(0, 0, 0, .25); border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 4px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fbf-conf { position: fixed; inset: 0; pointer-events: none; z-index: 4; overflow: hidden }
.fbf-conf i { position: absolute; top: 0; width: 8px; height: 15px; border-radius: 2px; opacity: .75; animation: fbfCae linear infinite }
@media (max-width: 700px) { .fbf-marca small, .fbf-fechas { display: none } .fbf-banda { height: 34px } .fbf-marca { font-size: 20px } }

/* ---------- el diseño ES el fondo del carrito vacío (caja web) ---------- */
.per-cartel.fbf { padding: 0 !important }
.fbf-area { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; text-align: center; color: #7A1210;
  background: radial-gradient(circle at 50% 46%, rgba(255, 246, 227, .96) 0 26%, rgba(255, 246, 227, 0) 62%), repeating-conic-gradient(from 0deg at 50% 46%, rgba(217, 56, 30, .10) 0 6deg, rgba(255, 212, 59, .18) 6deg 12deg), linear-gradient(180deg, #FFF1D2, #FFE2A6) }
.fbf-area::before, .fbf-area::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, #D9381E 0 14px, #FFD43B 14px 28px, #FFFFFF 28px 42px) }
.fbf-area::before { top: 0 } .fbf-area::after { bottom: 0 }
.fbf-area .t { position: relative; font-family: 'Anton', 'Impact', sans-serif; font-size: clamp(54px, 9vw, 128px); line-height: .95; letter-spacing: 3px; color: #D9381E; text-shadow: 4px 4px 0 #FFD43B, 8px 8px 0 rgba(122, 18, 16, .20); transform: rotate(-2deg) }
.fbf-area .s { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 16px; font: 800 clamp(13px, 1.6vw, 22px) 'Segoe UI', sans-serif; letter-spacing: 6px; text-transform: uppercase }
.fbf-area .s::before, .fbf-area .s::after { content: ''; width: clamp(24px, 6vw, 90px); height: 3px; background: #D9381E; border-radius: 2px }
.fbf-area .p { margin-top: 8px; font: 600 15px 'Segoe UI', sans-serif; color: #9B3B2E }
.fbf-est { position: absolute; display: grid; place-items: center; font: 900 34px 'Segoe UI', sans-serif; color: #7A1210; background: #FFD43B;
  clip-path: polygon(50% 0, 61% 14%, 78% 8%, 81% 26%, 98% 31%, 89% 47%, 100% 62%, 83% 69%, 82% 88%, 65% 85%, 50% 100%, 36% 85%, 18% 88%, 17% 69%, 0 62%, 11% 47%, 2% 31%, 19% 26%, 22% 8%, 39% 14%) }
.fbf-est > b { display: block; animation: fbfGira 16s linear infinite reverse }
.fbf-est.a { right: 3%; top: 8%; width: 96px; height: 96px; animation: fbfGira 16s linear infinite }
.fbf-est.b { left: 4%; bottom: 11%; width: 72px; height: 72px; background: #D9381E; color: #fff; font-size: 26px; animation: fbfGira 20s linear infinite reverse }
.fbf-est.b > b { animation: fbfGira 20s linear infinite }
.fbf-est.c { left: 9%; top: 12%; width: 44px; height: 44px; background: #fff; color: #D9381E; font-size: 18px; opacity: .9 }
@media (max-width: 700px) { .fbf-est.a, .fbf-est.b { transform: scale(.6) } .fbf-est.c { display: none } .fbf-area .p { font-size: 12px } }

/* ---------- salvapantallas del Administrativo: escena a pantalla completa ---------- */
#protector.con-fiesta .pr-fotos, #protector.con-fiesta .pr-velo { display: none }
#protector.con-fiesta .pr-negocio { visibility: hidden }
#protector.con-fiesta .pr-divisas, #protector.con-fiesta .pr-datos > div, #protector.con-fiesta .aviso89, #protector.con-fiesta .pr-entrar { background: rgba(26, 4, 4, .46) !important; border-color: rgba(255, 255, 255, .28) !important }
.esc-bf { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; background:
  radial-gradient(ellipse 52% 56% at 50% 56%, rgba(32, 4, 4, .62) 0, rgba(32, 4, 4, .34) 60%, transparent 100%),
  repeating-conic-gradient(from 0deg at 50% 38%, rgba(255, 212, 59, .10) 0 5deg, rgba(255, 255, 255, 0) 5deg 10deg),
  linear-gradient(160deg, #5A0A0A 0%, #A81E15 50%, #D4501C 100%) }
.esc-bf * { box-sizing: border-box }
.esc-bf .esc-titulo { position: absolute; top: 3%; left: 0; right: 0; text-align: center; z-index: 5; font-family: 'Anton', 'Impact', sans-serif }
.esc-bf .esc-titulo .t { color: #FFD43B; font-size: clamp(60px, 7.4vw, 140px); line-height: 1; letter-spacing: 4px; text-transform: uppercase; text-shadow: 6px 6px 0 #B3261E, 12px 12px 0 rgba(0, 0, 0, .28); transform: rotate(-2deg) }
.esc-bf .esc-titulo .c { display: inline-block; margin-top: 10px; font: 800 clamp(13px, 1.2vw, 19px) 'Segoe UI', sans-serif; letter-spacing: 5px; text-transform: uppercase; padding: 6px 22px; border-radius: 999px; background: #FFD43B; color: #7A1210; transform: rotate(-1.5deg) }
.esc-bf .estallido { position: absolute; display: grid; place-items: center; text-align: center; font-family: 'Anton', 'Impact', sans-serif; color: var(--tx, #7A1210); background: var(--bg, #FFD43B); width: var(--w); aspect-ratio: 1; line-height: .95; z-index: 2; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35));
  clip-path: polygon(50% 0, 61% 14%, 78% 8%, 81% 26%, 98% 31%, 89% 47%, 100% 62%, 83% 69%, 82% 88%, 65% 85%, 50% 100%, 36% 85%, 18% 88%, 17% 69%, 0 62%, 11% 47%, 2% 31%, 19% 26%, 22% 8%, 39% 14%); font-size: calc(var(--w) * .30); animation: fbfGira var(--d, 26s) linear infinite }
.esc-bf .estallido b { display: block; animation: fbfGira var(--d, 26s) linear infinite reverse; font-weight: 400 }
.esc-bf .etiquetas { position: absolute; left: 0; right: 0; top: 0; z-index: 3 }
.esc-bf .esc-etq { position: absolute; top: 0; width: clamp(78px, 6.6vw, 126px); transform-origin: 50% 0; animation: fbfBalan 3.6s ease-in-out infinite alternate; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)) }
.esc-bf .esc-etq svg { width: 100%; height: auto; display: block }
.esc-bf .confeti { position: absolute; inset: 0; z-index: 4 }
.esc-bf .confeti i { position: absolute; top: 0; width: 8px; height: 15px; border-radius: 2px; opacity: .7; animation: fbfCae linear infinite }
.esc-bf .cinta { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(44px, 5vw, 70px); background: #7A1210; border-top: 4px solid #FFD43B; z-index: 5; overflow: hidden; display: flex; align-items: center }
.esc-bf .cinta div { display: flex; flex: none; white-space: nowrap; font-family: 'Anton', 'Impact', sans-serif; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: 4px; color: #FFE27A; animation: fbfCinta 26s linear infinite }
.esc-bf .cinta span { padding: 0 28px } .esc-bf .cinta span::after { content: '★'; margin-left: 56px; color: #fff }
@media (max-width: 1100px) { .esc-bf .esc-titulo .c { max-width: 92%; white-space: normal; line-height: 1.3; letter-spacing: 3px; font-size: 11px; border-radius: 16px; padding: 5px 16px } }
@media (max-width: 1100px) and (min-width: 761px) and (min-height: 561px) and (max-height: 830px) {
  .esc-bf .esc-titulo { top: 1.2% } .esc-bf .esc-titulo .t { font-size: clamp(34px, 6.4vh, 60px) }
  .esc-bf .esc-titulo .c { font-size: 9.5px; letter-spacing: 2px; padding: 3px 12px; margin-top: 4px; white-space: nowrap; max-width: 96% } }
@media (max-width: 760px) {
  #protector.con-fiesta .pr-marca { display: none }
  .esc-bf .esc-titulo { top: 1.2% } .esc-bf .esc-titulo .t { font-size: clamp(26px, 8.6vw, 54px); letter-spacing: 2px; line-height: 1.1; text-shadow: 2px 2px 0 rgba(0, 0, 0, .4) }
  .esc-bf .esc-titulo .c { font-size: 9.5px; letter-spacing: 1.4px; padding: 4px 12px; margin-top: 6px; line-height: 1.25; max-width: 94% }
  .esc-bf .esc-etq, .esc-bf .estallido { display: none } }
@media (max-height: 560px) and (min-width: 761px) {
  #protector.con-fiesta .pr-marca { display: none }
  .esc-bf .esc-titulo { top: 1.2% } .esc-bf .esc-titulo .t { font-size: clamp(20px, 7.4vh, 36px); letter-spacing: 2px; line-height: 1.05; text-shadow: 2px 2px 0 rgba(0, 0, 0, .4) } .esc-bf .esc-titulo .c { display: none }
  .esc-bf .esc-etq, .esc-bf .estallido { display: none } }
@media (prefers-reduced-motion: reduce) { .fbf-conf, .esc-bf .confeti { display: none } .fbf-sol, .fbf-est, .fbf-est > b, .esc-bf .estallido, .esc-bf .estallido b, .esc-bf .esc-etq, .esc-bf .cinta div { animation: none !important } }
