/* Cliente: columna móvil centrada (máx. 480 px), fiel al boceto «Carta primero». */
body.cliente { background: var(--suave); }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: #FFFFFF; display: flex; flex-direction: column; position: relative; }
@media (min-width: 520px) { .app { box-shadow: 0 0 0 1px var(--borde); } }

.cabecera { padding: 20px 20px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--borde); }
.marca { display: flex; align-items: center; gap: 12px; flex-grow: 1; min-width: 0; }
.marca-logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--azul); display: flex; align-items: center; justify-content: center; }
.marca-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.marca-nombre { font-weight: 800; font-size: 20px; letter-spacing: 0.14em; }
.marca-sub { font-size: 12px; color: var(--gris); }
.pastilla { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.pastilla.abierto { color: var(--abierto-texto); background: var(--abierto-fondo); }
.pastilla.cerrado { color: var(--gris); background: var(--suave); }
.pastilla.pausado { color: var(--ambar-texto); background: var(--ambar-fondo); }

.franja-info { margin: 16px 20px 0; padding: 12px 14px; background: var(--suave); border-radius: 12px; font-size: 13px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.franja-info svg { flex-shrink: 0; margin-top: 1px; }
.aviso-cliente { margin: 12px 20px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; background: var(--ambar-fondo); color: var(--ambar-texto); border: 1px solid var(--ambar-borde); }

.pestanas { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; padding: 12px 20px 8px; overflow-x: auto; background: #FFFFFF; scrollbar-width: none; margin-top: 4px; }
.pestanas::-webkit-scrollbar { display: none; }
.pestana { flex-shrink: 0; border: 1px solid var(--borde-2); background: #FFFFFF; color: var(--azul); font-weight: 500; font-size: 14px; padding: 10px 16px; border-radius: 999px; min-height: 44px; }
.pestana[aria-current='true'] { border-color: var(--azul); background: var(--azul); color: #FFFFFF; font-weight: 600; }

.carta { padding: 4px 20px 0; display: flex; flex-direction: column; }
.seccion-carta { scroll-margin-top: 72px; }
.seccion-carta h2 { margin: 14px 0 2px; font-size: 18px; font-weight: 700; }
.plato { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linea); align-items: center; }
.plato-texto { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plato-nombre { font-weight: 600; font-size: 15px; }
.plato-desc { font-size: 13px; color: var(--gris); line-height: 1.4; }
.plato-precio { font-weight: 700; font-size: 15px; margin-top: 2px; }
.plato-foto { position: relative; width: 92px; height: 92px; flex-shrink: 0; border-radius: 14px; background: #ECEAF5; display: flex; align-items: center; justify-content: center; margin-right: 6px; }
.plato-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.plato-control { position: absolute; right: -6px; bottom: -6px; }
.boton-mas { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--morado); color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(27, 37, 80, 0.25); }
.boton-mas:hover { background: var(--morado-h); }
.stepper { height: 44px; border-radius: 999px; background: var(--morado); color: #FFFFFF; display: flex; align-items: center; gap: 2px; padding: 0 4px; box-shadow: 0 1px 3px rgba(27, 37, 80, 0.25); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; color: #FFFFFF; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.stepper button:hover { background: var(--morado-h); }
.stepper button:focus-visible { outline-color: #FFFFFF; }
.stepper .cant { font-weight: 700; font-size: 15px; min-width: 18px; text-align: center; }
.stepper.claro { background: var(--suave); color: var(--azul); box-shadow: none; }
.stepper.claro button { color: var(--azul); width: 36px; height: 36px; }
.stepper.claro button:hover { background: var(--borde-2); }
.stepper.claro button:focus-visible { outline-color: var(--morado); }

.pie-cliente { padding: 28px 20px 110px; text-align: center; font-size: 12px; color: var(--gris); }

.barra-pedido { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.barra-pedido button { pointer-events: auto; width: 100%; max-width: 448px; min-height: 54px; border: 0; border-radius: 14px; background: var(--morado); color: #FFFFFF; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; box-shadow: 0 4px 14px rgba(27, 37, 80, 0.3); gap: 12px; }
.barra-pedido button:hover { background: var(--morado-h); }
.barra-pedido button:focus-visible { outline-color: var(--azul); }

/* Checkout */
.checkout-cab { padding: 12px 12px 12px 8px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--borde); }
.volver { border: 0; background: transparent; min-height: 44px; padding: 0 12px 0 6px; display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; color: var(--azul); border-radius: 10px; }
.volver:hover { background: var(--suave); }
.checkout-cab .marca-nombre { margin-left: auto; font-size: 16px; padding-right: 8px; }
.bloque { margin: 24px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.bloque h1, .bloque h2 { font-size: 18px; font-weight: 700; }
.resumen { margin: 20px 20px 0; padding: 18px; border: 1px solid var(--borde); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.resumen h1 { font-size: 18px; font-weight: 700; }
.linea { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.linea .nombre { flex-grow: 1; min-width: 0; }
.linea .importe { white-space: nowrap; }
.linea.suave { color: var(--gris); }
.linea.total { font-size: 16px; font-weight: 700; padding-top: 10px; border-top: 1px dashed var(--borde-2); }
.aviso-minimo { font-size: 13px; background: var(--ambar-fondo); color: var(--ambar-texto); border: 1px solid var(--ambar-borde); border-radius: 10px; padding: 10px 12px; }

.selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--suave); padding: 4px; border-radius: 12px; }
.selector button { border: 0; background: transparent; color: var(--gris); font-weight: 500; font-size: 14px; min-height: 44px; border-radius: 9px; }
.selector button[aria-pressed='true'] { background: #FFFFFF; color: var(--azul); font-weight: 600; box-shadow: 0 1px 2px rgba(27, 37, 80, 0.12); }

.dias { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.dia { flex-shrink: 0; min-width: 76px; min-height: 56px; border: 1px solid var(--borde-2); background: #FFFFFF; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 10px; }
.dia .d1 { font-weight: 700; font-size: 14px; }
.dia .d2 { font-size: 12px; color: var(--gris); }
.dia[aria-pressed='true'] { background: var(--azul); border-color: var(--azul); color: #FFFFFF; }
.dia[aria-pressed='true'] .d2 { color: #D6D9EA; }

.turno-nombre { font-size: 13px; color: var(--gris); }
.franjas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.franja { min-height: 56px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 0; border: 1px solid var(--borde-2); background: #FFFFFF; color: var(--azul); }
.franja .hora { font-weight: 700; font-size: 14px; }
.franja .etq { font-size: 11px; }
.franja.casi { border-color: var(--ambar-borde); background: var(--ambar-fondo); color: var(--ambar-texto); }
.franja.completa { border-color: var(--linea); background: #F7F7FA; color: var(--deshabilitado); text-decoration: line-through; }
.franja[aria-pressed='true'] { border: 2px solid var(--morado); background: var(--morado); color: #FFFFFF; }
.franja[aria-pressed='true']:hover { background: var(--morado-h); }
.sin-franjas { font-size: 14px; color: var(--gris); background: var(--suave); border-radius: 12px; padding: 14px; }

.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.campo .ayuda { font-weight: 400; color: var(--gris); }
.campo input, .campo textarea { font-size: 16px; font-weight: 400; padding: 12px 14px; min-height: 48px; border: 1px solid var(--borde-2); border-radius: 10px; background: #FFFFFF; width: 100%; }
.campo textarea { min-height: 84px; resize: vertical; }
.campo input[aria-invalid='true'], .campo textarea[aria-invalid='true'] { border-color: var(--error-texto); }

.envio { margin: 24px 20px 28px; display: flex; flex-direction: column; gap: 10px; }
.error { background: var(--error-fondo); color: var(--error-texto); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 500; }
.boton-enviar { border: 0; background: var(--morado); color: #FFFFFF; font-weight: 700; font-size: 16px; min-height: 54px; border-radius: 14px; padding: 0 16px; }
.boton-enviar:hover:not(:disabled) { background: var(--morado-h); }
.boton-enviar:disabled { background: #B9B0E0; color: #FFFFFF; }
.texto-pago { font-size: 12px; color: var(--gris); text-align: center; }

/* Confirmación */
.hecho { padding: 56px 24px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.hecho-icono { width: 64px; height: 64px; border-radius: 50%; background: var(--abierto-fondo); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.hecho h1 { font-size: 24px; font-weight: 800; }
.hecho .num { font-size: 18px; font-weight: 700; }
.hecho .sub { color: var(--gris); font-size: 15px; line-height: 1.5; }
.boton-sec { border: 1px solid var(--borde-2); background: #FFFFFF; color: var(--azul); font-weight: 600; font-size: 15px; min-height: 48px; padding: 0 22px; border-radius: 12px; margin-top: 12px; }
.boton-sec:hover { background: var(--suave); }

.cargando { padding: 80px 20px; text-align: center; color: var(--gris); }
