body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #ea8e11;
    color: #222;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5vw 10px 1vw; /* not too tall! */
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

.logo {
    height: 70px;          /* Reasonable size for desktop */
    width: auto;
    margin: 0 24px 0 0;     /* right space, no overflow margins */
    z-index: 2;
    position: relative;
    max-width: 280px;       /* prevent huge scaling */
}
@media (max-width: 700px) {
    .logo {
        height: 50px;
        max-width: 160px;
        margin: 0;
    }
}



nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #9c1915;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s;
}

nav a:hover, nav a.active {
    background: #f0e7e2;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 32px 5vw;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px 0 rgba(200,100,50,0.06);
}
.contact-row {
    display: flex;
    gap: 44px;
    justify-content: space-between;
    align-items: flex-start;
    margin: 36px 0 0 0;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1 1 280px;
    min-width: 260px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}


.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 1.08em;
    color: #2c2c2c;
    background: #fff8f3;
    padding: 14px 18px;
    border-radius: 13px;
    box-shadow: 0 2px 8px 0 rgba(200,100,50,0.07);
}

.contact-item img {
    margin-top: 3px;
    width: 36px;
    height: 36px;
}

.contact-map {
    flex: 1 1 340px;
    min-width: 300px;
    max-width: 480px;
}

@media (max-width: 900px) {
    .contact-row {
        flex-direction: column;
        gap: 32px;
    }
    .contact-map {
        max-width: 100%;
    }
}
.contact-3col {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
    margin: 36px 0 0 0;
    flex-wrap: wrap;
    background: #fff8f3;
    border-radius: 24px;
    padding: 38px 18px;
    box-shadow: 0 2px 24px 0 rgba(200,100,50,0.06);
}
.contact-col {
    flex: 1 1 320px;
    min-width: 300px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 23px;
}
.contact-col.center {
    align-items: center;
    min-width: 270px;
    max-width: 340px;
    flex: 1.3 1 270px;
}
.contact-col.right {
    align-items: flex-start;
    min-width: 200px;
    max-width: 240px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.09em;
    color: #2c2c2c;
}

.contact-item img {
    width: 40px;
    height: 40px;
    margin-top: 2px;
}

.contact-center-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.15em;
    font-weight: 700;
    color: #b43b12;
    margin-bottom: 10px;
}

.market-box {
    background: #fff;
    border: 2px solid #b43b12;
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
    font-size: 1.15em;
    font-weight: 700;
    color: #b43b12;
    margin: 13px 0 0 0;
    width: 100%;
    box-shadow: 0 2px 12px 0 rgba(200,100,50,0.09);
}
.market-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 0 0;
    min-height: 120px;    /* Taller */
    min-width: 220px;     /* Wider */
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
    text-decoration: none !important;
}

.market-logo {
    display: block;
    max-width: 220px;     /* Wider */
    width: 100%;
    max-height: 90px;     /* Taller */
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: none;
    transition: transform 0.14s;
    background: none;
}

.market-logo-link:hover .market-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 2px 8px #b43b1222);
}



/* Remove default link underline and color for images */
.market-logo-link:visited, .market-logo-link:active {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 1000px) {
    .contact-3col {
        flex-direction: column;
        align-items: stretch;
        gap: 34px;
    }
    .contact-col,
    .contact-col.center,
    .contact-col.right {
        max-width: 100%;
        min-width: 0;
        align-items: flex-start;
    }
}


h1, h2, h3 {
    color: #9c1915;
    font-weight: 700;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1300&q=80') center/cover;
    color: #fff;
    border-radius: 16px;
    min-height: 340px;
    padding: 40px 35px;
    margin-bottom: 32px;
    box-shadow: 0 2px 20px rgba(50,50,50,0.10);
    position: relative;
}

.hero-overlay {
    background: rgba(32,20,10,0.62);
    border-radius: 16px;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 55%;
}

.stats-row {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin: 40px 0;
    text-align: center;
}

.stats-box {
    flex: 1;
    background: #faeee8;
    border-radius: 18px;
    padding: 20px 10px;
    box-shadow: 0 1px 10px 0 rgba(120,50,20,0.07);
    color: #b43b12;
    font-weight: bold;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 30px;
}

.card {
    background: #fff8f3;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 14px 0 rgba(200,100,50,0.05);
    text-align: center;
}

.card img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #e5d3c6;
}

section {
    margin-bottom: 48px;
}

footer {
    text-align: center;
    padding: 32px 8px;
    color: #c1bdb7;
    background: #111;
    margin-top: 90px;
}

/* Vendors - Bigger and full width */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center; /* centers the cards if there are fewer than 3 */
    margin-bottom: 38px;
}

.vendor-card {
    background: #fff8f3;
    border-radius: 18px;
    box-shadow: 0 2px 18px 0 rgba(200,100,50,0.07);
    padding: 0 0 20px 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 340px;
    min-width: 260px;
    margin: 0 auto;
}

