:root {
    --primary-color: #4a7c2c;
    --primary-dark: #375d21;
    --secondary-color: #8db56b;
    --text-dark: #2c3e20;
    --text-body: #555555;
    --bg-light: #fbf9f4;
    --white: #ffffff;
    --border-color: #e5e0d8;
    --accent-brown: #a87b51;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}
body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography specifics */
.overline {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.overline span {
    width: 60px;
    height: 1px;
    background-color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-whatsapp {
    background-color: var(--primary-dark);
    color: var(--white);
}
.btn-whatsapp:hover {
    background-color: var(--primary-color);
}

.btn-whatsapp-large {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 14px 32px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(55, 93, 33, 0.3);
}
.btn-whatsapp-large:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 93, 33, 0.4);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 24px;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-dark);
}
.btn-white:hover {
    background-color: #f0f0f0;
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 86px;
    object-fit: contain;
}
.logo::after {
    /* Fallback if image fails */
    content: "Granja Tierra Santa";
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-brown);
    display: none;
}
.logo img[alt]:after { display: block; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 5px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}
.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center right;
    position: relative;
    padding: 100px 0 160px;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(to right, rgba(248, 246, 237, 1) 50%, rgba(248, 246, 237, 0.8) 75%, rgba(248, 246, 237, 0) 100%);
    z-index: -1;
}
.hero-container {
    display: flex;
    align-items: center;
}
.hero-content {
    flex: 1;
    max-width: 600px;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.05;
}
.hero h1 span {
    color: #58853b;
    font-size: 3.2rem;
    display: block;
}
.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.5;
}
.hero-features {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 45px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-divider {
    width: 1px;
    height: 35px;
    background-color: #d8cebc;
}
.feature i {
    font-size: 1.8rem;
    color: #2c4e16;
}
.feature div {
    display: flex;
    flex-direction: column;
}
.feature strong {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.2;
}
.feature span {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-curve svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* Services / ABASTECEMOS */
.services {
    background-color: var(--white);
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}
.section-title h2::before, .section-title h2::after {
    content: '';
    height: 1px;
    width: 60px;
    background-color: var(--border-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card-img {
    position: relative;
    height: 180px;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-icon {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
}
.card-body {
    padding: 35px 20px 25px;
    text-align: center;
}
.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.card-body p {
    font-size: 0.9rem;
}

/* Why Choose Us */
.why-us {
    background-color: var(--bg-light);
    padding: 80px 0;
}
.why-us-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.why-us-content {
    flex: 1;
}
.why-us h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
}
.why-us h2 span {
    color: var(--primary-color);
}
.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}
.benefits-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.why-us-image {
    flex: 1;
    position: relative;
}
.why-us-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.badge-circle {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 180px;
    height: 180px;
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-md);
    z-index: 2;
    padding: 20px;
}
.badge-circle i {
    font-size: 2rem;
    margin-bottom: 5px;
}
.badge-circle strong {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.1;
}
.badge-circle span {
    font-size: 0.9rem;
    font-weight: 500;
}
.badge-circle small {
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* CTA Section */
.cta-section {
    padding: 0 0 60px;
    background-color: var(--bg-light);
}
.cta-banner {
    background-color: var(--primary-dark);
    border-radius: var(--radius-lg);
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}
.cta-text {
    display: flex;
    align-items: center;
    gap: 25px;
}
.cta-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.cta-text h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 5px;
}
.cta-text p {
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Products Page */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}
.product-img {
    height: 250px;
    overflow: hidden;
    background-color: #f9f9f9;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-info {
    padding: 25px 20px;
    text-align: center;
}
.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.product-info p {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* Benefits Page */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(55, 93, 33, 0.2);
}
.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.benefit-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Us Page */
.about-intro {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.stat-badge {
    background-color: var(--primary-dark);
    color: var(--white);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 8px solid #f4eee2;
}
.stat-badge strong {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
}
.stat-badge span {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
.intro-text h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.intro-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-body);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.mv-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--secondary-color);
}
.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.mv-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(74, 124, 44, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
}
.mv-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.mv-card p {
    color: var(--text-body);
    line-height: 1.7;
}

/* Contact Page Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 50px;
}
.contact-info-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary-color);
}
.contact-info-card h3 {
    margin-bottom: 30px;
    font-size: 1.4rem;
}
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-detail i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}
.contact-detail strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
}
.contact-detail p {
    color: var(--text-body);
    font-size: 0.95rem;
}

.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.contact-form-card h3 {
    margin-bottom: 30px;
    font-size: 1.4rem;
}
.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 44, 0.1);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none !important;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* Footer */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 70px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}
.footer-info p {
    margin-bottom: 20px;
    max-width: 80%;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--secondary-color);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}
