@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

:root {
    --bg-color: #fafafa;
    --text-color: #222;
    --accent-color: #000;
    --card-bg: #fff;
    --price-color: #444;
}

/* Base / Accessibility */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0; 
    line-height: 1.6;
}

header h1 {
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 2rem;
    margin: 1rem 0;
}

/* Sticky Anchor Menu */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--card-bg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.sticky-nav ul {
    list-style: none;
    margin: 0;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    overflow-x: auto; 
    white-space: nowrap;
    justify-content: flex-start;
}

.sticky-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.sticky-nav a:hover,
.sticky-nav a:focus {
    color: var(--price-color);
    border-bottom: 2px solid var(--accent-color);
}

/* -----------------------------------------
   Image Placeholders (Background Images)
----------------------------------------- */
.hero-image, .section-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    width: 100%;
}

.hero-image {
    height: 800px;
}

.section-image {
    height: 250px;
    margin: 1rem 0 2rem;
    border-radius: 8px;
}

/* Default (Mobile First - up to 767px) */
.bg-hero { background-image: url('hero-mobile.webp'); }
.bg-mains { background-image: url('img-presentacion-platillos.jpg'); }
.bg-barista { background-image: url('img-chocolate.webp'); }
.bg-juice { background-image: url('img-smoothie-rosa.webp'); }

/* Mobile-First Layout Grid */
main {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin: 0; 
}

section {
    background: var(--card-bg);
    padding: 1.5rem 1rem;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h2 {
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
    scroll-margin-top: 100px; 
}

/* Menu Item Styling */
.menu-item {
    margin-bottom: 1.5rem;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.menu-title {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.4rem;
}

.price {
    font-weight: 800;
    color: var(--price-color);
    padding-left: 1rem;
}

.description {
    font-size: 1rem;
    color: #2b2a2a;
    margin: 0;
}

ol {
    padding-left: 1.5rem;
    margin: 0;
}

ol li {
    margin-bottom: 0.75rem;
}

/* -----------------------------------------
   Tablet (768px to 1199px)
----------------------------------------- */
@media (min-width: 768px) {
    .sticky-nav ul {
        justify-content: center;
    }

    .hero-image {
        height: 400px;
    }

    main {
        margin: 2rem; 
    }

    /* Backgrounds for Tablet */
    .bg-hero { background-image: url('hero-tablet.webp'); }

    /* Sticky Anchor Menu */
    .sticky-nav a {
        
        font-size: 1rem;
        
    }
    
}

/* -----------------------------------------
   Desktop (1200px and up)
----------------------------------------- */
@media (min-width: 1200px) {
    main {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin: 2rem auto; 
    }
    
    .full-width {
        grid-column: span 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    
    .full-width > section {
        background: var(--card-bg);
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    /* Backgrounds for Desktop */
    .bg-hero { background-image: url('hero-desktop.webp'); }
    
}