/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Estilo del encabezado */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(209, 206, 206, 0.1);
}

/* Contenedor general */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Banner de promoción */
.promo-banner {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.promo-banner img {
    max-width: 100%;
    height: auto;
}

.promo-banner h1 {
    font-size: 15px;
    color: #333;
    margin: 20px 0;
}

.promo-banner p {
    font-size: 16px;
    color: #666;
}

.promo-banner .highlight {
    color: #2e7d32;
    font-weight: bold;
}

.promo-banner .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2e7d32;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

/* Sección de ofertas */
.offers-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
}

.offers-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2em;
    color: #333;
}

/* Estilo de las ofertas */
.offers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.offer-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 10px;
    padding: 15px;
    width: 200px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(25% - 20px);
    transition: transform 0.3s ease;
}

.offer-item:hover {
    transform: scale(1.05);
    transform: translateY(-5px);
}

.offer-item img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Asegura que la imagen se ajuste al contenedor sin cambiar su proporción */
    max-height: 200px; /* Ajusta la altura máxima según sea necesario */
}

.offer-item h3 {
    font-size: 16px;
    margin: 10px 0;
}

.price {
    font-size: 20px;
    color: #e53935;
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: #777;
}

.offer-item .btn {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2e7d32;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

.offer-item .btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.offer-imagen {
    width: 100%;
    height: auto;
    display: block;
}

.offer-nombre {
    font-size: 1.2em;
    margin: 10px;
    color: #333;
}

.offer-cantidad,
.offer-precio {
    font-size: 1em;
    margin: 10px;
    color: #666;
}

.btn-agregar {
    display: block;
    width: calc(100% - 20px);
    margin: 10px;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-agregar:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .offer-item {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .offer-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .offer-item {
        width: calc(100% - 20px);
    }
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
.container {
    width: 90%;
    margin: 0 auto;
}
.promo-bannerr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    gap: 15px;
}
.promo-bannerr img {
    max-width: 100%;
    height: auto;
}
.promo-bannerr .promo-text {
    text-align: center;
}
.promo-bannerr .promo-text h2 {
    color: #ff0000;
    font-size: 24px;
    margin: 0;
}
.promo-bannerr .promo-text p {
    color: #000;
    font-size: 14px;
    margin: 5px 0 0 0;
}
.promo-bannerr .promo-button {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.promo-bannerr .promo-button:hover {
    background-color: #4CAF50;
}
.section-title {
    text-align: center;
    margin: 40px 0 20px 0;
    font-size: 24px;
    color: #4CAF50;
}
.section-title .highlight {
    color: #ff69b4;
}
.product-promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.product-promo img {
    max-width: 100%;
    height: auto;
}
.product-promo .promo-details {
    flex: 1;
    margin-left: 20px;
}
.product-promo .promo-details h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}
.product-promo .promo-details p {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
}
.product-promo .promo-details .promo-button {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.product-promo .promo-details .promo-button:hover {
    background-color: #4CAF50;
}
.product-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.product-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 23%;
    margin-bottom: 20px;
    text-align: center;
}
.product-item img {
    max-width: 100%;
    height: auto;
}
.product-item h4 {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}
.product-item p {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
}
.product-item .price {
    font-size: 18px;
    color: #e53935;
    margin: 10px 0;
}
.product-item .promo-label {
    background-color: #4CAF50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}
.product-item .add-to-cart {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.product-item .add-to-cart:hover {
    background-color: #555;
}
.product-item .out-of-stock {
    color: #999;
    font-size: 14px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}
.promo-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.promo-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 32%;
}
.promo-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.promo-item .discount {
    background-color: #2e7d32;
    color: #fff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
    font-weight: bold;
}
.promo-item .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.promo-item .button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.new-section {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}
.new-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.new-item img {
    max-width: 100%;
    height: auto;
}
.new-item .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.new-item .price {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}
.new-item .button {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.new-item .novelty {
    background-color: #2e7d32;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* Pie de página */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%;
  }
  
  footer p {
    margin: 0;
  }
  
  footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
  }
  
  footer .footer-links li {
    display: inline-block;
    margin: 0 10px;
  }
  
  footer .footer-links a {
    color: #fff;
    text-decoration: none;
  }
  
  footer .footer-links a:hover {
    text-decoration: underline;
  }
  
  .social-links a {
    font-size: 24px; /* Tamaño de los iconos */
    color: #ffffff; /* Color predeterminado */
    margin: 0 10px; /* Espaciado entre iconos */
    text-decoration: none;
  }
  
  .social-links a:hover {
    color: #28a745; /* Cambia de color cuando el cursor pasa sobre el icono */
  }

  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 */
}

/* Estilos para el contenedor de promociones (igual que .product-item y product-list) */
#promo-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto; /* Centrado y con margen vertical */
    padding: 20px;
}

#promo-section .promo-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: calc(26% - 20px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mantiene los botones en la parte inferior */
}

/* Nuevo estilo para el contenedor de la imagen con altura fija */
#promo-section .promo-item .image-container {
    height: 150px; /* Altura fija */
    overflow: hidden;
    margin-bottom: 15px;
}

