/* ========================================
   CATALOG4ALL - MENU BASE CSS
   Estilos base para menús de restaurante
======================================== */

:root {
    --primary-color: #1e88e5;
    --secondary-color: #00695c;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #fafafa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.menu-body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* ========================================
   LOADING SCREEN
======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.loading-spinner i {
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-spinner p {
    margin-top: 20px;
    font-size: 18px;
    color: var(--text-light);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MENU HEADER
======================================== */
.menu-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.menu-header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.menu-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.menu-header-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
}

.restaurant-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.restaurant-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.restaurant-logo:empty {
    display: none;
}

.restaurant-name {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.restaurant-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.95;
    font-style: italic;
}

.restaurant-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item i {
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

/* ========================================
   PROMOTIONS SECTION
======================================== */
.promotions-section {
    /* El color de fondo se aplica dinámicamente desde JavaScript */
    /* background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); - Comentado para permitir override dinámico */
    padding: 50px 20px;
    margin: 30px 0 0 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.promotions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.promotions-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.promotions-header {
    text-align: center;
    margin-bottom: 25px;
    color: #ffffff !important;
    position: relative;
    z-index: 2;
}

.promotions-title {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    margin-bottom: 12px;
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Playfair Display', 'Cormorant Garamond', serif !important;
    letter-spacing: 1px;
}

.promotions-title i {
    animation: pulse 2s infinite;
    font-size: 2.2rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.promotions-subtitle {
    font-size: 1.2rem !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(0,0,0,0.3) !important;
    opacity: 1 !important;
    font-family: 'Lato', sans-serif !important;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.promotion-dish-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    animation: slideUp 0.5s ease-out;
}

.promotion-dish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    border-color: #ffd700;
}

/* .promotion-dish-card::before {
    content: '🔥';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
    z-index: 2;
    animation: bounce 2s infinite;
} */
/* Comentado para evitar distorsión visual */

.promotion-dish-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.promotion-dish-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 2;
}

.promotion-dish-content {
    padding: 12px;
}

.promotion-dish-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promotion-dish-description {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promotion-dish-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.promotion-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75rem;
}

.promotion-final-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ff6b6b;
}

.promotion-discount-badge {
    background: #ffd700;
    color: #333;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

@media (max-width: 768px) {
    .promotions-title {
        font-size: 2rem !important;
        color: #ffffff !important;
    }
    
    .promotions-subtitle {
        font-size: 1rem !important;
        color: #ffffff !important;
    }
    
    .promotions-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .promotion-dish-image {
        height: 100px;
    }
    
    .promotion-dish-content {
        padding: 10px;
    }
    
    .promotion-dish-name {
        font-size: 0.85rem;
    }
    
    .promotion-final-price {
        font-size: 1rem;
    }
}

/* ========================================
   VIDEO SECTION
======================================== */
.video-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.video-container {
    max-width: 1400px;
    margin: 0 auto;
}

.video-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    display: block;
}

/* ========================================
   CHEF RECOMMENDATIONS SECTION
======================================== */
.chef-recommendations-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.chef-recommendations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.chef-recommendations-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.chef-recommendations-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
}

.chef-recommendations-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.chef-recommendations-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
}

.chef-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.recommendation-dish-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    animation: slideUp 0.5s ease-out;
}

.recommendation-dish-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.25);
    border-color: #ffd700;
}

.recommendation-dish-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.recommendation-dish-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2;
}

.recommendation-dish-content {
    padding: 20px;
}

.recommendation-dish-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.recommendation-dish-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.recommendation-dish-price {
    margin-top: 15px;
}

.recommendation-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #667eea;
}

@media (max-width: 768px) {
    .chef-recommendations-title {
        font-size: 2rem;
    }
    
    .chef-recommendations-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* ========================================
   CATEGORY NAVIGATION
======================================== */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.category-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    padding: 12px 28px;
    border: 2px solid transparent;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.category-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.category-btn i {
    margin-right: 8px;
}

/* ========================================
   SEARCH AND FILTERS BAR (NEW LAYOUT)
======================================== */
.search-filters-bar {
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 68px;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-filters-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Search Bar Compact */
.search-bar-compact {
    flex: 1;
    min-width: 300px;
}

.search-container {
    position: relative;
    width: 100%;
}

/* Tag Filters Compact */
.tag-filters-compact {
    flex: 1;
    min-width: 300px;
}

.tag-filters-header-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tag-filters-header-compact .filter-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.tag-filters-header-compact .clear-filters-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-filters-header-compact .clear-filters-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.tag-filters-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.tag-filters-scroll::-webkit-scrollbar {
    height: 6px;
}

.tag-filters-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.tag-filters-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.tag-filters-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.tag-filters-scroll .tag-filter {
    flex-shrink: 0;
    white-space: nowrap;
}

/* View and Results Row */
.view-results-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
    gap: 15px;
}

.view-selector-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.view-selector-compact .view-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.view-buttons-compact {
    display: flex;
    gap: 6px;
}

.view-buttons-compact .view-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    gap: 5px;
}

