/* =========================================
   AGROCORP - PREMIUM LANDING PAGE STYLES
   ========================================= */

/* --- CSS VARIABLES --- */
:root {
    /* Color Palette */
    --clr-primary: #1F4D3A; /* Dark Green */
    --clr-secondary: #4a6741; /* Olive Green */
    --clr-accent: #c9a84c; /* Subtle Gold */
    --clr-bg-light: #f7f6f2; /* Light Beige */
    --clr-white: #ffffff;
    --clr-text-main: #2c302e; /* Soft Black */
    --clr-text-muted: #5a635f;
    --clr-dark: #121f18;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Fluid Typography (clamp) */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 4rem);
    --fs-h2: clamp(2rem, 3vw + 1rem, 3.25rem);
    --fs-h3: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem);
    --fs-body: clamp(1rem, 0.8vw + 0.5rem, 1.0625rem);
    --fs-small: clamp(0.8125rem, 0.4vw + 0.4rem, 0.9375rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(31, 77, 58, 0.15);
    --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & GLOBAL --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 { font-size: var(--fs-h1); color: var(--clr-white); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    margin-bottom: var(--space-sm);
    color: var(--clr-text-muted);
}

.text-gold { color: var(--clr-accent); }
.text-white { color: var(--clr-white); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--space-xl) 0;
}

.bg-light {
    background-color: var(--clr-white);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px; /* Touch target */
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-primary);
}

.btn-primary:hover {
    background-color: #dfbf62;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 168, 76, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-white);
    color: var(--clr-white);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-primary);
    font-weight: 600;
    margin-top: var(--space-sm);
}

.link-arrow i {
    transition: transform 0.3s ease;
}

.link-arrow:hover {
    color: var(--clr-accent);
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* --- BADGES & SUBTITLES --- */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--clr-white);
    font-size: var(--fs-small);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    display: block;
    color: var(--clr-accent);
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* --- HEADER / NAVIGATION --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition);
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0;
    box-shadow: var(--shadow-soft);
}

#main-header.scrolled .logo,
#main-header.scrolled .desktop-nav a {
    color: var(--clr-primary);
}

#main-header.scrolled .mobile-menu-btn {
    color: var(--clr-primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-body);
    font-weight: 900;
    color: var(--clr-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px; /* Reducido para móvil */
    width: auto;
    border-radius: 4px;
    transition: var(--transition);
}

@media (min-width: 1024px) {
    .logo {
        font-size: 1.1rem; /* Letras más pequeñas */
    }
    .logo img {
        height: 60px; /* Tamaño desktop más moderado */
    }
}

.logo span {
    color: var(--clr-accent);
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--clr-white);
    font-weight: 500;
    font-size: 0.95rem; /* Letras más pequeñas */
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
    min-height: 48px;
    min-width: 48px;
}

.nav-cta {
    display: none;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-primary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 2rem;
    cursor: pointer;
    min-height: 48px;
    min-width: 48px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-link {
    color: var(--clr-white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 120px; /* offset larger header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 31, 24, 0.9) 0%, rgba(31, 77, 58, 0.6) 100%);
}

.hero-content {
    max-width: 800px;
    color: var(--clr-white);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-h3);
    margin-bottom: var(--space-md);
    max-width: 550px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
}

.about-list {
    margin: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--clr-primary);
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-image {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--clr-primary);
    color: var(--clr-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--clr-white);
    box-shadow: var(--shadow-dark);
    z-index: 2;
}

.experience-badge .number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--clr-accent);
    line-height: 1;
}

.experience-badge .text {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 0.5rem;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.service-card {
    position: relative;
    background-color: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card .card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 77, 58, 0.9), rgba(18, 31, 24, 0.95));
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    color: var(--clr-white);
}

.service-card:hover .card-bg {
    opacity: 1;
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--clr-white);
}

.service-card:hover .service-icon {
    background: var(--clr-accent);
    color: var(--clr-primary);
}

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--clr-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

/* --- CTA SECTION --- */
.cta-section {
    position: relative;
    color: var(--clr-white);
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(31, 77, 58, 0.95);
    backdrop-filter: blur(5px);
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
}

.cta-content h2 {
    color: var(--clr-white);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

.cta-form-wrapper {
    background: var(--clr-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--clr-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding-top: var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
    color: var(--clr-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--clr-accent);
    font-size: 1.2rem;
}

.footer-bottom {
    background-color: #0d1611;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--clr-white);
}

.social-links a:hover {
    background: var(--clr-accent);
    color: var(--clr-primary);
    transform: translateY(-3px);
}

/* --- ANIMATIONS (Intersection Observer) --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    .nav-cta {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
