/* MenuDigital - App Styles (Premium) */

/* ==========================================
   AUTH - LOGIN / REGISTRO (Premium)
   ========================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0f2d24 0%, #1B4332 35%, #2d5a47 70%, #3d6b54 100%);
    z-index: 0;
}

.auth-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 255, 255, 0.06), transparent);
    pointer-events: none;
}

.auth-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.4;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.shape-1 {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 240px;
    height: 240px;
    bottom: -40px;
    left: -40px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 160px;
    height: 160px;
    top: 55%;
    left: 15%;
    animation: float 7s ease-in-out infinite 1s;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: fadeInUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B4332;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.auth-logo .logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 400;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.auth-form .form-input {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.12);
}

.auth-form .btn-primary.btn-block {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 0.5rem;
    background: linear-gradient(180deg, #1B4332 0%, #153728 100%);
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.3);
}

.auth-form .btn-primary.btn-block:hover {
    background: linear-gradient(180deg, #153728 0%, #0f2d24 100%);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.35);
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.auth-switch a {
    color: var(--color-primary);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ==========================================
   DASHBOARD LAYOUT (Premium)
   ========================================== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f5f5f4;
}

/* Sidebar - Premium */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a2e28 0%, #152922 100%);
    border-right: none;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: var(--z-sticky);
    transition: transform var(--transition-base);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06);
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.sidebar-logo .logo-icon {
    font-size: 1.5rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.75rem 1rem;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.nav-icon {
    font-size: 1.125rem;
    opacity: 0.9;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-footer .btn-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.sidebar-footer .btn-link:hover {
    color: #fff;
}

.btn-logout {
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(229, 62, 62, 0.2);
    border-color: rgba(229, 62, 62, 0.5);
    color: #fff;
}

/* Main Content - position relative y z-index para que no quede tapado */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--color-text);
    cursor: pointer;
}

.topbar-title {
    flex: 1;
}

.topbar-title h1 {
    font-size: 1.125rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text);
}

.topbar-actions .btn-primary {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.content-section {
    padding: 1.5rem;
    animation: fadeIn var(--transition-base);
    flex: 1;
    min-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    width: 100%;
}

/* ==========================================
   STATS & DASHBOARD (Premium)
   ========================================== */

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

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 67, 50, 0.08);
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

/* QR Card - Premium */
.qr-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.qr-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.qr-preview {
    margin-bottom: 1rem;
}

.qr-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qr-download-buttons .btn {
    flex: 1;
    min-width: 140px;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    background: #f5f5f4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-mock {
    width: 120px;
    height: 120px;
    background:
        linear-gradient(90deg, var(--color-text) 50%, transparent 50%),
        linear-gradient(var(--color-text) 50%, transparent 50%);
    background-size: 16px 16px;
    border-radius: 4px;
}

.qr-url {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    word-break: break-all;
}

/* Quick Actions - Premium */
.quick-actions {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.quick-actions h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: var(--color-primary);
    background: rgba(27, 67, 50, 0.04);
}

.action-icon {
    font-size: 1.5rem;
}

.action-btn span:last-child {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Cards en contenido (Premium) */
.content-section .card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.content-section .card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   MENU & DISHES
   ========================================== */

.section-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.section-header-bar h2 {
    font-size: var(--text-xl);
    font-family: var(--font-body);
}

.menu-filter {
    margin-bottom: var(--space-4);
    max-width: 300px;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
}

.dish-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}

.dish-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dish-card.unavailable {
    opacity: 0.7;
}

.dish-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-background);
}

.dish-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.dish-content {
    padding: var(--space-4);
}

.dish-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.dish-name {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-text);
}

.dish-price {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    white-space: nowrap;
}

.dish-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.dish-category {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: var(--color-background);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
}

.dish-tags {
    font-size: var(--text-sm);
}

.dish-actions {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    gap: var(--space-2);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.dish-card:hover .dish-actions {
    opacity: 1;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-base);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-icon.btn-danger:hover {
    background: var(--color-error);
}

/* ==========================================
   STOCK GALLERY
   ========================================== */

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    min-height: 200px;
}

