.separador {
    height: 2px;
    background-color: #ccc;
    margin: 110px 0;
}
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.banner {
    margin-top: 20px;
    width: 100%;
    max-width: 1200px;
}
.banner img {
    width: 100%;
    height: auto;
}
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: hidden;
}

.productos-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    transition: transform 0.3s ease;
    overflow-x: hidden;
}

.producto-card {
    flex: 0 0 calc(33.333% - 14px); /* Para mostrar exactamente 3 productos */
    min-width: 250px;
    max-width: calc(33.333% - 14px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.producto-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
}

.producto-card h3 {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.producto-card .precio {
    font-size: 18px;
    color: #e53935;
    font-weight: bold;
    margin: 10px 0;
}

.producto-card .agregar-carrito {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.producto-card .agregar-carrito:hover {
    background-color: #45a049;
}

/* Estilos para el carrusel */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .productos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }

    .producto-card {
        padding: 10px;
    }

    .producto-card img {
        height: 140px;
    }

    .producto-card h3 {
        font-size: 14px;
        height: 36px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .left-arrow {
        left: 5px;
    }

    .right-arrow {
        right: 5px;
    }
}

@media screen and (max-width: 480px) {
    .productos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .producto-card {
        padding: 8px;
    }

    .producto-card img {
        height: 120px;
    }

    .producto-card h3 {
        font-size: 12px;
        height: 32px;
    }

    .producto-card .precio {
        font-size: 14px;
    }

    .producto-card .agregar-carrito {
        padding: 8px 15px;
        font-size: 12px;
    }
}

footer {
    padding: 20px;
    background-color: #333;
    color: white;
    text-align: center;
    margin-top: 40px; /* Añadí un margen superior para despejar más el pie */
}

header {
    padding-bottom: 20px; /* Espacio inferior del encabezado */
}

.banner2 {
    width: 1200px;
    height: 150px;
    margin: 20px 0; /* Margen superior e inferior */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ddd; /* Color de fondo de reserva en caso de que la imagen no se cargue */
}

.banner2 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para asegurarse de que la imagen cubra todo el banner sin deformarse */
    border-radius: 8px; /* Bordes redondeados (opcional) */
}
.banners-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 80%; /* Ajusta el ancho del contenedor según sea necesario */
    max-width: 800px; /* Máximo ancho del contenedor */
}

.banner3 {
    width: 250px;
    height: 250px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px; /* Espacio entre los banners */
    border-radius: 8px; /* Bordes redondeados (opcional) */
}

.banner3 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para asegurar que la imagen cubra todo el banner sin deformarse */
    border-radius: 8px; /* Bordes redondeados para la imagen también (opcional) */
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.nuestros-proveedores {
    text-align: center;
    margin: 40px 0;
}

.nuestros-proveedores h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.proveedores-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.proveedor {
    width: 150px;
    height: 150px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.proveedor img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
}

.proveedor:hover {
    transform: scale(1.1);
}
body {
    font-family: 'Oswald', sans-serif;
}
nav ul li a {
    color: black; /* Color de texto normal */
    text-decoration: none; /* Quita el subrayado */
    padding: 10px;
    display: inline-block;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: white; /* Cambia el color del texto al pasar el mouse */
    background-color: #ff0000; /* Cambia el fondo al pasar el mouse */
    border-radius: 5px; /* Bordes redondeados */
}

