/* ==========================================================================
   1. VARIABLES Y RESETEO BÁSICO
   ========================================================================== */
:root {
    --primary-color: #2c7a3f; /* Verde Frutícola */
    --secondary-color: #f4a261; /* Naranja sutil para contrastes */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 90px; /* Compensa la altura de la cabecera fija */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. CABECERA Y NAVEGACIÓN
   ========================================================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px; /* Ajusta según el tamaño de tu logo */
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation a {
    font-weight: 600;
    color: var(--text-color);
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Botón Sistema */
.btn-sistema {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-sistema:hover {
    background-color: var(--text-color) !important;
}

/* ==========================================================================
   3. SECCIÓN HERO (Bienvenida)
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, rgba(44,122,63,0.1) 0%, rgba(244,162,97,0.1) 100%);
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-location {
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ==========================================================================
   4. SECCIONES GENERALES (Nosotros, Equipo, Mercados)
   ========================================================================== */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Grillas Generales */
.about-grid, .markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-grid {
    display: grid;
    /* Al ser 2 personas ahora, lo centramos y ajustamos */
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
    gap: 40px;
    justify-content: center;
}

/* Tarjetas de Equipo */
.team-member {
    text-align: center;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.member-img-container img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-member h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.team-member .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Imágenes Mercados */
.market-img-container img, .market-images-group img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.market-images-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-column p, .footer-column a {
    color: #cccccc;
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: var(--white);
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    color: var(--secondary-color) !important;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--text-color) !important;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* ==========================================================================
   6. BOTÓN WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-flotante img {
    width: 35px;
    height: 35px;
    /* Si la imagen no tiene fondo transparente, ideal conseguir un icono PNG sin fondo */
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (Celulares y Tablets)
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .whatsapp-flotante {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-flotante img {
        width: 30px;
        height: 30px;
    }
}