/* =========================================
   1. CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================= */
:root {
    --verde-hoja: #2E7D32;
    --amarillo-sol: #FDD835;
    --marron-cuero: #795548;
    --crema-fondo: #F5F5DC;
    --verde-oscuro: #2F4F4F;
    --blanco: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--crema-fondo);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. NAVEGACIÓN (STICKY & RESPONSIVE)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--verde-oscuro);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: var(--transition);
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--amarillo-sol);
}

/* =========================================
   3. SECCIÓN HERO (INICIO)
   ========================================= */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('img/persona%20tomando%20el%20mate.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
}

/* =========================================
   4. DISEÑO DE GRILLAS Y CONTENEDORES
   ========================================= */
.contact-container, 
.about-container, 
.product-page, 
.faq-container, 
.extras-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Centrado de títulos principales */
h1, h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--verde-oscuro);
}

/* Grillas de productos y extras */
.product-grid, 
.extras-grid, 
.gallery-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center; /* Centra las tarjetas si no llenan la fila */
}

/* Tarjetas (Cards) */
.product-card, .extra-card {
    background: var(--blanco);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Ajuste de imágenes en tarjetas */
.product-card img, 
.extra-card img, 
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Evita que la foto se deforme */
    border-radius: 8px;
    margin-bottom: 15px;
}

/* =========================================
   5. BOTONES
   ========================================= */
.btn-main, .btn-sec {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--marron-cuero);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.btn-main:hover {
    background-color: var(--verde-hoja);
}

/* =========================================
   6. PÁGINA DE PRODUCTO ESPECÍFICO
   ========================================= */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
}

.main-img img {
    width: 100%;
    border-radius: 10px;
}

.thumb-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.6;
    transition: var(--transition);
}

.thumb.active, .thumb:hover {
    opacity: 1;
    border: 2px solid var(--marron-cuero);
}

/* =========================================
   7. CONTACTO Y FORMULARIOS
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* =========================================
   8. FAQ ACORDEÓN
   ========================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--blanco);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1rem;
    color: var(--verde-oscuro);
    text-align: left;
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--marron-cuero);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--verde-oscuro);
    color: white;
    margin-top: 50px;
}

/* =========================================
   9. MEDIA QUERIES (ADAPTACIÓN CELULAR)
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px;
    }

    .nav-links li a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .product-container {
        padding: 15px;
    }
}