.vendor-photo {
    width: 100%;
    max-width: 340px;    /* matches card max width */
    height: 290px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    margin-bottom: 0;
    background: #eee;
}

.vendor-title {
    color: #b43b12;
    font-weight: bold;
    font-size: 1.15em;
}
.vendor-zone,
.vendor-phone {
    display: block;
    margin: 7px 0 0 0;
    color: #3a2e1f;
    font-size: 1em;
}

footer .footer-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 12px;
}
.footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.05em;
    text-decoration: none;
}
.footer-contact img {
    width: 24px;
    height: 24px;
}



.productos-seccion {
    margin: 40px 0;
    padding-left: 2vw;  /* or 40px */
    padding-right: 2vw;
}


.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

.producto-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 18px 0 rgba(200,100,50,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 295px;
    transition: transform 0.16s;
}

.producto-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #eee;
    border-bottom: 1px solid #f0e7e2;
}

.producto-nombre {
    text-align: center;
    font-size: 1.15em;
    font-weight: 600;
    color: #9c1915;
    padding: 13px 6px 11px 6px;
    background: #fff8f3;
    flex: 1 0 auto;
}

.volver-categorias {
    color: #9c1915;
    text-decoration: underline;
    font-size: 1.08em;
    margin-bottom: 18px;
    display: inline-block;
}


     /* Solo para slider básico */
 .slider-img {
     width: 100%;
     height: 430px;
     object-fit: cover;
     border-radius: 16px;
     transition: opacity 0.6s;
 }
.slider {
    position: relative;
    margin-bottom: 16px;
}
.slider-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 10px;
    text-align: center;
}
.slider-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e9c2ad;
    margin: 0 4px;
    cursor: pointer;
}
.slider-dot.active { background: #b43b12; }
.top-products {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin: 40px 0 20px 0;
}
.top-product-card {
    background: #fff8f3;
    border-radius: 16px;
    box-shadow: 0 2px 10px 0 rgba(200,100,50,0.09);
    width: 210px;
    padding: 18px 12px 20px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.top-product-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 13px;
    margin-bottom: 10px;
    background: #eee;
}
.top-product-title {
    font-size: 1.22em;
    color: #b43b12;
    margin-bottom: 10px;
    font-weight: 700;
}
.ver-mas-btn {
    background: #b43b12;
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 14px 36px;
    font-size: 1.22em;
    font-weight: 500;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.14s;
    text-decoration: none;
    display: inline-block;
}
.ver-mas-btn:hover { background: #821908; }
.flags-row {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin: 32px 0 14px 0;
    flex-wrap: wrap; /* Para responsive en pantallas pequeñas */
}

.flag-country {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 66px;
}

.flag-country img {
    width: 48px;
    height: 32px;
    border-radius: 5px;
    border: 1px solid #eee;
    box-shadow: 0 1px 5px #e5c9a9aa;
    background: #fff;
}

.country-name {
    font-size: 1.06em;
    margin-top: 6px;
    color: #9c1915;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.01em;
}

.importamos-label {
    font-size: 1.50em;
    color: #9c1915;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.about-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 36px;
}

.about-history {
    flex: 2 1 320px;
    min-width: 270px;
}

.about-history h2 {
    font-size: 1.3rem;
    margin-top: 0;
    color: #b43b12;
}

.about-slider-box {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    max-width: 300px;
    margin-top: 20px;
}

.about-slider-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 10px;
    transition: opacity 0.5s;
}

.about-slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.about-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ececec;
    cursor: pointer;
    transition: background 0.2s;
}
.about-slider-dot.active {
    background: #b43b12;
}

.about-boxes {
    display: flex;
    gap: 36px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.about-mision, .about-vision {
    flex: 1 1 300px;
    background: #faf5f0;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.about-mision h3,
.about-vision h3 {
    margin-top: 0;
    color: #b43b12;
    font-size: 1.18rem;
}

.about-values-label {
    font-weight: bold;
    color: #b43b12;
    margin-bottom: 7px;
    margin-top: 16px;
    font-size: 1.12rem;
}

.about-values-list {
    margin-top: 0;
    margin-bottom: 30px;
    padding-left: 22px;
    font-size: 1.04rem;
}

.about-mister {
    margin-top: 16px;
    background: #faf5f0;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.02);
}

.about-mister h3 {
    margin-top: 0;
    color: #b43b12;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e0d4c9;
    padding: 7px 10px;
    font-size: 1em;
    background: #fff;
    margin-bottom: 4px;
    resize: none;
}
.contact-form textarea {
    min-height: 70px;
    max-width: 100%;
}
.contact-form button {
    background: #b43b12;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 8px 0;
    margin-top: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: background 0.18s;
}
.contact-form button:hover {
    background: #92270e;
}
.contact-form label {
    font-size: 0.97em;
    font-weight: 600;
    color: #9c1915;
    margin-bottom: 1px;
}
/* Google Fonts: para “Qué hacemos” */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&family=Quicksand:wght@500&display=swap');

.slider {
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
    height: 430px;
}
.slider-img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 16px;
    position: absolute;
    left: 0; top: 0;
    right: 0; bottom: 0;
    transition: opacity 0.6s;
    z-index: 1;
    background: #fff;
    display: flex;
}
.slider-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 1;
}
.slider-txt-abs {
    position: absolute;
    top: 24px;
    left: 36px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 8px #000a;
}
.slider-txt-abs h1 { font-size: 2.7rem; margin-bottom: 14px; }