/* La imagen se ajusta dentro del contenedor sin afectar el tamaño del cuadro */
#promo-section .promo-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ajuste: quitar cualquier margin-bottom de la imagen original que se usaba */
/* #promo-section .promo-item img { display: none; } */

#promo-section .promo-item:hover {
    transform: translateY(-5px);
}

#promo-section .promo-item .discount {
    background-color: #2e7d32;
    color: #fff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
    font-weight: bold;
}

#promo-section .promo-item .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

#promo-section .promo-item .button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
#promo-section .promo-item .button:hover {
    background-color: #555;
}

/* Controles del slider (sin cambios, se pueden ajustar según sea necesario) */
#promo-slider-controls {
    text-align: center;
    margin-top: 10px;
}
#promo-slider-controls button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
#promo-slider-controls button:hover {
    background-color: #555;
}

/* Estilos del carrusel */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.productos-grid {
    display: flex;
    overflow-x: hidden;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.producto-card {
    flex: 0 0 220px; /* Reducido de 250px */
    min-height: 300px; /* Reducido de 350px */
    background: white;
    padding: 10px; /* Reducido de 12px */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.producto-card img {
    width: 100%;
    height: 150px; /* Reducido de 180px */
    object-fit: contain;
    margin-bottom: 6px; /* Reducido de 8px */
}

.producto-card h3 {
    font-size: 12px; /* Reducido de 14px */
    margin: 6px 0;
    line-height: 1.2;
    height: 30px; /* Reducido de 34px */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.producto-card p {
    font-size: 11px; /* Reducido de 12px */
    margin: 3px 0;
    color: #666;
}

.producto-card .precio {
    font-size: 14px; /* Reducido de 16px */
    font-weight: bold;
    color: #e53935;
    margin: 4px 0;
}

.producto-card .agregar-carrito {
    padding: 6px 10px; /* Reducido de 8px 12px */
    font-size: 12px; /* Reducido de 13px */
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 85%; /* Reducido de 90% */
    margin: 0 auto;
}

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

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
}

.left-arrow { left: 0; }
.right-arrow { right: 0; }

/* Estilos para el contenedor de productos */
.productos-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px;
    width: 100%;
}

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

/* Responsive */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 20px;
    }
    
    .producto-card {
        flex: 0 0 200px;
    }

    .promo-bannerr {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 10px;
    }

    .promo-bannerr img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 10px auto;
    }

    .promo-bannerr .promo-button {
        width: 100%;
        max-width: 250px;
        margin: 10px auto;
        padding: 12px 20px;
        font-size: 14px;
    }

    .promo-bannerr .promo-text {
        width: 100%;
    }

    .promo-banner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .promo-banner img {
        order: -1;
        margin-bottom: 15px;
    }

    .promo-banner h1 {
        font-size: 14px;
        line-height: 1.3;
        margin: 8px 0;
    }

    .promo-banner img {
        width: 100%;
        max-width: 350px;
        height: auto;
        margin-bottom: 15px;
    }

    .promo-banner h1 {
        font-size: 16px;
        line-height: 1.4;
        margin: 10px 0;
    }

    .product-promo {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-promo img {
        order: -1;
        width: 100%;
        max-width: 350px;
        height: auto;
        margin-bottom: 15px;
    }

    .product-promo .promo-details h3 {
        font-size: 14px;
        line-height: 1.3;
        margin: 8px 0;
    }

    .product-promo .promo-details p {
        font-size: 12px;
        margin: 5px 0;
    }

    .top-bar {
        position: relative;
        display: flex;
        align-items: center;
        padding: 10px;
    }

    .search-bar {
        display: flex;
        width: calc(100% - 50px);
        margin: 0;
    }

    .home-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        z-index: 100;
    }

    .logo {
        margin-bottom: 10px;
    }

    .logo img {
        max-width: 150px;
    }

    .search-bar {
        width: 100%;
        margin: 10px 0;
    }

    .user-options {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .user-options a, 
    .user-options button {
        width: 100%;
        text-align: center;
        padding: 8px;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .categories-dropdown-menu {
        position: static;
        width: 100%;
    }

    .container {
        margin-top: 150px;
        padding: 10px;
    }

    .promo-banner {
        padding: 10px;
    }

    .promo-banner img {
        width: 100%;
        max-width: 300px;
    }

    .promo-bannerr {
        flex-direction: column;
        padding: 15px;
    }

    .promo-bannerr img {
        width: 100%;
        max-height: 200px;
        object-fit: contain;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
    }

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

    .producto-card {
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
        min-width: calc(50% - 10px);
        height: 280px;
        margin: 0;
        scroll-snap-align: start;
    }

    .productos-grid {
        display: none;
    }

    .carousel-arrow {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
    }

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

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
}

.modal-content {
    background-color: #fff;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.modal button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #2e7d32;
    color: white;
    transition: background-color 0.3s;
}

.modal button:hover {
    background-color: #1b5e20;
}

.modal .close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

