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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f7;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ============================================
   3. HERO SECTIONS
   ============================================ */

/* Hero de Venta (Home) */
.hero-venta {
    height: 95vh;
    background: url('../assets/banner.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center 30%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Versión EN: usa banner-2 como fondo */
html[lang="en"] .hero-venta {
    background: url('../assets/banner-2.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center 30%;
}

.hero-venta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06), transparent 60%);
    animation: floatBg 12s infinite alternate ease-in-out;
}

.hero-venta .container {
    text-align: center;
    width: 100%;
}

.hero-venta h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.hero-venta p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 30px auto;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
}

/* Index hero: en escritorio botones más grandes, separados del borde y un poco más arriba */
@media (min-width: 769px) {
    .hero-venta .hero-content {
        padding-left: 8%;
        padding-right: 8%;
        padding-bottom: 100px;
    }
    .hero-venta .hero-cta {
        gap: 24px;
        margin-bottom: 30px;
    }
    .hero-venta .btn-primary,
    .hero-venta .btn-outline {
        padding: 16px 36px;
        font-size: 1.05rem;
        border-radius: 8px;
    }
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    min-width: auto;
    text-align: center;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: #2e7d32;
    color: #fff;
}

.btn-primary:hover {
    background: #1b5e20;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-outline {
    border: 2px solid #2e7d32;
    color: #fff;
    background: transparent;
}

/* Ver Ofertas más visible en hero de index */
.hero-venta .btn-outline {
    background: #8d6e63;           /* marrón suave */
    border-color: #6d4c41;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-venta .btn-outline:hover {
    background: #6d4c41;           /* tono un poco más oscuro al hover */
    border-color: #5d4037;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-outline:hover {
    background: #2e7d32;
    color: #fff;
}

/* Hero Benefits */
.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

