@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;    
    font-family: "Nunito", sans-serif;
    font-size: 20px;
}

/* Eliminar scrollbar visible */
html, body {
    overflow-x: hidden;
    scrollbar-width: none; /* Para Firefox */
    -ms-overflow-style: none; /* Para Internet Explorer y Edge */
}

/* Ocultar scrollbar para Chrome, Safari y Opera */
body::-webkit-scrollbar {
    display: none;
}

/* ========== HEADER CON SCROLL DINÁMICO ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    height: 70px;
    padding: 8px 10%;
}

.header .logo {
    cursor: pointer;
}

.header .logo img {
    height: 120px;
    width: auto;
    transition: all 0.3s;
}

.header.scrolled .logo img {
    height: 100px;
}

.header .logo img:hover {
    transform: scale(1.05);
}

/* Navegación */
.header .nav-links {
    list-style: none;
    margin-top: 25px;
}

.header .nav-links li {
    display: inline-block;
    padding: 0 20px;
}

.header .nav-links li:hover {
    transform: scale(1.1);
}

.header .nav-links a {
    font-size: 700;
    color: #00000096;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Efecto de cambio de color en el header cuando NO está scrolleado (sobre fondo oscuro) */
.header:not(.scrolled) .nav-links a {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.header .nav-links li a:hover {
    color: greenyellow;
}

.header:not(.scrolled) .nav-links li a:hover {
    color: #e8ff9d;
}

.header:not(.scrolled) .login-btn, 
.header:not(.scrolled) .icon-cart {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh !important;
    background: linear-gradient(to bottom, 
            rgba(0, 0, 0, 0.75) 0%,          
            rgba(0, 0, 0, 0.72) 10%,         
            rgba(0, 0, 0, 0.68) 20%,
            rgba(0, 0, 0, 0.62) 30%,
            rgba(0, 0, 0, 0.55) 40%,
            rgba(0, 0, 0, 0.48) 50%,
            rgba(0, 0, 0, 0.40) 60%,
            rgba(0, 0, 0, 0.32) 70%,
            rgba(0, 0, 0, 0.24) 80%,
            rgba(0, 0, 0, 0.16) 90%,
            rgba(0, 0, 0, 0.08) 95%,
            transparent 100%                  
        ), 
        url('imagenes/fondo-yerbaya.png') !important;
    
    background-size: cover !important;
    background-position: center !important;
    /* IMPORTANTE: Eliminar background-attachment: fixed para iOS */
    background-attachment: scroll !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
    color: white !important;
    padding-left: 8% !important;
    padding-right: 10% !important;
    margin-top: 0 !important;
    position: relative !important;
    overflow: hidden;
    /* Asegurar que el contenido no quede debajo del header */
    padding-top: 90px !important;
    box-sizing: border-box;
}

/* TODO el texto dentro del hero es blanco */
.hero-section * {
    color: white !important;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.6rem !important;
    max-width: 800px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Efecto de transición suave abajo */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(255, 255, 255, 0.03) 15%,
        rgba(255, 255, 255, 0.07) 30%,
        rgba(255, 255, 255, 0.10) 45%,
        rgba(255, 255, 255, 0.13) 60%,
        rgba(255, 255, 255, 0.15) 75%,
        rgba(255, 255, 255, 0.18) 90%,
        rgba(255, 255, 255, 0.20) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* ========== BOTONES HERO (REDONDEADOS COMO ANTES) ========== */
.hero-buttons {
    display: flex;
    gap: 25px;
    margin-top: 35px;
    margin-bottom: 50px;
}

.btn-productos {
    background-color: #8bc34a !important;
    color: white !important;
    padding: 15px 35px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.3) !important;
}

.btn-sobre-nosotros {
    background-color: transparent !important;
    color: white !important;
    padding: 15px 35px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid white !important;
    cursor: pointer !important;
}

.btn-productos:hover {
    background-color: #7cb342 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4) !important;
}

.btn-sobre-nosotros:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-3px) !important;
}

/* ========== SECCIÓN "SOBRE NOSOTROS" ========== */
.sobre-nosotros-section {
    padding: 30px 10% 100px;
    background-color: white;
    margin-top: -70px;
    position: relative;
    z-index: 2;
}

.sobre-nosotros-content {
    max-width: 1200px;
    margin: 0 auto;
}

.sobre-nosotros-title {
    font-size: 2.5rem;
    color: #2E7D32;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
}

.sobre-nosotros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.sobre-nosotros-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: center;
}

.sobre-nosotros-card:hover {
    transform: translateY(-10px);
}

.sobre-nosotros-card i {
    font-size: 3rem;
    color: #8BC34A;
    margin-bottom: 20px;
}

.sobre-nosotros-card h3 {
    font-size: 1.5rem;
    color: #2E7D32;
    margin-bottom: 15px;
    font-weight: 700;
}

.sobre-nosotros-card p {
    color: #666;
    line-height: 1.6;
}

/* ========== CONTENIDO PRINCIPAL ========== */
.main-content {
    background-color: white;
}

/* ========== PRODUCTOS DESTACADOS ========== */
.Productos-destacados {
    margin-top: 50px;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 35px;
    text-align: center;
    color: hsla(118, 72%, 41%, 0.698);
    font-size: 35px;
}

/* main */
.container-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
    margin: 0 auto;
}

