/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

html{
    scroll-behavior: smooth;}
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #232946;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.dark-mode {
    background: #181a20;
    color: #f8f9fa;
}
body.dark-mode .cover-header {
    background: #232946;
}
body.dark-mode .cover-overlay {
    background: linear-gradient(120deg, rgba(35,41,70,0.65) 0%, rgba(238,188,29,0.10) 100%);
}
body.dark-mode .category-section {
    background: #232946;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    border: 1px solid #232946;
}
body.dark-mode .category-title {
    color: #eebc1d;
}
body.dark-mode .category-divider {
    border-top: 3px solid #eebc1d;
}
body.dark-mode .category-tabs {
    background: #232946;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
body.dark-mode .category-tab {
    color: #f8f9fa;
}
body.dark-mode .category-tab:hover, body.dark-mode .category-tab:focus {
    color: #eebc1d;
    background: #181a20;
    border-bottom: 3px solid #eebc1d;
}
body.dark-mode .cat-icon {
    color: #eebc1d;
}
body.dark-mode .dish-card-modern {
    background: #232946;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
body.dark-mode .dish-title-modern {
    color: #eebc1d;
}
body.dark-mode .dish-desc-modern {
    color: #b8c1ec;
}
body.dark-mode .dish-price-main {
    color: #eebc1d;
}
body.dark-mode .dish-add-btn {
    background: #181a20;
    color: #eebc1d;
    border: 1.5px solid #eebc1d;
}
body.dark-mode .dish-add-btn:hover {
    background: #eebc1d;
    color: #232946;
    border: 1.5px solid #232946;
}
body.dark-mode .header-btn {
    background: #232946;
    color: #eebc1d;
    border: 1.5px solid #eebc1d;
}
body.dark-mode .header-btn:hover {
    background: #eebc1d;
    color: #232946;
    border: 1.5px solid #232946;
}
body.dark-mode .logo-img {
    background: #fff;
    border: 4px solid #eebc1d;
}
body.dark-mode .status-dot.open {
    background: #22c55e;
    border: 2px solid #232946;
}
body.dark-mode .status-dot.closed {
    background: #dc3545;
    border: 2px solid #232946;
}
body.dark-mode .container {
    background: none;
}

/* Modal de Información */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 41, 70, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transition: opacity 0.18s;
    opacity: 1;
}

.modal-overlay.show {
    display: flex;
}

.modal-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(35, 41, 70, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    transition: opacity 0.18s, transform 0.18s;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-hide {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    pointer-events: none;
}

.modal-content.hide {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    pointer-events: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Fixed action buttons */
.fixed-action-buttons {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1000;
    display: flex;
    gap: 12px;
    pointer-events: none;
}

.fixed-action-btn {
    background: #fff;
    border: 2px solid #eebc1d;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(35,41,70,0.08);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    color: #232946;
    text-decoration: none;
}

.fixed-action-btn:hover {
    background: #eebc1d;
    color: #232946;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35,41,70,0.15);
    text-decoration: none;
}

.fixed-action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 188, 29, 0.3);
}

/* Dark mode styles for fixed buttons */
.dark-mode .fixed-action-btn {
    background: #2a2a2a;
    border-color: #eebc1d;
    color: #eebc1d;
}

.dark-mode .fixed-action-btn:hover {
    background: #eebc1d;
    color: #2a2a2a;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 2px solid #eebc1d;
    background: linear-gradient(135deg, #232946 0%, #2d3748 100%);
    border-radius: 20px 20px 0 0;
}

.modal-title {
    color: #eebc1d;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    font-size: 1.6rem;
}

.modal-close {
    background: none;
    border: none;
    color: #eebc1d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(238, 188, 29, 0.1);
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #eebc1d;
    transition: all 0.2s;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.info-item i {
    font-size: 1.4rem;
    color: #eebc1d;
    margin-top: 2px;
    min-width: 20px;
}
.info-item:hover i{
    color: #eebc1d;
}

.info-item .services-list{
    color: #232946 !important;
    }
.info-item .services-list span:hover,.info-item .services-list span:hover i{
    color: #eebc1d !important;
    }
.info-item .services-list i{
color: #232946 !important;
}

.info-content h3 {
    color: #232946;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.info-content p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.status-badge.closed {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.whatsapp-link {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.whatsapp-link:hover {
    color: #128c7e;
    transform: scale(1.05);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eebc1d;
    color: #232946;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid #eebc1d;
    transition: all 0.2s;
}

.service-badge:hover {
    background: #232946;
    color: #eebc1d;
    transform: scale(1.05);
}

.service-badge.disabled {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.service-badge.disabled:hover {
    background: #5a6268;
    transform: none;
}

/* Dark mode para el modal */
body.dark-mode .modal-content {
    background: #232946;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .info-item {
    background: #2d3748;
    border-left-color: #eebc1d;
}

body.dark-mode .info-item:hover {
    background: #4a5568;
}

body.dark-mode .info-content h3 {
    color: #eebc1d;
}

body.dark-mode .info-content p {
    color: #b8c1ec;
}

body.dark-mode .status-badge.open {
    background: #22543d;
    color: #9ae6b4;
    border-color: #38a169;
}

body.dark-mode .status-badge.closed {
    background: #742a2a;
    color: #feb2b2;
    border-color: #e53e3e;
}

body.dark-mode .service-badge {
    background: #eebc1d;
    color: #232946;
    border-color: #eebc1d;
}

body.dark-mode .service-badge:hover {
    background: #232946;
    color: #eebc1d;
}

body.dark-mode .info-item .servicios-entrega span.service-badge i{
    color: #232946 !important;
}

body.dark-mode .service-badge.disabled {
    background: #4a5568;
    color: #a0aec0;
    border-color: #4a5568;
}

/* Responsive para el modal */
@media (max-width: 600px) {
    .modal-content {
        max-width: 95vw !important;
        width: 95% !important;
        margin: 20px;
        max-height: 90vh;
        height: 85vh;
    }
    
    .modal-header {
        padding: 20px 20px 12px 20px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .info-item {
        padding: 12px;
        gap: 12px;
    }
    
    .info-item i {
        font-size: 1.2rem;
    }
    
    .services-list {
        flex-direction: column;
    }
    
    .service-badge {
        justify-content: center;
    }
}

/* Encabezado moderno */
.cover-header {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    background: #fff;
}
.cover-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.cover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(35,41,70,0.25) 0%, rgba(238,188,29,0.10) 100%);
    z-index: 1;
}
.cover-content {
    position: absolute;
    left: 40px;
    bottom: 24px;
    display: flex;
    align-items: center;
    z-index: 2;
    width: calc(100% - 80px);
}
.logo-img {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 12px rgba(60,60,120,0.18);
    background: #fff;
    filter: drop-shadow(0 0 8px rgba(238, 188, 29, 0.6));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(238, 188, 29, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 16px rgba(238, 188, 29, 0.9));
    }
}
.header-info {
    margin-left: 24px;
    flex: 1;
}
.restaurant-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(40,40,80,0.18);
}
.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}
.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 2px;
    border: 2px solid #fff;
}
.status-dot.open { background: #22c55e; }
.status-dot.closed { background: #dc3545; }
.status-text { font-weight: 600; }
.header-actions {
    display: flex;
    margin-left: 24px;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}
.header-btn {
    background: #fff;
    color: #232946;
    border: 1.5px solid #eebc1d;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(35,41,70,0.10);
    transition: background 0.2s, color 0.2s, border 0.2s;
    text-decoration: none;
}
.header-btn:hover {
    background: #eebc1d;
    color: #232946;
    border: 1.5px solid #232946;
}

/* Menú de categorías tipo tabs */
.category-tabs {
    display: flex;
    z-index: 188;
    position: sticky;
    top: 0;
    text-align: center;
    align-items: center;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 16px rgba(35,41,70,0.12);
    margin: 0 auto 32px auto;
    padding: 5px 18px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: center;
}
/* Clase para cuando se hace scroll */
.category-tabs.scrolled {
    box-shadow: 0 6px 20px rgba(35,41,70,0.18);
    padding: 2px 18px;
}

@media screen and (max-width: 600px) {
    .category-tabs {
        justify-content: flex-start;
        padding: 5px 10px;
    }
    
    .category-tabs.scrolled {
        padding: 2px 10px;
    }
}
.category-tab.active, .category-tab.is-active {
    background: #f8f9fa;
    border-bottom: 3px solid #eebc1d;
    color: #eebc1d;
}
.category-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px 10px 18px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #232946;
    border-bottom: 3px solid transparent;
    text-decoration: none !important;
    transition: all 0.25s ease;
    background: none;
    border-radius: 0 0 12px 12px;
    white-space: nowrap;
    scroll-snap-align: center;
}
.category-tab:hover, .category-tab:focus {
    color: #eebc1d;
    background: #f8f9fa;
    border-bottom: 3px solid #eebc1d;
    transform: translateY(2px);
}
.cat-icon {
    font-size: 1.3em;
}

/* Estilos para pestañas de subcategorías */
.category-tab.subcategory-tab {
    font-size: 0.95rem;
    padding: 12px 16px 8px 16px;
    background: #f8f9fa;
    border-left: 3px solid #eebc1d;
    margin-left: 8px;
    border-radius: 0 8px 8px 0;
}

.category-tab.subcategory-tab:hover, .category-tab.subcategory-tab:focus {
    background: #e9ecef;
    border-left-color: #d4a017;
}

.category-tab.subcategory-tab.active {
    background: #e9ecef;
    border-left: 3px solid #d4a017;
    border-bottom: 3px solid #d4a017;
}

.category-tab.subcategory-tab .cat-icon {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 0;
}

/* Sección de categoría */
.category-section {
    margin-bottom: 3.5rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(35,41,70,0.07);
    padding: 32px 24px 24px 24px;
    border: 1px solid #eebc1d22;
}

/* Sección de subcategoría */
.category-section.subcategory-section {
    margin-left: 20px;
    margin-bottom: 2.5rem;
    background: #f8f9fa;
    border-left: 4px solid #eebc1d;
    border-radius: 0 12px 12px 0;
    padding: 24px 20px 20px 20px;
    box-shadow: 0 2px 12px rgba(35,41,70,0.05);
}
.category-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-left: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #232946;
    display: flex;
    align-items: center;
    gap: 10px;
}


