/* Estilos Generales */
:root {
    --primary-color: #3d6b35;
    --secondary-color: #8cb369;
    --accent-color: #f4e285;
    --background-color: #f8f9fa;
    --text-dark: #2b2d42;
    --organic-texture: url('https://www.transparenttextures.com/patterns/asfalt-light.png');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--organic-texture), linear-gradient(to bottom, var(--background-color), #e9f5e1);
    color: var(--text-dark);
}

/* Header y Banner */
.organic-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Ajustar el margen superior del banner */
.organic-banner {
    margin-top: 60px; /* Ajusta este valor según la altura del menú */
    height: 200px; /* Altura del banner */
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #2d5a27, #4a7c3a);
}

.banner-slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.banner-active {
    opacity: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 20px;
}

.banner-title {
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.banner-subtitle {
    color: #fff;
    font-size: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

/* Estilos para la sección de información */
.info-section {
    background-color: #fff;
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 5px 0;
    text-align: center;
}

.info-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.info-section strong {
    color: var(--primary-color);
}

/* Estilos para el footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin: 0;
    font-size: 1rem;
}

/* Estilos para el botón de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* Color de WhatsApp */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Asegura que esté por encima de otros elementos */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
}

.whatsapp-button:hover {
    background-color: #128c7e; /* Color de WhatsApp al hacer hover */
}

.whatsapp-butt {
    position: fixed;
    block-start: 20px; /* top */
    inline-start: 20px; /* left */
    background-color: #25d366;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.whatsapp-butt img {
    width: 60px;
    height: 60px;
}

.whatsapp-butt:hover {
    background-color: #ff8000;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        padding: 8px;
    }

    .whatsapp-button img {
        width: 35px;
        height: 35px;
    }
    .whatsapp-butt {
        bottom: 15px;
        right: 15px;
        padding: 8px;
    }

    .whatsapp-butt img {
        width: 35px;
        height: 35px;
    }
}

/* Buscador */
.search-container {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-button {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: var(--secondary-color);
}

/* Botón Flotante */
.pinon-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.pinon-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.pinon-btn img {
    width: 70%;
    height: auto;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

/* Contenedor Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid de Productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

/* Tarjetas de Producto */
.product-card {
    background: var(--organic-texture), white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #dde5d5;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: translate(-50%, -50%) scale(1.05);
}

.product-info {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-button:hover {
    background: var(--secondary-color);
}

.pagination-button.active {
    background: var(--secondary-color);
    font-weight: bold;
}

/* Controles de Cantidad */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center; /* Center buttons horizontally */
    gap: 10px; /* Space between buttons and input */
    margin-top: 1rem;
}

.quantity-btn {
    width: 40px; /* Larger button size */
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem; /* Larger font for + and - */
    line-height: 40px; /* Center text vertically */
    text-align: center; /* Center text horizontally */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: var(--secondary-color);
}

.quantity-input {
    width: 60px; /* Slightly wider to match larger buttons */
    height: 40px; /* Match button height */
    text-align: center;
    margin: 0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Formulario de Pedido */
.order-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-btn {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Resumen del Carrito */
.cart-summary {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

.description-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.description-btn:hover {
    background: var(--secondary-color);
}

/* Estilos para el botón del carrito */
.cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1020;
}

.cart-btn img {
    width: 70%;
    height: auto;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

.cart-btn span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 5px;
    font-size: 12px;
}

/* Estilos para el modal del carrito */
#cartModal .modal-content {
    max-width: 500px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#cartItems {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px