/* --- VARIABLES CSS --- */
:root {
    --primary-color: #556b2f;
    --primary-dark: #3e4f22;
    --accent-color: #e0e6d3;
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-light: #666666;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* --- RESET & BASICS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ... COPIA AQUÍ EL RESTO DEL CSS QUE TE ENVIÉ ... */
/* Asegúrate de copiar hasta la última llave } del media query */
/* --- VARIABLES CSS (Fácil personalización) --- */
:root {
    --primary-color: #556b2f; /* Verde Oliva */
    --primary-dark: #3e4f22;
    --accent-color: #e0e6d3; /* Verde muy claro para fondos */
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-light: #666666;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* --- RESET & BASICS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn { font-family: 'Poppins', sans-serif; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }

.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 50px;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-link:hover { color: var(--primary-color); }

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
    url('https://images.unsplash.com/photo-1543353071-873f17a7a088?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0; /* Override margin because header is fixed */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    border-color: white;
    color: white;
}

/* --- ALMUERZOS DEL DÍA (Cards) --- */
#almuerzos { background-color: var(--bg-light); }

.lunch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.lunch-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    transform: translateY(0);
}

.lunch-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.lunch-img {
    height: 250px;
    width: 100%;
}

.lunch-info { padding: 25px; }

.lunch-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.lunch-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.price {
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    background: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
}

/* --- MENÚ A LA CARTA (Tabs System) --- */
#menu { background-color: white; }

/* Scrollable container for mobile */
.menu-tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    /* Mobile scroll fix */
    overflow-x: auto;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.menu-category {
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease;
}

.menu-category.active {
    display: block; /* Show when active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Menu Items List Layout */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.menu-item:hover {
    background-color: var(--bg-light);
    border-radius: 8px;
}

.item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* --- FOOTER --- */
footer {
    background-color: #222;
    color: white;
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col ul li { margin-bottom: 10px; color: #ccc; }
.footer-col ul li i { margin-right: 10px; width: 20px; }

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
}

.slogan {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #888;
}

.slogan strong { color: var(--primary-color); }

/* --- EXTRAS --- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

#backToTop.show { opacity: 1; pointer-events: all; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }

    .hamburger { display: block; color: var(--text-main); }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
    }

    .nav-menu.active { left: 0; }

    .menu-tabs-container {
        justify-content: flex-start; /* Permite scroll natural */
        flex-wrap: nowrap;
        padding: 10px;
    }
}