@media screen and (max-width: 750px) {
    .category-title {
    font-size: 1.5rem;
}
}



/* Título de subcategoría */
.subcategory-section .category-title,
.subcategory-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    margin-left: 5px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #495057;
}
.category-divider {
    width: 80px;
    margin: 0 0 2rem 0;
    border-top: 3px solid #6366f1;
    border-radius: 2px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* Ajustes específicos para el contenedor de productos */
@media (min-width: 1200px) {
    .row {
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .row {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .row {
        gap: 16px;
    }
}

/* Tarjeta de plato moderna */
.dish-card-modern {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(35,41,70,0.09);
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding: 0 0 0 0;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s;
    margin: 0 0 32px 0;
    box-sizing: border-box;
}
.dish-card-modern:hover {
    box-shadow: 0 8px 32px rgba(99,102,241,0.16);
    transform: translateY(-7px) scale(1.01);
}
/* Grid responsive para desktop - 2 columnas */
@media (min-width: 769px) {
    .dish-card-modern {
        width: calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: 0;
        display: inline-flex;
    }
    
    /* Asegurar que el contenedor tenga el gap correcto */
    .row {
        gap: 20px;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .dish-card-modern {
        width: 100%;
        max-width: 100%;
        min-width: 280px;
        flex: 0 0 100%;
    }
    
    .row {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 430px) and (min-width: 350px) {
    .dish-card-modern {
        padding: 12px !important;
    }
}

@media (max-width: 430px) {
    .dish-card-modern {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        min-width: 260px;
    }
}
.dish-img-wrap {
    flex: 0 0 155px;
    height: 210px;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dish-image-modern {
    width: 155px;
    height: 210px;
    object-fit: cover;
    border-radius: 16px 0 0 16px;
    background: #e0e7ff;
}
.dish-info-modern {
    flex: 1;
    padding: 18px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dish-title-modern {
    font-weight: 600;
    font-size: 1.15rem;
    color: #232946;
    margin-bottom: 4px;
}
.dish-desc-modern {
    font-size: 0.98rem;
    color: #6c757d;
    margin-bottom: 10px;
}
.dish-prices-modern {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dish-price-main {
    font-size: 1.15rem;
    font-weight: bold;
    color: #eebc1d;
}
.dish-price-desde {
    display: block;
    color: #e53935;
    font-weight: 700;
    font-size: 0.95em;
    padding: 2px 8px;
    border-radius: 8px;
    margin-right: 6px;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', Arial, sans-serif;
}
body.dark-mode .dish-price-desde, .dark-mode .dish-price-desde {
    background: #232946;
    color: #ffb300;
}
.dish-price-old {
    align-self: flex-end;
    font-size: 1rem;
    color: #b0b0b0;
    text-decoration: line-through;
    margin-bottom: 1px;
}
.dish-discount {
    font-size: 0.95rem;
    color: #eebc1d;
    font-weight: 600;
    margin-left: 4px;
}
.dish-add-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: #232946;
    color: #fff;
    border: 1.5px solid #eebc1d;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(99,102,241,0.10);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.dish-add-btn:hover {
    background: #eebc1d;
    color: #232946;
    border: 1.5px solid #232946;
    transform: scale(1.08);
}

/* Estilos para nuevos elementos de la carta */
.dish-presentation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 1rem;
    margin-bottom: 4px;
}

.presentation-name {
    color: #4a5568;
}

body.dark-mode .presentation-name {
    color: #a0aec0;
}

.presentation-price {
    font-weight: 600;
    color: #2d3748;
}

body.dark-mode .presentation-price {
    color: #e2e8f0;
}

.dish-allergens-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.allergen-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.dish-extras-modern {
    margin-top: 10px;
    font-size: 0.9rem;
}

.dish-extras-modern strong {
    color: #232946;
    margin-right: 5px;
}

body.dark-mode .dish-extras-modern strong {
    color: #eebc1d;
}

.dish-extras-modern .badge {
    font-size: 0.85rem;
    padding: 4px 8px;
    margin: 2px;
}

.dish-title-modern {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre icono de sabor y nombre */
}

.dish-modal-footer-sticky {
    position: sticky;
    position: -webkit-sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 10;
    padding: 16px 0 12px 0;
    box-shadow: 0 -2px 12px rgba(35,41,70,0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
body.dark-mode .dish-modal-footer-sticky {
    background: #1b1f36;
    padding: 20px;
    border-radius: 15px;
}
.dish-modal-body-padding {
    padding-bottom: 40px !important;
}

.cant-label {
    font-weight:500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    background: #eebc1d;
    color: #232946;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(35,41,70,0.08);
}
.qty-btn:hover {
    background: #232946;
    color: #eebc1d;
}
body.dark-mode .qty-btn {
    background: #232946;
    color: #eebc1d;
    border: 1.5px solid #eebc1d;
}
body.dark-mode .qty-btn:hover {
    background: #eebc1d;
    color: #232946;
}

/* Contenido principal que crece para empujar el footer */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

footer, footer .container{
    margin-top: auto;
}

.footer-main {
    background: #fff;
    border-top: 2px solid #eebc1d;
    color: #232946;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 12px rgba(35,41,70,0.07);
}
.footer-main .footer-text {
    color: #232946;
    font-weight: 500;
}
body.dark-mode .footer-main {
    background: #232946;
    color: #eebc1d;
    border-top: 2px solid #eebc1d;
    box-shadow: 0 -2px 12px rgba(238,188,29,0.10);
}
body.dark-mode .footer-main .footer-text {
    color: #eebc1d;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        width: 98%;
        padding: 10px 0;
    }
    .row {
        gap: 24px 10px;
    }
    .cover-content {
        left: 10px;
        width: calc(100% - 20px);
    }
}
@media (max-width: 600px) {
    .category-section {
        padding: 12px 2px 8px 2px;
    }
    .category-section .row{
        margin: 0;
    }
    .login-container {
        width: 98%;
        margin: 40px auto;
        padding: 18px 5px 12px 5px;
    }
    .row {
        flex-direction: column;
        gap: 18px 0;
    }
    .cover-header, .cover-img {
        height: 150px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    .logo-img {
        width: 70px;
        height: 70px;
        border-radius: 12px;
    }
    .cover-content {
        left: 5px;
        bottom: 8px;
        width: calc(100% - 10px);
    }
    .restaurant-title {
        font-size: 1.1rem;
    }
    .dish-card-modern {
        min-width: 0;
        max-width: 100%;
        align-items: center;
        text-align: left;
        margin: 0 auto 18px auto;
    }
    .dish-img-wrap, .dish-image-modern {
        width: 100%;
        height: 190px;
        border-radius: 12px;
    }
    .dish-add-btn {
        right: 12px;
        bottom: 12px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    #category-tabs-container.force-flex-start {
    justify-content: flex-start;
}
    .category-tabs {
        padding: 8px 4px;
        gap: 0px;
        border-radius: 10px;
        margin: 8px auto 12px auto;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
    }
    .category-tab {
        min-width: 90px;
        padding: 10px 12px 8px 12px;
        font-size: 1rem;
        margin-right: 6px;
    }
    .dark-toggle-btn {
        position: static;
        margin-bottom: 0;
        z-index: 2;
    }
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    .category-tab {
        display: inline-flex;
        padding: 14px 20px 10px 20px;
        font-size: 1.08rem;
        border-radius: 10px 10px 14px 14px;
        min-width: 110px;
        justify-content: center;
        margin-right: 10px;
        margin-left: 0;
        white-space: normal;
    }
    
    .category-tab:first-child {
        margin-left: 6px; /* Espacio para que no se corte la primera */
    }
    .category-tab:last-child {
        margin-right: 0; /* Quitar espacio extra al final */
    }
    .cat-icon {
        font-size: 1.2em;
    }
    .dish-modal-footer-sticky {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cant-label {
        font-weight:500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    #addToCartBtn {
        width: 100%;
        font-size: 1.15em;
        padding: 14px 0;
        margin-top: 4px;
    }
    .qty-btn, #dishQty {
        font-size: 1.1em;
        height: 38px;
    }
}
@media (min-width: 601px) {
    .modal-content {
        max-width: 420px;
        width: 95%;
        margin: 40px auto;
        border-radius: 24px;
        padding: 0;
    }
    .dish-modal-footer-sticky {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        padding: 12px 18px 12px 18px;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 -2px 12px rgba(35,41,70,0.07);
        margin-top: 18px;
        margin-bottom: 0;
    }
    body.dark-mode .dish-modal-footer-sticky {
        background: #1b1f36;
    }
    #addToCartBtn {
        width: auto;
        min-width: 140px;
        font-size: 1em;
        padding: 10px 18px;
        margin-top: 0;
    }
    .cant-label {
        justify-content: flex-start;
    }
}

/* Modal de pago personalizado */
#paymentModal .modal-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(35, 41, 70, 0.3);
    max-width: 420px;
    width: 95vw;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    transition: opacity 0.18s, transform 0.18s;
    opacity: 1;
    transform: translateY(0) scale(1);
}
#paymentModal .modal-header {
    background: linear-gradient(135deg, #232946 0%, #2d3748 100%);
    border-radius: 20px 20px 0 0;
    padding: 24px 24px 16px 24px;
    color: #eebc1d;
}
#paymentModal .modal-title {
    color: #eebc1d;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
#paymentModal .modal-close {
    background: none;
    border: none;
    color: #eebc1d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#paymentModal .modal-close:hover {
    background: rgba(238, 188, 29, 0.1);
    transform: scale(1.1);
}
#paymentModal .modal-body {
    padding: 24px;
}
#paymentModal .form-control {
    border-radius: 10px;
    border: 1.5px solid #eebc1d;
    font-size: 1.05em;
    margin-bottom: 0;
}
#paymentModal .form-control:focus {
    border-color: #232946;
    box-shadow: 0 0 0 2px #eebc1d33;
}
#copyPaymentNumber {
    background: none;
    border: none;
    color: #eebc1d;
    font-size: 1.2em;
    vertical-align: middle;
    cursor: pointer;
    margin-left: 6px;
    transition: color 0.18s;
}
#copyPaymentNumber:hover {
    color: #232946;
}
body.dark-mode #paymentModal .modal-content {
    background: #232946;
    color: #eebc1d;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
