﻿/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --brand-primary: #e67e22; /* Naranja Principal */
    --brand-secondary: #8b2612; /* Rojo Guinda */
    --brand-cream: #fdf5e6; /* Crema de fondo */
    --brand-dark: #2c3e50; /* Gris oscuro para textos */
    --transition-fast: 0.2s ease;
    --transition-norm: 0.3s ease;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--brand-dark);
    line-height: 1.6;
}

/* ==========================================================================
   2. COMPONENTES GLOBALES (Botones, Sombras, Hero)
   ========================================================================== */
.text-shadow {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    font-weight: 600;
    transition: var(--transition-norm);
}

    .btn-primary:hover {
        background-color: var(--brand-secondary);
        border-color: var(--brand-secondary);
        transform: translateY(-2px);
    }

/* Hero Section del Menú */
.hero-menu {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/paginatop.webp');
    background-size: cover;
    background-position: center;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* ==========================================================================
   3. ESTRUCTURA DEL MENÚ (Cards y Categorías)
   ========================================================================== */
.menu-card {
    background: white;
    border-radius: 15px;
    padding: 10px 0; /* Padding vertical para no apretar los items */
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.category-header {
    position: relative;
    height: 85px;
    margin: 15px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

    .category-header img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.5); /* Oscurecemos para que resalte el texto */
        transition: transform var(--transition-norm);
    }

    .category-header:hover img {
        transform: scale(1.05);
    }

    .category-header h2 {
        position: relative;
        color: white;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 0;
        z-index: 1;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    }

/* ==========================================================================
   4. ITEMS DEL MENÚ Y PRECIOS
   ========================================================================== */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid #f1f1f1;
    transition: background var(--transition-fast);
}

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-item:hover {
        background-color: #fcfcfc;
    }

.item-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Contenedor de Botón + Precio (Guisos/Complementos) */
.portion-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 12px;
}

.portion-btn {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #495057;
    min-width: 52px;
    transition: all var(--transition-fast);
}

    .portion-btn:hover {
        background-color: var(--brand-primary);
        color: white;
        border-color: var(--brand-primary);
    }

.price-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-top: 5px;
}

/* Estilos para Especiales (Orden completa) */
.badge-orden {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.item-price-fixed {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--brand-secondary);
}

/* ==========================================================================
   5. UTILIDADES Y RESPONSIVE
   ========================================================================== */
@media (max-width: 576px) {
    .menu-item {
        padding: 15px 15px;
    }

    .item-name {
        font-size: 1rem;
        max-width: 40%; /* Evita que el nombre empuje los precios en móvil */
    }

    .portion-wrapper {
        margin-left: 6px;
    }

    .portion-btn {
        min-width: 45px;
        font-size: 0.75rem;
    }
}
