/* Menus con pedido por WhatsApp: la pagina publica (/m/<slug>) y el editor
   (/m/nuevo, /m/<slug>/editar). Se carga despues de styles.css y usa sus
   mismas variables de color. */

.menu-page {
    --wa: #25d366;
    --wa-texto: #05230f;
}

.menu-cabecera,
.menu-contenido {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
}

.menu-volver {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- la pagina publica ---------------------------------------------------- */

.menu-negocio {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.menu-negocio-logo {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 16px;
    object-fit: cover;
    background: var(--panel);
    border: 1px solid var(--line);
}

.menu-negocio-nombre {
    margin: 0 0 4px;
    font-size: 1.4rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.menu-negocio-dato {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.menu-negocio-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-btn-wa-chico {
    background: var(--wa);
    color: var(--wa-texto);
}

.menu-seccion {
    margin-bottom: 22px;
}

.menu-seccion-titulo {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.menu-plato {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color 0.15s ease;
}

.menu-plato.is-en-pedido {
    border-color: var(--brand);
}

.menu-plato.is-agotado {
    opacity: 0.55;
}

.menu-plato-foto {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg);
}

.menu-plato-cuerpo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.menu-plato-nombre {
    margin: 0 0 4px;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.menu-plato-desc {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.menu-plato-pie {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.menu-plato-precio {
    font-weight: 700;
}

.menu-plato-agotado {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.menu-cantidad {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-cantidad-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.menu-cantidad-mas {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.menu-cantidad-num {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

/* "Tarjetas con foto" (menus.PRESENTACIONES): la misma tarjeta, con la foto
   arriba y a todo lo ancho, dos por fila en el celular. */
.menu-vista-tarjetas .menu-seccion-platos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.menu-vista-tarjetas .menu-plato {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.menu-vista-tarjetas .menu-plato-foto {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
}

.menu-plato-sin-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    opacity: 0.6;
}

.menu-vista-tarjetas .menu-plato-cuerpo {
    padding: 10px 12px 12px;
}

/* Con cantidad (− 2 +) el control no cabe al lado del precio en una tarjeta
   angosta: baja a su propia linea. */
.menu-vista-tarjetas .menu-plato-pie {
    flex-wrap: wrap;
}

@media (min-width: 600px) {
    .menu-vista-tarjetas .menu-seccion-platos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* El + de cada plato. "Agregar" solo se lee en el estilo clasico. */
.menu-mas-texto {
    display: none;
}

/* "Clasico" (menus.PRESENTACIONES): la carta impresa del estilo "menu" de
   FiushPOS, en su paleta vino y dorado (FiushPos/carta_publica, la de Villa
   Pimienta). Fondo cafe, titulos manuscritos en dorado, una foto en diagonal
   por seccion y cada plato un renglon "1. NOMBRE . . . . $ precio".

   Los colores se cambian redefiniendo los tokens de styles.css: asi el
   modal del pedido, los botones y los campos toman la paleta solos. */
body.menu-vista-clasico {
    color-scheme: dark;
    --bg: #2a190e;
    --panel: #3a2415;
    --text: #fff5e6;
    --muted: #ecd9bf;
    --line: rgba(255, 230, 190, 0.14);
    --brand: #f2c230;
    --brand-light: #ffd95a;
    --menu-texto-en-dorado: #2a190e;
    --menu-linea: rgba(242, 194, 48, 0.45);
    --menu-puntos: rgba(255, 245, 230, 0.4);

    /* Una luz calida arriba y el borde que se oscurece, como el papel del
       afiche. */
    background-image:
        radial-gradient(ellipse 90% 60% at 50% 18%, rgba(125, 76, 40, 0.55), transparent 70%),
        radial-gradient(ellipse 120% 80% at 50% 110%, rgba(0, 0, 0, 0.5), transparent 60%);
    background-attachment: fixed;
}

.menu-vista-clasico .menu-negocio-logo {
    border: 2px solid var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(242, 194, 48, 0.16);
}

.menu-negocio-tag {
    margin: -2px 0 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
}

.menu-vista-clasico .menu-seccion {
    break-inside: avoid;
    margin-bottom: 30px;
}

.menu-vista-clasico .menu-seccion-titulo {
    margin: 0 0 4px;
    font-family: "Allura", cursive;
    font-weight: 400;
    font-size: clamp(2.6rem, 11vw, 3.4rem);
    line-height: 1.05;
    color: var(--brand);
    /* En letra manuscrita las MAYUSCULAS no se leen: "BEBIDAS" sale
       "Bebidas". El nombre guardado no cambia. */
    text-transform: lowercase;
}

.menu-vista-clasico .menu-seccion-titulo::first-letter {
    text-transform: uppercase;
}

/* El filo dorado asoma por arriba porque la imagen empieza 5px mas abajo. */
.menu-seccion-foto {
    margin: 4px 0 14px;
    padding-top: 5px;
    background: var(--brand);
    clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
}

.menu-seccion-foto img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
}

/* La linea de puntos vertical de la carta impresa, y la numeracion: un
   contador de CSS, no un dato. */
.menu-vista-clasico .menu-seccion-platos {
    padding-left: 12px;
    border-left: 2px dotted var(--menu-linea);
    counter-reset: plato;
}

.menu-vista-clasico .menu-plato {
    counter-increment: plato;
    align-items: flex-start;
    margin: 0;
    padding: 10px 4px 12px;
    background: none;
    border: 0;
    border-radius: 0;
}

.menu-vista-clasico .menu-plato.is-en-pedido .menu-plato-nombre {
    color: var(--brand-light);
}

.menu-vista-clasico .menu-plato-foto {
    width: 56px;
    height: 56px;
    margin-top: 2px;
    border: 2px solid var(--brand);
    border-radius: 12px;
}

.menu-plato-linea {
    display: flex;
    align-items: baseline;
    min-width: 0;
    margin-bottom: 4px;
}

.menu-vista-clasico .menu-plato-nombre {
    min-width: 0;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    text-transform: uppercase;
}

.menu-vista-clasico .menu-plato-nombre::before {
    content: counter(plato) ". ";
}

.menu-plato-puntos {
    flex: 1 1 auto;
    min-width: 18px;
    margin: 0 6px;
    border-bottom: 2px dotted var(--menu-puntos);
    transform: translateY(-4px);
}

.menu-vista-clasico .menu-plato-precio {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--brand);
}

.menu-vista-clasico .menu-plato-desc {
    font-weight: 500;
    line-height: 1.35;
}

.menu-vista-clasico .menu-plato-pie {
    justify-content: flex-end;
}

.menu-vista-clasico .menu-cantidad-btn {
    background: transparent;
}

.menu-vista-clasico .menu-cantidad-mas {
    background: var(--brand);
    color: var(--menu-texto-en-dorado);
}

.menu-vista-clasico .menu-cantidad.is-vacio .menu-cantidad-mas {
    width: auto;
    height: auto;
    padding: 8px 20px;
    font-size: 0.85rem;
}

.menu-vista-clasico .menu-cantidad.is-vacio .menu-mas-signo {
    display: none;
}

.menu-vista-clasico .menu-cantidad.is-vacio .menu-mas-texto {
    display: inline;
}

.menu-vista-clasico .menu-barra-btn {
    color: var(--menu-texto-en-dorado);
}

/* Las secciones plegables (acordeon): la carta arranca con todas cerradas y
   solo una abierta a la vez. Va en una sola columna en todos los anchos: en
   dos columnas, abrir una seccion reacomodaria todas las demas. */
.menu-seccion-plegable,
.menu-vista-clasico .menu-seccion-plegable {
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
}

.menu-seccion-plegable[open] {
    padding-bottom: 16px;
}

.menu-seccion-cabeza {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-seccion-cabeza::-webkit-details-marker {
    display: none;
}

.menu-seccion-cabeza .menu-seccion-titulo,
.menu-vista-clasico .menu-seccion-cabeza .menu-seccion-titulo {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.menu-seccion-cuenta {
    flex-shrink: 0;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--menu-texto-en-dorado, #fff);
    font-size: 0.75rem;
    font-weight: 700;
}

/* La flecha: dos bordes de un cuadrito girado, para que se vea igual con
   cualquier letra. */
.menu-seccion-flecha {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin: 0 6px 5px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.menu-seccion-plegable[open] > .menu-seccion-cabeza .menu-seccion-flecha {
    margin-bottom: 0;
    margin-top: 5px;
    transform: rotate(-135deg);
}

/* Cerrado por su horario: el menu se ve, pero sin carrito. */
.menu-negocio-horario {
    font-weight: 600;
}

.menu-negocio-horario.is-cerrado {
    color: var(--brand);
}

.menu-aviso-cerrado {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    font-size: 0.9rem;
}

.menu-creado-en {
    margin: 28px 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.menu-creado-en a {
    color: var(--brand);
}

body.tiene-pedido .menu-contenido {
    padding-bottom: 96px;
}

.menu-barra-pedido {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, var(--bg) 35%);
    z-index: 50;
}

.menu-barra-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 688px;
    margin: 0 auto;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.menu-pedido-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-pedido-lista li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.menu-pedido-total {
    display: flex;
    justify-content: space-between;
    margin: 0;
    font-size: 1.05rem;
}

.menu-pedido-perfil {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-pedido-etiqueta {
    font-size: 0.85rem;
    font-weight: 600;
}

.menu-pedido-modal select,
.menu-pedido-modal textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
    resize: vertical;
}

.menu-pedido-nota {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.menu-btn-wa {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--wa);
    color: var(--wa-texto);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

/* --- el editor ------------------------------------------------------------ */

.editor-titulo {
    margin: 0 0 6px;
    font-size: 1.5rem;
}

.editor-intro {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.editor-cargando {
    color: var(--muted);
}

.editor-bloque {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.editor-bloque h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.editor-bloque p {
    margin: 0 0 10px;
    font-size: 0.88rem;
}

.editor-aviso {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.editor-aviso p {
    margin: 6px 0 0;
    font-size: 0.88rem;
}

.editor-aviso-error {
    background: rgba(255, 90, 0, 0.1);
    border: 1px solid var(--brand);
}

.editor-aviso-plataforma {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.45);
}

.editor-plan .editor-ayuda {
    display: block;
    margin-top: 8px;
}

.editor-plan-estado {
    margin: 0;
    font-size: 0.92rem;
}

.editor-plan.is-vencido {
    border: 2px solid var(--brand);
}

.editor-enlace.is-destacado {
    border: 2px solid var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.15);
}

.editor-mis-menus {
    list-style: none;
    margin: 0;
    padding: 0;
}

.editor-mis-menus li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.editor-mis-menus li:last-child {
    border-bottom: none;
}

.editor-page input[type="text"],
.editor-page input[type="tel"],
.editor-page select,
.editor-page textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}

.editor-page textarea {
    resize: vertical;
}

.editor-campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.editor-campo small,
.editor-ayuda {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.8rem;
}

.editor-categorias legend,
.editor-presentacion legend {
    margin-bottom: 6px;
    padding: 0;
}

.editor-tel {
    display: flex;
    gap: 8px;
}

.editor-page .editor-tel select {
    width: auto;
    flex-shrink: 0;
}

.editor-fila-botones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.editor-mapa {
    width: 100%;
    height: 260px;
    margin-top: 4px;
    border-radius: 12px;
    z-index: 0;
}

.editor-ubicacion-estado {
    font-size: 0.85rem;
    color: var(--accent-green);
    font-weight: 600;
}

.editor-link-btn {
    border: none;
    background: none;
    padding: 4px 0;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.editor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.editor-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.editor-chip span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
}

.editor-chip input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.editor-chip input:focus-visible + span {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.editor-presentaciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.editor-presentacion-opcion input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.editor-presentacion-opcion > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 10px;
    border: 2px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.editor-presentacion-opcion strong {
    font-size: 0.9rem;
}

.editor-presentacion-opcion input:checked + span {
    border-color: var(--brand);
}

.editor-presentacion-opcion input:focus-visible + span {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* El dibujito de cada opcion: rayas y cuadros grises, el de la escogida en
   el color de la marca. */
.editor-muestra {
    display: grid;
    gap: 4px;
    margin-bottom: 6px;
    color: var(--line);
}

.editor-presentacion-opcion input:checked + span .editor-muestra {
    color: var(--brand);
}

.editor-muestra i {
    display: flex;
    gap: 4px;
}

.editor-muestra i::before,
.editor-muestra i::after {
    content: "";
    background: currentColor;
    border-radius: 3px;
}

.editor-muestra-clasico i::before {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.editor-muestra-clasico i::after {
    flex: 1;
    height: 6px;
    align-self: center;
    opacity: 0.6;
}

/* El clasico en sus colores de verdad: el cafe y el dorado de la carta. */
.editor-muestra-clasico,
.editor-presentacion-opcion input:checked + span .editor-muestra-clasico {
    padding: 6px;
    border-radius: 6px;
    background: #2a190e;
    color: #f2c230;
}

.editor-muestra-tarjetas {
    grid-template-columns: 1fr 1fr;
}

.editor-muestra-tarjetas i {
    flex-direction: column;
    gap: 3px;
}

.editor-muestra-tarjetas i::before {
    height: 14px;
}

.editor-muestra-tarjetas i::after {
    height: 4px;
    width: 70%;
    opacity: 0.6;
}

/* Horario de atencion, como en FiushApk: un interruptor por dia. */
.editor-horario legend {
    margin-bottom: 2px;
    padding: 0;
}

.editor-horario-fila {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

.editor-horario-fila > span:first-child {
    flex: 1;
}

.editor-horario-cerrado {
    font-weight: 400;
    color: var(--muted);
}

.editor-horario-dia {
    border-top: 1px solid var(--line);
}

.editor-horario-horas {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 10px;
    font-weight: 400;
}

.editor-page .editor-horario-horas input[type="time"] {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.editor-switch {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    position: relative;
    width: 42px;
    height: 24px;
    margin: 0;
    border-radius: 999px;
    background: var(--muted);
    cursor: pointer;
    transition: background 0.15s;
}

.editor-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s;
}

.editor-switch:checked {
    background: var(--brand);
}

.editor-switch:checked::after {
    transform: translateX(18px);
}

.editor-switch:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.editor-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.editor-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.editor-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.editor-foto {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    padding: 0;
    border: 1px dashed var(--muted);
    border-radius: 12px;
    background: var(--bg);
    color: var(--muted);
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
}

.editor-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editor-foto-vacia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.3rem;
}

.editor-foto-vacia small {
    font-size: 0.72rem;
}

.editor-foto.is-subiendo::after {
    content: "Subiendo…";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
}

.editor-platos {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.editor-plato {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.editor-plato-campos {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-plato-fila {
    display: flex;
    gap: 8px;
}

.editor-precio {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 42%;
    font-weight: 600;
}

.editor-plato-acciones {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.editor-plato-mover {
    display: flex;
    gap: 4px;
}

.editor-plato-mover button {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.editor-agregar {
    width: 100%;
    padding: 12px;
}

.editor-barra {
    position: sticky;
    bottom: 0;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, var(--bg) 30%);
}

.editor-barra .notif-estado-msg {
    margin: 0 0 8px;
}

.editor-barra .notif-estado-msg.is-exito {
    color: var(--accent-green);
}

.editor-guardar {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 12px;
}

.editor-guardar:disabled {
    opacity: 0.6;
}

.editor-peligro {
    text-align: center;
    background: transparent;
    border: none;
}

.editor-borrar {
    color: #dc2626;
}

@media (max-width: 420px) {
    .editor-plato-fila {
        flex-direction: column;
    }

    .editor-foto {
        width: 72px;
        height: 72px;
    }

    .menu-plato-foto {
        width: 80px;
        height: 80px;
    }
}