body.dark-mode #paymentModal .modal-header {
    background: linear-gradient(135deg, #181a20 0%, #232946 100%);
    color: #eebc1d;
}
body.dark-mode #paymentModal .modal-title {
    color: #eebc1d;
}
body.dark-mode #paymentModal .form-control {
    background: #181a20;
    color: #eebc1d;
    border: 1.5px solid #eebc1d;
}
body.dark-mode #paymentModal .form-control:focus {
    border-color: #eebc1d;
    box-shadow: 0 0 0 2px #eebc1d33;
}
body.dark-mode #copyPaymentNumber {
    color: #eebc1d;
}
body.dark-mode #copyPaymentNumber:hover {
    color: #ffd700;
}

/* Carta Actions Styles */
.carta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

.carta-actions-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 6px;
}

.responsive-inline {
    flex-direction: row !important;
    align-items: center !important;
}

.carta-actions-bottom {
    display: flex;
    background: rgba(35,41,70,0.10);
    border-radius: 16px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.08);
}

.volver-btn {
    background: #eebc1d;
    color: #232946;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(35,41,70,0.08);
    transition: background 0.2s, color 0.2s;
}

.volver-btn:hover {
    background: #232946;
    color: #eebc1d;
}

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 50px;
    right: 100px;
    width: 50px;
    height: 50px;
    background-color: #eebc1d;
    color: #232946;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(35, 41, 70, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn:hover {
    background-color: #e0a800;
    color: #232946;
    transform: translateY(0);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .dish-card-modern {
        width: 100%;
        max-width: 100%;
        min-width: 280px;
        margin: 0;
        margin-right: 0;
    }
    .row {
        gap: 15px;
        justify-content: center;
    }
    .dish-img-wrap {
        flex: 0 0 120px;
        height: 160px;
    }
    .dish-info-modern {
        padding: 12px;
    }
    .dish-title-modern {
        font-size: 1.1rem;
    }
    .dish-desc-modern {
        font-size: 0.9rem;
    }
    .dish-add-btn {
        right: 12px;
        bottom: 12px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    #category-tabs-container.force-flex-start {
        justify-content: flex-start !important;
    }
    
    .fixed-action-buttons {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .fixed-action-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .carta-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        top: 10px;
        right: 10px;
    }
    
    .carta-actions-top, .responsive-inline {
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
        margin-bottom: 0 !important;
        padding: 4px 6px;
    }
    
    .carta-actions-bottom {
        padding: 4px 6px;
    }
    
    .volver-btn {
        margin-right: 0;
    }
    
    .scroll-top-btn {
        bottom: 50px;
        right: 100px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

@media (max-width: 700px) {
    .carta-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        top: 10px;
        right: 10px;
    }
    
    .carta-actions-top, .responsive-inline {
        flex-direction: row !important;
        align-items: center !important;
        margin-bottom: 0 !important;
        padding: 4px 6px;
    }
    
    .carta-actions-bottom {
        padding: 4px 6px;
    }
    
    .volver-btn {
        margin-right: 0;
    }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 430px) {
    .dish-add-btn {
        right: 8px !important;
        bottom: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
    
    .dish-card-modern {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        min-width: 260px;
    }
    
    .dish-info-modern {
        padding: 8px !important;
        padding-right: 40px !important; /* Dar espacio para el botón */
    }
    
    .dish-title-modern {
        font-size: 0.95rem !important;
        line-height: 1.2;
        margin-bottom: 4px;
    }
    
    .dish-desc-modern {
        font-size: 0.8rem !important;
        line-height: 1.3;
        margin-bottom: 6px;
    }
 }

/* Estilos para Login Admin */
.login-container-admin {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.login-title-admin {
    text-align: center;
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    border-bottom: 3px solid #4f46e5;
    padding-bottom: 15px;
}

.login-form-admin {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-admin {
    display: flex;
    flex-direction: column;
}

.form-group-admin label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group-admin input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group-admin input:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.login-btn-admin {
    padding: 14px 24px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn-admin:hover {
    background: #3730a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.error-message-admin {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Responsive para login admin */
@media (max-width: 480px) {
    .login-container-admin {
        margin: 50px 20px;
        padding: 30px 20px;
    }
    
    .login-title-admin {
        font-size: 1.5rem;
    }
}

/* Estilos específicos para el modal de información de zonas */
#zoneInfoModal {
    position: absolute !important;
    z-index: 9999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    /* Centrar el modal */
    justify-content: center !important;
    align-items: center !important;
    /* Prevenir scroll del fondo */
    overflow: hidden !important;
    /* Estado por defecto */
    display: none !important;
}

#zoneInfoModal.show {
    display: flex !important;
}

/* Prevenir scroll del formulario cuando el modal de zonas esté abierto */
#zoneInfoModal.show ~ #paymentModalBody,
#zoneInfoModal.show ~ .modal-body {
    overflow: hidden !important;
}

/* Transición suave para el scroll */
#paymentModalBody {
    transition: overflow 0.2s ease !important;
}

#zoneInfoModal .modal-content {
    background-color: #fff !important;
    margin: 0 auto !important;
    padding: 20px !important;
    border-radius: 8px !important;
    width: 90% !important;
    max-width: 600px !important;
    position: relative !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(35, 41, 70, 0.3) !important;
    /* Asegurar que esté centrado */
    transform: none !important;
}

