/* Variables de Color */
:root {
    --primary-color: #F7931E; /* Naranja de Bagit! */
    --secondary-color: #FFEB3B; /* Amarillo (simulando Bolsa Cocina) */
    --jumbo-color: #0D47A1; /* Azul (simulando Bolsa Jumbo) */
    --text-dark: #333;
    --text-light: #fff;
    --background-light: #f9f9f9;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
}

/* --- Componentes de Diseño --- */

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #e67e22; /* Tono más oscuro */
}

.secondary-btn {
    background-color: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Navbar */
.navbar {
    background-color: var(--text-light);
    color: var(--text-dark);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
}

.navbar a:hover {
    color: var(--primary-color);
}

/* --- Secciones --- */

section {
    padding: 80px 5%;
    min-height: 50vh;
    text-align: center;
}

/* Hero Section (Ajustar para la imagen de fondo/split) */
.hero-section {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('fondo-hero.jpg'); /* Reemplazar con imagen real */
    background-size: cover;
    background-position: center;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 0.2em;
}

/* Products Section */
.product-section {
    background-color: var(--background-light);
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.product-card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    text-align: left;
}

.product-card h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.product-card .specs ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.product-card .prices h4 {
    color: var(--jumbo-color);
}

/* Sell Section */
.sell-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.sell-section h2 {
    color: var(--text-light);
}

.sell-offers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.offer-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    flex: 1;
    max-width: 400px;
}

.offer-card h4 {
    border-bottom: 1px solid var(--text-light);
    padding-bottom: 10px;
}


/* Impact Section (Usando el color verde de la imagen de impacto) */
.impact-section {
    background-color: #4CAF50; /* Verde Eco-Social */
    color: var(--text-light);
}

.impact-section h2 {
    color: var(--text-light);
}

.impact-section ul {
    list-style-type: '♻️ '; /* Emoji como bullet */
    display: inline-block;
    text-align: left;
    margin-top: 20px;
    font-size: 1.1em;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.footer .social-links p {
    margin: 0;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar nav {
        margin-top: 10px;
    }

    .navbar a {
        margin: 0 10px;
    }

    .product-grid, .sell-offers {
        flex-direction: column;
        align-items: center;
    }

    .product-card, .offer-card {
        max-width: 90%;
    }
}