/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #edf5ee;
    color: #1c1a17;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    background: #ffffff;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #2e7d32;
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #1c1a17;
}
.logo h1 span {
    color: #2e7d32;
    background: #edf5ee;
    padding: 0 6px;
    border-radius: 4px;
}

.nav {
    display: flex;
    gap: 28px;
    font-weight: 600;
    align-items: center;
    flex-wrap: wrap;
}
.nav a {
    text-decoration: none;
    color: #4a4540;
    font-size: 0.9rem;
    transition: 0.2s;
}
.nav a:hover {
    color: #2e7d32;
}

.header-cta {
    background: #2e7d32;
    color: #fff;
    padding: 8px 24px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    cursor: default;
    transition: 0.2s;
    border: none;
}
.header-cta:hover {
    background: #1b5e20;
    transform: scale(0.95);
}

/* ===== HERO ===== */
.hero {
    padding: 48px 0 56px;
    background: #ffffff;
    border-bottom: 3px solid #2e7d32;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: #2e7d3220;
    border-radius: 50%;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: #4caf5020;
    border-radius: 50%;
    z-index: 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left .label {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    padding: 4px 20px;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.hero-left h2 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: #1c1a17;
}
.hero-left h2 .accent {
    color: #2e7d32;
    background: #edf5ee;
    padding: 0 10px;
    display: inline-block;
    border-radius: 8px;
}
.hero-left p {
    font-size: 1.15rem;
    color: #5a554e;
    margin: 18px 0 28px;
    max-width: 90%;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-bottom: 32px;
}
.hero-stats .stat {
    display: flex;
    flex-direction: column;
}
.hero-stats .stat strong {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2e7d32;
}
.hero-stats .stat span {
    font-size: 0.75rem;
    color: #7a7268;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-primary {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.15s;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.3);
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    background: #1b5e20;
    transform: scale(0.97);
}
.btn-outline {
    background: transparent;
    border: 2px solid #2e7d32;
    padding: 12px 32px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2e7d32;
    cursor: pointer;
    transition: 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    background: #2e7d32;
    color: #fff;
}

/* Hero derecha - imágenes */
.hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hero-img {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    border: 3px solid #2e7d32;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
}
.hero-img:hover {
    transform: scale(1.03) rotate(-1deg);
}
.hero-img .label-img {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}
.hero-img .label-img span {
    display: block;
    font-weight: 400;
    font-size: 0.65rem;
    opacity: 0.8;
}
.hero-img .tag-img {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2e7d32;
    color: #fff;
    padding: 2px 14px;
    border-radius: 60px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hero-img .tag-img.gold {
    background: #4caf50;
    color: #fff;
}
.hero-img.large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

/* Imágenes de fondo del hero */
.hero-img.bg-abarrotes {
    background-image: url('https://plus.unsplash.com/premium_photo-1664305032567-2c460e29dec1?q=80&w=768&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}
.hero-img.bg-intermediacion {
    background-image: url('https://images.unsplash.com/photo-1681505531034-8d67054e07f6?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}
.hero-img.bg-empaque {
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=600&h=600&fit=crop');
}
.hero-img.bg-transporte {
    background-image: url('https://images.unsplash.com/photo-1565793298595-6a879b1d9492?q=80&w=871&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}
.hero-img.bg-azucar {
    background-image: url('https://images.unsplash.com/photo-1559477882-f1a7c5931735?q=80&w=387&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

/* ===== SERVICIOS ===== */
.services {
    padding: 56px 0 64px;
    background: #edf5ee;
    scroll-margin-top: 80px;
}

.services-header {
    text-align: center;
    margin-bottom: 44px;
}
.services-header h2 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #1c1a17;
}
.services-header h2 span {
    color: #2e7d32;
    background: #ffffff;
    padding: 0 12px;
    border-radius: 8px;
}
.services-header p {
    color: #6b655e;
    font-size: 1.1rem;
    margin-top: 4px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #2e7d32;
    transition: 0.2s;
    background: #ffffff;
}
.service-item:hover {
    transform: translateY(-6px) rotate(1deg);
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.15);
}
.service-item .service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.service-item .service-content {
    padding: 20px 18px 24px;
    text-align: center;
    background: #ffffff;
}
.service-item .service-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1c1a17;
}
.service-item .service-content p {
    font-size: 0.85rem;
    color: #5a554e;
    margin: 6px 0 12px;
}
.service-item .service-content .tag {
    background: #2e7d32;
    color: #fff;
    padding: 3px 16px;
    border-radius: 60px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
}

/* ===== PRODUCTOS ===== */
.products {
    padding: 56px 0 64px;
    background: #ffffff;
    border-top: 3px solid #2e7d32;
    border-bottom: 3px solid #2e7d32;
    scroll-margin-top: 80px;
}

.products-header {
    text-align: center;
    margin-bottom: 44px;
}
.products-header h2 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.products-header h2 span {
    color: #2e7d32;
    background: #edf5ee;
    padding: 0 12px;
    border-radius: 8px;
}
.products-header p {
    color: #6b655e;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #2e7d32;
    transition: 0.2s;
    background: #edf5ee;
}
.product-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.15);
}
.product-item .product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.product-item .product-info {
    padding: 16px;
    text-align: center;
    background: #ffffff;
}
.product-item .product-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1c1a17;
}
.product-item .product-info p {
    font-size: 0.8rem;
    color: #6b655e;
    font-weight: 400;
}
.product-item .product-info .badge {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    padding: 2px 16px;
    border-radius: 60px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 6px;
}
.product-item .product-info .badge.gold {
    background: #4caf50;
    color: #fff;
}

/* ===== FLOTA ===== */
.flota {
    padding: 56px 0 64px;
    background: #edf5ee;
    scroll-margin-top: 80px;
}

.flota-header {
    text-align: center;
    margin-bottom: 44px;
}
.flota-header h2 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.flota-header h2 span {
    color: #2e7d32;
    background: #ffffff;
    padding: 0 12px;
    border-radius: 8px;
}
.flota-header p {
    color: #6b655e;
    font-size: 1.1rem;
    margin-top: 4px;
}

.flota-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.flota-item {
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #2e7d32;
    transition: 0.2s;
    background: #ffffff;
}
.flota-item:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.12);
}
.flota-item .flota-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.flota-item .flota-content {
    padding: 20px 18px 24px;
    text-align: center;
}
.flota-item .flota-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
}
.flota-item .flota-content p {
    color: #5a554e;
    font-size: 0.9rem;
}

/* ===== PROCESO ===== */
.process {
    padding: 56px 0 64px;
    background: #edf5ee;
    scroll-margin-top: 80px;
}

.process-header {
    text-align: center;
    margin-bottom: 44px;
}
.process-header h2 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.process-header h2 span {
    color: #2e7d32;
    background: #ffffff;
    padding: 0 12px;
    border-radius: 8px;
}
.process-header p {
    color: #6b655e;
    font-size: 1.05rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.process-step {
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #2e7d32;
    transition: 0.2s;
    background: #ffffff;
}
.process-step:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.1);
}
.process-step .process-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.process-step .process-content {
    padding: 18px 16px 22px;
}
.process-step .process-content .num {
    font-size: 2.4rem;
    font-weight: 900;
    color: #2e7d32;
    opacity: 0.2;
    margin-bottom: 2px;
}
.process-step .process-content h4 {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1c1a17;
}
.process-step .process-content p {
    font-size: 0.8rem;
    color: #5a554e;
    margin-top: 4px;
}