.view-buttons-compact .view-btn .view-name {
    font-size: 0.85rem;
}

.filter-results-compact {
    text-align: right;
    font-weight: 600;
    color: #1976d2;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-results-compact:empty {
    display: none;
}

/* ========================================
   SEARCH BAR (OLD - KEEP FOR COMPATIBILITY)
======================================== */
.search-bar {
    background: var(--white);
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 68px;
    z-index: 99;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30,136,229,0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-clear:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-dark);
}

/* ========================================
   TAG FILTERS (OLD - KEEP FOR COMPATIBILITY)
======================================== */
.tag-filters {
    background: var(--white);
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 128px;
    z-index: 98;
}

.tag-filters-container {
    max-width: 1400px;
    margin: 0 auto;
}

.tag-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.filter-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.clear-filters-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-filters-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.tag-filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tag-filter {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-filter:hover {
    background: #e3f2fd;
    border-color: #2196F3;
    transform: translateY(-2px);
}

.tag-filter.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    font-weight: 600;
}

.tag-filter.allergen {
    background: #fff3e0;
    border-color: #ff9800;
}

.tag-filter.allergen:hover {
    background: #ffe0b2;
    border-color: #f57c00;
}

.tag-filter.allergen.active {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    border-color: #FF9800;
    color: white;
}

.filter-results {
    text-align: center;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 8px;
    font-weight: 600;
    color: #1976d2;
}

.filter-results:empty {
    display: none;
}

/* ========================================
   MAIN CONTENT
======================================== */
.menu-main {
    padding: 60px 20px;
    min-height: 50vh;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
}

.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.menu-section {
    animation: fadeInUp 0.6s ease-out;
}

.menu-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.menu-section-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.menu-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.menu-section-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* ========================================
   DISH CARD
======================================== */
.dish-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.dish-card-image {
    position: relative;
    height: 280px;
    background: var(--bg-light);
    overflow: hidden;
}

.dish-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dish-card:hover .dish-card-image img {
    transform: scale(1.1);
}

.dish-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dish-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.dish-badge.signature {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
}

.dish-badge.vegetarian {
    background: #4CAF50;
    color: #fff;
}

.dish-badge.vegan {
    background: #8BC34A;
    color: #fff;
}

.dish-badge.gluten-free {
    background: #2196F3;
    color: #fff;
}

.dish-badge.spicy {
    background: #F44336;
    color: #fff;
}

.dish-badge.promotion {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Promotional Price */
.dish-card-price.has-promotion {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.dish-card-price .original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
}

.dish-card-price .promo-price {
    font-size: 1.4rem;
    color: #e91e63;
    font-weight: 700;
}

.dish-card-price .discount-percentage {
    position: absolute;
    top: -25px;
    right: 0;
    background: #e91e63;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dish-card-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.dish-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dish-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.dish-card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.dish-card-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--bg-light);
    font-size: 0.85rem;
    color: var(--text-light);
}

.dish-card-footer i {
    margin-right: 5px;
}

/* ========================================
   EMPTY STATE
======================================== */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state i {
    color: var(--text-light);
    margin-bottom: 30px;
}

.empty-state h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========================================
   DISH MODAL
======================================== */
.dish-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: auto;
}

.dish-modal.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dish-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
    pointer-events: auto;
    z-index: 1;
}

.dish-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    max-width: 1000px;
    width: 100%;
    z-index: 2;
    pointer-events: auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dish-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: var(--transition);
}

.dish-modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.dish-modal-inner {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
}

.dish-modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.dish-modal-image {
    height: 100%;
    min-height: 600px;
    background: var(--bg-light);
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.dish-modal-image:hover {
    transform: scale(1.02);
}

.dish-modal-image-zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
}

.dish-modal-image-zoom-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.dish-modal-gallery {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    overflow-x: auto;
    scrollbar-width: thin;
}

.dish-modal-gallery::-webkit-scrollbar {
    height: 4px;
}

