/* --- 🎨 Estilos Generales --- */
:root {
    --color-principal: #8B4513; /* Marrón pan */
    --color-acento: #FFD700; /* Dorado mantequilla */
    --color-fondo: #FFF8DC; /* Blanco cremoso */
    --color-texto: #333333;
    --fuente-titulo: 'Georgia', serif;
    --fuente-cuerpo: 'Arial', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--fuente-cuerpo);
    line-height: 1.6;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

/* --- 🍞 Header y Navegación --- */
header {
    background-color: var(--color-principal);
    color: white;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: var(--fuente-titulo);
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* --- 📋 Secciones y Contenido Principal --- */
main {
    padding: 2rem 5%;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid #ddd;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-family: var(--fuente-titulo);
    color: var(--color-principal);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Estilo para la sección de inicio destacada */
#inicio {
    text-align: center;
    background-color: white;
    padding: 5rem 5%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#inicio h2 {
    color: var(--color-acento);
    font-size: 3rem;
}

/* --- 🥐 Productos/Artículo --- */
#productos {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.producto {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    text-align: center;
}

.producto h3 {
    color: var(--color-principal);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* --- 📞 Footer/Pie de Página --- */
footer {
    background-color: var(--color-principal);
    color: white;
    text-align: center;
    padding: 1.5rem 5%;
    font-size: 0.9rem;
}

footer a {
    color: var(--color-acento);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

/* --- 📱 Media Queries (Responsivo para Móviles) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    nav ul li a {
        padding: 0.5rem 0;
    }

    #productos {
        flex-direction: column;
        gap: 1.5rem;
    }
}