/* Trading Hero */
.trading-hero {
    position: relative;
    height: 85vh;
    background: url('../assets/exportacion.jpg') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

/* Overlay suave en hero de trading para mejorar lectura del texto */
.trading-hero .hero-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.btn2-primary {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 30px;
    text-decoration: none;
    background: #2e7d32;
    color: white;
    border-radius: 30px;
    transition: 0.3s;
}

.btn2-primary:hover {
    background: #1b5e20;
    transform: translateY(-3px);
}

/* Contact Hero */
.contact-hero {
    padding: 100px 0;
    background: linear-gradient(to right, #2e7d32, #66bb6a);
    color: white;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}



/* ============================================
   4. OFERTAS CARRUSEL
   ============================================ */

.ofertas-carousel-section {
    padding: 40px 20px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.ofertas-carousel-section h2 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ofertas-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ofertas-wrapper {
    overflow: hidden;
    width: 100%;
    flex: 1;
}

.ofertas-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.oferta-carousel-card {
    position: relative;
    min-width: 300px;
    height: 380px;
    background: #f5f5f5;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
    transition: all 0.3s ease;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.oferta-carousel-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.oferta-carousel-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 20px;
}

.oferta-carousel-card h4 {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    padding: 5px;
    margin: 0;
}

.oferta-carousel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53935;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

.oferta-carousel-price {
    position: absolute;
    bottom: 42px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.oferta-carousel-price .old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75rem;
}

.oferta-carousel-price .new {
    font-size: 1rem;
    font-weight: 700;
    color: #2e7d32;
}

.oferta-carousel-btn-cart {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: #2e7d32;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.oferta-carousel-btn-cart:hover {
    background: #1b5e20;
}

.oferta-arrow {
    background: #f0f0f0;
    border: 1px solid #ddd;
    font-size: 18px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: none;
    transition: 0.3s;
    flex-shrink: 0;
    color: #333;
}

.oferta-arrow:hover {
    background: #e0e0e0;
    border-color: #999;
}

/* ============================================
   4. CATEGORÍAS (Home)
   ============================================ */

.categorias-home {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
}

.categorias-home h2 {
    margin-bottom: 40px;
}

.categorias-carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.categorias-wrapper {
    overflow: hidden;
    width: 100%;
    max-height: 500px;
}

.categorias-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.categoria-card {
    position: relative;
    min-width: 320px;
    height: 480px;
    border-radius: 28px;
    overflow: hidden;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.categoria-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
    z-index: 1;
}

.categoria-card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.85);
    color: #222;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: 0.3s ease;
}

.categoria-card:hover h3 {
    background: white;
    transform: scale(1.05);
}

.cat-arrow {
    background: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.cat-arrow:hover {
    transform: scale(1.1);
}

/* ============================================
   5. PROMOCIONES Y BENEFICIOS
   ============================================ */

.promo-home {
    padding: 70px 20px;
    background: linear-gradient(to right, #2e7d32, #66bb6a);
    color: white;
    text-align: center;
}

.promo-banner h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.promo-banner p {
    margin-bottom: 25px;
}

.benefits-shop {
    padding: 80px 20px;
    background: #f8f9fa;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit-item {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}



/* ============================================
   6. FOOTER
   ============================================ */

.footer {
    background: linear-gradient(to right, #000000, #000000);
    color: white;
    margin-top: 80px;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.footer-col p {
    margin-bottom: 10px;
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    text-decoration: none;
    display: flex;
    color: white;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #f4b400;
    color: black;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   7. WHATSAPP FLOTANTE
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #fff;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}



/* ============================================
   8. CARRUSEL DE PROMOCIONES (Hero Slider)
   Solo banners, sin fondos de color. Formato adaptable.
   Banners recomendados: 16:10 (1600×1000) o 2:1 (1920×960).
   ============================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 660px;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 60px;
    background: #f5f5f5;
}

.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.hero-slide {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    margin-left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay muy suave solo en la parte inferior para leer texto */
.hero-slider .hero-slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Escritorio: mismo formato — solo banner a pantalla completa */
@media (min-width: 769px) {
    .hero-slider .hero-slide {
        align-items: flex-end;
        justify-content: flex-start;
        padding-left: 5%;
        padding-right: 5%;
        /* En escritorio mostramos el banner completo sin recortar */
        background-size: contain;
        background-position: center center;
    }
    .hero-slider .hero-slide .hero-content {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 520px;
        margin: 0;
        padding-bottom: 0;
        text-align: left;
        justify-content: flex-end;
    }
    .hero-slider .hero-slide .hero-content h2 {
        color: #fff;
        font-size: 2.2rem;
        margin-bottom: 12px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }
    .hero-slider .hero-slide .hero-content p {
        color: rgba(255,255,255,0.95);
        font-size: 1.05rem;
        margin-bottom: 24px;
        text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    }
    .hero-slider .hero-slide .hero-btn {
        background: #fff;
        color: #2e7d32;
    }
    .hero-slider .hero-slide .hero-btn:hover {
        background: #f4b400;
        color: #111;
    }
}

.hero-btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #111;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.35);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 14px 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s ease;
    backdrop-filter: blur(6px);
    z-index: 10;
}

.hero-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow.left { left: 25px; }
.hero-arrow.right { right: 25px; }

/* Slider Dots */
.slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

.dot.active {
    width: 28px;
    border-radius: 20px;
    background: white;
}

/* Slide específicos con gradientes */
#slide-descuentos {
    background: linear-gradient(270deg, #e63946, #d62828, #b5171e);
    background-size: 400% 400%;
    animation: moverFondo 15s ease infinite;
}

#slide-packs {
    background: linear-gradient(270deg, #2a9d8f, #1f776d, #1b5e57);
    background-size: 400% 400%;
    animation: moverFondo 18s ease infinite;
}

#slide-volumen {
    background: linear-gradient(270deg, #4361ee, #3a0ca3, #240046);
    background-size: 400% 400%;
    animation: moverFondo 20s ease infinite;
}

/* ============================================
   9. TARJETAS HERO (Ofertas Track)
   ============================================ */

.slide-productos {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.hero-card {
    width: 160px;
    text-align: center;
    animation: flotar 4s ease-in-out infinite;
    transition: 0.4s ease;
}

.hero-card:nth-child(2) { animation-delay: 0.5s; }
.hero-card:nth-child(3) { animation-delay: 1s; }
.hero-card:nth-child(4) { animation-delay: 1.5s; }

.hero-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transition: 0.4s ease;
}

.hero-card:hover img {
    transform: translateY(-8px) scale(1.05);
}

.hero-info {
    margin-top: 10px;
}

.hero-nombre {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.hero-precio {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffe66d;
}

/* Carrusel interno de ofertas */
.ofertas-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.ofertas-track::-webkit-scrollbar {
    display: none;
}

.ofertas-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.oferta-card {
    min-width: 160px;
    max-width: 180px;
    background: white;
    border-radius: 22px;
    padding: 18px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.35s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.oferta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.oferta-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 12px;
}

.oferta-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #ff2e2e, #cc0000);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.oferta-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #111;
}

.oferta-precios {
    display: flex;
    flex-direction: column;
}

.oferta-precios .old {
    text-decoration: line-through;
    font-size: 0.85rem;
    color: #999;
}

.oferta-precios .new {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
}

.oferta-destacada {
    transform: scale(1.08);
    border: 2px solid #ffcc00;
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
}

.hero-ofertas {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-ofertas h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}


/* ============================================
   10. LAYOUT PRODUCTOS
   ============================================ */

.productos-layout {
    padding: 60px 0;
    background: #f5f5f5;
}

.layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ============================================
   11. SIDEBAR (FILTROS)
   ============================================ */

.sidebar {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #2e7d32;
    font-weight: 600;
}

.filtro-box {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filtro-box label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.filtro-box select,
.filtro-box input[type="text"] {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.filtro-box select:focus,
.filtro-box input:focus {
    border-color: #2e7d32;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.filtro-box input[type="range"] {
    accent-color: #2e7d32;
}

.filtro-toggle {
    display: none;
    margin-bottom: 20px;
    padding: 12px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================
   12. GRID DE PRODUCTOS
   ============================================ */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.productos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* ============================================
   13. TARJETAS DE PRODUCTOS
   ============================================ */

.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Imagen del producto */
.product-img {
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    position: relative;
}

.product-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.badge.categoria {
    background: #2e7d32;
}

.badge.nuevo {
    right: 15px;
    left: auto;
    background: #ff9800;
}

.badge.oferta {
    top: 45px;
    background: #e53935;
}

.product-brand {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Cuerpo del producto */
.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    min-height: 48px;
}

.product-presentacion {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    min-height: 40px;
}

/* Precio */
.price-box {
    margin-top: auto;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.85rem;
    display: block;
    margin-right: 15px;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2e7d32;
}

.price .currency {
    font-size: 1rem;
    font-weight: 700;
    color: #2e7d32;
}

.price .amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2e7d32;
}

/* Botones de acción */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.btn-cart {
    display: block;
    text-align: center;
    background: #f4b400;
    color: #000;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-cart:hover {
    background: #e0a200;
}

.btn-buy {
    display: block;
    text-align: center;
    background: #2e7d32;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-buy:hover {
    background: #1b5e20;
}

/* ============================================
   13B. FORMATO TARJETAS (ESCRITORIO)
   ============================================ */

@media (min-width: 993px) {
    /* Badge de categoría con estilo pill en escritorio */
    .badge.categoria {
        top: 15px;
        left: 15px;
        transform: none;
        padding: 7px 18px;
        border-radius: 999px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    }

    /* En escritorio: card más “limpia” y centrada */
    .product-body {
        text-align: center;
    }

    .product-body h3 {
        font-size: 1.05rem;
        min-height: 52px;
    }

    .product-presentacion {
        margin: 8px auto 6px auto;
    }

    .price-box {
        margin-top: 10px;
    }

    .btn-buy {
        border-radius: 14px;
        padding: 14px 16px;
    }
}



/* ============================================
   14. MODAL DE PRODUCTOS
   ============================================ */

/* Base: overlay siempre igual (desktop + mobile) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    z-index: 9999;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

/* Contenido y tipografía del modal (comparten estilos desktop/móvil) */
.modal-content {
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#modalTitulo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f3d2e;
}

#modalDescripcion {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

#modalCaracteristicas {
    margin-top: 10px;
    padding-left: 18px;
}

#modalCaracteristicas li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 6px;
}


/* ===== MODAL (ESCRITORIO) ===== */
@media (min-width: 769px) {
    .modal-content {
        background: white;
        width: 90%;
        max-width: 950px;
        border-radius: 25px;
        padding: 40px;
        position: relative;
        transform: scale(0.9);
        transition: 0.4s ease;
    }

    .modal.active .modal-content {
        transform: scale(1);
    }

    .modal-close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
    }

    .modal-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .modal-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .modal-precio {
        font-size: 1.4rem;
        font-weight: 600;
        margin: 15px 0;
        color: #0f3d2e;
    }

    /* Estos precios son para el modal */
    .modal .old-price {
        text-decoration: line-through;
        color: #888;
        margin-right: 15px;
        font-size: 1rem;
    }

    .modal .new-price {
        font-size: 1.6rem;
        font-weight: bold;
        color: #0f3d2e;
    }

    .modal-info ul {
        margin: 15px 0;
        padding-left: 20px;
    }

    .modal .btn-whatsapp {
        display: inline-block;
        margin-top: 20px;
        background: #25D366;
        color: white;
        padding: 14px 30px;
        border-radius: 40px;
        text-decoration: none;
        font-weight: 600;
        transition: 0.3s;
    }

    .modal .btn-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
}

/* ============================================
   15. CARRITO DE COMPRAS
   ============================================ */

.carrito-icono {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0f3d2e;
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 999;
    transition: 0.3s;
}

.carrito-icono:hover {
    transform: scale(1.05);
}

#contadorCarrito {
    background: #ff5252;
    padding: 2px 8px;
    border-radius: 50%;
    margin-left: 5px;
}

.carrito-icono.shake {
    animation: shake 0.4s;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.cart-header span {
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

.cart-header span:hover {
    color: #e53935;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item div:first-child {
    flex: 1;
}

.cart-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-controls button {
    background: #f0f0f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.cart-controls button:hover {
    background: #e0e0e0;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.btn-continue {
    display: block;
    margin-top: 10px;
    padding: 14px 30px;
    background: #ffffff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

.btn-continue:hover {
    background: #f5f5f5;
}

.btn-whatsapp {
    display: block;
    margin-top: 10px;
    background: #25D366;
    color: white;
    padding: 14px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

.btn-whatsapp-big {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 25px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-whatsapp-big:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* ===== ANIMACIÓN ===== */

@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== BOTÓN FILTRO MÓVIL ===== */

.filtro-toggle {
    display: none;
    margin-bottom: 20px;
    padding: 12px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge.oferta {
    top: 45px;
    background: #e53935;
}

/* PRESENTACIÓN */

.product-presentacion {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}


/* ===============================
   CONTACTO PRO
=============================== */

.contact-hero {
    padding: 100px 0;
    background: linear-gradient(to right, #2e7d32, #66bb6a);
    color: white;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-info-section {
    padding: 80px 0;
    background: #f9fdf9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    margin-bottom: 20px;
    color: #2e7d32;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 12px;
}

.btn-whatsapp-big {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 25px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-whatsapp-big:hover {
    background: #1ebe5d;
}

.map-section {
    padding: 80px 0;
    text-align: center;
}

.map-section h2 {
    margin-bottom: 30px;
    color: #2e7d32;
}


/* ================= MAPA ORIGEN ================= */

.map-origin {
    padding: 80px 0;
    background: #ffffff;
}

.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.map-text h2 {
    color: #2e7d32;
    margin-bottom: 20px;
}

.map-visual {
    position: relative;
    display: inline-block;
}

.map-visual img {
    width: 100%;
    display: block;
}

.export-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.export-lines path {
    fill: none;
    stroke: #2e7d32;
    stroke-width: 2;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawLine 2.5s ease forwards;
    opacity: 0.8;
}

.export-lines path:nth-child(2) {
    animation-delay: 0.4s;
}

.export-lines path:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Punto en Perú */

.peru-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #2e7d32;
    border-radius: 50%;
    top: 65%;
    left: 23%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 8px rgba(46, 125, 50, 0.12);
}

.peru-dot::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    background: rgba(46, 125, 50, 0.25);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* TRADING */

.trading-hero {
  position: relative;
  height: 85vh;
  background: url('../assets/exportacion.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.trading-hero .hero-overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* Trading hero: contenido centrado en escritorio (horizontal y vertical) */
@media (min-width: 769px) {
  .trading-hero .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .trading-hero .hero-content h1,
  .trading-hero .hero-content p {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
                 0 0 3px #000;
  }
  .trading-hero .btn2-primary {
    padding: 10px 22px;
    font-size: 0.95rem;
    margin-top: 20px;
  }
}

.hero-content {
  position: relative;
  max-width: 800px;
  animation: fadeUp 1.2s ease forwards;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.btn2-primary {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 30px;
  text-decoration: none;
  background: #2e7d32;
  color: white;
  border-radius: 30px;
  transition: 0.3s;
}

.btn2-primary:hover {
  background: #1b5e20;
  transform: translateY(-3px);
}

.trading-about {
  padding: 100px 0;
  background: #ffffff;
}

.trading-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.trading-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transition: 0.4s;
}

.trading-image img:hover {
  transform: scale(1.03);
}

.trading-text h2 {
  color: #2e7d32;
  margin-bottom: 20px;
}

.trading-parallax {
  background: url('../assets/contenedor.jpg') center/cover fixed;
  padding: 120px 0;
  text-align: center;
  color: white;
}

.trading-parallax h2 {
  font-size: 40px;
  background: rgba(0,0,0,0.5);
  display: inline-block;
  padding: 20px 40px;
  border-radius: 10px;
}

.trading-intro,
.trading-products,
.trading-markets {
    padding: 70px 0;
    background: #ffffff;
    text-align: center;
}

.trading-productos {
    padding: 70px 0 80px;
    background: #f8faf8;
}

/* Productos de Exportación: título y subtítulo */
.trading-productos .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

@media (min-width: 769px) {
    .trading-productos .section-title,
    .trading-productos .trading-sub {
        text-align: center;
    }
}

.trading-productos .trading-sub {
    font-size: 1.05rem;
    color: #555;
    max-width: 640px;
    margin: 0 auto 40px auto;
    line-height: 1.65;
}

/* CTA: contactar para exportar / otro producto o servicio */
.trading-export-cta {
    margin-top: 50px;
    padding: 32px 28px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 16px;
    text-align: center;
}

.trading-export-cta p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.btn-export-contact {
    display: inline-block;
    padding: 14px 28px;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}

.btn-export-contact:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.trading-services {
    padding: 80px 0;
    background: #f4f7f4;
}



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

.trading-product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    transition: 0.35s;
}

.trading-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}

.trading-product-img {
    height: 220px;
    overflow: hidden;
}

.trading-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.trading-product-card:hover img {
    transform: scale(1.08);
}

.trading-product-content {
    padding: 25px;
}

.trading-product-content h3 {
    color: #2e7d32;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.trading-product-content ul {
    padding-left: 18px;
    list-style: disc;
}

.trading-product-content li {
    margin-bottom: 6px;
    color: #444;
    font-size: 14px;
}

/* Servicios Trading: cards con iconos/imágenes consistentes */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.service-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 8px;
    color: #2e7d32;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
}


/* ============================================
   19. ANIMACIONES CLAVE
   ============================================ */

@keyframes floatBg {
    from { transform: translateY(0px); }
    to { transform: translateY(-20px); }
}

@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes moverFondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