#zoneInfoModal #closeZoneModal {
    color: #aaa !important;
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    font-size: 28px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
    z-index: 1 !important;
}

#zoneInfoModal #closeZoneModal:hover {
    color: #333 !important;
}

#zoneInfoModal h4 {
    margin-top: 0 !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#zoneInfoModal #zoneInfoContent {
    margin: 15px 0 !important;
}

/* Estilos para las zonas colapsables */
.zone-collapse {
    margin: 10px 0 !important;
    border: 1px solid #eebc1d !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.zone-header {
    background: #eebc1d !important;
    padding: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: background-color 0.2s ease !important;
}

.zone-header:hover {
    background: #d4a017 !important;
}

.zone-content {
    padding: 12px !important;
    background: #f8f9fa !important;
}

/* Estilos para el botón de cerrar */
#zoneInfoModal .btn-secondary {
    background: #6c757d !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

#zoneInfoModal .btn-secondary:hover {
    background: #5a6268 !important;
}

/* Responsive para el modal de zonas */
@media (max-width: 768px) {
    #zoneInfoModal .modal-content {
        margin: 10% auto !important;
        width: 95% !important;
        max-height: 80vh !important;
    }
    
    #zoneInfoModal h4 {
        font-size: 1.1rem !important;
    }
}

/* Modo oscuro para el modal de zonas */
body.dark-mode #zoneInfoModal {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

