/* Por debajo de 901 px el lienzo deja de escalarse y la pagina fluye. A 901 px o mas este archivo solo oculta lo exclusivo de movil. */
.m-solo{display:none}

/* screen: al imprimir, una hoja A4 mide menos de 900 px y la hoja de QR no debe cambiar. */
@media screen and (max-width:900px){
  :root{
    --m-izq:max(16px,env(safe-area-inset-left));
    --m-der:max(16px,env(safe-area-inset-right));
    --m-abajo:env(safe-area-inset-bottom);
    --m-arriba:env(safe-area-inset-top);
    --m-curva:cubic-bezier(.32,.72,0,1);
  }
  html,body{height:auto;min-height:100%;overflow:visible;background:var(--bg)}
  body{-webkit-text-size-adjust:100%}
  .screen{position:static;left:auto;top:auto;width:auto;height:auto;min-height:100dvh;transform:none;overflow:visible}
  /* Con menos de 16 px iOS acerca la pagina al enfocar; !important porque cada control fija su propia fuente. */
  input,select,textarea{font-size:16px!important}
  a:focus-visible,button:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
  .btn{min-height:44px}

  /* Menu */
  .m-barra.m-solo{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:30;min-height:60px;padding:calc(8px + var(--m-arriba)) var(--m-der) 8px var(--m-izq);background:var(--surface);border-bottom:1px solid var(--line)}
  .m-barra img{height:36px;width:auto;display:block}
  .m-menu{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-family:Poppins;font-weight:600;font-size:15px}
  .m-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .m-menu .bd{background:var(--late);color:#fff;font-family:Rubik;font-size:12px;font-weight:600;border-radius:999px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px}
  .m-velo.m-solo{display:block;position:fixed;inset:0;z-index:39;background:rgba(17,24,39,.5);opacity:0;pointer-events:none;transition:opacity .25s var(--m-curva)}
  .menu-abierto,.menu-abierto body{overflow:hidden}
  .menu-abierto .m-velo{opacity:1;pointer-events:auto}
  .adm{display:block;height:auto}
  .rail{position:fixed;left:0;top:0;bottom:0;z-index:40;width:min(300px,84vw);align-items:stretch;gap:4px;padding:calc(12px + var(--m-arriba)) 12px calc(12px + var(--m-abajo)) max(12px,env(safe-area-inset-left));overflow-y:auto;overscroll-behavior:contain;transform:translateX(-100%);visibility:hidden;transition:transform .25s var(--m-curva),visibility 0s linear .25s}
  .menu-abierto .rail{transform:none;visibility:visible;transition:transform .25s var(--m-curva),visibility 0s}
  .rail .mark{width:auto;height:36px;flex:none;align-self:flex-start;margin:4px 0 14px 8px}
  .m-cerrar.m-solo{display:grid;place-items:center;position:absolute;top:calc(8px + var(--m-arriba));right:8px;width:44px;height:44px;border:0;background:none;color:var(--ink-2);font-size:22px}
  .rail a{width:auto;flex:none;flex-direction:row;gap:12px;min-height:48px;padding:0 10px;border-radius:12px;font-size:16px;color:var(--ink-2)}
  .rail a .pillic{width:32px;height:32px;flex:none}
  .rail a .bd{position:static;margin-left:auto;font-size:12px;min-width:22px;height:22px}
  .rail a.on{background:var(--brand-soft);color:var(--brand-on-soft)}
  .rail a.on .pillic{background:none}
  .rail form{flex:none;margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
  .rail .avatar{width:100%;height:48px;border-radius:12px;background:none;color:var(--ink-2);display:flex;align-items:center;gap:12px;padding:0 10px;font-family:Rubik;font-weight:400;font-size:16px;text-align:left}
  .rail .avatar .m-ini{width:32px;height:32px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand-on-soft);font-family:Poppins;font-weight:600;font-size:12px}
  .rail .avatar .m-solo{display:inline}

  /* Encabezado de seccion */
  .main{display:block}
  .ahead{height:auto;flex-wrap:wrap;gap:10px;padding:14px var(--m-der) 14px var(--m-izq)}
  .ahead h1{flex:1 1 100%;margin:0;font-size:22px;line-height:1.25}
  .ahead > span[style*="flex:1"]{display:none}
  .ahead > a:first-child{width:44px;height:44px;place-items:center;margin-left:-10px;margin-right:0;flex:none}
  .ahead > a:first-child + h1{flex:1 1 calc(100% - 54px);font-size:20px}
  .filtros{flex-wrap:wrap;width:100%;gap:8px}
  .rep-form .filtros{width:100%}
  .fchip{flex:1 1 auto;min-width:0;max-width:100%;min-height:44px;padding-top:0;padding-bottom:0}
  .fchip:has(input[type=date]){flex:1 1 0;min-width:150px}
  .fchip select,.fchip input{flex:1;min-width:0;width:100%;min-height:44px}
  .segf{flex:none}
  .segf label,.segf a{display:flex;align-items:center;justify-content:center;min-height:44px}
  .segl{width:100%}
  .segl a{flex:1}
  .live{min-height:44px}
  .campana{width:44px;height:44px;place-items:center;margin-left:auto;margin-right:0}
  .campana b{top:2px;right:2px}
  .bpdf{height:44px;flex:1 1 auto}
  .bgen{height:48px;width:100%}
  .cm-n{flex:1 1 100%;white-space:normal}

  .abody,.abody:has(> .alerts){display:block;padding:16px var(--m-der) calc(24px + var(--m-abajo)) var(--m-izq);overflow:visible}

  /* En vivo: display:contents deja a KPI, plantas y alertas como hijos de .abody, y el refresco de 5 s conserva el orden porque solo cambia el contenido. */
  .abody:has(> .alerts){display:flex;flex-direction:column;gap:0}
  .vivo-main{display:contents}
  .vivo-main > .kpis{order:1}
  .abody > .alerts{order:2}
  .vivo-main > .grid-live{order:3}
  .vivo-main > .legend{order:4}
  .vivo-main > .kpi{order:5}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kpi{padding:12px;gap:10px;min-width:0}
  .kpi .k-ic{width:38px;height:38px;flex:none;font-size:19px}
  .kpi b{font-size:24px}
  .kpi > div{min-width:0}
  .vivo-main > .kpi{flex-wrap:wrap}
  .vivo-main > .kpi > div{flex:1 1 calc(100% - 50px)!important}
  .vivo-main > .kpi > span:last-child{margin-left:48px}
  .grid-live{background:none;border:0;border-radius:0;overflow:visible;margin-top:14px}
  .grid-live table,.grid-live tbody,.grid-live tr,.grid-live td{display:block;width:auto}
  .grid-live thead{display:none}
  .grid-live tbody{display:grid;gap:12px}
  .grid-live tr{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
  .grid-live td,.grid-live tr:last-child td{padding:12px 14px;border-bottom:1px solid #F1F2F4}
  .grid-live tr td:last-child{border-bottom:0}
  .grid-live td.pl{display:flex;align-items:baseline;justify-content:space-between;width:auto;padding:12px 14px;background:#FAFAFA;font-size:17px}
  .grid-live td.pl span{font-size:13px}
  .m-srv.m-solo{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:13px;color:var(--muted)}
  .m-srv b{font-family:Poppins;font-weight:600;font-size:15px;color:var(--ink)}
  .m-srv.ahora,.m-srv.ahora b{color:var(--brand)}
  .dots{flex-wrap:wrap;gap:6px}
  .dot{width:24px;height:24px;font-size:15px}
  .legend{gap:10px 14px}
  .legend > span[style]{margin-left:0!important;flex-basis:100%}
  .legend .dot{width:20px;height:20px;font-size:13px}
  .alerts{width:auto;margin-top:22px}
  .alerts-lista{overflow:visible;padding:0}
  .al .row{flex-wrap:wrap}
  .al .btn{height:44px}
  .al form{display:block}

  /* Listas como tarjetas */
  .cm-list{background:none;border:0;border-radius:0;overflow:visible}
  .lista-tabla .cmt,.cmt,.cmt tbody,.cmt tr,.cmt td{display:block;width:auto;height:auto}
  .cmt colgroup,.cmt thead{display:none}
  .cmt tbody{display:grid;gap:12px}
  .cmt tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
  .lista-tabla .cmt tbody td,.cmt td,.cmt th:first-child,.cmt td:first-child{padding:0;border:0}
  .cmt td{min-width:0}
  .fila-link:hover td{background:none}
  .cmt .vacio{flex:1 1 100%}
  .incs .cm-p{flex:1 1 auto;font-size:17px}
  .incs .cm-p a{display:inline-flex;align-items:center;min-height:44px;min-width:60px}
  .incs .cm-h small{display:inline;margin-left:4px}
  .incs td:nth-child(3){flex:1 1 100%;order:1;font-family:Poppins;font-weight:600;font-size:15px}
  .incs td:nth-child(n+4){order:2}
  .incs td:nth-child(7){flex:1 1 100%;order:3}
  .incs td:nth-child(7)::before{content:"Responsable: ";color:var(--muted)}
  .cmt:not(.incs) .cm-h small{display:inline;margin-left:6px}
  .cmt:not(.incs) td:nth-child(2)::before{content:"· "}
  .cmt:not(.incs) td:nth-child(3)::before{content:"· "}
  .cmt:not(.incs) td:nth-child(n+4){flex:1 1 100%}
  .cm-c{padding-top:8px!important;border-top:1px solid #F1F2F4!important}
  .paginas{flex-wrap:wrap}
  .paginas .btn{height:44px}

  /* Detalle de incidencia */
  .reasignar{flex:1 1 100%}
  .reasignar .fchip{flex:1;max-width:none}
  .ahead > form:not(.reasignar):not(.filtros),.ahead > .bt-cerrar{flex:1 1 100%}
  .bt-enc{width:auto;height:48px;flex:none}
  .ahead > form:not(.reasignar):not(.filtros) .bt-enc,.ahead > .bt-cerrar .bt-enc{width:100%}
  .abody > .inc{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:0}
  .inc-l{width:auto;flex:none}
  .inc-l .ph{height:auto;aspect-ratio:4/3}
  .inc-l .ph.sin{aspect-ratio:auto;min-height:180px}
  .inc-l .ph .stamp{right:12px}
  .inc-r{flex:none}
  .res .r{gap:10px;min-height:44px}
  .sev button{min-height:48px;padding:8px 4px;font-size:15px;min-width:0}
  .bt-guardar{height:48px;width:100%;white-space:normal}
  .inc-ctx-movil.m-solo{display:block;margin-bottom:12px}
  .inc-ctx-movil h2{font-size:24px}
  .inc-ctx{display:none}
  .inc-ctx + .lbl{margin-top:0!important}

  /* Analitica */
  .abody > .ana{padding:0;width:auto;display:flex}
  .row2{flex-direction:column}
  .row2 > .panel,.ana > .panel{width:auto!important;flex:none!important;min-width:0}
  .lado{width:auto;overflow:visible}
  .panel{padding:16px}
  .panel > div[style*="space-between"]{flex-direction:column;gap:10px!important}
  .tbl{table-layout:auto}
  .tbl th,.tbl td{padding-left:6px;padding-right:6px}
  .tbl th:first-child,.tbl td:first-child{padding-left:0}
  .tbl th:last-child,.tbl td:last-child{padding-right:0}
  .rep-form{flex-direction:column;align-items:stretch}
  .cat,.cat tbody,.cat td{display:block;width:auto}
  .cat thead{display:none}
  .cat tbody{display:grid;gap:12px}
  .cat tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 4px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
  .cat td,.cat tr:last-child td{padding:0;border:0;text-align:left;min-width:0}
  .cat td:nth-child(n+3){flex:1 1 100%}
  .cat td:nth-child(1),.cat td:nth-child(2),.cat td:nth-child(2) b{font-family:Poppins;font-weight:600;font-size:16px}
  .cat td:nth-child(2){order:-1;flex:none}
  .cat td:nth-child(1){flex:1 1 0}
  .cat td:nth-child(1)::before{content:"· "}
  .cat td:nth-child(3){color:var(--ink-2);line-height:1.4}
  .cat .m-solo{display:inline}
  .cat .det{display:inline;margin:0;color:inherit;font-size:inherit}
  .cat .srv{white-space:normal;line-height:1.6}
  .reinicio{flex-direction:column;align-items:stretch;gap:12px}
  svg[aria-label="Satisfechos por semana"] text{font-size:17px}

  /* Kiosco */
  .k-wrap{height:auto;min-height:100dvh;overflow:hidden}
  .leaf{display:none}
  .k-top{padding:calc(14px + var(--m-arriba)) var(--m-der) 0 var(--m-izq);gap:12px}
  .k-top img{height:42px}
  .k-ctx{font-size:13px}
  .k-q{margin-top:22px;padding:0 var(--m-der) 0 var(--m-izq)}
  .k-q h1{font-size:28px;line-height:1.2;letter-spacing:0}
  .k-q p{font-size:16px;line-height:1.35}
  .faces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;max-width:560px;margin:22px auto 0;padding:0 var(--m-der) 0 var(--m-izq)}
  .face{width:auto;height:auto;min-height:150px;gap:8px;padding:12px;border-radius:24px}
  .face svg{width:88px;height:88px}
  .face span{font-size:18px}
  .k-com{position:static;transform:none;align-self:center;height:52px;margin:20px 16px;padding:0 24px;font-size:17px}
  .k-foot .hint{font-size:14px;padding-bottom:calc(12px);flex-wrap:wrap}
  .k-foot .checker{height:20px;margin-bottom:0}

  /* El formulario queda en flujo: asi el teclado nunca empuja los botones sobre los campos. */
  .k-wrap .k-q[style]{margin-top:14px!important}
  .kc-body{display:flex;flex-direction:column;flex:none;gap:14px;padding:14px var(--m-der) 0 var(--m-izq)}
  .kc-lbl{font-size:16px;flex-wrap:wrap}
  .kc-lbl small{font-size:14px}
  textarea.kc-ta{flex:none;height:132px;padding:12px 14px;border-radius:16px;line-height:1.4}
  .kc-f{flex:none;height:52px;padding:0 14px;font-size:20px}
  .kc-f input{min-height:44px}
  .kc-acc{gap:10px;padding:16px var(--m-der) calc(16px + var(--m-abajo)) var(--m-izq)}
  .kc-acc .btn{height:52px;font-size:17px;padding:0 18px}
  .kc-acc .btn.pri{flex:1;padding:0 18px}

  .thanks{height:auto;min-height:100dvh;padding:80px 24px calc(40px + var(--m-abajo))}
  .thanks img.logo-w{height:40px;top:calc(16px + var(--m-arriba));left:var(--m-izq)}
  .thanks .big{width:120px;height:120px;margin-bottom:20px}
  .thanks .big svg[style]{width:84px!important;height:84px!important}
  .thanks .big svg.ic[style]{width:1em!important;height:1em!important;font-size:60px!important}
  .thanks h1{font-size:48px;letter-spacing:0}
  .thanks p{font-size:18px;line-height:1.35}

  /* Barra superior de captura */
  .topbar{height:auto;min-height:60px;gap:10px;padding:calc(8px + var(--m-arriba)) var(--m-der) 8px var(--m-izq);position:sticky;top:0;z-index:20}
  .topbar .logo{height:30px}
  .topbar > div:not(.sp){min-width:0;flex:0 1 auto}
  .topbar .t{font-size:17px;line-height:1.2;overflow-wrap:anywhere}
  .topbar .sub{font-size:13px;line-height:1.25}
  .topbar .pill{padding:6px 10px;font-size:13px;flex:none}
  .avatar{width:44px;height:44px;flex:none}
  .atras{width:44px;height:44px;flex:none;justify-content:center;margin-left:-10px;margin-right:0}

  /* Captura */
  .cap-body{display:flex;flex-direction:column;height:auto;gap:16px;padding:16px var(--m-der) calc(92px + var(--m-abajo)) var(--m-izq)}
  .svc{width:auto}
  .svc .card{padding:16px}
  .mini{gap:2px}
  .mini button.row{min-height:44px;margin:0;padding:4px 0;color:var(--ink)}
  .barras .head{flex-wrap:wrap;gap:2px 12px}
  .bgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .bcard{min-height:128px;padding:16px;gap:10px}
  .fab{position:fixed;left:var(--m-izq);right:var(--m-der);bottom:calc(12px + var(--m-abajo));z-index:15;height:60px;padding:0 20px;font-size:18px}
  .fab .ic{font-size:26px}

  /* Escaner: fijo para que la barra de direcciones del navegador no deje una franja al colapsar. */
  html:has(.cam),html:has(.cam) body{overflow:hidden;background:#0B0C0E}
  .cam{position:fixed;inset:0;height:100dvh;--r:min(70vw,54dvh,330px)}
  .cam .tools{top:calc(14px + var(--m-arriba));left:var(--m-izq);right:var(--m-der)}
  .cam .msg{top:calc(84px + var(--m-arriba));width:max-content;max-width:calc(100% - 32px);white-space:normal;text-align:center;font-size:15px;line-height:1.3;border-radius:18px;padding:8px 14px}
  .reticle{top:48%;width:var(--r);height:var(--r)}
  .reticle i{width:48px;height:48px;border-width:5px}
  .reticle .scan{left:14px;right:14px;top:0;animation:barrer-movil 2.2s ease-in-out infinite alternate}
  @keyframes barrer-movil{from{transform:translateY(16px)}to{transform:translateY(calc(var(--r) - 19px))}}
  .sheet{flex-wrap:wrap;gap:12px 14px;padding:24px var(--m-der) calc(16px + var(--m-abajo)) var(--m-izq);z-index:3}
  .sheet .okc{width:48px;height:48px;font-size:26px}
  .sheet > div:not(.okc){flex:1;min-width:0}
  .sheet h3{font-size:20px}
  .sheet p{font-size:14px}
  .sheet .btn{width:100%;height:56px;margin:0;font-size:17px}
  .manual{padding:calc(80px + var(--m-arriba)) var(--m-der) calc(16px + var(--m-abajo)) var(--m-izq);overflow-y:auto}
  .manual h2{font-size:24px}
  .manual p{font-size:15px}
  .manual-lista{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:10px}
  .manual-b{min-height:64px;padding:12px 14px}

  /* Foto y checklist de una barra */
  .ev{display:flex;flex-direction:column;height:auto;gap:16px;padding:16px var(--m-der) calc(16px + var(--m-abajo)) var(--m-izq)}
  #captura.ev{padding-bottom:calc(96px + var(--m-abajo))}
  #captura.ev:has(.foot-motivo:not(:empty)){padding-bottom:calc(144px + var(--m-abajo))}
  .photo{width:100%;aspect-ratio:4/3;flex:none;border-radius:18px}
  .photo .stamp{left:10px;right:10px;bottom:10px;padding:8px 10px;font-size:12px;line-height:1.35}
  .disparo{bottom:14px;width:76px;height:76px;margin-left:-38px;z-index:1}
  .disparo i{width:56px;height:56px}
  .sin-cam{padding:12px 16px;gap:10px}
  .sin-cam > .ic{font-size:32px}
  .sin-cam p{font-size:15px}
  .sin-cam .btn{height:48px;padding:0 18px;font-size:15px;white-space:normal}
  .chk{flex:none}
  .item{padding:12px 14px;gap:12px}
  .seg button{min-height:48px;min-width:72px;justify-content:center}
  .seg span{min-height:40px;justify-content:center}
  .temps{flex-wrap:wrap}
  .field{min-height:48px;flex-wrap:wrap}
  .field input{min-height:44px;width:72px}
  textarea.obs{height:88px}
  .obs-leida{max-height:none}
  #captura .foot{position:fixed;left:0;right:0;bottom:0;z-index:15;flex-wrap:wrap;gap:0;margin:0;padding:10px var(--m-der) calc(10px + var(--m-abajo)) var(--m-izq);background:var(--surface);border-top:1px solid var(--line)}
  #captura .foot .offline{flex:1 1 100%;margin-bottom:8px}
  #captura .foot .foot-motivo{flex:1 1 100%}
  #captura .foot .foot-motivo:not(:empty){margin-bottom:8px}
  #captura .foot .btn{flex:1;height:56px;margin:0}
  .ev:not(#captura) .foot{flex-wrap:wrap;margin:0}

  /* Acceso */
  .ent{height:auto;min-height:100dvh;padding:calc(16px + var(--m-arriba)) var(--m-der) calc(16px + var(--m-abajo)) var(--m-izq)}
  .ent form{width:100%;max-width:420px;padding:24px;gap:14px;border-radius:20px}
  .ent img{height:52px}

  /* Hoja de QR: pagina suelta, sin marco. */
  body.qr{padding:calc(16px + var(--m-arriba)) var(--m-der) calc(24px + var(--m-abajo)) var(--m-izq)}
  body.qr header{gap:12px;margin-bottom:12px;flex-wrap:wrap}
  body.qr header h1{font-size:19px;flex:1 1 150px}
  body.qr header button{min-height:44px}
  body.qr .hoja{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
  body.qr .et{padding:10px}

  @media (prefers-reduced-motion:reduce){
    .rail{transform:none;opacity:0;transition:opacity .2s ease,visibility 0s linear .2s}
    .menu-abierto .rail{opacity:1;transition:opacity .2s ease,visibility 0s}
    .m-velo{transition:opacity .2s ease}
    .reticle .scan{animation:none;top:50%}
  }
}

/* Telefono: el checklist va a todo lo ancho y las graficas pasan a barras de HTML, porque el SVG reducido deja letras de 5 px. */
@media screen and (max-width:767px){
  .m-graf.m-solo{display:grid;gap:14px;margin-top:14px}
  svg[aria-label="Satisfacción por planta"],svg[aria-label="Satisfechos por semana"],svg[aria-label="Comensales por planta"]{display:none!important}
  .m-graf-fila{display:grid;gap:5px}
  .m-graf-tit{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:13px;color:var(--muted)}
  .m-graf-tit b{font-family:Poppins;font-weight:600;font-size:15px;color:var(--ink)}
  .m-pila{display:flex;gap:2px;height:30px;border-radius:7px;overflow:hidden}
  .m-pila i{display:grid;place-items:center;min-width:0;overflow:hidden;font-style:normal;font-size:12px;font-weight:600;color:#fff}
  .m-pila i.osc{color:var(--ink)}
  .m-pista{display:grid;grid-template-columns:minmax(0,1fr) 64px;align-items:center;gap:8px;font-size:13px;font-variant-numeric:tabular-nums;text-align:right}
  .m-pista > span:first-child{display:block;height:14px;border-radius:4px;background:#F1F2F4}
  .m-pista i{display:block;height:100%;border-radius:4px}
  .item{flex-direction:column;align-items:stretch}
  .seg{width:100%}
  .seg button,.seg span{flex:1}
  .bgrid{grid-template-columns:minmax(0,1fr)}
  .bcard{min-height:112px}
  .manual-lista{grid-template-columns:minmax(0,1fr)}
  .topbar .pill{padding:6px;width:32px;height:32px;justify-content:center}
  .topbar .pill span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .topbar .sp{flex:1 0 0}
}

/* Telefono acostado: la altura manda y caben cuatro caritas en fila. */
@media screen and (max-width:900px) and (orientation:landscape) and (max-height:500px){
  .faces{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}
  .face{min-height:124px}
  .face svg{width:64px;height:64px}
  .photo{width:min(100%,520px);align-self:center}
  .m-barra.m-solo{position:static}
  .topbar{position:static}
  .fab{height:48px;font-size:16px}
  #captura .foot{padding-top:6px;padding-bottom:calc(6px + var(--m-abajo))}
  #captura .foot .btn{height:48px}
  #captura.ev{padding-bottom:calc(76px + var(--m-abajo))}
  .cap-body{padding-bottom:calc(76px + var(--m-abajo))}
  .cam{--r:44dvh}
  .cam .msg{top:calc(18px + var(--m-arriba));max-width:calc(100% - 200px)}
  .reticle{top:54%}
  .sheet{flex-wrap:nowrap;padding-top:16px;padding-bottom:calc(10px + var(--m-abajo))}
  .sheet .btn{width:auto;flex:none;height:48px;padding:0 22px}
}