.dish-modal-gallery::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.dish-modal-details {
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.dish-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.dish-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.dish-modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

.dish-modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.dish-modal-ingredients {
    margin-bottom: 30px;
}

.dish-modal-ingredients h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.dish-modal-ingredients ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dish-modal-ingredients li {
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
}

.dish-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 25px;
    border-top: 2px solid var(--bg-light);
    margin-top: auto;
}

.dish-modal-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.btn-order {
    flex: 1;
    padding: 18px 35px;
    border: none;
    background: #25D366;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-order:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-order i {
    margin-right: 10px;
}

/* ========================================
   FOOTER
======================================== */
.menu-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-powered {
    font-size: 0.9rem;
    opacity: 0.6;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   IMAGE ZOOM MODAL
======================================== */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-zoom-modal.active {
    display: flex;
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.image-zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-zoom-image {
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    touch-action: none; /* Previene scroll en móviles */
    -webkit-user-select: none;
    user-select: none;
}

.image-zoom-image:active {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .image-zoom-image {
        touch-action: pan-x pan-y pinch-zoom; /* Permite gestos táctiles */
    }
}

.image-zoom-image img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.image-zoom-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.image-zoom-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.image-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.image-zoom-prev {
    left: 30px;
}

.image-zoom-next {
    right: 30px;
}

.image-zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.zoom-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.zoom-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .image-zoom-image {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .image-zoom-image img {
        max-height: 85vh;
    }
    
    .image-zoom-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .image-zoom-prev {
        left: 15px;
    }
    
    .image-zoom-next {
        right: 15px;
    }
    
    .image-zoom-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .zoom-control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .image-zoom-controls {
        bottom: 15px;
        gap: 10px;
    }
}

/* Mobile Small (max-width: 480px) - Mejoras adicionales */
@media (max-width: 480px) {
    .image-zoom-image {
        max-width: 100%;
        max-height: 80vh;
    }
    
    .image-zoom-image img {
        max-height: 80vh;
    }
    
    .image-zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .image-zoom-prev {
        left: 10px;
    }
    
    .image-zoom-next {
        right: 10px;
    }
    
    .image-zoom-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .zoom-control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .image-zoom-controls {
        bottom: 10px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dish-modal-image {
        min-height: 300px;
        max-height: 350px;
    }
    
    .dish-modal-image-zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        top: 10px;
        right: 10px;
    }
    
    .gallery-thumb {
        width: 45px;
        height: 45px;
    }
}

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .menu-header {
        height: 50vh;
        min-height: 350px;
    }
    
    .restaurant-name {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .restaurant-tagline {
        font-size: 1.4rem;
    }
    
    .category-nav-inner {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .menu-section-title {
        font-size: 2.5rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .search-bar {
        padding: 15px;
        top: 60px;
    }
    
    .search-input {
        font-size: 0.95rem;
        padding: 10px 40px 10px 40px;
    }
    
    /* New Layout - Mobile */
    .search-filters-bar {
        top: 60px;
    }
    
    .search-filters-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .search-bar-compact {
        width: 100%;
        min-width: 100%;
    }
    
    .tag-filters-compact {
        width: 100%;
        min-width: 100%;
    }
    
    .view-results-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .view-selector-compact {
        width: 100%;
    }
    
    .view-buttons-compact {
        width: 100%;
        justify-content: space-between;
    }
    
    .view-buttons-compact .view-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
    }
    
    .filter-results-compact {
        width: 100%;
        text-align: left;
    }
    
    .tag-filters {
        padding: 15px;
        top: 115px;
    }
    
    .tag-filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tag-filters-grid {
        gap: 8px;
    }
    
    .tag-filter {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .menu-header {
        height: 45vh;
        min-height: 300px;
    }
    
    .restaurant-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .restaurant-name {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .restaurant-tagline {
        font-size: 1.1rem;
    }
    
    .restaurant-info {
        flex-direction: column;
        gap: 10px;
        font-size: 0.9rem;
    }
    
    .category-nav {
        padding: 15px 0;
    }
    
    .category-nav-inner {
        gap: 8px;
        padding: 0 15px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .menu-main {
        padding: 40px 15px;
    }
    
    .menu-section {
        margin-bottom: 50px;
    }
    
    .menu-section-icon {
        font-size: 2.5rem;
    }
    
    .menu-section-title {
        font-size: 2rem;
    }
    
    .menu-section-description {
        font-size: 1rem;
    }
    
    .dishes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dish-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .dish-card-name {
        font-size: 1.4rem;
    }
    
    .dish-card-description {
        font-size: 0.95rem;
    }
    
    .dish-card-footer {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .dish-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
        border-radius: 12px;
        overflow: hidden;
    }
    
    .dish-modal-inner {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    }
    
    .dish-modal-image-container {
        width: 100%;
        flex-shrink: 0;
    }
    
    .dish-modal-image {
        min-height: 300px;
        max-height: 350px;
    }
    
    .dish-modal-image-zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        top: 10px;
        right: 10px;
    }
    
    .gallery-thumb {
        width: 45px;
        height: 45px;
    }
    
    .dish-modal-details {
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .dish-modal-header h2 {
        font-size: 1.8rem;
    }
    
    .dish-modal-description {
        font-size: 1rem;
    }
    
    .dish-modal-price {
        font-size: 2rem;
    }
    
    .dish-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn-order {
        width: 100%;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .menu-footer {
        padding: 40px 20px 25px;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .restaurant-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .restaurant-name {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .restaurant-tagline {
        font-size: 1rem;
    }
    
    .category-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    
    .menu-section-title {
        font-size: 1.6rem;
    }
    
    .dish-card-name {
        font-size: 1.2rem;
    }
    
    .dish-modal-details {
        padding: 20px;
    }
    
    .dish-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .dish-modal-price {
        font-size: 1.8rem;
    }
}

/* ========================================
   VIEW SELECTOR
======================================== */
/* View Selector (OLD - KEEP FOR COMPATIBILITY) */
.view-selector {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.view-selector-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.view-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.view-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--text-light);
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f7ff;
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.view-btn i {
    font-size: 1rem;
}

.view-name {
    display: inline;
}

/* ========================================
   GRID VIEW
======================================== */
.menu-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px 20px;
}

.dish-card-grid {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

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

.dish-card-grid:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.dish-card-grid-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.dish-card-grid-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
}

.dish-card-grid-content {
    padding: 18px;
}

.dish-card-grid-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.dish-card-grid-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   COMPACT VIEW
======================================== */
.menu-sections-compact {
    padding: 20px;
}

.compact-section {
    margin-bottom: 35px;
}

.compact-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.compact-dishes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compact-dish-card {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.compact-dish-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.compact-dish-card:active {
    transform: translateX(2px);
    box-shadow: var(--shadow-sm);
}

.compact-dish-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.compact-dish-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-dish-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.compact-dish-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.compact-dish-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.compact-dish-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-dish-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.compact-dish-badges .dish-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* ========================================
   GALLERY VIEW
======================================== */
.menu-sections-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery-section {
    grid-column: 1 / -1;
    margin-bottom: 30px;
}

.gallery-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.gallery-dish-card {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-dish-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.gallery-dish-card:active {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

.gallery-dish-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gallery-dish-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 15px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-dish-card:hover .gallery-dish-overlay {
    transform: translateY(0);
}

.gallery-dish-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    margin: 0 0 5px 0;
}

.gallery-dish-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
}

.gallery-signature-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,215,0,0.9);
    color: var(--text-dark);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ========================================
   RESPONSIVE VIEWS
======================================== */
@media (max-width: 768px) {
    .view-selector {
        padding: 10px 15px;
    }
    
    .view-selector-container {
        gap: 10px;
    }
    
    .view-label {
        font-size: 0.85rem;
        width: 100%;
    }
    
    .view-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .view-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .view-name {
        display: none;
    }
    
    .menu-sections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .dish-card-grid-image {
        height: 180px;
    }
    
    .dish-card-grid-content {
        padding: 15px;
    }
    
    .dish-card-grid-name {
        font-size: 1rem;
    }
    
    .dish-card-grid-desc {
        font-size: 0.85rem;
    }
    
    .compact-dish-card {
        padding: 12px;
        gap: 12px;
    }
    
    .compact-dish-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
    
    .compact-dish-name {
        font-size: 1rem;
    }
    
    .compact-dish-price {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .gallery-section-title {
        font-size: 1.3rem;
    }
    
    .gallery-dish-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    }
    
    .gallery-dish-name {
        font-size: 0.9rem;
    }
    
    .gallery-dish-price {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .view-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .menu-sections-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 10px;
    }
    
    .dish-card-grid-image {
        height: 200px;
    }
    
    .dish-card-grid-content {
        padding: 15px;
    }
    
    .compact-dish-card {
        flex-direction: column;
        padding: 12px;
    }
    
    .compact-dish-image {
        width: 100%;
        height: 180px;
        min-width: auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