body.dark-mode #zoneInfoModal .modal-content {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border: 1px solid #4a5568 !important;
}

body.dark-mode #zoneInfoModal h4 {
    color: #f7fafc !important;
}

body.dark-mode #zoneInfoModal #closeZoneModal {
    color: #a0aec0 !important;
}

body.dark-mode #zoneInfoModal #closeZoneModal:hover {
    color: #f7fafc !important;
}

body.dark-mode #zoneInfoModal .zone-collapse {
    border-color: #4a5568 !important;
}

body.dark-mode #zoneInfoModal .zone-header {
    background: #4a5568 !important;
    color: #f7fafc !important;
}

body.dark-mode #zoneInfoModal .zone-header:hover {
    background: #2d3748 !important;
}

body.dark-mode #zoneInfoModal .zone-content {
    background: #1a202c !important;
    color: #e2e8f0 !important;
}

body.dark-mode #zoneInfoModal .zone-content ul {
    color: #a0aec0 !important;
}

body.dark-mode #zoneInfoModal .zone-content li {
    color: #cbd5e0 !important;
}

body.dark-mode #zoneInfoModal .btn-secondary {
    background: #4a5568 !important;
    color: #e2e8f0 !important;
    border: 1px solid #718096 !important;
}

body.dark-mode #zoneInfoModal .btn-secondary:hover {
    background: #2d3748 !important;
    color: #f7fafc !important;
}