/* VARIABLES DE DISEÑO (Colores Corporativos Agro) */
:root {
    --primary-green: #2c5e3b;      /* Verde Bosque / Plantación */
    --light-green: #eaf4ec;        /* Verde de Fondo */
    --accent-yellow: #f4c430;      /* Amarillo Oro / Mango maduro */
    --earth-dark: #3e2723;         /* Marrón Orgánico / Suelo */
    --earth-light: #4e342e;
    --text-color: #2b3a2e;
    --light-gray: #f8f9fa;
}

/* ESTILOS GLOBALES */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;	   
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

section {
    padding: 80px 0;
}

.max-w-600 {
    max-width: 600px;
}

/* NAVBAR PERSONALIZADO */
.navbar {
    transition: all 0.4s ease;
    padding: 20px 0;
    backdrop-filter: blur(5px);	
}

.navbar.scrolled {
    background-color: var(--primary-green) !important;
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--accent-yellow);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 10px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85) !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-yellow) !important;
}

/* HERO SLIDER */
.carousel-item {
    height: 100vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    top: 5%;
    z-index: 10;
}

/* WHATSAPP FLOTANTE */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    font-size: 32px;
    transition: all 0.3s ease-in-out;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    font-size: 32px;
    transition: all 0.3s ease-in-out;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.5);
}

.facebook-btn {
    position: fixed;
    bottom: 95px;
    right: 30px;
	width: 60px;
    height: 60px;
    background-color: #3b5998; /* Color oficial de Facebook */
    color: white;   
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;    
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
	font-size: 32px;
    transition: all 0.3s ease-in-out;
}

.facebook-btn:hover {
    background-color: #2d4373; /* Tono más oscuro al pasar el ratón */
    transform: scale(1.1); /* Efecto de levitación */
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
}

/* SECCIÓN TIERRA / CONTADORES */
.bg-earth {
    background-color: var(--earth-dark);
    background-image: linear-gradient(135deg, var(--earth-dark), var(--earth-light));
}

.text-light-gray {
    color: #cfd8dc;
}

/* CARDS DE VALORES & EQUIPO */
.bg-light-green {
    background-color: var(--light-green);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.team-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--primary-green);
}

/* PRODUCTOS */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 250px;
    object-fit: cover;
}

/* GALERÍA */
.gallery-wrapper {
    cursor: pointer;
    border-radius: 10px;
}

.gallery-wrapper img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 94, 59, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-wrapper:hover img {
    transform: scale(1.1);
}

.gallery-wrapper:hover .gallery-overlay {
    opacity: 1;
}

/* LIGHTBOX DINÁMICO */
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 70vh;
    border-radius: 8px;
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 40px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--accent-yellow);
}

/* MAPA & FORMULARIOS */
.map-container {
    border: 3px solid #fff;
}

.form-control {
    border-radius: 8px;
    padding: 12px;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(44, 94, 59, 0.25);
}

/* FOOTER */
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-yellow);
    color: #000;
}
