* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7f2;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HERO & NAVBAR --- */
.hero {
    position: relative;
    overflow: hidden;
    background: #1f2937;
}

.hero-banner {
    width: 100%;
    height: 90vh;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #5cba2e;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

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

/* --- DROPDOWN MENU --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    color: #1f2937 !important;
    padding: 12px 20px !important;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(92, 186, 46, 0.08);
    color: #3f7d20 !important;
}

/* --- GLOBAL SECTION --- */
section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #315f1c, #4a8a28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- SERVICES --- */
.services {
    background: #ffffff;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(63, 125, 32, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3f7d20, #5cba2e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(49, 95, 28, 0.08);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
}

.card p {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- ABOUT --- */
.about {
    background: linear-gradient(135deg, #eef3e8 0%, #f5f7f2 100%);
    position: relative;
}

.about-content {
    max-width: 1000px;
    margin: auto;
    text-align: center;
    display: grid;
    gap: 50px;
}

.about-content p {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(49, 95, 28, 0.05);
    border: 1px solid rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px) scale(1.02);
}

.stat-box strong {
    display: block;
    font-size: 2.8rem;
    color: #315f1c;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #315f1c, #4a8a28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-box span {
    color: #6b7280;
    font-weight: 500;
    font-size: 1.05rem;
}

/* --- NOVEDADES --- */
.news-section {
    background: #fdfdfc;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(63, 125, 32, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(49, 95, 28, 0.08);
}

.news-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-category {
    color: #5cba2e;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.35rem;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.news-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #3f7d20;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.read-more span {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.read-more:hover {
    color: #4a8a28;
}

.read-more:hover span {
    transform: translateX(4px);
}

/* --- CONTACT SECTION --- */
.contact-section {
    background: #ffffff;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(63, 125, 32, 0.05);
}

.contact-form h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 800;
}

.contact-form p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

select,
textarea,
input {
    width: 100%;
    padding: 16px 20px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #f9faf8;
    transition: all 0.3s ease;
}

select:focus,
textarea:focus,
input:focus {
    outline: none;
    border-color: #5cba2e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(92, 186, 46, 0.15);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

button.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3f7d20 0%, #315f1c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(49, 95, 28, 0.2);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(49, 95, 28, 0.3);
    background: linear-gradient(135deg, #4a8a28 0%, #3f7d20 100%);
}

button.btn-primary:active {
    transform: translateY(0);
}

/* --- FOOTER --- */
footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.95rem;
}

footer p {
    margin: 0;
}

/* --- RESPONSIVE --- */
@media(max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px 5%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    section {
        padding: 70px 5%;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .hero-banner {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
        object-position: center;
        /* Para iOS moderno: */
        height: 50dvh;
    }
}

/* --- MARKET SECTION --- */
.market-section {
    background: #eef3e8;
    padding: 60px 8%;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.market-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(49, 95, 28, 0.04);
    border: 1px solid rgba(63, 125, 32, 0.05);
    transition: all 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(49, 95, 28, 0.08);
}

.market-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
}

.market-card-header h3 {
    font-size: 1.15rem;
    color: #1f2937;
    font-weight: 700;
}

.badge {
    background: rgba(92, 186, 46, 0.1);
    color: #3f7d20;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.grain {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.market-values {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.market-values.single {
    justify-content: center;
}

.val-box {
    text-align: center;
    flex: 1;
}

.val-box .label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.val-box .value {
    display: block;
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 800;
}

.market-card.grano .val-box .value {
    color: #315f1c;
}