﻿/* MenuGo — tema restaurante moderno (ambar · gris · oliva) */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --color-text: #44403c;
    --color-muted: #78716c;
    --color-border: #e7e5e4;
    --color-surface: #ffffff;
    --color-gray-700: #525252;
    --color-gray-600: #6b7280;
    --color-gray-500: #737373;
    --color-gray-400: #9ca3af;
    --accent: #f59e0b;
    --accent-strong: #d97706;
    --accent-bright: #fbbf24;
    --accent-soft: #fffbeb;
    --accent-dark: #57534e;
    --accent-olive: #3f6212;
    --accent-glow: rgba(245, 158, 11, 0.28);
    --success: #059669;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0d9488;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(82, 82, 82, 0.08);
    --max-width: 1100px;
    --gutter: 1.25rem;
    --brand-logo-max-width: min(17rem, 80vw);
    --brand-logo-max-height: 6.75rem;
}

* { box-sizing: border-box; }

body {
    font-family: "Work Sans", sans-serif;
    margin: 0;
    color: var(--color-text);
}

.page-app {
    min-height: 100vh;
    background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 45%, #fffbeb 100%);
}

@keyframes headerGradient {
    0%, 100% { background-position: 0% 40%; }
    50% { background-position: 100% 60%; }
}

.app-header {
    color: #fff;
    padding: 0.875rem 0;
    background: linear-gradient(
        125deg,
        #525252 0%,
        #6b7280 28%,
        #78350f 52%,
        #d97706 78%,
        #f59e0b 100%
    );
    background-size: 200% 200%;
    animation: headerGradient 18s ease-in-out infinite;
    box-shadow: 0 4px 24px rgba(82, 82, 82, 0.25);
}

.app-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.875rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-header-start {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.app-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.app-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.app-header-titles {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.app-header-logo {
    display: block;
    max-width: var(--brand-logo-max-width);
    max-height: var(--brand-logo-max-height);
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.app-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
}

.app-title-accent {
    color: #fde68a;
    font-weight: 600;
}

.app-subtitle {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    max-width: 14rem;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.app-brand-logo {
    max-width: var(--brand-logo-max-width);
    max-height: var(--brand-logo-max-height);
    width: auto;
    object-fit: contain;
}
.app-brand-text { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-empresa-badge {
    background: rgba(255, 255, 255, 0.14);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.empresa-selector-form { margin: 0; }
.form-select-sm { min-width: 180px; padding: 0.35rem 0.5rem; font-size: 0.8125rem; border-radius: 8px; border: none; }

.app-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem var(--gutter) 3rem;
}

.app-main--seleccion-empresa {
    padding-top: 2.5rem;
}

.app-footer {
    text-align: center;
    padding: 1rem;
    color: var(--color-muted);
    font-size: 0.75rem;
}

.app-footer-mobipos-logo {
    display: block;
    width: auto;
    max-width: min(5rem, 26vw);
    max-height: 1.85rem;
    height: auto;
    margin: 0 auto 0.45rem;
    object-fit: contain;
    opacity: 0.9;
}

.app-footer p {
    margin: 0;
}

.app-footer a { color: inherit; }

.app-welcome h1 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.app-muted { color: var(--color-muted); margin: 0; }
.section-title { font-size: 1.125rem; margin: 2rem 0 1rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.1);
}

.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--accent-strong); }
.stat-label { font-size: 0.8125rem; color: var(--color-muted); }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.menu-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.45);
}

.menu-card-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.menu-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.menu-card p { margin: 0; font-size: 0.875rem; color: var(--color-muted); line-height: 1.45; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 50%, var(--accent-bright) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.4);
}

