:root {
    --primary: #fbb100;
    --dark: rgb(32, 32, 32);
    --light: #d6d6d6;

    --font-head: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Navegación Simplificada --- */
.navbar {
    background: var(--dark);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Icono del Carrito */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
    color: white;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.cart-icon:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.2);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 7px;
    border-radius: 50%;
}

/* --- Sidebar del Carrito --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

@media (max-width: 400px) {
    .cart-sidebar {
        width: 100%;
    }
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    padding: 1.5rem;
    background-color: var(--dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info span {
    display: block;
}

.cart-item-title {
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-remove {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-finalizar {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--dark);
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1.1rem;
    border-radius: 5px;
}

/* --- MODAL TICKET (Pop-up para el mozo) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

/* Clase para mostrarlo */

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.ticket-header {
    text-align: center;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.ticket-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.ticket-total-final {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
    border-top: 2px solid var(--dark);
    padding-top: 10px;
}

.ticket-note {
    margin-top: 20px;
    background: #fff3cd;
    padding: 10px;
    border-left: 5px solid #ffc107;
    font-size: 0.9rem;
    color: #856404;
}

.btn-cerrar-ticket {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: #ddd;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    color: #555;
    transition: 0.3s;
}

.btn-cerrar-ticket:hover {
    background: #ccc;
    color: #333;
}

/* --- NEW MODAL STYLES --- */
.mesa-section {
    margin: 20px 0;
    text-align: left;
}

.mesa-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--dark);
}

.mesa-input {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: 0.3s;
}

.mesa-input:focus {
    border-color: var(--primary);
}

.error-msg {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-confirmar {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--dark);
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: var(--font-head);
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.btn-confirmar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

#order-success h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin: 10px 0;
}

#order-success p {
    color: #666;
    margin-bottom: 20px;
}

/* --- Resto del sitio (Hero, Cards, Footer) --- */
.hero {
    height: 60vh;
    background: url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.info-bar {
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 15px;
    font-weight: 600;
    flex-wrap: wrap;
}

.menu-section {
    padding: 3rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 15px;
    border: 2px solid var(--dark);
    background: transparent;
    font-family: var(--font-head);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--dark);
    color: white;
}

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

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid transparent;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
}

.price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-pedir {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #eee;
    color: var(--dark);
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-pedir:hover {
    background: var(--dark);
    color: white;
}

footer {
    background: var(--dark);
    color: #bbb;
    padding: 3rem 5% 1rem;
    margin-top: 3rem;
}

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

footer h3 {
    color: white;
    font-family: var(--font-head);
    margin-bottom: 1rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white !important;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #25D366;
    font-size: 1rem;
}

.whatsapp-link:hover {
    background: white;
    color: #25D366 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-link i {
    font-size: 1.2rem;
}



.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}