/* Media Queries para dispositivos móviles */
@media screen and (max-width: 768px) {
    .banner, .banner2 {
        width: 100%;
        margin: 10px 0;
    }

    .productos-container {
        padding: 0 10px;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .producto-card {
        width: 160px;
        height: auto;
        min-height: 280px;
        margin: 5px;
        padding: 10px;
    }

    .producto-card img {
        max-height: 120px;
    }

    .producto-card h3 {
        font-size: 14px;
        margin: 5px 0;
    }

    .precio {
        font-size: 16px;
    }

    .agregar-carrito {
        padding: 8px 15px;
        font-size: 14px;
    }

    .banners-container {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }

    .banner3 {
        width: 100%;
        height: auto;
        margin: 5px 0;
    }

    .nuestros-proveedores {
        padding: 10px;
    }

    .proveedores-container {
        gap: 10px;
        padding: 5px;
    }

    .proveedor {
        width: 100px;
        height: 100px;
    }

    .carousel-container {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .carousel-arrow {
        display: none; /* Ocultamos las flechas en móvil */
    }

    .productos-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
        overflow-x: hidden;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .producto-card {
        width: 100%;
        min-height: 250px;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .producto-card img {
        width: 100%;
        height: 120px;
        object-fit: contain;
        margin: 0 0 10px 0;
    }

    .banner2 {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }

    .banners-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .banner3 {
        width: 100%;
        height: 150px;
    }

    .banner3:last-child {
        grid-column: 1 / -1;
    }

    .productos-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
        overflow-x: hidden;
        overflow-y: visible;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .producto-card {
        width: 100%;
        height: auto;
        min-height: 300px;
        margin: 0;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .producto-card img {
        width: 100%;
        height: 140px;
        object-fit: contain;
        margin-bottom: 10px;
        padding: 5px;
    }

    .producto-card h3 {
        font-size: 14px;
        line-height: 1.3;
        margin: 0 0 8px 0;
        height: 36px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .producto-card .precio {
        font-size: 16px;
        font-weight: 700;
        color: #2e7d32;
        margin: 8px 0;
    }

    .producto-card .agregar-carrito {
        width: 100%;
        padding: 8px 0;
        margin: 8px 0 0 0;
        font-size: 14px;
        border-radius: 8px;
        background: #4CAF50;
        transition: background-color 0.2s ease;
    }

    .carousel-arrow {
        display: none;
    }

    /* Ajustes para mejorar la visibilidad del contenido */
    .banner, .banner2 {
        width: 100%;
        margin: 10px 0;
    }

    .banner img, .banner2 img {
        border-radius: 12px;
    }

    /* Ajustes específicos para pantallas muy pequeñas */
    @media screen and (max-width: 360px) {
        .productos-container {
            gap: 8px;
            padding: 10px;
        }

        .producto-card {
            min-height: 280px;
        }

        .producto-card img {
            height: 120px;
        }
    }

    .carousel-container {
        padding: 0;
        margin: 10px;
    }

    .productos-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 15px;
        scroll-behavior: smooth;
    }

    .producto-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 12px;
        margin: 0;
        height: auto;
        min-height: 300px;
    }

    .producto-card img {
        width: 100%;
        height: 150px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    .producto-card h3 {
        font-size: 14px;
        margin: 8px 0;
        height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .producto-card .precio {
        font-size: 16px;
        color: #4CAF50;
        font-weight: bold;
        margin: 8px 0;
    }

    .agregar-carrito {
        width: 100%;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 20px;
        margin-top: 5px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: rgba(0,0,0,0.6);
        color: white;
        font-size: 18px;
    }

    .banner, .banner2 {
        width: 95%;
        margin: 15px auto;
    }

    /* Mejoras en la experiencia táctil */
    .productos-container::-webkit-scrollbar {
        display: none;
    }

    /* Animaciones suaves */
    .producto-card {
        transition: transform 0.3s ease;
    }

    .producto-card:active {
        transform: scale(0.98);
    }
}

/* Optimizaciones para pantallas muy pequeñas */
@media screen and (max-width: 320px) {
    .producto-card {
        width: 140px;
    }

    .producto-card h3 {
        font-size: 12px;
    }

    .precio {
        font-size: 14px;
    }

    .agregar-carrito {
        padding: 6px 12px;
        font-size: 12px;
    }

    .productos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .producto-card {
        min-height: 220px;
    }

    .producto-card img {
        height: 100px;
    }
}

/* Optimizaciones para tablets */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .producto-card {
        width: 200px;
    }

    .banners-container {
        width: 90%;
    }

    .banner3 {
        width: 200px;
        height: 200px;
    }

    .productos-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px;
    }
}

/* Nuevo diseño creativo para móviles */
@media screen and (max-width: 768px) {
    .productos-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
        overflow-x: hidden;
    }

    .producto-card {
        width: 100%;
        height: auto;
        background: linear-gradient(145deg, #ffffff, #f0f0f0);
        box-shadow: 5px 5px 10px #d9d9d9, -5px -5px 10px #ffffff;
        border-radius: 15px;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .producto-card:active {
        transform: translateY(2px);
        box-shadow: 3px 3px 6px #d9d9d9, -3px -3px 6px #ffffff;
    }

    .producto-card img {
        border-radius: 12px 12px 0 0;
        margin: -15px -15px 15px -15px;
        width: calc(100% + 30px);
        max-height: 160px;
        object-fit: cover;
    }

    .agregar-carrito {
        background: linear-gradient(145deg, #4CAF50, #45a049);
        border-radius: 25px;
        padding: 12px 20px;
        width: 90%;
        margin: 10px auto;
        box-shadow: 3px 3px 6px #d9d9d9;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    .banner2, .banner3 {
        transform: perspective(1000px) rotateX(5deg);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .banner2:active, .banner3:active {
        transform: perspective(1000px) rotateX(0);
    }

    .banners-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .banner3:last-child {
        grid-column: span 2;
        height: 200px;
    }

    .nuestros-proveedores {
        background: linear-gradient(145deg, #f0f0f0, #ffffff);
        padding: 25px;
        border-radius: 20px;
        margin: 20px;
        box-shadow: 5px 5px 15px #d9d9d9;
    }

    .proveedor {
        background: linear-gradient(145deg, #ffffff, #f0f0f0);
        border-radius: 15px;
        padding: 10px;
        box-shadow: 5px 5px 10px #d9d9d9;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .proveedor:active {
        transform: translateY(2px);
        box-shadow: 3px 3px 6px #d9d9d9;
    }

    .producto-card h3 {
        font-size: 1.1em;
        font-weight: 600;
        color: #333;
        margin: 10px 0;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }

    .precio {
        font-size: 1.2em;
        color: #4CAF50;
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(76,175,80,0.1);
    }

    /* Animación de carga */
    @keyframes shimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }

    .producto-card.loading {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
    }
}

/* Optimizaciones para orientación horizontal */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .productos-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .banners-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner3:last-child {
        grid-column: auto;
    }
}

/* Estilos para móviles pequeños */
@media screen and (max-width: 480px) {
    .productos-container {
        gap: 10px;
        padding: 10px;
    }

    .producto-card {
        flex: 0 0 160px;
    }

    .producto-card img {
        height: 120px;
    }

    .producto-card h3 {
        font-size: 14px;
        margin: 8px 0;
    }

    .producto-card p {
        font-size: 12px;
        margin: 5px 0;
    }

    .producto-card .precio {
        font-size: 16px;
        margin: 8px 0;
    }

    .agregar-carrito {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Optimizaciones para orientación horizontal */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .productos-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .producto-card {
        flex: none;
        width: 100%;
    }
}

/* Optimizaciones táctiles */
@media (hover: none) {
    .productos-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-arrow {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .carousel-container {
        padding: 0;
        margin: 10px;
    }

    .productos-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 10px;
        scroll-behavior: smooth;
        margin: 0;
    }

    .producto-card {
        flex: 0 0 130px;
        scroll-snap-align: start;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        padding: 8px;
        margin: 0;
        height: 220px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .producto-card img {
        width: 100%;
        height: 90px;
        object-fit: contain;
        margin: 0 auto 4px;
        padding: 2px;
    }

    .producto-card h3 {
        font-size: 11px;
        line-height: 1.2;
        margin: 2px 0;
        height: 26px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .producto-card .precio {
        font-size: 12px;
        font-weight: bold;
        margin: 2px 0;
    }

    .agregar-carrito {
        width: 100%;
        padding: 6px 0;
        font-size: 11px;
        margin: 2px 0;
        border-radius: 4px;
    }

    /* Ocultar scrollbar pero mantener funcionalidad */
    .productos-container::-webkit-scrollbar {
        display: none;
    }
    
    /* Ajustes para los banners */
    .banner, .banner2 {
        width: 95%;
        margin: 10px auto;
    }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media screen and (max-width: 320px) {
    .producto-card {
        flex: 0 0 130px;
        min-height: 200px;
    }

    .producto-card img {
        height: 100px;
    }
}

@media screen and (max-width: 768px) {
    .carousel-container {
        width: 100%;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
    }

    .productos-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 0;
        margin: 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .producto-card {
        flex: 0 0 120px;
        scroll-snap-align: start;
        background: white;
        border-radius: 8px;
        padding: 8px;
        margin: 0;
        height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .producto-card img {
        width: 100%;
        height: 80px;
        object-fit: contain;
        margin: 0 auto;
    }

    .producto-card h3 {
        font-size: 11px;
        margin: 4px 0;
        height: 26px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .producto-card .precio {
        font-size: 12px;
        font-weight: bold;
        color: #4CAF50;
        margin: 4px 0;
    }

    .producto-card .agregar-carrito {
        width: 100%;
        padding: 6px 0;
        font-size: 11px;
        border-radius: 4px;
        margin: 0;
    }

    .productos-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-arrow {
        display: none;
    }
}

/* Optimizaciones para pantallas muy pequeñas */
@media screen and (max-width: 320px) {
    .producto-card {
        flex: 0 0 110px;
        height: 180px;
    }
}
