/* VARIABLES AGRICULTURA TECNOLÓGICA */
:root {
    --agri-green: #2B9348;
    --agri-light: #80B918;
    --agri-dark: #004B23;
    --agri-sun: #FFD166;
    --bg-white: #FFFFFF;
    --bg-gray: #F4F6F4;
    --text-dark: #1B201E;
    --text-muted: #556B61;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --font-heading: 'Rubik', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-gray); color: var(--text-dark); line-height: 1.8; overflow-x: hidden; padding-top: 100px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; color: var(--agri-dark); line-height: 1.2; }

/* HEADER GLASSMORPHISM ÚNICO */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 147, 72, 0.2);
    padding: 15px 5%; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.brand-logo { text-decoration: none; display: flex; flex-direction: column; }
.brand-name { font-size: 1.6rem; color: var(--agri-dark); letter-spacing: -0.5px; }
.brand-tag { font-size: 0.8rem; color: var(--agri-green); text-transform: uppercase; letter-spacing: 3px; font-weight: 800; }

nav { display: flex; align-items: center; gap: 30px; }
.nav-menu { display: flex; list-style: none; gap: 25px; }
.nav-menu a {
    color: var(--text-dark); text-decoration: none; font-size: 0.9rem; font-weight: 800;
    text-transform: uppercase; padding: 8px 12px; border-radius: 6px; transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { background: var(--agri-green); color: var(--bg-white); }
.lang-btn { background: transparent; border: 2px solid var(--agri-green); color: var(--agri-green); padding: 6px 15px; font-weight: 800; border-radius: 50px; cursor: pointer; }

/* HERO ASIMÉTRICO */
.hero-split {
    display: grid; grid-template-columns: 1.2fr 1fr; min-height: calc(100vh - 100px);
    background: var(--bg-white); padding: 0 5%; align-items: center; gap: 50px;
}
.hero-text h1 { font-size: 4.5rem; margin-bottom: 20px; text-transform: uppercase; }
.hero-text h1 span { color: var(--agri-light); }
.hero-text p { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 40px; border-left: 4px solid var(--agri-sun); padding-left: 20px; }
.btn-agri {
    display: inline-block; background: var(--agri-green); color: var(--bg-white);
    padding: 18px 40px; font-size: 1rem; font-weight: 800; text-transform: uppercase;
    border-radius: 8px; text-decoration: none; transition: var(--transition);
    box-shadow: 0 10px 20px rgba(43, 147, 72, 0.3);
}
.btn-agri:hover { transform: translateY(-5px); background: var(--agri-dark); }
.hero-image { position: relative; height: 80%; border-radius: 20px; overflow: hidden; box-shadow: -20px 20px 0 var(--agri-light); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ANIMACIONES SCROLL (CLASES JS) */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* SECCIONES Y TEXTO MASIVO */
.section-pad { padding: 120px 5%; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 3.5rem; text-transform: uppercase; }
.section-header .line { width: 100px; height: 4px; background: var(--agri-sun); margin: 20px auto 0; border-radius: 2px; }

.content-box { background: var(--bg-white); padding: 60px; border-radius: 12px; box-shadow: 0 15px 50px rgba(0,0,0,0.05); margin-bottom: 40px; }
.content-box h3 { font-size: 2.2rem; margin-bottom: 25px; color: var(--agri-green); }
.content-box p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 20px; text-align: justify; }

/* CONTADORES ANIMADOS (JS) */
.stats-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 60px; }
.stat-card { background: var(--agri-dark); color: var(--bg-white); padding: 40px 20px; text-align: center; border-radius: 12px; border-bottom: 5px solid var(--agri-light); }
.stat-card .num { font-size: 4rem; font-weight: 800; font-family: var(--font-heading); margin-bottom: 10px; display: block; color: var(--agri-sun); }
.stat-card .label { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }

/* SERVICIOS (REGLA: SOLO TÍTULOS) */
.agri-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.agri-card { position: relative; height: 400px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; }
.agri-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.agri-card .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 75, 35, 0.6); transition: var(--transition); }
.agri-card:hover img { transform: scale(1.1); }
.agri-card:hover .overlay { background: rgba(0, 75, 35, 0.8); }
.agri-card h3 { position: relative; z-index: 2; color: var(--bg-white); font-size: 1.8rem; padding: 20px; text-transform: uppercase; letter-spacing: 1px; }

/* TESTIMONIOS (CARRUSEL JS - REGLA: ANÓNIMOS) */
.carousel-container { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; padding: 20px 0; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; padding: 0 20px; }
.review-box { background: var(--bg-white); padding: 60px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; border-top: 5px solid var(--agri-green); }
.review-box p { font-size: 1.4rem; font-style: italic; color: var(--text-dark); }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.dot { width: 15px; height: 15px; background: #CCC; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--agri-green); transform: scale(1.2); }

/* FAQ (EXACTAMENTE 2) */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-box { background: var(--bg-white); padding: 40px; border-radius: 8px; margin-bottom: 30px; border-left: 5px solid var(--agri-sun); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faq-box h3 { font-size: 1.4rem; color: var(--agri-dark); margin-bottom: 15px; }
.faq-box p { font-size: 1.1rem; color: var(--text-muted); }

/* FOOTER CON REGLA LOGO KIT */
footer { background: var(--text-dark); color: var(--bg-white); padding: 80px 5% 40px; text-align: center; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; text-align: left; }
.footer-grid h4 { color: var(--agri-sun); margin-bottom: 20px; text-transform: uppercase; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #AAA; text-decoration: none; font-weight: 700; transition: 0.3s; }
.footer-links a:hover { color: var(--agri-light); }

/* REGLA ESTRICTA LOGO KIT */
.footer-logo-kit {
    height: 125px !important;
    background-color: transparent !important;
    display: block;
    margin: 0 auto 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
    .hero-text p { border-left: none; border-bottom: 4px solid var(--agri-sun); padding-bottom: 20px; }
    .stats-wrapper { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    nav { display: none; } /* En un proyecto real aquí iría el botón hamburguesa JS */
    .hero-text h1 { font-size: 3rem; }
    .stats-wrapper { grid-template-columns: 1fr; }
}