:root {
    --gold: #d4af37;
    --dark-bg: #0d0d0d;
    --card-bg: #1a1a1a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    /* Esta imagen es una textura sutil de comida y bebida */
    background-image: url('https://www.transparenttextures.com/patterns/black-paper.png'); 
    color: white;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    /* Esto asegura que siempre haya espacio para que el scroll baje */
    min-height: 200vh; 
}

/* --- ESTILO DEL LOGO (CIRCULAR) --- */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 10px;
}

.logo-wrapper {
    width: 140px; 
    height: 140px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Sombra para que resalte el círculo */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-title {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- NAVEGACIÓN (BOTONES) --- */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 40px;
    /* QUITAMOS position: sticky y top: 0 */
    position: relative; 
    padding: 10px 0;
}

.nav-btn {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-btn:active {
    background: var(--gold);
    color: black;
}

/* --- SECCIONES --- */
.section-title {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    margin: 40px 0 20px;
    padding-bottom: 8px;
    text-transform: uppercase;
    font-size: 1.5rem;
    /* Cambialo a 0 para que pegue arriba de todo */
    scroll-margin-top: 0px; 
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.product-item {
    text-align: center;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 15px;
    transition: transform 0.2s;
}

.img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #222; /* Color de fondo mientras carga la imagen */
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-size: 0.9rem;
    color: #eee;
    margin-bottom: 5px;
    font-weight: 400;
    min-height: 40px; /* Alinea los precios aunque el nombre sea corto */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    margin: 60px 0 30px;
    color: #777;
    font-size: 0.8rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}