.btn-secondary { background: #fff; border-color: var(--color-border); color: var(--color-text); }
.btn-danger { background: var(--danger); color: #fff; border: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.page-toolbar h1 { margin: 0; font-size: 1.5rem; }

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.35rem; color: #44403c; }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="search"],
.form-group select,
.form-group textarea,
.form-select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-hint { font-size: 0.75rem; color: var(--color-muted); margin: 0.35rem 0 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    background: #fafaf9;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #57534e;
}

.data-table tr:hover td { background: #fffbeb; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #ccfbf1; color: #115e59; }
.badge-muted { background: #f5f5f4; color: #57534e; }

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #f0fdfa; color: #115e59; border: 1px solid #99f6e4; }

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--color-muted);
}

.pedido-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1rem;
    align-items: start;
}

.pedido-productos-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pedido-productos-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pedido-productos-head h2 {
    margin: 0;
    font-size: 1rem;
}

.pedido-productos-contador {
    margin: 0;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.pedido-productos-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pedido-productos-toolbar .form-group {
    margin-bottom: 0;
}

.pedido-productos-grid-wrap {
    max-height: min(72vh, 680px);
    overflow-y: auto;
    padding-right: 0.25rem;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
}

.pedido-productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.75rem;
}

.pedido-producto-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pedido-producto-card[hidden] {
    display: none !important;
}

.pedido-producto-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.14);
    transform: translateY(-1px);
}

.pedido-producto-card--en-carrito {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 1px var(--accent-strong);
}

.pedido-producto-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    overflow: hidden;
}

.pedido-producto-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pedido-producto-card-media--empty {
    font-size: 1.75rem;
    color: #cbd5e1;
}

.pedido-producto-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.7rem 0.75rem;
    min-height: 5.5rem;
}

.pedido-producto-card-nombre {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25;
    color: var(--color-text);
}

