/* Menú Comedores Dos Pinos — lienzo fijo 1920×1080 escalado con zoom.
   Compatibilidad con WebViews viejos de NoviSign: sin gap en flex, sin aspect-ratio,
   sin vw/vh dentro del lienzo. */
@font-face { font-family: 'Poppins'; font-weight: 500; src: url(assets/fuentes/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; src: url(assets/fuentes/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; src: url(assets/fuentes/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; src: url(assets/fuentes/poppins-800.woff2) format('woff2'); }

:root {
  --verde: #20904F; --verde-osc: #007730; --verde-emp: #00872D; --verde-txt: #006602;
  --amarillo: #F9ED24; --amarillo-linea: #E6E51E; --amarillo-alt: #F4E203;
  --p1: #F1B71C; --p2: #F0893C; --p3: #31C5F4; --p3-punto: #E7789A;
  --naranja: #FF5B02; --rojo-alt: #E8583B; --celeste: #17C3DA;
  --gris: #F2F2F2; --crema: #FAF5EB; --verde-claro: #F0F4DC; --rojo: #EF1D1D;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font-family: 'Poppins', Arial, sans-serif; font-weight: 700; color: #000; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

#lienzo { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: var(--gris); }

/* ---------- Vistas ---------- */
.vista { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; }
.vista.saliendo { animation: salir .6s ease-in forwards; }
@keyframes salir { to { opacity: 0; transform: scale(1.03); } }

/* Panel izquierdo */
.panel { position: absolute; left: 0; top: 0; width: 635px; height: 1080px; overflow: hidden; text-align: center; }
.panel-verde { background: var(--verde-osc); color: #fff; }
.panel-verde .foto { position: absolute; left: -60px; top: -40px; width: 760px; height: 1160px;
  background: url(assets/casado.jpg) center/cover no-repeat; opacity: .32; animation: kenburns 24s ease-in-out infinite alternate; }
.panel-verde .velo { position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,119,48,.55) 0%, rgba(0,119,48,.25) 50%, rgba(0,100,40,.7) 100%); }
.panel-crema { background: var(--crema); color: #000; box-shadow: 6px 0 24px rgba(0,0,0,.25); z-index: 2; }
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.1) translate(-20px,-14px); } }

.panel .contenido { position: relative; height: 100%; }
.logo { position: absolute; left: 52px; top: 82px; width: 530px; height: 107px; }
.logo svg { width: 100%; height: 100%; display: block; }
.panel-verde .logo { color: #fff; }
.panel-crema .logo { color: var(--verde-emp); left: 100px; top: 56px; width: 430px; height: 87px; }

.linea { position: absolute; left: 25px; width: 585px; height: 3px; background: var(--amarillo-linea); transform-origin: center; }
.titulo-chico { position: absolute; left: 0; right: 0; font-size: 78px; line-height: 1; }
.titulo-grande { position: absolute; left: 20px; right: 20px; color: var(--amarillo); line-height: 1; letter-spacing: -2px; white-space: nowrap; }
.semana { position: absolute; left: 0; right: 0; font-size: 38px; line-height: 1.1; }
.pie { position: absolute; left: 40px; right: 30px; bottom: 50px; text-align: left; }
.pie b { display: block; font-size: 42px; line-height: 1.15; }
.pie span { display: block; font-size: 30px; line-height: 1.25; margin-top: 8px; }

/* Cuadros de damero (empacada) */
.damero { position: absolute; left: 41px; width: 560px; height: 38px;
  background:
    linear-gradient(90deg, var(--verde-emp) 50%, transparent 50%) 0 0/37.3px 19px repeat-x,
    linear-gradient(90deg, transparent 50%, var(--verde-emp) 50%) 0 19px/37.3px 19px repeat-x;
  transform-origin: left center; }
.panel-crema .titulo-emp { position: absolute; left: 0; right: 0; top: 270px; font-size: 65px; line-height: 1.15; }
.panel-crema .titulo-grande { color: var(--verde-emp); letter-spacing: -1px; }
.panel-crema .pie span { font-size: 34px; color: #000; }
.panel-crema .pie b { font-size: 38px; color: var(--verde-emp); margin-top: 14px; }
.nota-domingo { position: absolute; left: 0; right: 0; text-align: center; }
.nota-domingo span { display: inline-block; background: var(--verde); color: #fff; font-size: 30px; line-height: 1.15;
  padding: 10px 30px; border-radius: 40px; }

/* ---------- Lado derecho ---------- */
.derecha { position: absolute; left: 635px; top: 0; width: 1285px; height: 1080px; }
.fondo-borroso { position: absolute; left: 0; top: 0; width: 1285px; height: 1080px;
  background: url(assets/casado-desenfocado.jpg) center/cover no-repeat; animation: kenburns 30s ease-in-out infinite alternate; }

/* Tarjeta de proteína (Menú de hoy) */
.tarjeta { position: absolute; left: 70px; width: 1150px; background: var(--gris); border: 2.5px solid var(--verde);
  border-radius: 22px; padding: 18px 30px 0 60px; box-shadow: 0 4px 10px rgba(0,0,0,.12); overflow: hidden; }
.tarjeta .barra { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; border-radius: 22px 0 0 22px; transform-origin: top; }
.tarjeta .rotulo { color: var(--verde); font-size: 48px; line-height: 1; }
.tarjeta .plato { font-size: 58px; line-height: 1.15; white-space: nowrap; overflow: hidden; }
.tarjeta .guarni { font-size: 33px; line-height: 1.2; white-space: nowrap; overflow: hidden; margin-top: 4px; }
.b1 { background: var(--p1); } .b2 { background: var(--p2); } .b3 { background: var(--p3); } .brojo { background: var(--rojo); }

.banda-alt { position: absolute; left: 70px; top: 690px; width: 1150px; height: 118px; background: var(--naranja);
  border-radius: 22px; color: #fff; overflow: hidden; }
.banda-alt .izq { position: absolute; left: 18px; top: 6px; width: 290px; }
.banda-alt .izq b { display: block; font-size: 53px; line-height: 1.15; }
.banda-alt .izq span { display: block; font-size: 25px; line-height: 1; margin-left: 6px; }
.banda-alt .sep { position: absolute; left: 330px; top: 20px; bottom: 20px; width: 3px; background: rgba(255,255,255,.85); }
.banda-alt .der { position: absolute; left: 360px; right: 24px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center;
  color: #FFF4C2; font-size: 40px; line-height: 1.2; }
.banda-alt .der div { white-space: nowrap; overflow: hidden; }
.banda-alt.vacia .der { color: #fff; }

.desayunos { position: absolute; left: 70px; top: 825px; width: 1150px; height: 290px; background: var(--celeste);
  border-radius: 40px 40px 0 0; color: #fff; }
.desayunos .tit { position: absolute; left: 0; width: 395px; top: 80px; text-align: center; }
.desayunos .tit b { display: block; font-size: 54px; line-height: 1; }
.desayunos .tit span { display: block; font-size: 32px; margin-top: 6px; font-weight: 600; }
.desayunos .sep-v { position: absolute; left: 395px; top: 25px; height: 210px; width: 3px; background: rgba(255,255,255,.85); }
.desayunos .sep-h { position: absolute; left: 420px; right: 20px; top: 125px; height: 2px; background: rgba(255,255,255,.85); }
.desayunos .op { position: absolute; left: 415px; right: 20px; height: 110px; }
.desayunos .op1 { top: 14px; } .desayunos .op2 { top: 132px; }
.desayunos .op .n { position: absolute; left: 0; top: 18px; width: 200px; font-size: 38px; line-height: 1; white-space: nowrap; }
.desayunos .op .n small { display: block; font-size: 21px; font-weight: 600; margin-top: 2px; }
.desayunos .op .t { position: absolute; left: 205px; top: 6px; right: 0; font-size: 36px; line-height: 1.12; }
.desayunos .op .t small { display: block; font-size: 19px; line-height: 1.2; font-weight: 600; }

/* Empacada hoy */
.pastilla { position: absolute; left: 0; right: 0; text-align: center; }
.pastilla span { display: inline-block; background: var(--verde); color: #fff; font-size: 44px; line-height: 1; padding: 12px 28px 10px; border-radius: 40px; }
.tarjeta.crema { background: var(--crema); border: 0; box-shadow: 0 6px 18px rgba(0,0,0,.25); padding-top: 14px; }
.tarjeta.vclaro { background: var(--verde-claro); border: 0; box-shadow: 0 6px 18px rgba(0,0,0,.25); padding-top: 14px; }
.tarjeta.crema .rotulo, .tarjeta.vclaro .rotulo { font-size: 44px; }
.tarjeta.crema .plato, .tarjeta.vclaro .plato { font-size: 48px; }

/* ---------- Semanal ---------- */
.semanal { position: absolute; left: 75px; top: 0; width: 1180px; height: 1080px; }
.fila { position: absolute; left: 0; width: 1180px; border-radius: 22px; overflow: visible; }
.fila .cuerpo { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 22px; overflow: hidden;
  border: 2.5px solid var(--verde); box-shadow: 0 4px 10px rgba(0,0,0,.14); }
.fila .dia { position: absolute; left: 0; top: 0; bottom: 0; width: 175px; background: var(--verde); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; line-height: 1.12; }
.fila .dia b { font-size: calc(29px * var(--s)); display: block; width: 100%; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.fila .dia small { display: block; width: 100%; font-size: calc(17px * var(--s)); font-weight: 600; margin-top: 4px; color: #FFF6A8; }
.fila .medio { position: absolute; left: 175px; top: 0; bottom: 0; width: 545px; background: var(--gris);
  display: flex; flex-direction: column; justify-content: center; padding: 0 14px 0 14px; }
.fila .medio div { white-space: nowrap; overflow: hidden; font-size: calc(25px * var(--s)); line-height: 1.3; }
.fila .medio .punto { display: inline-block; width: calc(17px * var(--s)); height: calc(17px * var(--s)); border-radius: 50%; margin-right: 12px; vertical-align: 1px; }
.fila .medio .g { color: var(--verde-txt); font-weight: 600; margin-top: calc(6px * var(--s)); }
.fila .lado { position: absolute; left: 720px; top: 0; bottom: 0; right: 0; background: var(--rojo-alt); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 0 16px 0 22px; }
.fila .lado div { white-space: nowrap; overflow: hidden; line-height: 1.2; font-size: calc(25px * var(--s)); width: 100%; }
.fila .lado .r { color: var(--amarillo-alt); text-align: center; }
.fila .lado .pl { font-size: calc(28px * var(--s)); }
.fila .lado .chico { font-size: calc(20px * var(--s)); }
.fila .lado.sin div { font-size: calc(32px * var(--s)); text-align: center; }
.fila .lado.crema { background: var(--crema); color: #000; padding-left: 34px; }
.fila .lado.crema .r { color: var(--verde); text-align: left; }
.fila.hoy .cuerpo { border-color: var(--amarillo-linea); border-width: 5px; }
.fila.hoy .dia { background: var(--verde-osc); }
.fila .tag-hoy { position: absolute; left: -16px; top: -16px; z-index: 3; background: var(--amarillo); color: var(--verde-osc);
  font-size: 22px; line-height: 1; padding: 8px 14px 6px; border-radius: 14px; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.fila .brillo { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 22px; pointer-events: none;
  box-shadow: 0 0 0 6px rgba(249,237,36,.65); opacity: 0; animation: pulso 2.4s ease-in-out 1.6s infinite; }
@keyframes pulso { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

/* ---------- Aviso (sin menú) ---------- */
.aviso-menu { position: absolute; left: 70px; top: 230px; width: 1150px; text-align: center; }
.aviso-menu b { display: block; font-size: 64px; color: var(--verde); line-height: 1.15; }
.aviso-menu span { display: block; font-size: 36px; margin-top: 24px; color: #333; font-weight: 600; }

/* ---------- Entradas animadas ---------- */
.a { opacity: 0; animation-fill-mode: both; animation-duration: .8s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
.activa .a-subir { animation-name: subir; } .activa .a-bajar { animation-name: bajar; }
.activa .a-der { animation-name: desdeDer; } .activa .a-izq { animation-name: desdeIzq; }
.activa .a-pop { animation-name: pop; animation-duration: 1s; } .activa .a-linea { animation-name: linea; }
.activa .a-barra { animation-name: barra; } .activa .a-abajo { animation-name: desdeAbajo; } .activa .a-fade { animation-name: fundir; }
@keyframes subir { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes bajar { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: none; } }
@keyframes desdeDer { from { opacity: 0; transform: translateX(160px); } to { opacity: 1; transform: none; } }
@keyframes desdeIzq { from { opacity: 0; transform: translateX(-120px); } to { opacity: 1; transform: none; } }
@keyframes desdeAbajo { from { opacity: 0; transform: translateY(300px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.5); } 60% { opacity: 1; transform: scale(1.08); } 80% { transform: scale(.97); } 100% { opacity: 1; transform: none; } }
@keyframes linea { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes barra { from { opacity: 1; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes fundir { from { opacity: 0; } to { opacity: 1; } }

/* Movimiento continuo mientras la vista está en pantalla */
.activa .latido { animation: latido 3.2s ease-in-out 1.8s infinite; }
@keyframes latido { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.activa .vaiven { animation: vaiven 4s ease-in-out 2s infinite; }
@keyframes vaiven { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }

/* ?quieto=1 → sin animaciones (capturas de prueba) */
.quieto .a, .quieto .latido, .quieto .vaiven, .quieto .foto, .quieto .fondo-borroso { animation: none !important; opacity: 1 !important; }
.quieto .brillo { animation: none !important; opacity: 1 !important; }