.item {
    width: calc(20% - 20px);
    min-width: 220px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.item button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.item button:hover {
    background: #1a252f;
}

.item {
    border-radius: 10px;
}

.item figure {
    overflow: hidden;
    height: 280px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border-radius: 10px 10px 0 0;
}

.item img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 240px;
    object-fit: contain;
    transition: all 0.5s;
}

.item:hover img {
    transform: scale(1.08);
    max-width: 95%;
    max-height: 250px;
}

.info-product {
    margin-top: 15px;
    padding: 8px 15px 10px 15px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.peso {
    font-size: 19.5px;
    font-weight: 400;
    color: #000000;
    margin: -1px 0 2px 0;
    padding: 0;
    line-height: 1;
    font-family: "Nunito", sans-serif;
}

.price {
    font-size: 19.8px;
    font-weight: 900;
    color: #000000;
    margin: 4px 0 6px 0;
    line-height: 1;
    font-family: "Nunito", sans-serif;
}

.info-product button {
    border: none;
    background: none;
    background-color: #000;
    color: #fff;
    padding: 15px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.info-product button:hover {
    background-color: #333;
}

/* ========== MEDIA QUERIES MEJORADAS PARA MÓVILES ========== */

/* Tablets */
@media (max-width: 992px) {
    .container-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .container-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .item {
        width: 100%;
        min-width: unset;
    }
    
    .item figure {
        height: 200px;
    }
    
    .item img {
        max-height: 170px;
    }
    
    /* DESACTIVAR ZOOM EN MÓVIL */
    .item:hover img {
        transform: none !important;
        max-width: 90% !important;
        max-height: 170px !important;
    }
    
    .info-product h5 {
        font-size: 16px;
    }
    
    .peso {
        font-size: 16px;
    }
    
    .price {
        font-size: 18px;
    }
    
    .info-product button {
        padding: 12px 8px;
        font-size: 14px;
    }

    /* Ajustes del total del carrito en móviles */
    .cart-total {
        padding: 15px 0;
    }
    
    .cart-total h3 {
        font-size: 16px;
        line-height: 1;
    }
    
    .total-pagar {
        font-size: 18px;
        line-height: 1;
    }
    
    /* Ajustes para hero section en móviles */
    .hero-section {
        padding-top: 85px !important;
        min-height: 100vh !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 280px;
    }
    
    .btn-productos, .btn-sobre-nosotros {
        text-align: center;
        width: 100%;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container-items {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .item {
        max-width: 350px;
        margin: 0 auto;
        width: 100%;
    }
    
    .item figure {
        height: 220px;
    }
    
    .item img {
        max-height: 190px;
    }
    
    /* DESACTIVAR ZOOM EN MÓVIL */
    .item:hover img {
        transform: none !important;
        max-width: 90% !important;
        max-height: 190px !important;
    }
    
    .hero-section {
        padding-top: 80px !important;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-slogan {
        font-size: 1rem;
    }
}

/* iPhone SE y similares (375px) */
@media (max-width: 380px) {
    .hero-section {
        padding-top: 75px !important;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
}

/* ========== FORMAS DE PAGO ========== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h2 {
    margin-bottom: 45px;
}

.logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.logo-pago {
    margin: 10px;
    transition: transform 0.3s ease;
}

.logo-pago img {
    max-width: 150px;
    height: auto;
}

.logo-pago:hover {
    transform: scale(1.1);
}

.btn-empty-cart,
.btn-go-to-pay {
    background-color: #90ee90;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    border-radius: 5px;
}

.btn-empty-cart:hover,
.btn-go-to-pay:hover {
    background-color: #76c776;
}

.btn-go-to-pay {
    background-color: #4CAF50;
}

.img-container {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.producto-img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
}

/* Asegurar que el contenido no quede debajo del header */
body {
    padding-top: 0;
    margin: 0;
}

.main-content {
    margin-top: 0;
}

/* Estilo para el carrito flotante */
.container-cart-products::-webkit-scrollbar {
    width: 6px;
}

.container-cart-products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.container-cart-products::-webkit-scrollbar-thumb {
    background: #4a7c2a;
    border-radius: 3px;
}

/* ========== FUERZA TODO BLANCO EN HERO ========== */
.hero-section,
.hero-section h1,
.hero-section h2, 
.hero-section h3,
.hero-section p,
.hero-section span,
.hero-section a,
.hero-section div {
    color: white !important;
}

.hero-title,
.hero-subtitle, 
.hero-slogan {
    color: white !important;
}

.hero-section a {
    color: white !important;
}

.btn-sobre-nosotros {
    color: white !important;
}

.btn-productos {
    color: white !important;
}

/* Ajustar espaciado en el header */
.login-container {
    margin-left: 0 !important;
    margin-right: 20px;
}

/* ========== TEXTO A LA IZQUIERDA ========== */
.hero-section .container {
    position: relative;
    z-index: 3;
    text-align: left !important;
    align-items: flex-start !important;
    max-width: 1200px;
    width: 100%;
    padding-left: 0 !important;
}

.hero-title {
    text-align: left !important;
    max-width: 800px;
}

.hero-subtitle {
    text-align: left !important;
    max-width: 700px;
}

.hero-slogan {
    text-align: left !important;
    max-width: 600px;
}

/* Botones también a la izquierda */
.hero-buttons {
    justify-content: flex-start !important;
}

/* Eliminar el texto "Ver más abajo" */
.scroll-text {
    display: none !important;
}

/* ========== HEADER CON NUEVO BOTÓN ========== */
.header {
    justify-content: space-between;
}

/* Organización de elementos en el header */
.header > div {
    display: flex;
    align-items: center;
}

/* Posicionamiento específico */
.header .logo {
    flex: 0 0 auto;
}

.header nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header .login-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* SweetAlert personalizado */
.swal2-popup {
    border-radius: 15px !important;
    padding: 25px !important;
}

.swal2-title {
    font-size: 1.5rem !important;
    color: #2c3e50 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
}

.swal2-cancel {
    background: #95a5a6 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
}

/* Eliminar borde verde */
.swal2-popup {
    border: none !important;
}

/* Asegurar que no haya bordes verdes */
.swal2-container, 
.swal2-modal,
.swal2-show {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
}

/* ========== 🔴 BOTÓN VER PRODUCTOS (HEADER) - TAMAÑO ORIGINAL 🔴 ========== */
#verProductosHeader,
.header .btn-ver-productos,
header .ver-productos-header {
    background: #8bc34a !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(139, 195, 74, 0.3) !important;
}

#verProductosHeader:hover,
.header .btn-ver-productos:hover,
header .ver-productos-header:hover {
    background: #7cb342 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4) !important;
}

/* ========== 🔴 BOTÓN VER PRODUCTOS (HERO/IZQUIERDA) - 25% MÁS CHICO 🔴 ========== */
.hero-buttons .btn-ver-productos,
.hero-section .btn-ver-productos,
.btn-productos {
    background: #8bc34a !important;
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3) !important;
}

.hero-buttons .btn-ver-productos:hover,
.hero-section .btn-ver-productos:hover,
.btn-productos:hover {
    background: #7cb342 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(139, 195, 74, 0.4) !important;
}

/* ========== 🔴 BOTÓN SOBRE NOSOTROS (HERO) - 25% MÁS CHICO 🔴 ========== */
.hero-buttons .btn-sobre-nosotros,
.hero-section .btn-sobre-nosotros {
    background: transparent !important;
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border: 2px solid white !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

.hero-buttons .btn-sobre-nosotros:hover,
.hero-section .btn-sobre-nosotros:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
}

/* ====================== CARRITO CON CONTROLES DE CANTIDAD ====================== */

/* Contenedor del icono */
.container-icon {
    position: relative;
    cursor: pointer;
}

/* Contador de productos */
.count-products {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: #fff;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* Icono del carrito */
.icon-cart {
    width: 40px;
    height: 40px;
    stroke: #000;
    transition: all 0.3s ease;
}

.icon-cart:hover {
    cursor: pointer;
    stroke: #27ae60;
}

/* Carrito desplegable */
.container-cart-products {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    width: 400px;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    max-height: 70vh;
    overflow-y: auto;
    display: none;
}

.container-cart-products:not(.hidden-cart) {
    display: block;
}

/* Producto del carrito */
.cart-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* Información del producto en el carrito */
.info-cart-product {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    width: 100%;
    gap: 10px;
}

/* CONTROLES DE CANTIDAD (+ y -) */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    order: 1;
    margin-right: 15px;
}

.quantity-controls button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background-color: #28a745;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 16px;
    padding: 0;
}

.quantity-controls button:hover {
    transform: scale(1.1);
}

/* Botón de SUMAR (VERDE) */
.quantity-controls .btn-increase {
    background-color: #28a745 !important;
}

.quantity-controls .btn-increase:hover {
    background-color: #218838 !important;
}

/* Botón de RESTAR (ROJO) */
.quantity-controls .btn-decrease {
    background-color: #dc3545 !important;
}

.quantity-controls .btn-decrease:hover {
    background-color: #c82333 !important;
}

/* Cantidad (número en el centro) */
.cantidad-producto-carrito {
    min-width: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #000000 !important;
}

/* Nombre del producto */
.titulo-producto-carrito {
    font-size: 16px !important;
    font-weight: 600;
    color: #000000 !important;
    order: 2;
    flex: 1;
    margin: 0 10px;
    text-align: left;
}

/* Precio del producto (EN NEGRO) */
.precio-producto-carrito {
    font-weight: 700;
    font-size: 16px !important;
    color: #000000 !important;
    order: 3;
    min-width: 100px;
    text-align: right;
    margin-left: auto;
}

/* Icono eliminar */
.icon-close {
    width: 22px;
    height: 22px;
    cursor: pointer;
    color: #e74c3c;
    margin-left: 15px;
    order: 4;
    flex-shrink: 0;
}

.icon-close:hover {
    color: #c0392b;
}

/* Total del carrito */
.cart-total {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
}

.cart-total h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1;
}

.total-pagar {
    font-size: 20px;
    font-weight: 900;
    color: #27ae60;
    margin: 0;
    line-height: 1;
    position: relative;
    top: 0;
}

/* Carrito vacío */
.cart-empty {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

/* Botones del carrito */
.btn-empty-cart,
.btn-go-to-pay {
    border: none;
    background-color: #000;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    width: calc(100% - 40px);
    margin: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

/* Botón VACIAR CARRITO - VERDE OSCURO */
.btn-empty-cart {
    background-color: #27ae60 !important;
}

.btn-empty-cart:hover {
    background-color: #219955 !important;
}

/* Botón IR A PAGAR - VERDE BRILLANTE */
.btn-go-to-pay {
    background-color: #2ecc71 !important;
    margin-bottom: 20px;
}

.btn-go-to-pay:hover {
    background-color: #27ae60 !important;
}

/* Estados */
.hidden-cart {
    display: none;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container-cart-products {
        position: fixed;
        top: 80px;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 350px;
    }
    
    .cart-product {
        padding: 15px;
    }
    
    .info-cart-product {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .quantity-controls {
        order: 1;
        margin-right: 10px;
    }
    
    .titulo-producto-carrito {
        order: 2;
        width: 100%;
        margin: 5px 0;
    }
    
    .precio-producto-carrito {
        order: 3;
        text-align: left;
        margin-left: 0;
        width: 100%;
    }
    
    .icon-close {
        order: 4;
        margin-left: auto;
    }
    
    .btn-empty-cart,
    .btn-go-to-pay {
        width: calc(100% - 30px);
        margin: 8px 15px;
        padding: 12px;
    }
}

/* ====================== BOTÓN INICIAR SESIÓN MEJORADO ====================== */

/* Botón INICIAR SESIÓN (verde más oscuro con efecto) */
.login-btn {
    background: linear-gradient(135deg, #27ae60, #219955) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.4s !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    font-size: 16px !important;
    letter-spacing: 0.3px !important;
}

/* Efecto de brillo al pasar el mouse */
.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

/* ====================== FIX PARA BUG DEL MODAL ====================== */

/* Eliminar backdrop negro bug */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1040 !important;
}

.modal-backdrop.fade.show {
    opacity: 1 !important;
}

.modal {
    z-index: 1050 !important;
}

/* Asegurar que se cierre correctamente */
body.modal-open {
    padding-right: 0 !important;
    overflow: hidden !important;
}

/* Transición suave */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out !important;
}

/* Animación de entrada */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal.show .modal-dialog {
    animation: modalSlideIn 0.3s ease-out !important;
}

/* ====================== ESTILOS PARA LOS BOTONES ====================== */

/* Para botones dentro del modal */
.modal-body .btn-azul {
    font-size: 16px;
    padding: 15px;
}

/* ====================== BOTÓN LOGUEADO (VERDE) ====================== */
.login-btn.logged-in {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.login-btn.logged-in:hover {
    background: linear-gradient(135deg, #218838, #1aa179) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.4) !important;
}

.login-btn.logged-in i {
    font-size: 18px !important;
}

/* ========== ANIMACIÓN PARA BOTONES ========== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ====================== MODAL MEJORADO ====================== */

/* Modal con cruz blanca arriba a la derecha */
#orderFormModal .modal-content {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
}

/* Encabezado del modal */
#orderFormModal .modal-header {
    background: linear-gradient(135deg, #27ae60, #219955) !important;
    color: white !important;
    padding: 25px 30px 15px !important;
    border-bottom: none !important;
    text-align: center !important;
    position: relative !important;
}

/* Cruz blanca arriba a la derecha */
#orderFormModal .btn-close-custom {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    z-index: 1051 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

#orderFormModal .btn-close-custom:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    transform: rotate(90deg) !important;
}

#orderFormModal .btn-close-custom:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

#orderFormModal .modal-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

#orderFormModal .modal-body {
    padding: 30px !important;
    background: white !important;
}

/* Inputs del formulario */
#orderForm .form-control {
    padding: 14px 18px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    transition: all 0.3s !important;
    background: #f8f9fa !important;
}

#orderForm .form-control:focus {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2) !important;
    background: white !important;
}

#orderForm .form-label {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
}

/* Botón del formulario */
#orderForm button[type="submit"] {
    background: linear-gradient(135deg, #27ae60, #219955) !important;
    border: none !important;
    padding: 16px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    transition: all 0.4s !important;
    position: relative !important;
    overflow: hidden !important;
}

#orderForm button[type="submit"]:hover {
    background: linear-gradient(135deg, #219955, #1e8449) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3) !important;
}

#orderForm button[type="submit"]:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Mensaje de error */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Campo con error */
.form-control.error {
    border-color: #e74c3c !important;
    background: #fff5f5 !important;
}

/* Campo válido */
.form-control.valid {
    border-color: #27ae60 !important;
    background: #f8fff9 !important;
}

/* ========== NUEVA SECCIÓN NOSOTROS (2 COLUMNAS) ========== */
.nosotros-section {
    padding: 80px 5%;
    background-color: #f9f9f9;
}

.nosotros-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

/* Columna izquierda - 45% */
.nosotros-left {
    flex: 0 0 45%;
    margin-left: 0;
    padding-right: 20px;
}

.frase-container {
    position: relative;
    padding: 20px;
    display: inline-block;
}

.frase-sin-comillas {
    font-size: 1.6rem;
    line-height: 1.4;
    color: #333;
    font-style: italic;
    font-weight: 500;
    position: relative;
    margin: 0;
    padding: 20px 35px;
    font-family: Georgia, 'Times New Roman', serif;
    text-align: left;
    max-width: 450px;
    letter-spacing: 0.2px;
    background-color: transparent;
}

/* Comillas decorativas - PERFECTAMENTE POSICIONADAS */
.frase-sin-comillas::before {
    content: '“';
    font-size: 6rem;
    color: rgba(139, 195, 74, 0.4);
    position: absolute;
    left: -10px;
    top: -15px;
    font-family: Georgia, serif;
    font-weight: bold;
    line-height: 0.8;
    z-index: 0;
}

.frase-sin-comillas::after {
    content: '”';
    font-size: 6rem;
    color: rgba(139, 195, 74, 0.4);
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-family: Georgia, serif;
    font-weight: bold;
    line-height: 0.8;
    z-index: 0;
}

/* Para que el texto esté sobre las comillas */
.frase-sin-comillas {
    position: relative;
    z-index: 1;
}

/* Columna derecha - 55% */
.nosotros-right {
    flex: 0 0 55%;
    padding-left: 20px;
}

.nosotros-title {
    font-size: 2.5rem;
    color: #2E7D32;
    margin-bottom: 25px;
    font-weight: 800;
    text-align: left;
    font-family: "Nunito", sans-serif;
}

.nosotros-description {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    text-align: left;
    margin: 0;
    font-weight: 400;
    font-family: "Nunito", sans-serif;
    max-width: 650px;
}

/* Texto en verde dentro de la descripción - CONTINUO */
.texto-verde {
    color: #2E7D32;
    font-weight: 700;
    display: inline;
    margin-top: 0;
}

/* Responsive - VERSIÓN PERFECTA PARA QUE LAS COMILLAS SIEMPRE ESTÉN BIEN */
@media (max-width: 992px) {
    .frase-sin-comillas {
        font-size: 1.5rem;
        max-width: 380px;
        padding: 18px 30px;
    }
    
    .frase-sin-comillas::before {
        font-size: 5rem;
        left: -8px;
        top: -12px;
    }
    
    .frase-sin-comillas::after {
        font-size: 5rem;
        right: -8px;
        bottom: -25px;
    }
}

@media (max-width: 768px) {
    .nosotros-section {
        padding: 50px 5%;
    }
    
    .nosotros-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .nosotros-left {
        flex: 0 0 100%;
        padding-right: 0;
    }
    
    .nosotros-right {
        flex: 0 0 100%;
        padding-left: 0;
    }
    
    .frase-container {
        padding: 15px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .frase-sin-comillas {
        font-size: 1.4rem;
        text-align: center;
        max-width: 100%;
        padding: 20px 40px;
        margin: 0 auto;
    }
    
    .frase-sin-comillas::before {
        font-size: 4.5rem;
        left: 5px;
        top: -10px;
    }
    
    .frase-sin-comillas::after {
        font-size: 4.5rem;
        right: 5px;
        bottom: -25px;
    }
    
    .nosotros-title {
        text-align: center;
        font-size: 2.2rem;
    }
    
    .nosotros-description {
        text-align: center;
        font-size: 1.1rem;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .frase-sin-comillas {
        font-size: 1.3rem;
        padding: 15px 35px;
    }
    
    .frase-sin-comillas::before {
        font-size: 4rem;
        left: 0px;
        top: -10px;
    }
    
    .frase-sin-comillas::after {
        font-size: 4rem;
        right: 0px;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .frase-sin-comillas {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    .frase-sin-comillas::before {
        font-size: 3.5rem;
        left: 0px;
        top: -8px;
    }
    
    .frase-sin-comillas::after {
        font-size: 3.5rem;
        right: 0px;
        bottom: -18px;
    }
}

/* ========== NUEVO FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #27ae60, #219955);
    color: white;
    padding: 50px 5% 30px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: white;
}

.footer-descripcion {
    font-style: italic;
    margin-top: 15px;
    line-height: 1.5;
    opacity: 0.95;
}

.footer-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-lista li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: white;
}

.footer-lista li strong {
    color: white;
    font-weight: 700;
}

.footer-col i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: white;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    margin-top: 20px;
}

.footer-copyright p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: white;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h4 {
        text-align: center;
    }
    
    .footer-lista {
        text-align: center;
    }
}

/* ========== DROPDOWN CONTÁCTANOS CON FONDO VERDE ========== */
.dropdown-menu {
    background-color: #8bc34a !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.3) !important;
    padding: 8px 0 !important;
}

.dropdown-menu .dropdown-item {
    color: white !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #7cb342 !important;
    color: white !important;
    transform: translateX(5px);
}

.dropdown-menu .dropdown-item svg {
    margin-right: 8px;
    color: white !important;
}

/* ========== LINKS DEL FOOTER ========== */
.footer-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #8bc34a !important;
    transform: translateX(5px);
}

.footer-link i {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.footer-link:hover i {
    color: #8bc34a;
}

/* ====================== ESTILOS PARA MODAL DE CHECKOUT ====================== */

/* Opciones de pago - contenedor */
.payment-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Ocultar los radios originales */
.payment-option input[type="radio"] {
    display: none;
}

/* Estilo base de las etiquetas */
.payment-option label {
    display: block;
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s ease;
    text-align: center;
}

/* Efecto hover */
.payment-option label:hover {
    border-color: #27ae60;
    background: #f1f8e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2);
}

/* Estilo cuando está seleccionado */
.payment-option input[type="radio"]:checked + label {
    border-color: #27ae60;
    background: #e8f5e9;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

/* Icono de pago */
.payment-icon {
    font-size: 32px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

/* Efecto de escala en el icono cuando está seleccionado */
.payment-option input[type="radio"]:checked + label .payment-icon {
    transform: scale(1.1);
}

/* Texto de la opción de pago */
.payment-text {
    font-weight: 600;
    font-size: 1rem;
}

/* Campos del formulario */
#checkoutForm .form-control {
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background-color: white;
    transition: border-color 0.3s ease;
}

#checkoutForm .form-control:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

/* Select de localidad */
#location.form-control {
    background-color: white;
}

/* Texto de ayuda */
#checkoutForm .input-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Botón de whatsapp */
#checkoutForm .btn-whatsapp {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    padding: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

#checkoutForm .btn-whatsapp:hover {
    background: linear-gradient(135deg, #219955, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Header del modal de checkout */
.checkout-modal-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-bottom: none;
    position: relative;
}

.checkout-modal-header .modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Cruz blanca */
.checkout-modal-header .btn-close-white {
    opacity: 1;
}

/* Cuerpo del modal */
.checkout-modal-body {
    padding: 25px;
}

/* Icono de camión */
.checkout-truck-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 10px;
}

/* Títulos del modal */
.checkout-subtitle {
    color: #2c3e50;
    font-weight: 700;
}

.checkout-description {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* ====================== ESTILOS RESPONSIVOS PARA MODALES ====================== */

/* Ajustes generales para móviles */
@media (max-width: 768px) {
    /* Modal de transferencia */
    .swal2-popup {
        width: 90% !important;
        margin: 0 auto !important;
        padding: 1rem !important;
    }
    
    .swal2-popup .datos-transferencia {
        padding: 12px !important;
    }
    
    .swal2-popup .monto-transferencia {
        font-size: 2rem !important;
        padding: 12px !important;
    }
    
    .swal2-popup .importante-msg {
        font-size: 0.95rem !important;
        padding: 12px !important;
    }
    
    .swal2-popup table {
        font-size: 0.95rem !important;
    }
    
    .swal2-popup td {
        padding: 6px 0 !important;
    }
    
    /* Modal de checkout */
    #checkoutModal .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    #checkoutModal .modal-body {
        padding: 15px !important;
    }
    
    .payment-options {
        gap: 10px !important;
    }
    
    .payment-option {
        min-width: 100px !important;
    }
    
    .payment-option label {
        padding: 10px !important;
    }
    
    .payment-icon {
        font-size: 24px !important;
    }
    
    .payment-text {
        font-size: 0.9rem !important;
    }
    
    #checkoutForm .form-control {
        padding: 10px !important;
        font-size: 0.95rem !important;
    }
    
    #checkoutForm .btn-whatsapp {
        padding: 12px !important;
        font-size: 1rem !important;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .swal2-popup {
        width: 70% !important;
    }
    
    #checkoutModal .modal-dialog {
        max-width: 600px !important;
        margin: 20px auto !important;
    }
}

/* Ajustes para móviles muy pequeños */
@media (max-width: 480px) {
    .payment-options {
        flex-direction: column !important;
    }
    
    .payment-option {
        width: 100% !important;
    }
    
    .swal2-popup .monto-transferencia {
        font-size: 1.8rem !important;
    }
    
    .swal2-popup .importante-msg {
        font-size: 0.85rem !important;
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* ====================== ESTILOS PARA LA VENTANA DE TRANSFERENCIA ====================== */

/* Clases para usar en SweetAlert */
.datos-transferencia {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 2px solid #27ae60;
}

.monto-transferencia {
    background: #e8f5e9;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    text-align: center;
    border: 2px dashed #27ae60;
}

.importante-msg {
    background: #fff3cd;
    padding: 15px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 6px solid #ffc107;
}

/* Texto copiado */
.texto-copiado {
    text-align: center;
    margin: 18px 0 0 0;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Header del modal de transferencia */
.transferencia-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.transferencia-icono {
    font-size: 42px;
    line-height: 1;
}

/* Tabla de datos */
.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
}

.tabla-datos td {
    padding: 8px 0;
}

.tabla-datos td:first-child {
    color: #2c3e50;
    font-weight: 600;
    width: 80px;
}

.tabla-datos td:last-child {
    color: #27ae60;
    font-weight: 600;
}

.tabla-datos .cbu {
    font-family: monospace;
    font-size: 1rem;
}

/* ========== RESPONSIVE PROFESIONAL MEJORADO ========== */
/* Diseño optimizado para que los botones del header queden perfectos */

/* Tablets y pantallas medianas (hasta 992px) */
@media (max-width: 992px) {
    .header {
        padding: 8px 4%;
        height: 90px;
    }
    .header .logo img {
        height: 80px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .container-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Móviles grandes y tablets pequeñas (hasta 768px) - PUNTO DE QUIEBRE PRINCIPAL */
@media (max-width: 768px) {

    /* ===== HEADER FIJO - SIN CAMBIOS AL HACER SCROLL ===== */
    .header {
        padding: 8px 4%;
        height: 75px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: none; /* Eliminamos la transición */
    }

    /* ELIMINAMOS LOS CAMBIOS DE LA CLASE SCROLLED */
    .header.scrolled {
        height: 75px; /* Misma altura */
        padding: 8px 4%; /* Mismo padding */
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    /* LOGO FIJO - SIN CAMBIOS */
    .header .logo img {
        height: 50px;
        max-width: 110px;
        object-fit: contain;
        transition: none; /* Eliminamos transición */
    }
    
    /* ELIMINAMOS EL CAMBIO DE TAMAÑO DEL LOGO EN SCROLL */
    .header.scrolled .logo img {
        height: 50px; /* Mismo tamaño */
    }

    /* ===== MENÚ HAMBURGUESA - COMPLETAMENTE OCULTO ===== */
    .menu-toggle {
        display: none !important;
    }

    /* ===== BOTONES DEL HEADER - TAMAÑOS ORIGINALES ===== */
    .login-container {
        display: flex;
        align-items: center;
        gap: 12px;
        order: 3;
        margin: 0;
    }

    /* BOTÓN VER PRODUCTOS (verde claro) */
    #verProductosHeader,
    .header .btn-ver-productos,
    header .ver-productos-header {
        min-width: 120px !important;
        width: auto !important;
        height: 45px !important;
        padding: 0 16px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        white-space: nowrap !important;
        letter-spacing: 0.5px !important;
        line-height: 1 !important;
        transition: all 0.3s ease !important;
        
        background: #8bc34a !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(139, 195, 74, 0.4) !important;
    }

    #verProductosHeader:hover,
    .header .btn-ver-productos:hover,
    header .ver-productos-header:hover {
        background: #7cb342 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 15px rgba(139, 195, 74, 0.5) !important;
    }

    /* BOTÓN INICIAR SESIÓN (verde oscuro) */
    .login-btn {
        min-width: 120px !important;
        width: auto !important;
        height: 45px !important;
        padding: 0 16px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        white-space: nowrap !important;
        letter-spacing: 0.5px !important;
        line-height: 1 !important;
        transition: all 0.3s ease !important;
        
        background: linear-gradient(135deg, #27ae60, #219955) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4) !important;
    }

    .login-btn:hover {
        background: linear-gradient(135deg, #219955, #1e8449) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 15px rgba(39, 174, 96, 0.5) !important;
    }

    /* Íconos */
    #verProductosHeader i,
    .header .btn-ver-productos i,
    header .ver-productos-header i,
    .login-btn i {
        font-size: 16px !important;
    }

    /* ===== CARRITO ===== */
    .container-icon {
        order: 4;
        margin-left: 8px;
        position: relative;
    }
    .icon-cart {
        width: 32px;
        height: 32px;
    }
    .count-products {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: -8px;
        right: -8px;
    }

    /* ===== MENÚ DESPLEGABLE ===== */
    .header nav {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0.3s, opacity 0.3s;
    }
    
    .header nav.active {
        visibility: visible;
        opacity: 1;
    }
    
    .header .nav-links {
        display: flex !important;
        flex-direction: column;
        background: white;
        padding: 20px 0;
        margin: 0;
        width: 100%;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        border-top: 1px solid #eee;
        transform: translateY(-10px);
        transition: transform 0.3s ease;
    }
    
    .header nav.active .nav-links {
        transform: translateY(0);
    }
    
    .header .nav-links li {
        margin: 10px 0;
        text-align: center;
        padding: 0;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .header .nav-links a {
        color: #333 !important;
        font-size: 18px;
        font-weight: 600;
        text-shadow: none !important;
        display: block;
        padding: 12px 20px;
        transition: all 0.3s ease;
    }
    
    .header .nav-links a:hover {
        color: #27ae60 !important;
        background-color: #f5f5f5;
    }
    
    .header .nav-links .dropdown-menu {
        display: none !important;
        position: static !important;
        background: #f9f9f9 !important;
        margin: 5px 15px !important;
        padding: 8px 0 !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        float: none !important;
    }
    
    .header .nav-links .dropdown.show .dropdown-menu,
    .header .nav-links .dropdown-menu.show {
        display: block !important;
    }
    
    .header .nav-links .dropdown-item {
        color: #333 !important;
        justify-content: center;
        padding: 10px 15px !important;
        font-size: 15px !important;
        text-align: center;
    }
    
    .header .nav-links .dropdown-item:hover {
        background-color: #27ae60 !important;
        color: white !important;
    }
    
    .header .nav-links .dropdown-toggle::after {
        display: inline-block;
        margin-left: 5px;
        vertical-align: middle;
        content: "";
        border-top: 4px solid;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
    }

    /* ===== CARRITO FLOTANTE ===== */
    .container-cart-products {
        position: fixed;
        top: 75px;
        left: 50%;
        transform: translateX(-50%);
        width: 94%;
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
        background: white;
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.25);
        z-index: 1002;
        padding: 15px 0 10px;
    }
    
    .container-cart-products::before {
        content: "🛒 Tu Carrito";
        display: block;
        font-size: 20px;
        font-weight: 700;
        color: #2c3e50;
        padding: 15px 20px 15px;
        border-bottom: 2px solid #f0f0f0;
        margin-bottom: 5px;
    }

    /* ===== HERO SECTION - CORREGIDO PARA SAFARI ===== */
    .hero-section {
        margin-top: 75px !important;
        padding: 30px 5% 60px !important;
        min-height: auto !important;
        background-attachment: scroll !important;
        display: flex !important;
        align-items: center !important;
        padding-top: 30px !important;
    }
    
    .hero-section .container {
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
        margin-bottom: 20px;
    }
    .hero-slogan {
        font-size: 1rem;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.2);
        margin-top: 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        max-width: 250px;
        width: 100%;
        margin: 15px 0 25px;
    }
    .hero-buttons .btn-ver-productos,
    .hero-buttons .btn-sobre-nosotros {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
        font-size: 1rem;
        justify-content: center;
    }

    .sobre-nosotros-section {
        padding: 40px 5% 50px;
        margin-top: -30px;
    }
    .sobre-nosotros-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .sobre-nosotros-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sobre-nosotros-card {
        padding: 25px;
    }

    .Productos-destacados {
        font-size: 1.9rem;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    .container-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px;
    }
    .item {
        width: 100%;
        min-width: unset;
    }
    .item figure {
        height: 150px;
    }
    .item img {
        max-height: 130px;
    }
    .info-product h5 {
        font-size: 0.95rem;
    }
    .peso {
        font-size: 0.85rem;
    }
    .price {
        font-size: 1rem;
    }
    .info-product button {
        padding: 8px;
        font-size: 0.85rem;
    }

    .nosotros-section {
        padding: 40px 5%;
    }
    .nosotros-container {
        flex-direction: column;
        gap: 25px;
    }
    .nosotros-left,
    .nosotros-right {
        flex: 0 0 100%;
        padding: 0;
        text-align: center;
    }
    .frase-container {
        display: flex;
        justify-content: center;
    }
    .frase-sin-comillas {
        font-size: 1.4rem;
        text-align: center;
        max-width: 100%;
        padding: 15px 10px;
    }
    .frase-sin-comillas::before {
        left: -5px;
        font-size: 4.5rem;
    }
    .frase-sin-comillas::after {
        right: -5px;
        font-size: 4.5rem;
    }
    .nosotros-title {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .nosotros-description {
        text-align: center;
        font-size: 1rem;
        max-width: 100%;
    }

    .footer {
        padding: 35px 5% 15px;
    }
    .footer-row {
        flex-direction: column;
        gap: 25px;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h4 {
        text-align: center;
    }
    .footer-lista {
        text-align: center;
    }
    .footer-descripcion {
        max-width: 100%;
        margin: 10px auto 0;
    }
}

/* Móviles medianos (hasta 576px) */
@media (max-width: 576px) {
    .header {
        height: 70px;
        padding: 8px 4%;
        gap: 8px;
    }
    .header .logo img {
        height: 45px;
        max-width: 100px;
    }
    
    .header.scrolled {
        height: 70px;
        padding: 8px 4%;
    }
    
    .header.scrolled .logo img {
        height: 45px;
    }
    
    #verProductosHeader,
    .header .btn-ver-productos,
    header .ver-productos-header,
    .login-btn {
        min-width: 110px !important;
        height: 42px !important;
        font-size: 14px !important;
        padding: 0 14px !important;
    }
    
    #verProductosHeader i,
    .header .btn-ver-productos i,
    header .ver-productos-header i,
    .login-btn i {
        font-size: 15px !important;
    }
    
    .icon-cart {
        width: 28px;
        height: 28px;
    }
    .count-products {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .container-cart-products {
        width: 96%;
        max-width: 380px;
    }
    
    .hero-section {
        margin-top: 70px !important;
        padding: 25px 5% 50px !important;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-buttons {
        max-width: 230px;
    }
    
    .container-items {
        grid-template-columns: 1fr;
    }
    .item {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Móviles muy pequeños (hasta 400px) */
@media (max-width: 400px) {
    .header {
        height: 65px;
        padding: 6px 3%;
        gap: 6px;
    }
    .header .logo img {
        height: 40px;
        max-width: 90px;
    }
    
    .header.scrolled {
        height: 65px;
        padding: 6px 3%;
    }
    
    .header.scrolled .logo img {
        height: 40px;
    }
    
    #verProductosHeader,
    .header .btn-ver-productos,
    header .ver-productos-header,
    .login-btn {
        min-width: 100px !important;
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 12px !important;
        gap: 5px !important;
    }
    
    #verProductosHeader i,
    .header .btn-ver-productos i,
    header .ver-productos-header i,
    .login-btn i {
        font-size: 14px !important;
    }
    
    .icon-cart {
        width: 26px;
        height: 26px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-section {
        padding: 20px 5% 40px !important;
    }
}

/* ===== MODALES RESPONSIVOS ===== */
@media (max-width: 768px) {
    .swal2-popup {
        width: 92% !important;
        margin: 0 auto !important;
        padding: 1rem !important;
        border-radius: 18px !important;
    }
    .swal2-popup .transferencia-header {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }
    .swal2-popup .datos-transferencia {
        padding: 12px !important;
    }
    .swal2-popup .monto-transferencia span:last-child {
        font-size: 1.8rem !important;
    }
    .swal2-popup .importante-msg {
        padding: 10px !important;
        font-size: 0.9rem !important;
        flex-direction: column !important;
        gap: 5px !important;
        text-align: center !important;
    }
    .tabla-datos {
        font-size: 0.9rem !important;
    }
    .tabla-datos .cbu {
        font-size: 0.8rem !important;
        word-break: break-all;
    }

    .modal-dialog {
        margin: 12px !important;
        max-width: calc(100% - 24px) !important;
    }
    .modal-body {
        padding: 18px !important;
    }
    .payment-options {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .payment-option {
        width: 100% !important;
    }
}

/* Fix para iOS */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll !important;
        padding-top: 80px !important;
        min-height: auto !important;
    }
}

/* ========== FIX PUNTO NEGRO JUNTO AL LOGO ========== */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
}

/* También asegurar que no haya estilos residuales */
.menu-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
}

.menu-toggle span {
    background-color: #333; /* Color original */
}

/* Si el punto es verde en lugar de negro, puede ser el contador del carrito */
.count-products {
    background-color: #e74c3c; /* Asegurar que sea rojo */
    color: white;
}