/* App del comensal (celular primero) */
body { background: var(--k-0B0B0C); }
.marco { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); position: relative; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.marco.sin-barra { padding-bottom: 0; }
.cab { padding: calc(16px + var(--arriba)) 20px 8px; display: flex; align-items: center; gap: 12px; }
.cab h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.seccion { padding: 8px 20px 4px; display: flex; flex-direction: column; gap: 12px; }
.seccion h2 { margin: 6px 0 0; font-size: 18px; }
.buscar { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.buscar input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 16px; }

/* Tarjetas de restaurante */
.rest { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.rest .portada { height: 170px; border-radius: 18px; background: #2A1D15; overflow: hidden; position: relative; }
.rest .portada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rest .portada .sinfoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(212,180,131,.45); }
.rest .portada .sinfoto svg { width: 64px; height: 64px; }
.pastilla { position: absolute; left: 10px; top: 10px; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; background: var(--gold); color: var(--k-141414); }
.pastilla.cerrado { background: rgba(17,17,18,.82); color: var(--ink); }
.rest .linea { display: flex; align-items: center; gap: 10px; }
.logo { width: 42px; height: 42px; flex: none; border-radius: 12px; overflow: hidden; background: var(--gold); color: var(--k-141414); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; box-shadow: 0 0 0 1px var(--line); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.rest b { font-size: 17px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rest .sub { font-size: 13px; color: var(--muted); }

/* Barra inferior */
.barra { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; height: calc(70px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--k-121212); border-top: 1px solid var(--line); z-index: 700; }
.barra a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 600; }
.barra a.on { color: var(--gold); }
.barra svg { width: 22px; height: 22px; }

/* Pantalla del restaurante */
.banner { position: relative; height: 240px; background: #2A1D15; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner .ver { position: absolute; inset: 0; border: 0; background: transparent; cursor: zoom-in; }
.banner .fotos-chip { position: absolute; right: 16px; bottom: 50px; height: 28px; padding: 0 10px; border-radius: 14px; background: rgba(18,18,18,.75); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; pointer-events: none; }
.atras { position: absolute; left: 16px; top: calc(14px + var(--arriba)); width: 42px; height: 42px; border-radius: 21px; border: 0; background: rgba(18,18,18,.75); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; z-index: 2; }
.ficha-rest { padding: 0 20px; margin-top: -40px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.ficha-rest .titulo-r { display: flex; align-items: flex-end; gap: 14px; }
.ficha-rest .cara { width: 80px; height: 80px; flex: none; border-radius: 24px; overflow: hidden; border: 3px solid var(--bg); background: var(--gold); color: var(--k-141414); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.ficha-rest .cara img { width: 100%; height: 100%; object-fit: cover; }
.ficha-rest h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.15; flex: 1; min-width: 0; }
.datos { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.datos .oro { color: var(--gold); font-weight: 600; }
.datos .rojo { color: var(--bad); font-weight: 600; }
.etiq { display: flex; flex-wrap: wrap; gap: 6px; }
.etiq span { height: 28px; display: flex; align-items: center; padding: 0 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.acciones-r { display: flex; gap: 8px; }
.acciones-r .btn { flex: 1; height: 54px; border-radius: 16px; }
.cats-r { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; gap: 6px; overflow-x: auto; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.plat { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.plat .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.plat .t b { font-size: 15px; }
.plat .t .d { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plat .t .p { font-family: Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 14px; }
.plat .img { width: 96px; height: 96px; flex: none; border-radius: 14px; overflow: hidden; background: #2A1D15; position: relative; }
.plat .img img { width: 100%; height: 100%; object-fit: cover; }
.mas { position: absolute; right: 6px; bottom: 6px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 16px; border: 0; background: var(--ink); color: var(--k-141414); font-weight: 800; font-size: 15px; }
.plat.agotado { opacity: .45; }
.carrito { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(82px + env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 488px; height: 56px; border-radius: 16px; border: 0; background: var(--gold); color: var(--k-141414); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; padding: 0 18px; z-index: 21; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.carrito .n { width: 26px; height: 26px; border-radius: 13px; background: var(--k-141414); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.carrito span:nth-child(2) { flex: 1; text-align: left; }

/* Hojas (opciones del platillo, galería) */
.velo { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.hoja { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.hoja .asa { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line2); }
.hoja .foto-h { height: 200px; margin: 0 -20px; overflow: hidden; background: #2A1D15; }
.hoja .foto-h img { width: 100%; height: 100%; object-fit: cover; }
.opc { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font-size: 14px; font-weight: 600; }
.opc.on { border-color: var(--gold); background: var(--panel); }
.opc .caja { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line2); flex: none; }
.opc.on .caja { background: var(--gold); border-color: var(--gold); }
.opc span:nth-child(2) { flex: 1; }
.contador { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 14px; height: 52px; padding: 0 4px; }
.contador button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 22px; border-radius: 10px; }
.contador span { min-width: 28px; text-align: center; font-weight: 700; font-family: Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.galeria-v { position: fixed; inset: 0; z-index: 60; background: #050505; display: flex; flex-direction: column; }
.galeria-v .top { padding: calc(12px + var(--arriba)) 16px 12px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.galeria-v .tira { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.galeria-v .tira div { flex: none; width: 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.galeria-v .tira img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Formularios del comensal */
.paso { display: flex; flex-direction: column; gap: 8px; }
.paso > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.horas { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.linea-ped { display: flex; gap: 10px; align-items: baseline; font-size: 14px; padding: 6px 0; }
.linea-ped .q { font-family: Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--muted); }
.linea-ped .nm { flex: 1; min-width: 0; }
.linea-ped .nt { display: block; font-size: 12px; color: var(--muted); }
.linea-ped .pr { font-family: Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.linea-ped button { border: 0; background: none; color: var(--muted); font-size: 16px; width: 28px; }
.total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); }
.aviso-caja { padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.45; }
.pie-fijo { position: sticky; bottom: 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.pie-fijo .btn { width: 100%; height: 56px; border-radius: 16px; font-size: 16px; }
.reserva { display: flex; flex-direction: column; gap: 8px; }
.reserva .fila { display: flex; gap: 10px; align-items: center; }
.reserva .fila b { flex: 1; min-width: 0; }
.estado-r { height: 24px; display: flex; align-items: center; padding: 0 10px; border-radius: 12px; font-size: 11px; font-weight: 700; background: var(--panel2); color: var(--muted); }
.estado-r.confirmada { background: rgba(212,180,131,.15); color: var(--gold); }
.check { width: 72px; height: 72px; border-radius: 36px; background: rgba(124,199,154,.15); color: var(--ok); display: flex; align-items: center; justify-content: center; align-self: center; }

/* Mapa */
.mapa-pant { height: 100vh; height: 100dvh; padding-bottom: 0; overflow: hidden; }
#mapa { position: absolute; inset: 0; background: var(--k-0E0E10); }
.leaflet-container { background: var(--k-0E0E10); font-family: Inter, system-ui, sans-serif; }
.leaflet-control-attribution { background: rgba(18,18,18,.7) !important; color: var(--k-8A8A90) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--k-A1A1A6) !important; }
.leaflet-bottom.leaflet-right { bottom: calc(300px + env(safe-area-inset-bottom)); }
.mapa-top { position: absolute; left: 16px; right: 16px; top: calc(14px + var(--arriba)); display: flex; gap: 8px; z-index: 500; }
.mapa-chip { flex: 1; min-width: 0; height: 52px; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-radius: 16px; background: rgba(28,28,30,.94); border: 1px solid var(--line); font-size: 13px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.mapa-chip b { font-size: 15px; }
.mapa-chip .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapa-btn { width: 48px; height: 48px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: rgba(28,28,30,.94); color: var(--ink); font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
#m-yo { height: 52px; width: 52px; border-radius: 16px; color: #4C8DFF; }
.mapa-zoom { position: absolute; right: 16px; top: calc(84px + var(--arriba)); display: flex; flex-direction: column; gap: 8px; z-index: 500; }
.mapa-hoja { position: absolute; left: 0; right: 0; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 500; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 20px 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
.mapa-hoja .asa { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line2); }
.m-sel { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.m-foto { width: 84px; height: 84px; flex: none; border-radius: 14px; overflow: hidden; background: #2A1D15; display: flex; align-items: center; justify-content: center; }
.m-foto img { width: 100%; height: 100%; object-fit: cover; }
.m-lista { display: flex; gap: 6px; overflow-x: auto; }
.yo { display: block; width: 18px; height: 18px; border-radius: 9px; background: #4C8DFF; border: 3px solid #fff; box-sizing: border-box; animation: pulso 2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(76,141,255,.5); } 100% { box-shadow: 0 0 0 18px rgba(76,141,255,0); } }
.pin-ico { background: none; border: 0; }
.pin { position: absolute; left: 0; bottom: 0; transform: translate(-50%, -12px); display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--k-1C1C1E); border: 1px solid var(--k-3A3A3F); color: var(--k-F5F5F2); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.45); cursor: pointer; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 2px; height: 11px; margin-left: -1px; background: var(--k-D4B483); border-radius: 1px; }
.pin .bd { min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 12px; background: var(--k-D4B483); color: var(--k-141414); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.pin.on { background: var(--k-D4B483); border-color: var(--k-D4B483); color: var(--k-141414); height: 40px; font-size: 14px; }
.pin.on .bd { background: var(--k-141414); color: var(--k-D4B483); }
.pin.cerr .bd { background: var(--k-3A3A3F); color: var(--k-A1A1A6); }
.pin.cerr::after { background: var(--k-6A6A70); }
.pin .nm { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

/* Inicio (diseño original) */
.inicio { padding: calc(18px + var(--arriba)) 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.ini-cab { display: flex; justify-content: space-between; align-items: center; }
.zona { display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; color: var(--ink); text-decoration: none; min-width: 0; }
.zona .zn { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 22px; background: var(--panel2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--gold); text-decoration: none; }
.buscar { padding: 0 6px 0 16px; height: 50px; }
.buscar .filtro { width: 38px; height: 38px; flex: none; border-radius: 10px; border: 0; background: var(--panel2); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.buscar .filtro.on { background: var(--gold); color: var(--k-141414); }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sec h2 { margin: 0; font-size: 18px; font-weight: 700; }
.flechas { display: flex; gap: 6px; }
.flechas button { width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 18px; }
.carrusel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: 0 -20px; padding: 0 20px; }
#c-cats { gap: 8px; scroll-snap-type: x proximity; }
.chip.grande { height: 40px; padding: 0 16px; scroll-snap-align: start; flex: none; }
.tarj { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.tarj .ft { border-radius: 16px; position: relative; overflow: hidden; }
.tarj .ft img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tarj .rango { position: absolute; left: 10px; bottom: 8px; font-size: 26px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.tarj .tl { display: flex; align-items: center; gap: 10px; }
.tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tx b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg { flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--k-141414); box-shadow: 0 0 0 1px var(--line); }
.lg img { width: 100%; height: 100%; object-fit: cover; }
.fila-r { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.fila-r .tx b { font-size: 15px; }
.fila-r .tx span { font-size: 12px; }
.fila-r .st { font-size: 12px; font-weight: 600; flex: none; }

/* Mapa 3D (diseño original) */
.mapa-velo { position: absolute; left: 0; right: 0; top: 0; height: 170px; background: linear-gradient(180deg, rgba(18,18,18,.92), rgba(18,18,18,0)); pointer-events: none; z-index: 2; }
.mapa-top { position: absolute; left: 16px; right: 16px; top: calc(14px + var(--arriba)); display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.buscar.mb { flex: 1; min-width: 0; background: rgba(28,28,30,.96); padding: 0 16px; }
.mapa-btn.grande { width: 50px; height: 50px; border-radius: 14px; color: var(--ink); }
.zona-chip { align-self: flex-start; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(28,28,30,.96); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.mapa-zoom { top: auto; bottom: calc(310px + env(safe-area-inset-bottom)); z-index: 5; }
.mapa-hoja { z-index: 6; }
.maplibregl-ctrl-attrib { background: rgba(18,18,18,.7) !important; color: var(--k-8A8A90) !important; font-size: 10px; }
.maplibregl-ctrl-attrib a { color: var(--k-A1A1A6) !important; }
.maplibregl-ctrl-bottom-right { bottom: calc(300px + env(safe-area-inset-bottom)) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
.pin3d { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.pin3d .pl { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--k-1C1C1E); border: 1px solid var(--k-3A3A3F); color: var(--k-F5F5F2); font: 700 13px Inter, sans-serif; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.pin3d .bd { min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 11px; background: #2A3A2E; color: var(--k-7CC79A); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.pin3d .nm { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.pin3d .pt { width: 2px; height: 16px; background: var(--k-6A6A70); border-radius: 1px; }
.pin3d .sombra { width: 34px; height: 12px; margin-top: -6px; border-radius: 50%; background: radial-gradient(rgba(212,180,131,.35), rgba(212,180,131,0) 70%); }
.pin3d.on .pl { background: var(--k-D4B483); border-color: var(--k-D4B483); color: var(--k-141414); height: 40px; font-size: 14px; }
.pin3d.on .bd { background: var(--k-141414); color: var(--k-D4B483); }
.pin3d.on .pt { background: var(--k-D4B483); height: 26px; }
.pin3d.cerr .bd { background: var(--k-2E2E33); color: var(--k-A1A1A6); }

.cred { font-size: 10px; color: var(--faint); order: 9; }
.cred a { color: var(--muted); }

.estado-r.listo { background: rgba(124,199,154,.18); color: var(--ok); }
.estado-r.entregado, .estado-r.llego { color: var(--muted); }

/* Franja de mesa abierta */
.franja-mesa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 10px 0; border-radius: 16px; background: rgba(212,180,131,.12); border: 1px solid rgba(212,180,131,.45); color: var(--ink); text-decoration: none; }
.inicio > .franja-mesa { margin: 6px 20px 0; }
.franja-mesa b { display: block; font-size: 14px; } .franja-mesa span span, .franja-mesa > span > span { font-size: 12px; color: var(--muted); }
.franja-mesa .pt { width: 10px; height: 10px; border-radius: 5px; background: var(--ok); flex: none; box-shadow: 0 0 0 4px rgba(124,199,154,.2); }
.franja-mesa .v { color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; }
.fila-enlace { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
/* Ticket de papel (diseño original) */
.tk { background: #F7F4EE; color: #1A1A1A; border-radius: 6px; padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 9px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5));
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/6px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/6px 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/6px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/6px 51% repeat-x; }
.tk .cut { border-top: 1.5px dashed #CFC8BB; }
.tk-m { font-size: 11px; color: #6A665F; }
.tk-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 12px; } .tk-3 > span { display: flex; flex-direction: column; min-width: 0; } .tk-3 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-l { display: flex; gap: 8px; font-size: 13px; }
.sello-pagado { align-self: center; margin-top: 6px; padding: 6px 16px; border: 2.5px solid #2E7D4F; color: #2E7D4F; border-radius: 8px; font-size: 18px; font-weight: 800; letter-spacing: .12em; transform: rotate(-6deg); }

/* Reseñas */
.resena { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.resena .r1 { display: flex; align-items: center; gap: 10px; }
.resena .est { color: var(--gold); letter-spacing: 1px; font-size: 13px; } .resena .est span { color: var(--line); }
.resena p { margin: 0; font-size: 14px; line-height: 1.5; color: #DADAD6; }
.resena .resp { font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: var(--panel); } .resena .resp b { display: block; color: var(--ink); font-size: 12px; margin-bottom: 2px; }
.estrellas-sel { display: flex; justify-content: center; gap: 8px; }
.estrellas-sel button { width: 50px; height: 50px; border: 0; background: transparent; font-size: 38px; line-height: 1; color: var(--line); cursor: pointer; }
.estrellas-sel button.on { color: var(--gold); }

/* ===== Tus reservas (diseño MisReservas) ===== */
.rv-cab { padding: calc(30px + var(--arriba)) 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-cab b { font-size: 28px; font-weight: 700; } .rv-cab .muted { font-size: 12px; }
.rv-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--k-2A2A2D); margin: 14px 20px 0; }
.rv-seg button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rv-seg button[aria-selected="true"] { background: var(--panel); color: var(--ink); }
#ancla-mesa + .franja-mesa, .marco > .franja-mesa { margin: 12px 20px 0; }
.rv-lista { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.rv-card { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.rv-abre { width: 100%; display: flex; gap: 14px; padding: 14px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.rv-dia { width: 58px; height: 64px; flex: none; border-radius: 14px; background: #2A2520; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.rv-dia small { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--gold); } .rv-dia small:last-child { font-size: 10px; letter-spacing: 0; font-weight: 400; }
.rv-dia b { font-size: 24px; font-weight: 800; line-height: 1; }
.rv-dia.hoy { background: var(--gold); } .rv-dia.hoy small, .rv-dia.hoy b { color: var(--k-141414); }
.rv-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.rv-tx .r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rv-tx .r1 b { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card em, .rv-det-cab em { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--k-2A2A2D); color: var(--muted); white-space: nowrap; flex: none; }
em.oro { background: var(--gold) !important; color: var(--k-141414) !important; } em.ok { background: rgba(124,199,154,.18) !important; color: var(--ok) !important; } em.oro-txt { color: var(--gold) !important; }
.rv-eta { font-size: 12px; }
.rv-pie { display: flex; align-items: center; gap: 8px; padding: 0 14px 14px; }
.rv-est { display: flex; gap: 2px; flex: 1; }
.rv-est button { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--k-3A3A3D); font-size: 20px; line-height: 1; cursor: pointer; }
.rv-est button.on { color: var(--gold); }
.rv-otra { height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--gold); color: var(--k-141414); font-size: 13px; font-weight: 700; text-decoration: none; flex: none; }
.rv-vacio { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.rv-vacio b { font-size: 17px; font-weight: 600; } .rv-vacio .muted { font-size: 14px; } .rv-vacio .btn { margin-top: 8px; }
.rv-det { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; color: var(--ink); }
.rv-det-cab { padding: calc(20px + var(--arriba)) 20px 0; display: flex; align-items: center; gap: 12px; max-width: 560px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.rv-det-cab b { flex: 1; font-size: 18px; font-weight: 700; }
.rv-atras { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.rv-det-cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; max-width: 560px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.tk-papel { background: #F7F4EE; color: #1A1A1A; border-radius: 6px; padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 9px; filter: drop-shadow(0 14px 26px rgba(0,0,0,.35));
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/6px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/6px 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/6px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/6px 51% repeat-x; }
.tk-papel .c { text-align: center; display: flex; flex-direction: column; gap: 2px; } .tk-papel .c b { font-size: 20px; font-weight: 800; } .tk-papel .c small, .tk-papel .gris { font-size: 11px; color: #6A665F; }
.tk-papel .gris { font-size: 13px; }
.tk-papel .corte { border-top: 1.5px dashed #CFC8BB; }
.tk-papel .g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 12px; }
.tk-papel .g2 span { display: flex; flex-direction: column; } .tk-papel .g2 small { color: #6A665F; font-size: 12px; } .tk-papel .g2 b { font-weight: 600; }
.tk-papel .ln { display: flex; gap: 8px; font-size: 13px; } .tk-papel .ln span:first-child { width: 24px; } .tk-papel .ln span:nth-child(2) { flex: 1; }
.tk-papel .tot { display: flex; justify-content: space-between; align-items: baseline; } .tk-papel .tot small { font-size: 13px; color: #6A665F; } .tk-papel .tot b { font-size: 22px; font-weight: 800; }
.tk-papel .qr { display: flex; justify-content: center; padding-top: 6px; }
.rv-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .rv-dos .btn { height: 50px; }
.rv-cancelar { height: 48px; border-radius: 14px; border: 1px solid var(--k-3A2220); background: transparent; color: var(--bad2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ===== Perfil del comensal (diseño PerfilCliente) ===== */
.pf { padding: calc(36px + var(--arriba)) 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.pf h1 { margin: 0; font-size: 28px; font-weight: 700; }
.pf section { display: flex; flex-direction: column; gap: 8px; }
.pf-yo { display: flex; align-items: center; gap: 14px; }
.pf-yo .av { width: 64px; height: 64px; flex: none; border-radius: 32px; background: var(--k-2A2A2D); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--gold); }
.pf-yo .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-yo .nom { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; text-align: left; }
.pf-yo small { font-size: 13px; color: var(--muted); }
.pf-id { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.pf-id .t { flex: 1; display: flex; flex-direction: column; gap: 4px; } .pf-id small { font-size: 12px; color: var(--muted); } .pf-id small:last-child { font-size: 11px; }
.pf-id b { font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.pf-id button { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-stats div { padding: 12px 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pf-stats b { font-size: 20px; font-weight: 700; } .pf-stats small { font-size: 11px; color: var(--muted); }
.pf-tit { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.pf-sub { font-size: 12px; color: var(--muted); margin-top: -4px; }
.pf-caja { display: flex; flex-direction: column; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.pf-caja > * + * { border-top: 1px solid var(--line) !important; }
.pf-pago { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.pf-pago .chip { width: 40px; height: 28px; flex: none; border-radius: 7px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.pf-pago .chip.mas { border-style: dashed; font-size: 16px; font-weight: 400; }
.pf-pago .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .pf-pago .t b { font-size: 15px; font-weight: 600; } .pf-pago .t small { font-size: 12px; color: var(--muted); }
.pf-pago.off .t b { font-size: 14px; font-weight: 400; }
.pf-pago .radio { width: 22px; height: 22px; flex: none; border-radius: 11px; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; } .pf-pago .radio i { width: 10px; height: 10px; border-radius: 5px; background: var(--gold); }
.pf-gustos { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-gustos button { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pf-gustos button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pf-fila { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; width: 100%; box-sizing: border-box; }
div.pf-fila { cursor: default; }
.pf-fila .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .pf-fila .t b { font-size: 15px; font-weight: 600; } .pf-fila .t small { font-size: 12px; color: var(--muted); }
.pf-fila.rojo .t b { color: var(--k-E07A6F); }
.pf-sw { width: 50px; height: 30px; flex: none; border-radius: 15px; border: 0; padding: 3px; background: var(--k-2A2A2D); display: flex; justify-content: flex-start; cursor: pointer; }
.pf-sw span { width: 24px; height: 24px; border-radius: 12px; background: #fff; } .pf-sw.on { background: #3FA36B; justify-content: flex-end; }
.pf-chico { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pf-negocio { min-height: 48px; border-radius: 14px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ===== Página del restaurante (diseño ReservarFlujo · restaurante) ===== */
.rs { padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important; }
.rs-portada { position: relative; height: 230px; background: #2A1D15; overflow: hidden; }
.rs-portada img, .rs-portada > svg { width: 100%; height: 230px; object-fit: cover; display: block; }
.rs-portada .sombra { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,.55) 0%, rgba(18,18,18,0) 30%, rgba(18,18,18,0) 60%, var(--k-121212) 100%); pointer-events: none; }
.rs-portada .ver { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.rs-portada .chip-f { position: absolute; right: 16px; bottom: 14px; height: 28px; padding: 0 10px; border-radius: 14px; background: rgba(18,18,18,.72); color: #fff; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; pointer-events: none; }
.rs-portada .atras { position: absolute; left: 16px; top: calc(16px + var(--arriba)); width: 44px; height: 44px; border-radius: 22px; background: rgba(18,18,18,.7); color: var(--k-F5F5F2); display: flex; align-items: center; justify-content: center; }
.rs-ficha { padding: 0 20px; margin-top: -38px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.rs-nom { display: flex; align-items: flex-end; gap: 14px; }
.rs-nom .cara { width: 78px; height: 78px; flex: none; border-radius: 24px; overflow: hidden; border: 3px solid var(--k-121212); background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--k-141414); }
.rs-nom .cara img { width: 100%; height: 100%; object-fit: cover; }
.rs-nom h1 { flex: 1; min-width: 0; margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; padding-bottom: 4px; }
.rs-meta { display: flex; flex-direction: column; gap: 4px; margin-top: -4px; font-size: 14px; color: var(--muted); }
.rs-meta a { color: var(--muted); text-decoration: none; }
.rs-meta .h { font-size: 13px; color: var(--gold); font-weight: 600; } .rs-meta .h i { font-style: normal; color: var(--muted); } .rs-meta .h i.ok { color: var(--k-8FD6A8); }
.rs-desc { margin: 0; font-size: 14px; color: var(--k-C9C9CC); line-height: 1.5; }
.rs-inst { display: flex; flex-wrap: wrap; gap: 6px; } .rs-inst span { height: 28px; display: flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--panel); font-size: 12px; }
.rs-cartat { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; } .rs-cartat b { font-size: 20px; font-weight: 700; } .rs-cartat small { font-size: 12px; color: var(--muted); }
.rs-cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px; position: sticky; top: calc(var(--sb, 0px) + 10px); z-index: 4; background: var(--bg); padding-top: 6px; padding-bottom: 6px; }
.rs-cats button { flex: none; height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.rs-cats button small { font-size: 11px; opacity: .6; }
.rs-cats button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rs-dest { position: relative; height: 190px; border-radius: 20px; overflow: hidden; background: #2A1D15; cursor: pointer; }
.rs-dest img, .rs-dest > svg { width: 100%; height: 190px; object-fit: cover; display: block; }
.rs-dest .sombra { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,0) 35%, rgba(18,18,18,.92) 100%); }
.rs-dest em { position: absolute; right: 14px; top: 14px; height: 26px; display: flex; align-items: center; padding: 0 10px; border-radius: 13px; background: var(--gold); color: var(--k-141414); font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.rs-dest .q { position: absolute; left: 14px; top: 14px; min-width: 26px; height: 26px; padding: 0 7px; box-sizing: border-box; border-radius: 13px; background: var(--gold); color: var(--k-141414); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rs-dest .pie { position: absolute; left: 16px; right: 10px; bottom: 12px; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.rs-dest .pie .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .rs-dest .pie b { font-size: 18px; font-weight: 700; } .rs-dest .pie b i { font-style: normal; color: var(--gold); font-weight: 600; } .rs-dest .pie small { font-size: 12px; color: var(--k-C9C9CC); line-height: 1.35; }
.rs .mas { width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: #fff; font: inherit; font-size: 34px; font-weight: 300; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.7); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; position: static; }
.rs-grupo { display: flex; flex-direction: column; }
.rs-sub { display: flex; align-items: center; gap: 10px; padding: 8px 0 4px; } .rs-sub b { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--gold); } .rs-sub i { flex: 1; height: 1px; background: var(--line); }
.rs-plato { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 48px 12px 12px; margin-bottom: 10px; border-radius: 20px; background: var(--k-18181A); cursor: pointer; }
.rs-plato.agotado { opacity: .45; cursor: default; }
.rs-plato .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rs-plato .t > b { font-size: 15px; font-weight: 700; line-height: 1.25; } .rs-plato .d { font-size: 12px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-plato .p { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; } .rs-plato .p b { font-size: 14px; font-weight: 600; }
.rs-plato .p em { font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--k-3A3A3D); color: var(--k-C9C9CC); }
.rs-plato .f { position: relative; width: 96px; height: 96px; flex: none; }
.rs-plato .f .i { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: #2A1D15; } .rs-plato .f .i img, .rs-plato .f .i svg { width: 96px; height: 96px; object-fit: cover; display: block; }
.rs-plato .f .q { position: absolute; left: -6px; top: -6px; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 12px; background: var(--gold); color: var(--k-141414); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rs-plato .f .mas { position: absolute; right: 0; bottom: 0; }
.rs-resenas { display: flex; flex-direction: column; gap: 10px; }
.rs-barra { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; box-sizing: border-box; z-index: 20; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--k-121212); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.rs-carrito { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.rs-carrito .a, .rs-carrito .b { display: flex; align-items: center; gap: 8px; } .rs-carrito small { color: var(--muted); font-size: 13px; }
.rs-carrito .n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--gold); color: var(--k-141414); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rs-barra .tres { display: flex; gap: 8px; }
.rs-barra .tres .btn { flex: 1; height: 54px; border-radius: 16px; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.rs-barra .tres .btn.oro { flex: 1.1; }
.rs-barra .tres .btn.apagado { opacity: .4; pointer-events: none; }

/* ===== Reservar por pasos (diseño ReservarFlujo) ===== */
.rf { padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important; }
.rf-cab { padding: calc(20px + var(--arriba)) 20px 0; display: flex; align-items: center; gap: 12px; }
.rf-cab > span { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin-right: 56px; } .rf-cab small { font-size: 12px; color: var(--muted); } .rf-cab b { font-size: 20px; font-weight: 700; }
.rf-barras { display: flex; gap: 4px; padding: 12px 20px 0; } .rf-barras i { flex: 1; height: 3px; border-radius: 2px; background: var(--k-2A2A2D); } .rf-barras i.on { background: var(--gold); }
.rf-cuerpo { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.rf-cal { display: flex; flex-direction: column; gap: 10px; }
.rf-cal .m { display: flex; align-items: center; justify-content: space-between; } .rf-cal .m b { font-size: 16px; font-weight: 700; }
.rf-cal .m button { width: 38px; height: 38px; border-radius: 19px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 18px; cursor: pointer; } .rf-cal .m button:disabled { opacity: .35; }
.rf-cal .g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.rf-cal .g small { font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 0; }
.rf-cal .g button { height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.rf-cal .g button.hoy { border-color: var(--line); font-weight: 700; }
.rf-cal .g button.on { background: var(--gold); color: var(--k-141414); font-weight: 700; border-color: var(--gold); }
.rf-cal .g button:disabled { opacity: .3; cursor: default; }
.rf-blq { display: flex; flex-direction: column; gap: 10px; }
.rf-t { font-size: 13px; font-weight: 600; color: var(--muted); }
.rf-horas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rf-horas button { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rf-horas button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rf-pers { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--panel); }
.rf-pers > span { display: flex; flex-direction: column; } .rf-pers small { font-size: 13px; color: var(--muted); } .rf-pers b { font-size: 18px; font-weight: 700; }
.rf-pers div { display: flex; gap: 8px; } .rf-pers button, .rf-res .cv button { width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--k-2A2A2D); color: var(--ink); font: inherit; font-size: 20px; cursor: pointer; }
.rf-plano { position: relative; height: 330px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: var(--k-151517); }
.rf-ley { display: flex; gap: 16px; font-size: 12px; color: var(--muted); } .rf-ley span { display: flex; align-items: center; gap: 6px; } .rf-ley i { width: 8px; height: 8px; border-radius: 4px; }
.rf-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--k-2A2A2D); overflow-x: auto; }
.rf-seg button { flex: 1 0 auto; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rf-seg button[aria-selected="true"] { background: var(--panel); color: var(--ink); }
.rf-platos { display: flex; flex-direction: column; gap: 10px; }
.rf-sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold); padding: 6px 2px 0; }
.rf-plato { display: flex; gap: 12px; padding: 10px; border-radius: 18px; background: var(--panel); }
.rf-plato .f { width: 92px; height: 92px; flex: none; border-radius: 14px; overflow: hidden; background: #2A1D15; cursor: pointer; } .rf-plato .f img, .rf-plato .f svg { width: 92px; height: 92px; object-fit: cover; display: block; }
.rf-plato .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .rf-plato .t > b { font-size: 15px; font-weight: 600; cursor: pointer; }
.rf-plato .t small { font-size: 12px; color: var(--muted); line-height: 1.35; max-height: 32px; overflow: hidden; }
.rf-plato .b { display: flex; align-items: center; justify-content: space-between; margin-top: auto; } .rf-plato .b > span { font-size: 14px; font-weight: 600; }
.rf-plato .b div { display: flex; align-items: center; gap: 6px; }
.rf-plato .b button { width: 34px; height: 34px; border-radius: 10px; border: 0; font: inherit; font-size: 18px; cursor: pointer; } .rf-plato .b .m { background: var(--k-2A2A2D); color: var(--ink); } .rf-plato .b .p { background: var(--ink); color: var(--k-141414); }
.rf-plato .b .q { min-width: 18px; text-align: center; font-weight: 700; color: var(--gold); }
.rf-res { padding: 14px 16px; border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; } .rf-res > b { font-size: 15px; font-weight: 700; } .rf-res > small { font-size: 13px; color: var(--muted); }
.rf-res .cv { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; } .rf-res .cv small { font-size: 13px; color: var(--muted); } .rf-res .cv div { display: flex; align-items: center; gap: 8px; } .rf-res .cv button { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; } .rf-res .cv span { min-width: 22px; text-align: center; font-weight: 700; }
.rf-lineas { display: flex; flex-direction: column; }
.rf-lineas .ln { display: flex; gap: 10px; min-height: 36px; align-items: center; border-bottom: 1px solid var(--k-222224); font-size: 14px; }
.rf-lineas .q { width: 26px; color: var(--muted); } .rf-lineas .n { flex: 1; display: flex; flex-direction: column; } .rf-lineas .n small { font-size: 11px; color: var(--muted); }
.rf-lineas button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.rf-est { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(212,180,131,.45); background: var(--panel); text-align: left; width: 100%; box-sizing: border-box; }
.rf-est > span { flex: 1; display: flex; flex-direction: column; gap: 3px; } .rf-est small { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); } .rf-est .muted { font-size: 13px; line-height: 1.4; }
.rf-est b { font-size: 20px; color: var(--gold); white-space: nowrap; }
.rf-campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); } .rf-campo textarea { height: 80px; padding: 12px 14px; resize: none; }
.rf-pago { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 16px; border: 1px solid var(--line); }
.rf-pago.on { border-color: var(--gold); background: rgba(212,180,131,.08); } .rf-pago.off { opacity: .5; }
.rf-pago .r { width: 20px; height: 20px; flex: none; border-radius: 10px; border: 2px solid var(--line); box-sizing: border-box; display: flex; align-items: center; justify-content: center; } .rf-pago.on .r { border-color: var(--gold); } .rf-pago .r i { width: 10px; height: 10px; border-radius: 5px; background: var(--gold); }
.rf-pago .t { flex: 1; display: flex; flex-direction: column; gap: 2px; } .rf-pago .t b { font-size: 15px; font-weight: 600; } .rf-pago .t small { font-size: 12px; color: var(--muted); }
.rf-pie { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; box-sizing: border-box; padding: 10px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--k-121212); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; z-index: 20; }
.rf-saltar { height: 40px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rf-cta { height: 56px; border-radius: 16px; border: 0; background: var(--gold); color: var(--k-141414); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.rf-cta:only-child span:only-child, .rf-cta span:first-child:last-child { margin: 0 auto; }
.rf-cta:disabled { background: var(--k-2A2A2D); color: var(--muted); cursor: default; }
.rf-listo { padding: calc(40px + var(--arriba)) 24px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rf-listo .ok { font-size: 13px; color: var(--k-7CC79A); font-weight: 600; display: flex; align-items: center; gap: 6px; } .rf-listo .ok svg { width: 16px; height: 16px; }
.rf-listo .tk-papel { width: 100%; box-sizing: border-box; }

/* ===== Tableta y laptop: la app del comensal se ensancha y usa más columnas ===== */
@media (min-width: 760px) {
  .marco, .barra, .rs-barra, .rf-pie { max-width: 720px; }
  .rs-portada, .rs-portada img, .rs-portada > svg { height: 300px; }
  .rs-dest, .rs-dest img, .rs-dest > svg { height: 240px; }
  .rv-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rv-lista .rv-vacio { grid-column: 1 / -1; }
  .rf-platos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-platos .rf-sub { grid-column: 1 / -1; }
  .rf-horas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pf-stats div { padding: 16px 8px; }
}
@media (min-width: 1100px) {
  .marco, .barra, .rs-barra, .rf-pie { max-width: 860px; }
  .rv-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-grupo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .rs-grupo .rs-sub { grid-column: 1 / -1; }
}
.rf-plano { display: flex; } .rf-plano.lista { height: auto; min-height: 120px; padding: 12px; }
.rf-mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; width: 100%; }
.rf-mesas button { height: 70px; border-radius: 14px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.rf-mesas b { font-size: 18px; } .rf-mesas small { font-size: 11px; color: var(--muted); }
.rf-mesas .libre { border-color: rgba(124,199,154,.6); } .rf-mesas .ocu { border-color: rgba(224,122,111,.5); opacity: .55; } .rf-mesas .poca { opacity: .4; }
.rf-mesas .tuya { border-color: var(--gold); background: var(--gold); color: var(--k-141414); } .rf-mesas .tuya small { color: var(--k-141414); }
.pf-tema { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; } .pf-tema b { font-size: 15px; font-weight: 600; } .pf-tema small { font-size: 11px; color: var(--muted); }
.pf-gustos button .x { margin-left: 6px; font-size: 15px; opacity: .7; }
.pf-gustos .pf-gusto-mas { border-style: dashed; color: var(--gold, #D4B483); }
.pf-gusto-nuevo { display: flex; gap: 8px; margin-top: 10px; }
.pf-gusto-nuevo .in { flex: 1; min-width: 0; height: 44px; }
.pf-gusto-nuevo .btn { height: 44px; padding: 0 16px; flex: none; width: auto; }
.pf-gusto-nuevo[hidden], .pf-gustos [hidden] { display: none; }
/* Cuadros del perfil: se tocan para ir a Reservas, Favoritos y Reseñas */
.pf-stats a { padding: 12px 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; color: inherit; text-decoration: none; transition: border-color .15s, transform .1s; }
.pf-stats a:active { transform: scale(.97); border-color: var(--gold); }
/* Corazón de favoritos */
.rs-fav { position: absolute; right: 16px; top: calc(16px + var(--arriba)); width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(17,17,18,.78); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; transition: transform .15s; }
.rs-fav.on { color: #F0506E; }
.rs-fav:active { transform: scale(.9); }
.rs-fav.en-lista { position: static; flex: none; width: 40px; height: 40px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--muted); }
.rs-fav.en-lista.on { color: #F0506E; }
/* Mis reseñas */
.mis-res { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.mis-res .c { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .mis-res .c small { color: var(--muted); font-size: 12px; }
.mis-res .e { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.mis-res .t { font-size: 14px; line-height: 1.45; }
.mis-res .r { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); font-size: 13px; color: var(--muted); } .mis-res .r b { color: var(--ink); font-size: 12px; }
@media (min-width: 760px) { .pf-stats a { padding: 16px 8px; } }

/* Comensal sólo en vertical (no aplica al modo auto ni a tabletas/compus) */
#girar { display: none; }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  body:not(.modo-auto) #girar { display: flex; position: fixed; inset: 0; z-index: 100000; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bg, var(--k-121212)); color: var(--ink); text-align: center; animation: girarEntra .25s ease; }
  body:not(.modo-auto) #girar svg { animation: girarIcono 1.8s ease-in-out infinite; margin-bottom: 6px; }
  body:not(.modo-auto) #girar b { font-size: 18px; font-weight: 700; }
  body:not(.modo-auto) #girar span { font-size: 14px; color: var(--k-A1A1A6); }
  body:not(.modo-auto):has(#girar) { overflow: hidden; }
}
@keyframes girarIcono { 0%, 25% { transform: rotate(-90deg); } 55%, 100% { transform: rotate(0); } }
@keyframes girarEntra { from { opacity: 0; } }

/* Pago con tarjeta */
.pg-hoja { gap: 14px; }
.pg-cab { display: flex; flex-direction: column; gap: 2px; } .pg-cab b { font-size: 20px; } .pg-cab span { font-size: 13px; }
.pg-resumen { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.pg-resumen .r { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .pg-resumen .r.t { padding-top: 6px; border-top: 1px solid var(--line); font-size: 16px; }
.pg-el { min-height: 120px; }
.pg-err { min-height: 18px; font-size: 13px; color: var(--k-FF9F8F); }
.pg-cancelar { height: 44px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; }
.pg-pie { font-size: 11px; color: var(--muted); text-align: center; }
.rf-pago { cursor: pointer; font: inherit; color: inherit; background: transparent; text-align: left; width: 100%; }
.rf-pago .t small b { color: var(--gold); font-weight: 600; }
.pf-agregar { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pf-agregar .t b { color: var(--gold); }
#pf-tjs .pf-pago + .pf-pago { border-top: 1px solid var(--line); } #pf-tjs:empty + .pf-pago { border-top: 0 !important; }
.pf-tj-x { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; }
.pg-tjs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pg-tj { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; }
.pg-tj.on { border-color: var(--gold); background: rgba(212,180,131,.08); }
.pg-tj .r { width: 20px; height: 20px; flex: none; border-radius: 10px; border: 2px solid var(--line); box-sizing: border-box; display: flex; align-items: center; justify-content: center; } .pg-tj.on .r { border-color: var(--gold); } .pg-tj .r i { width: 10px; height: 10px; border-radius: 5px; background: var(--gold); }
.pg-tj .chip { width: 44px; height: 28px; flex: none; border-radius: 7px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--muted); }
.pg-tj .t { flex: 1; display: flex; flex-direction: column; font-size: 15px; font-weight: 600; } .pg-tj .t small { font-size: 12px; color: var(--muted); font-weight: 400; }
.pf-pago .chip { position: static; }
.pf-pago .chip { background: transparent; }
.pf-pago .chip.pf-mas { border-style: dashed; font-size: 16px; font-weight: 400; color: var(--gold); border-color: var(--gold); }
/* Las hojas (pago, platillo, etc.) van encima de la barra de abajo */
.velo { z-index: 800; }
.velo .hoja { padding-bottom: calc(24px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 40px); }
/* QR de la mesa */
.qr-mesa { align-items: center; text-align: center; gap: 16px; padding-top: 30px; }
.qr-ico { width: 84px; height: 84px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.qr-pers { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); font-weight: 600; }
/* Ticket del último paso de reservar */
.rf-tk { margin: 4px 2px 6px; }
.rf-tkl { align-items: flex-start; }
.rf-tkl button { width: 26px; height: 26px; flex: none; margin: -3px -4px 0 0; border: 0; border-radius: 13px; background: transparent; color: #8A857C; font-size: 17px; line-height: 1; cursor: pointer; }
.rf-tkl button:active { background: rgba(0,0,0,.06); }
.rf-cta.solo { justify-content: center; }
/* Hoja «Tu pedido» en la pantalla del restaurante */
.car-hoja { gap: 14px; }
.car-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.car-cab > span { display: flex; flex-direction: column; gap: 2px; } .car-cab b { font-size: 20px; } .car-cab small { font-size: 13px; color: var(--muted); }
.car-vaciar { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; }
.car-lista { display: flex; flex-direction: column; }
.car-ln { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.car-ln .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .car-ln .t b { font-size: 15px; font-weight: 600; } .car-ln .t small { font-size: 12px; color: var(--muted); } .car-ln .t .mono { font-size: 14px; color: var(--gold); }
.contador.chico { height: 40px; } .contador.chico button { width: 34px; height: 34px; font-size: 19px; } .contador.chico span { min-width: 18px; text-align: center; font-weight: 700; }
.car-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 2px; } .car-tot span { font-size: 15px; font-weight: 600; } .car-tot b { font-size: 24px; }
/* Hoja de pago: elegante, sin ticket */
.pg-fino { gap: 16px; }
.pg-quien { display: flex; align-items: center; gap: 12px; }
.pg-quien .pg-lg { width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.pg-quien .pg-lg svg { width: 26px; height: 26px; }
.pg-quien > span:last-child { display: flex; flex-direction: column; gap: 1px; } .pg-quien b { font-size: 16px; } .pg-quien small { font-size: 12px; color: var(--muted); }
.pg-monto { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px 16px; border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.pg-monto small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pg-monto > b { font-size: 40px; font-weight: 500; color: var(--gold); line-height: 1.1; }
.pg-desg { display: flex; gap: 14px; font-size: 13px; color: var(--muted); } .pg-desg i { font-style: normal; color: var(--ink); }
.pg-t { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: -6px; }
.pg-fino .pg-pie { display: flex; align-items: center; justify-content: center; gap: 6px; }

.rs-plato .p b { font-size: 16px; font-weight: 700; }
.rs-mas { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 15px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rs-mas:active { background: var(--gold); color: var(--k-141414); border-color: var(--gold); }
/* Foto del restaurante: borde limpio abajo (sin difuminado) y, en iPhone, empieza debajo de la franja de la hora */
html.ios-pwa .rs-portada { margin-top: calc(var(--sb) + 12px); }
html.ios-pwa .rs-portada .atras, html.ios-pwa .rs-portada .rs-fav { top: 14px; }

/* Cobro de la mesa en la app: la cuenta que mandó el mesero, para pagarla aquí */
.mm-cobro { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 16px 12px; border-radius: 20px; border: 1.5px solid var(--gold); background: rgba(212,180,131,.06); text-align: center; }
.mm-cobro .et { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.mm-cobro > b { font-size: 34px; font-weight: 700; }
.mm-cobro > span:not(.et) { font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 320px; }
.mm-cobro .btn { width: 100%; margin-top: 6px; }
.mm-cobro .mm-no { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 8px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mm-cobro.mal { border-color: var(--line); background: transparent; }
.mm-cobro.mal b { font-size: 16px; }
/* Propina al pagar la mesa */
.pg-props { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pg-props button { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pg-props button[aria-checked="true"] { border-color: var(--gold); color: var(--gold); background: rgba(212,180,131,.08); }

.pg-otra { display: flex; gap: 8px; }
.pg-otra[hidden] { display: none; }
.pg-tipo { display: flex; flex: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pg-tipo button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.pg-tipo button[aria-checked="true"] { background: rgba(212,180,131,.12); color: var(--gold); }
.pg-otra input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 0 14px; }
.pg-otra input:focus { outline: none; border-color: var(--gold); }
/* Hoja de pago: el contenido se desliza en su propia zona y el botón de pagar queda abajo, fuera de ella (nunca se encima) */
.velo .hoja.pg-hoja { overflow: hidden; display: flex; flex-direction: column; gap: 0; height: auto; max-height: calc(100dvh - 24px); padding-bottom: 0; }
.pg-hoja .pg-cuerpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 4px 0 14px; }
.pg-hoja .pg-cuerpo { overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y; width: 100%; }
.pg-hoja .pg-cuerpo > *, .pg-hoja .pg-el, .pg-hoja .pg-el > div, .pg-hoja .pg-el iframe { min-width: 0; max-width: 100%; box-sizing: border-box; }
.pg-hoja .pg-el, .pg-hoja .pg-el > div { width: 100%; }
.velo .hoja.pg-hoja { overflow-x: hidden; touch-action: pan-y; }
.pg-hoja .pg-cuerpo { scrollbar-width: none; -ms-overflow-style: none; }
.pg-hoja .pg-cuerpo::-webkit-scrollbar { display: none; width: 0; height: 0; }
.pg-hoja .pg-abajo { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 12px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.pg-hoja .pg-abajo .pg-pie { margin-top: 2px; }

/* Reservas: la franja "Estás en la mesa" flota abajo, centrada, sobre la barra */
#ancla-mesa + .franja-mesa { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100% - 40px); max-width: 488px; box-sizing: border-box; margin: 0; z-index: 25;
  background: linear-gradient(rgba(212,180,131,.14), rgba(212,180,131,.14)), var(--bg); box-shadow: 0 10px 28px rgba(0,0,0,.45); animation: franja-sube .3s ease both; }
@keyframes franja-sube { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.marco:has(#ancla-mesa + .franja-mesa) { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }

/* Porta cuentas de piel: el ticket se entrega encima, con su clip dorado */
.porta { position: relative; width: 100%; box-sizing: border-box; padding: 30px 14px 58px; border-radius: 22px; isolation: isolate;
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(255,235,205,.09), transparent 60%),
    radial-gradient(90% 90% at 100% 100%, rgba(0,0,0,.4), transparent 65%),
    repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    linear-gradient(165deg, #3E2B1F, #2A1C13 55%, #1E140D);
  box-shadow: 0 22px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.35); }
.porta::before { content: ''; position: absolute; inset: 8px; border: 1.5px dashed rgba(212,180,131,.36); border-radius: 15px; pointer-events: none; z-index: -1; }
.porta::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 14px; border-radius: 22px 0 0 22px; background: linear-gradient(90deg, rgba(0,0,0,.35), transparent); pointer-events: none; z-index: -1; }
.porta > .tk, .porta > .tk-papel { position: relative; z-index: 1; border-radius: 2px; width: 100%; box-sizing: border-box; margin: 0; }
.porta-clip { position: absolute; z-index: 2; top: 16px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 7px 7px 11px 11px;
  background: linear-gradient(180deg, #F0DAAE, #D4B483 40%, #A9854F 75%, #8A6A3A); box-shadow: 0 4px 8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 3px rgba(0,0,0,.25); }
.porta-clip::before { content: ''; position: absolute; left: 10px; right: 10px; top: 9px; height: 2px; border-radius: 1px; background: rgba(90,64,30,.45); box-shadow: 0 1px 0 rgba(255,255,255,.35); }
.porta-marca { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; color: rgba(212,180,131,.5); text-shadow: 0 1px 0 rgba(0,0,0,.6); pointer-events: none; }
.porta-marca svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.6)); }
.porta-marca b { font-size: 13px; font-weight: 700; letter-spacing: .22em; }
.rf-listo .porta { width: 100%; }

/* Ticket: datos de la visita y encabezado de consumo centrados */
.tk-3 > span { align-items: center; text-align: center; } .tk-3 b { max-width: 100%; }
.tk-papel .g2 span { align-items: center; text-align: center; }
.pg-mxn { font-style: normal; font-size: .36em; font-weight: 600; letter-spacing: .08em; margin-left: .3em; opacity: .7; vertical-align: .55em; font-family: Inter, system-ui, sans-serif; }
/* Reservas vacías: el mensaje y el botón quedan a la mitad del espacio libre */
.rv-vacio { min-height: calc(100dvh - 330px - var(--arriba, 0px) - env(safe-area-inset-bottom)); justify-content: center; padding: 0 20px; box-sizing: border-box; }

/* Factura del ticket */
.tk-fact { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid rgba(212,180,131,.45); background: rgba(212,180,131,.08); text-align: center; }
.tk-fact .et { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.tk-fact b { font-size: 16px; } .tk-fact > span:not(.et) { font-size: 13px; color: var(--muted); line-height: 1.45; }
.tk-fact.ok { border-color: rgba(124,199,154,.5); background: rgba(124,199,154,.08); } .tk-fact.ok .et { color: var(--ok); }
.tk-fact.mal { border-color: rgba(229,115,115,.5); background: rgba(229,115,115,.08); } .tk-fact.mal .et { color: #E57373; }
.tk-fact .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.fx-hoja { gap: 12px; }
.fx-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; }
select.in { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
