/* =========================================
   Variables Globales y Tokens de Diseño
   ========================================= */
:root {
    --color-brand-orange: #D06010;
    --color-brand-orange-hover: #B94F0A;
    --color-brand-charcoal: #3A3638;
    --color-brand-green: #4A8D1A;
    --color-bg-main: #F5F5F5;
    --color-white: #FFFFFF;
    --color-text-primary: #1F1F1F;
    --color-text-secondary: #5F6368;
    --color-border: #E5E7EB;
    --color-error: #DC2626;
    --color-success: #16A34A;

    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s ease;
}

/* =========================================
   Reset y Base
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--color-brand-orange); transition: var(--transition); }
a:hover { color: var(--color-brand-orange-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =========================================
   Tipografía
   ========================================= */
h1, h2, h3, h4 { color: var(--color-brand-charcoal); line-height: 1.2; margin-bottom: 1rem; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { color: var(--color-text-secondary); margin-bottom: 1rem; }

/* =========================================
   Layout & Utilidades (Incluye las de Imagen)
   ========================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-light { background-color: var(--color-bg-main); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.p-4 { padding: 2rem; }
.text-sm { font-size: 0.875rem; }
.text-gray { color: #9CA3AF; }

.img-fluid { max-width: 100%; height: auto; display: block; }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.border-light { border: 1px solid var(--color-border); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.align-center { align-items: center; }

/* =========================================
   Botones
   ========================================= */
.btn {
    display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius-md);
    font-weight: 600; text-align: center; cursor: pointer; border: none; font-size: 1rem;
}
.btn-primary { background-color: var(--color-brand-orange); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-brand-orange-hover); color: var(--color-white); }
.btn-secondary { background-color: transparent; color: var(--color-brand-charcoal); border: 2px solid var(--color-brand-charcoal); }
.btn-secondary:hover { background-color: var(--color-brand-charcoal); color: var(--color-white); }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* =========================================
   Header y Navegación
   ========================================= */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 100;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--color-brand-orange); }
.logo img { height: 40px; }
.main-nav ul { display: flex; gap: 2rem; align-items: center; }
.main-nav a { color: var(--color-text-primary); font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--color-brand-orange); }
.main-nav .nav-btn { color: var(--color-white); }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 101; }
.mobile-menu-toggle span { display: block; width: 100%; height: 2px; background-color: var(--color-brand-charcoal); position: absolute; transition: var(--transition); }
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 9px; }
.mobile-menu-toggle span:nth-child(3) { top: 18px; }

@media (max-width: 767px) {
    .mobile-menu-toggle { display: block; }
    .main-nav { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background-color: var(--color-white); box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: var(--transition); display: flex; align-items: center; justify-content: center; }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; gap: 2rem; }
}

/* =========================================
   Secciones (Hero, Beneficios, Productos)
   ========================================= */
.hero {
    background-color: var(--color-brand-charcoal);
    background-image: url('../images/hero-agro-desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero { background-image: url('../images/hero-agro-mobile.png'); background-position: top center; padding: 5rem 0; }
}

.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(31, 31, 31, 0.65); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { color: var(--color-white); font-size: clamp(2rem, 5vw, 3.5rem); }
.hero p { color: #E5E7EB; font-size: 1.25rem; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn-secondary { border-color: var(--color-white); color: var(--color-white); background: rgba(255,255,255,0.1); }
.hero-actions .btn-secondary:hover { background-color: var(--color-white); color: var(--color-brand-charcoal); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }

.card { background: var(--color-white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.benefit-card .card-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-img-wrapper { height: 220px; width: 100%; overflow: hidden; background-color: var(--color-bg-main); }
.product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrapper img { transform: scale(1.05); }
.product-content { padding: 1.5rem; flex-grow: 1; }

/* Timeline/Proceso */
.process-timeline { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .process-timeline { grid-template-columns: repeat(3, 1fr); text-align: center; } }
.process-step { position: relative; }
.step-number { width: 40px; height: 40px; background-color: var(--color-brand-green); color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .step-number { margin: 0 auto 1rem; } }

/* Coverage */
.coverage-list li { margin-bottom: 0.5rem; color: var(--color-text-secondary); }

/* CTA Section */
.cta-section { background-color: var(--color-brand-green); color: var(--color-white); padding: 4rem 0; }
.cta-section h2, .cta-section p { color: var(--color-white); }

/* =========================================
   Página de Contacto & Formularios
   ========================================= */
.page-header { padding: 4rem 0; border-bottom: 1px solid var(--color-border); }
.contact-layout { align-items: start; }
.info-item { margin-bottom: 1.5rem; }
.info-item h4 { margin-bottom: 0.25rem; color: var(--color-brand-orange); }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { background-color: var(--color-bg-main); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; border: 1px solid var(--color-border); }

.form-container { background: var(--color-white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.form-group { margin-bottom: 1.5rem; }
label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--color-brand-charcoal); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; transition: var(--transition); background-color: var(--color-bg-main); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-brand-orange); background-color: var(--color-white); box-shadow: 0 0 0 3px rgba(208, 96, 16, 0.1); }

.checkbox-group { display: flex; flex-direction: column; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 400; cursor: pointer; }
.checkbox-label input { margin-top: 0.25rem; }

.error-message { display: none; color: var(--color-error); font-size: 0.875rem; margin-top: 0.25rem; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: var(--color-error); background-color: #FEF2F2; }
.form-group.has-error .error-message { display: block; }

.form-feedback { display: none; padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; text-align: center; font-weight: 500; }
.form-feedback.success { display: block; background-color: #DCFCE7; color: var(--color-success); border: 1px solid #BBF7D0; }
.form-feedback.error { display: block; background-color: #FEE2E2; color: var(--color-error); border: 1px solid #FECACA; }

/* =========================================
   Footer
   ========================================= */
.site-footer { background-color: var(--color-brand-charcoal); color: var(--color-white); padding: 4rem 0 0 0; }
.site-footer h4 { color: var(--color-white); margin-bottom: 1.5rem; }
.site-footer a { color: #9CA3AF; }
.site-footer a:hover { color: var(--color-brand-orange); }
.site-footer ul li { margin-bottom: 0.75rem; }
.footer-bottom { border-top: 1px solid #4B5563; padding: 1.5rem 0; margin-top: 3rem; text-align: center; color: #9CA3AF; }