.footer-contact i {
    margin-top: 4px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 0.9rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .hero h1 span { font-size: 2.5rem; }
    .hero-container { gap: 30px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* General padding and fonts */
    .container { padding: 0 15px; }
    h2 { font-size: 2rem !important; }
    
    /* Header & Mobile Menu */
    .header-container { flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding: 10px 15px; width: 100%; box-sizing: border-box; }
    .logo { max-width: 70%; }
    .logo img { height: 45px; max-width: 100%; object-fit: contain; }
    .mobile-menu-btn { display: block; }
    .header-wa-btn { display: none; } /* Hidden on mobile in favor of floating button */
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
    .main-nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    .main-nav ul { flex-direction: column; align-items: center; gap: 15px; }
    .main-nav a { font-size: 1.1rem; padding: 5px 0; display: block; }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Hero */
    .hero { padding: 40px 0 80px; overflow: hidden; }
    .hero-container { flex-direction: column; text-align: center; width: 100%; box-sizing: border-box; }
    .hero-content { max-width: 100%; padding: 0 5px; }
    .hero-overlay { width: 100%; background: rgba(248, 246, 237, 0.9); }
    .hero h1 { font-size: 2.3rem; margin-bottom: 15px; line-height: 1.1; word-wrap: break-word; }
    .hero h1 span { font-size: 1.5rem; display: block; margin-top: 5px; }
    .hero p { font-size: 1rem; }
    .hero-features { flex-direction: column; align-items: center; gap: 15px; }
    .feature-divider { width: 50px; height: 1px; }
    .feature { text-align: left; }
    .overline { justify-content: center; }
    
    /* Sections Padding */
    .services, .why-us, section[style*="padding: 100px"] { padding: 50px 0 !important; }
    .section-title { margin-bottom: 30px; }
    
    /* Why Us Badge Fix */
    .why-us-container { flex-direction: column; gap: 40px; }
    .badge-circle { 
        width: 120px; 
        height: 120px; 
        top: -15px; 
        left: -10px; 
        padding: 10px;
        border-width: 4px;
    }
    .badge-circle i { font-size: 1.2rem; }
    .badge-circle strong { font-size: 1rem; }
    
    /* CTA */
    .cta-banner { flex-direction: column; text-align: center; gap: 20px; padding: 25px 20px; }
    .cta-text { flex-direction: column; }
    
    /* Grids */
    .cards-grid, .products-grid, .benefits-grid, .mission-vision-grid, .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    /* Beneficios Specifics */
    section .container[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    .page-header { padding: 50px 0 !important; }
    .page-header h1 { font-size: 2.2rem !important; }
    .benefits-list { text-align: left; display: inline-block; } /* Keep list left aligned even if container centered */
    
    /* About Us Specifics */
    .about-intro { flex-direction: column; text-align: center; padding: 25px 15px; gap: 20px; margin-bottom: 40px; }
    .stat-badge { width: 120px; height: 120px; }
    .stat-badge strong { font-size: 2.5rem; }
    
    /* Contact Forms */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-info-card, .contact-form-card { padding: 25px 20px; }
    
    /* Footer */
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-info p { max-width: 100%; margin: 0 auto 20px; }
    .social-icons { justify-content: center; }
    .footer-contact li { justify-content: center; align-items: center; text-align: center; flex-direction: column; gap: 5px; }
    .footer-contact i { margin-top: 0; margin-bottom: 5px; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 32px;
        border-radius: 50%;
    }
}
