/* ==========================================================================
   RESET & VARIABLES (WCAG AA/AAA Compliant)
   ========================================================================== */
:root {
    --color-primary: #123b1f;
    /* Verde Corporativo Oscuro (Contraste 10:1 en blanco) */
    --color-accent: #3b8717;
    /* Verde Hoja Accesible (Contraste 4.6:1 en blanco) */
    --color-accent-light: #5cb82b;
    /* Verde Lima Corporativo */
    --color-bg-light: #f7f9f6;
    /* Fondo suave neutro */
    --color-surface: #ffffff;
    /* Blanco puro */
    --color-text: #1a241c;
    /* Texto base de alto contraste */
    --color-text-muted: #49574d;
    /* Texto secundario accesible */
    --color-border: #d4ded6;

    --font-base: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Montserrat', var(--font-base);
    --color-btn-cta: #7bb31e;
    --color-btn-cta-hover: #8cd024;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: all 0.25s ease-in-out;
    --shadow-soft: 0 8px 24px rgba(18, 59, 31, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-surface);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   ENLACES & BOTONES
   ========================================================================== */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--color-accent);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--color-bg-light);
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION (MOCKUP EXACT MATCH)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5ece6;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img,
.logo-svg {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #123b1f;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.2rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #7bb31e !important;
}

.nav-link--active {
    color: #7bb31e !important;
}

/* Dropdown */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle .chevron-icon {
    transition: transform 0.2s ease;
    color: currentColor;
}

.nav-item-dropdown:hover .dropdown-toggle .chevron-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    padding: 0.5rem 0;
    list-style: none;
    display: none;
    z-index: 110;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-base);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
    background-color: #f3f8f1;
    color: #7bb31e;
}

/* Header CTA Button */
.btn-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-btn-cta);
    background: linear-gradient(180deg, #84c022 0%, #74aa1b 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 0.72rem 1.6rem;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(123, 179, 30, 0.35);
    transition: all 0.25s ease-in-out;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-header-cta:hover,
.btn-header-cta:focus-visible {
    background-color: var(--color-btn-cta-hover);
    background: linear-gradient(180deg, #93d628 0%, #7ebf1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(123, 179, 30, 0.45);
    color: #ffffff !important;
}

.btn-header-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-toggle {
    display: none;
}

/* ==========================================================================
   HERO SECTION (MOCKUP EXACT 2:1 PANORAMIC MATCH)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 2.03 / 1;
    min-height: 420px;
    max-height: 720px;
    display: flex;
    align-items: center;
    background-color: #0b1d10;
    background-image: 
        linear-gradient(90deg, 
            rgba(6, 20, 10, 0.88) 0%, 
            rgba(6, 20, 10, 0.74) 28%, 
            rgba(6, 20, 10, 0.38) 50%, 
            rgba(6, 20, 10, 0.08) 68%, 
            rgba(6, 20, 10, 0) 85%
        ),
        url('NATURFLY-GRANJA-SXXI-landing.webp');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 2.5rem 0;
    color: #ffffff;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    width: 92%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.1vw, 1.95rem);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-section .hero-lead {
    font-family: var(--font-base);
    font-size: clamp(1.05rem, 1.45vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    max-width: 480px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-action {
    margin-top: 0.4rem;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-btn-cta);
    background: linear-gradient(180deg, #84c022 0%, #74aa1b 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease-in-out;
    border: none;
    cursor: pointer;
}

.btn-hero-cta:hover,
.btn-hero-cta:focus-visible {
    background-color: var(--color-btn-cta-hover);
    background: linear-gradient(180deg, #93d628 0%, #7ebf1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(123, 179, 30, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

.btn-hero-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   PROBLEM / SOLUTION (MOCKUP EXACT MATCH)
   ========================================================================== */
.problem-solution-section {
    padding: 5.5rem 0;
    background-color: #ffffff;
}

.solution-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

.comparison-graphic-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border: 1px solid #e2ede5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-graphic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.solution-graphic-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 19px;
    object-fit: cover;
}

.solution-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.eyebrow-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #123b1f;
}

.solution-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 900;
    line-height: 1.2;
    color: #123b1f;
    margin: 0;
}

.solution-subtitle {
    font-family: var(--font-base);
    font-size: 1.15rem;
    line-height: 1.5;
    color: #3b5240;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.solution-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.solution-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-family: var(--font-base);
    font-size: 1.05rem;
    line-height: 1.55;
    color: #243328;
}

.benefit-bullet {
    width: 7px;
    height: 7px;
    background-color: #5cb82b;
    border-radius: 1px;
    margin-top: 0.55rem;
    flex-shrink: 0;
}

.solution-benefits-list strong {
    color: #123b1f;
    font-weight: 700;
}

.products-section,
.tech-section,
.metrics-section,
.contact-section {
    padding: 5rem 0;
}

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-accent-light);
}

.product-icon-wrap {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-specs {
    list-style: none;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   TECHNOLOGY & METRICS
   ========================================================================== */
.tech-section {
    background-color: var(--color-bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: var(--color-surface);
    padding: 2.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.tech-num {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.8rem;
}

.metrics-section {
    background-color: var(--color-primary);
    color: #ffffff;
}

.metrics-section h2 {
    color: #ffffff;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.counter {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent-light);
}

.unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-light);
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 184, 43, 0.25);
}

.form-feedback {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: #e6f6e5;
    color: #1b4f2c;
    border: 1px solid #b7e3b4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0b2413;
    color: #d4ded6;
    padding: 3rem 0;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

/* ==========================================================================
   RESPONSIVE (Mobile-First Scaled)
   ========================================================================== */
@media (max-width: 860px) {

    .hero-section {
        aspect-ratio: auto;
        padding: 4rem 0;
        min-height: auto;
        background-image: 
            linear-gradient(180deg, 
                rgba(7, 22, 11, 0.94) 0%, 
                rgba(7, 22, 11, 0.85) 60%, 
                rgba(7, 22, 11, 0.75) 100%
            ),
            url('NATURFLY-GRANJA-SXXI-landing.webp');
        background-position: center center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.1rem, 4.4vw, 1.7rem);
    }

    .hero-section .hero-lead {
        font-size: 1.15rem;
    }

    .btn-hero-cta {
        width: 100%;
        text-align: center;
    }

    .solution-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .comparison-col {
        min-height: 280px;
    }

    .contact-container,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--color-primary);
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 3px;
        background: var(--color-primary);
        left: 0;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
    .nav-links.active {
        display: flex;
    }

    .nav-item-dropdown {
        width: 100%;
    }

    .nav-item-dropdown.open .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background-color: #f9fcf9;
        margin-top: 0.5rem;
    }
}