.slider-text-content {
    max-width: 60%;
    margin: auto;
    text-align: center;
}
.slider-fancy {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 2.8rem;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
}
.slider-fancy-txt {
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif;
    font-size: 1.22rem;
    margin-bottom: 0;
    color: #fff;
    font-weight: 500;
}

.slider-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(150,70,30,0.82);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px; height: 52px;
    font-size: 2.5em;
    cursor: pointer;
    transition: background 0.16s;
    opacity: 0.88;
    box-shadow: 0 4px 16px #502c13a0;
}
.slider-arrow.left { left: 22px; }
.slider-arrow.right { right: 22px; }
.slider:hover .slider-arrow {
    display: block;
}
main, section, .productos-seccion, .top-products, .flags-row {
    padding-left: 5vw;
    padding-right: 5vw;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    .slider-img, .slider { height: 230px; }
    .slider-fancy { font-size: 1.7rem;}
    .slider-fancy-txt { font-size: 1em;}
    .slider-arrow { width: 40px; height: 40px; font-size: 1.3em;}
}

@media (max-width: 768px) {
    body, html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }

    .slider,
    .productos-seccion,
    .flags-row,
    section {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .header-inner,
    footer .footer-contacts {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
}

@media (max-width: 700px) {
    .hero {
        flex-direction: column;
        min-height: 240px;
    }

    .hero-content {
        width: 100%;
    }

    .stats-row {
        flex-direction: column;
        gap: 18px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        padding: 0;
    }
}
@media (max-width: 700px) {
    nav {
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: relative; /* ADD THIS */
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        flex: 0 0 auto;
        padding: 10px 14px;
    }

    nav::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(to right, transparent, white);
        pointer-events: none;
    }
}
/* Scrollable nav wrapper for mobile */
.nav-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

nav {
    display: flex;
    gap: 24px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .nav-scroll-wrapper {
        margin-top: 8px;
    }

    nav {
        padding-bottom: 6px;
        scrollbar-width: none; /* Firefox */
    }

    nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    nav a {
        flex: 0 0 auto;
    }
}
@media (max-width: 700px) {
    .slider-img div[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
        padding: 8px 16px !important;
        text-align: center;
    }

    .slider-img div[style*="font-size: 1.25rem"] {
        font-size: 1rem !important;
        padding: 5px 12px !important;
        text-align: center;
    }

    .slider-fancy {
        font-size: 1.6rem !important;
        text-align: center;
        padding: 0 12px;
    }

    .slider-fancy-txt {
        font-size: 0.95rem !important;
        padding: 0 14px;
        text-align: justify;
    }

    .slider-text-content {
        max-width: 95%;
    }
}
@media (max-width: 768px) {
    .top-products {
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        padding: 0 10px;
        scroll-snap-type: x mandatory;
    }

    .top-product-card {
        flex: 0 0 70%;
        scroll-snap-align: center;
        min-width: 220px;
        max-width: 260px;
    }
}
@media (max-width: 768px) {
    .top-products {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 0 16px;
    }

    .top-product-card {
        flex: 0 0 70%;
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    .top-products {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 0 16px;
        scroll-padding-left: 16px; /* 👈 Ensures first item isn't cut */
    }

    .top-product-card {
        flex: 0 0 70%;
        scroll-snap-align: start;
    }

    .top-products::-webkit-scrollbar {
        display: none;
    }
    .top-product-card:first-child {
        margin-left: 900px; /* or 16px if you want more spacing */
    }
}
@media (max-width: 768px) {
    .slider-fancy {
        font-size: 1.4rem; /* reduce el título */
        text-align: center;
    }

    .slider-fancy-txt {
        font-size: 0.9rem; /* reduce el párrafo */
        text-align: justify;
        padding: 0 12px;
    }

    .slider-text-content {
        max-width: 100%;
        padding: 10px 12px;
    }
}
@media (max-width: 768px) {
    .slider-img.slider-slide:nth-child(2) {
        box-sizing: border-box;
        padding: 16px 14px;
        overflow-y: auto;
        align-items: center;
        justify-content: flex-start;
    }

    .slider-text-content {
        max-width: 100%;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .slider-text-content h1 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .slider-text-content p {
        font-size: 0.95rem;
        text-align: justify;
        margin: 0;
    }
}