/* ===== CONTACTO ===== */
.contacto {
    padding: 56px 0 64px;
    background: #ffffff;
    border-top: 3px solid #2e7d32;
    border-bottom: 3px solid #2e7d32;
    scroll-margin-top: 80px;
}

.contacto-header {
    text-align: center;
    margin-bottom: 44px;
}
.contacto-header h2 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.contacto-header h2 span {
    color: #2e7d32;
    background: #edf5ee;
    padding: 0 12px;
    border-radius: 8px;
}
.contacto-header p {
    color: #6b655e;
    font-size: 1.1rem;
    margin-top: 4px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacto-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contacto-info .item {
    border-radius: 16px;
    padding: 20px 16px;
    border: 2px solid #2e7d32;
    transition: 0.2s;
    background: #edf5ee;
    text-align: center;
}
.contacto-info .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
}
.contacto-info .item .emoji {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 6px;
}
.contacto-info .item strong {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}
.contacto-info .item span {
    color: #5a554e;
    font-size: 0.85rem;
}

.contacto-form {
    background: #edf5ee;
    padding: 32px;
    border-radius: 24px;
    border: 3px solid #2e7d32;
}
.contacto-form .form-group {
    margin-bottom: 16px;
}
.contacto-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #d0e0d0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: 0.2s;
    background: #ffffff;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: #2e7d32;
    outline: none;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}
.contacto-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contacto-form .btn-enviar {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.15s;
    width: 100%;
}
.contacto-form .btn-enviar:hover {
    background: #1b5e20;
    transform: scale(0.98);
}

/* ===== CTA ===== */
.cta {
    background: #2e7d32;
    padding: 44px 0;
    color: #fff;
    border-top: 4px solid #1c1a17;
    border-bottom: 4px solid #1c1a17;
}
.cta-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cta-content h3 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.cta-content h3 span {
    background: #1c1a17;
    padding: 0 14px;
    border-radius: 8px;
    color: #2e7d32;
}
.cta-content p {
    opacity: 0.9;
    font-weight: 400;
    font-size: 1rem;
}
.cta-content .btn-cta {
    background: #1c1a17;
    color: #fff;
    border: none;
    padding: 16px 44px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: 0.15s;
    text-decoration: none;
    display: inline-block;
}
.cta-content .btn-cta:hover {
    background: #33302a;
    transform: scale(0.97);
}

/* ===== FOOTER ===== */
.footer {
    background: #1c1a17;
    color: #7a7268;
    padding: 24px 0;
    border-top: 4px solid #2e7d32;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.footer-content strong {
    color: #2e7d32;
    font-weight: 700;
}
.footer-links {
    display: flex;
    gap: 24px;
    font-weight: 600;
    font-size: 0.85rem;
}
.footer-links a {
    color: #7a7268;
    text-decoration: none;
    transition: 0.2s;
}
.footer-links a:hover {
    color: #2e7d32;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid,
    .products-grid,
    .flota-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacto-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-right {
        grid-template-columns: 1fr 1fr;
    }
    .hero-img.large {
        grid-column: span 2;
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .nav {
        gap: 12px 18px;
    }
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    .contacto-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .services-grid,
    .products-grid,
    .flota-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }
    .hero-left h2 {
        font-size: 2.6rem;
    }
    .hero-right {
        grid-template-columns: 1fr;
    }
    .hero-img.large {
        grid-column: span 1;
    }
    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .contacto-info {
        grid-template-columns: 1fr;
    }
    .contacto-form {
        padding: 20px;
    }
}