/* ==========================================
   CATEGORIES
   ========================================== */

.categories-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-surface);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.category-item:hover {
    box-shadow: var(--shadow-md);
}

.category-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.category-icon {
    font-size: var(--text-2xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border-radius: var(--radius-lg);
}

.category-name {
    font-weight: var(--font-semibold);
    color: var(--color-text);
}

.category-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    background: var(--color-background);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-left: var(--space-3);
}

.category-actions {
    display: flex;
    gap: var(--space-2);
}

/* ==========================================
   SETTINGS
   ========================================== */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.25rem;
}

.settings-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.settings-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--color-text);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.input-prefix {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 2px solid var(--color-text-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.input-prefix span {
    padding: var(--space-3) var(--space-4);
    background: var(--color-background);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.input-prefix .form-input {
    border: none;
    border-radius: 0;
}

.input-prefix .form-input:focus {
    box-shadow: none;
}

.color-options {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.color-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--color-text);
    box-shadow: var(--shadow-md);
}

/* Theme cards */
.theme-card:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(27,67,50,0.12) !important;
}

/* ==========================================
   MODALS
   ========================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-6);
    box-shadow: var(--shadow-2xl);
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-sm .modal-content {
    max-width: 400px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.modal-header h2 {
    font-size: var(--text-xl);
    font-family: var(--font-body);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-error);
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.tag-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-background);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-sm);
    transition: background var(--transition-fast);
}

.tag-option:hover {
    background: rgba(27, 67, 50, 0.1);
}

.tag-option input {
    accent-color: var(--color-primary);
}

.modal-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================
   EMPTY STATES
   ========================================== */

.empty-state {
    text-align: center;
    padding: var(--space-12);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.empty-state p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-5);
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.toast {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    background: var(--color-text);
    color: white;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: var(--z-toast);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--color-success);
}

.toast-error {
    background: var(--color-error);
}

.toast-info {
    background: var(--color-info);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Overlay para cerrar sidebar en móvil */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: calc(var(--z-sticky) - 1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* En desktop NUNCA mostrar el overlay - evita que tape el contenido */
@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.open ~ .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .topbar {
        padding: var(--space-4);
    }

    .content-section {
        padding: var(--space-4);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dishes-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .auth-card {
        padding: var(--space-6);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: var(--space-4);
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   LOGO UPLOAD
   ========================================== */

.logo-upload-container {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.logo-preview {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--color-background);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed var(--color-text-light);
}

.logo-placeholder {
    font-size: 2rem;
    opacity: 0.5;
}

.logo-upload-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.upload-btn {
    cursor: pointer;
    text-align: center;
}

.upload-or {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* ==========================================
   COLOR PICKER CUSTOMIZADO
   ========================================== */

.color-picker {
    width: 100%;
    height: 44px;
    padding: 4px;
    border: 2px solid var(--color-text-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: var(--color-surface);
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: var(--radius-md);
}

/* ==========================================
   IMAGE UPLOAD PARA PLATOS
   ========================================== */

.image-upload-container {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.image-preview {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--color-background);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed var(--color-text-light);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    font-size: 1.5rem;
    opacity: 0.3;
}

/* ==========================================
   QR CODE STYLES
   ========================================== */

#qrPreview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

#qrPreview canvas,
#qrPreview img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   RESPONSIVE SETTINGS GRID
   ========================================== */

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   BANNERS MANAGEMENT
   ========================================== */

.banners-section {
    margin-top: 2rem;
    border-top: 1px dashed #eee;
    padding-top: 1.5rem;
}

.banners-list {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 0.5rem;
    border: 1px solid #eee;
    border-radius: 6px;
}

.banner-image-preview {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.banner-info {
    flex: 1;
}

.banner-position-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.banner-link-text {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.banner-delete-btn {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.banner-delete-btn:hover {
    background: #fee2e2;
}

.add-banner-form {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* ==========================================
   ANALYTICS DASHBOARD
   ========================================== */

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.top-dishes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-dish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.top-dish-item:last-child {
    border-bottom: none;
}

.top-dish-rank {
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.75rem;
    color: #4b5563;
}