.pedido-producto-card-codigo,
.pedido-producto-card-cat {
    display: block;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.pedido-producto-card-precio {
    display: block;
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.pedido-producto-card-qty {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pedido-productos-vacio {
    margin: 1.5rem 0 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.pedido-detalle-panel {
    position: sticky;
    top: 1rem;
}

.carrito-vacio {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.carrito-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.carrito-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.carrito-item-info strong {
    font-size: 0.875rem;
    line-height: 1.25;
}

.carrito-item-info span {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.carrito-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.carrito-qty-btn {
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.carrito-qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.carrito-item-cantidad {
    min-width: 1.25rem;
    text-align: center;
    font-weight: 600;
}

.carrito-item-subtotal {
    font-weight: 600;
    color: var(--accent-strong);
    white-space: nowrap;
}

.pedido-mesa-seleccion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pedido-mesa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1200;
}

.pedido-mesa-overlay[hidden] {
    display: none;
}

.pedido-mesa-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1201;
    width: min(92vw, 420px);
    max-height: min(90vh, 520px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    padding: 1rem 1rem 1.25rem;
}

.pedido-mesa-modal[hidden] {
    display: none;
}

.pedido-mesa-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pedido-mesa-modal-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.pedido-mesa-modal-cerrar {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-muted);
    padding: 0.25rem;
}

.pedido-mesa-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.pedido-mesa-num {
    min-height: 3rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pedido-mesa-num:hover {
    border-color: var(--accent);
    background: #fffbeb;
}

.pedido-mesa-num--activa {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
    color: #fff;
}

body.pedido-mesa-modal-abierto {
    overflow: hidden;
}

.pedido-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
}

.pedido-confirm-overlay[hidden] {
    display: none;
}

.pedido-confirm-modal {
    width: min(100%, 360px);
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.pedido-confirm-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 1.75rem;
    line-height: 3.5rem;
    font-weight: 700;
}

.pedido-confirm-titulo {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.pedido-confirm-texto {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.9375rem;
}

body.pedido-confirm-modal-abierto {
    overflow: hidden;
}

.pedido-impresion-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.5);
}

.pedido-impresion-overlay[hidden],
.pedido-impresion-modal[hidden] {
    display: none;
}

.pedido-impresion-modal {
    position: fixed;
    z-index: 81;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(100% - 2rem, 420px);
    padding: 1.25rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.pedido-impresion-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pedido-impresion-modal-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.pedido-impresion-cerrar {
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.pedido-impresion-opciones {
    display: grid;
    gap: 0.75rem;
}

.pedido-impresion-opciones .form-check {
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.pedido-impresion-opciones .form-check small {
    color: var(--color-muted);
}

.config-impresion-modos {
    display: grid;
    gap: 0.65rem;
}

.config-impresion-modos .form-check {
    align-items: flex-start;
}

body.pedido-impresion-modal-abierto {
    overflow: hidden;
}

@media (max-width: 480px) {
    .pedido-mesa-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 960px) {
    .pedido-productos-toolbar {
        grid-template-columns: 1fr;
    }
}

.pedido-envio-info,
.pedido-acciones-pedido {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.pedido-btn-ubicacion {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.pedido-btn-ubicacion:hover {
    filter: brightness(1.08);
    color: #fff;
}

.pedido-btn-ticket {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.pedido-btn-ticket:hover {
    filter: brightness(1.08);
    color: #fff;
}

.pedido-btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    font-family: inherit;
}

.pedido-btn-whatsapp:hover {
    filter: brightness(1.08);
    color: #fff;
}

@media (max-width: 900px) {
    .pedido-grid { grid-template-columns: 1fr; }
    .pedido-detalle-panel { position: static; }
    .pedido-productos-grid-wrap { max-height: min(55vh, 520px); }
    .producto-form-grid { grid-template-columns: 1fr; }
}

.config-empresa-grid {
    display: grid;
    grid-template-columns: 1fr min(280px, 34%);
    gap: 1.25rem;
    align-items: start;
}

.config-empresa-logo {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    background: #fff;
}

.config-empresa-logo .producto-imagen-preview .producto-imagen-thumb {
    width: 100%;
    max-width: 220px;
    height: auto;
    max-height: 220px;
    aspect-ratio: 1;
    object-fit: contain;
}

@media (max-width: 900px) {
    .config-empresa-grid { grid-template-columns: 1fr; }
}

.config-horarios-wrap {
    overflow-x: auto;
}

.config-horarios-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.config-horarios-table th,
.config-horarios-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}

.config-horarios-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-muted);
    background: #fafaf9;
}

.config-horarios-table tbody th[scope="row"] {
    font-weight: 600;
    color: var(--accent-dark);
    white-space: nowrap;
}

.config-horarios-check {
    width: 5.5rem;
}

.config-horarios-table input[type="time"] {
    width: 100%;
    min-width: 6.5rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.875rem;
}

.config-horarios-table input[type="time"]:disabled {
    background: #f5f5f4;
    color: var(--color-muted);
}

.config-carta-qr-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.config-carta-qr-visual {
    text-align: center;
}

.config-carta-qr-image {
    display: block;
    width: 220px;
    height: 220px;
    margin: 0 auto 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
}

.config-carta-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.config-carta-qr-url {
    word-break: break-all;
    margin: 0 0 0.75rem;
}

@media (max-width: 640px) {
    .config-carta-qr-grid {
        grid-template-columns: 1fr;
    }
}

.form-check--inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.producto-imagen-cell {
    width: 3.5rem;
    padding-right: 0.25rem;
}

.producto-form-grid {
    display: grid;
    grid-template-columns: 1fr min(300px, 36%);
    gap: 1.25rem;
    align-items: start;
}

.producto-form-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: #fff;
}

.producto-form-panel-title {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.producto-form-datos .form-group:last-child {
    margin-bottom: 0;
}

.producto-form-imagen {
    display: flex;
    flex-direction: column;
}

.producto-form-imagen .form-group:last-of-type {
    margin-bottom: 0;
}

.producto-imagen-preview {
    margin-bottom: 0.75rem;
    text-align: center;
}

.producto-imagen-thumb {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: #fff;
}

.producto-form-imagen .producto-imagen-preview .producto-imagen-thumb {
    width: 100%;
    max-width: 220px;
    height: auto;
    max-height: 220px;
    aspect-ratio: 1;
    object-fit: cover;
}

.producto-imagen-empty {
    color: var(--color-muted);
}

.form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.form-hint-warning {
    color: var(--warning);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.producto-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.producto-item {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.producto-item:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.14);
    transform: translateY(-1px);
}

.producto-item strong { display: block; font-size: 0.875rem; }
.producto-item span { font-size: 0.8125rem; color: var(--accent-strong); font-weight: 600; }

.carrito-lista { list-style: none; padding: 0; margin: 0; }
.carrito-lista li {
    padding: 0;
    border-bottom: none;
    font-size: inherit;
}

.carrito-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--accent-strong);
    color: var(--accent-dark);
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }

@media (max-width: 640px) {
    .app-brand-text,
    .app-subtitle {
        display: none;
    }
    .page-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .app-header {
        animation: none;
        background-size: 100% 100%;
        background-position: 50% 50%;
    }
    .menu-card,
    .stat-card,
    .producto-item,
    .pedido-producto-card,
    .btn-primary {
        transition: none;
    }
}
