/* public-menu.css - Diseño Gastronómico Elegante para la Carta Virtual */

:root {
    --bg-light: #FDFBF7; /* Crema muy suave, apetitoso */
    --text-dark: #2C3E50;
    --text-muted: #7F8C8D;
    
    --primary: #D4AF37; /* Dorado cálido por defecto, se puede sobrescribir inline */
    --primary-light: #F9F3DF;
    
    --card-bg: #FFFFFF;
    --card-border: #EAE6DF;
    --card-shadow: rgba(0, 0, 0, 0.05);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 100px;
    margin: 0;
}

/* =========================================
   HERO / CABECERA
   ========================================= */
.hero {
    position: relative;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    background: #FFFFFF;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    z-index: 90;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

.ordering-banner {
    background: var(--primary);
    color: #FFFFFF;
    padding: 0.8rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =========================================
   BUSCADOR
   ========================================= */
.search-container {
    padding: 1.5rem 1.5rem 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 50px;
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.search-icon {
    position: absolute;
    left: 2.5rem;
    top: 50%;
    margin-top: 0.3rem; /* ajuste óptico */
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =========================================
   NAVEGACIÓN DE CATEGORÍAS
   ========================================= */
.cat-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid var(--card-border);
    scrollbar-width: none; /* Firefox */
}

.cat-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cat-pill {
    padding: 0.6rem 1.2rem;
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px var(--card-shadow);
}

.cat-pill.active, .cat-pill:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   TARJETAS DE PLATOS
   ========================================= */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

.section-title {
    margin: 2.5rem 0 1.5rem;
    text-align: center;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.dish-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 1.2rem;
    align-items: stretch;
    box-shadow: 0 6px 15px var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.dish-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F4F6F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.dish-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dish-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

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

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

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

.btn-add {
    background: #FFFFFF;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-add:active {
    transform: scale(0.95);
}

/* =========================================
   CARRITO FLOTANTE (Si hay Mesa)
   ========================================= */
.cart-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
}

.cart-fab:hover {
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #E74C3C;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

/* Modal Carrito */
.cart-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 62, 80, 0.7); backdrop-filter: blur(5px);
    z-index: 200; display: none; flex-direction: column; justify-content: flex-end;
}
.cart-content {
    background: #FFFFFF; border-radius: 24px 24px 0 0; padding: 2rem 1.5rem;
    max-height: 85vh; overflow-y: auto;
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cart-modal.open .cart-content { transform: translateY(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--card-border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.cart-header h3 { color: var(--text-dark); margin: 0; font-family: var(--font-heading); font-size: 1.8rem; }
.close-cart { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }

.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; border-bottom: 1px dashed var(--card-border); padding-bottom: 1rem; }
.cart-item-info { flex: 1; }
.cart-item-title { color: var(--text-dark); font-weight: 600; font-size: 1.1rem; }
.cart-item-price { color: var(--text-muted); font-size: 0.95rem; }

.qty-controls { display: flex; align-items: center; gap: 0.8rem; background: var(--bg-light); border: 1px solid var(--card-border); border-radius: 50px; padding: 0.3rem; }
.qty-btn { background: #FFFFFF; border: 1px solid var(--card-border); color: var(--text-dark); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; font-size: 0.8rem; }
.qty-btn:active { background: var(--card-border); }
.qty-val { color: var(--text-dark); font-weight: bold; width: 20px; text-align: center; }

.cart-total { display: flex; justify-content: space-between; font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin: 1.5rem 0; font-family: var(--font-heading); }
.btn-submit-order { background: var(--primary); color: #FFFFFF; border: none; border-radius: 50px; width: 100%; padding: 1.2rem; font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-submit-order:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.input-name { width: 100%; padding: 1rem 1.2rem; background: #FFFFFF; border: 1px solid var(--card-border); border-radius: 12px; color: var(--text-dark); margin-bottom: 1.5rem; outline: none; font-size: 1rem; font-family: var(--font-body); }
.input-name:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
