body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

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

.section-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    font-size: 1.2rem;
}

.site-lema {
    font-style: italic;
    color: #777;
    margin-left: 10px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-item {
    margin-left: 20px;
}

.nav-item:first-child {
    margin-left: 0;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

.nav-link.active {
    color: #007bff;
    font-weight: bold;
}




/* Filter Options */
.filter-options {
    text-align: center;
    margin-bottom: 30px;
}

.filter-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-button:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.filter-button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Siempre 4 columnas */
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

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

.product-image-container {
    width: 100%;
    height: 250px; /* Altura fija para mantener consistencia */
    overflow: hidden;
    margin-bottom: 10px; /* Espacio para el botón */
    cursor: pointer; /* Indica que la imagen es clickeable */
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre el contenedor manteniendo la proporción */
    display: block;
    transition: transform 0.3s ease-in-out; /* Transición suave para el hover (opcional) */
}

.product-image:hover {
    /* Opcional: Un ligero zoom al pasar el ratón */
    /* transform: scale(1.05); */
}

.product-details {
    padding: 0 20px 20px 20px; /* Reducido el padding superior */
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* Color de WhatsApp */
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.whatsapp-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.empty-card {
    visibility: hidden; /* O puedes darle un estilo de fondo transparente, etc. */
}

/* Modal Styles */
.image-modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Cubre toda la ventana */
    z-index: 1000; /* Asegura que esté por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
    overflow: auto; /* Permite scroll si la imagen es muy grande */
}

.image-modal-content {
    display: block;
    max-width: 90%; /* Ajusta el tamaño máximo de la imagen */
    max-height: 90%;
    margin: auto;
    animation-name: zoom;
    animation-duration: 0.3s;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* Responsive Modal */
@media (max-width: 600px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Responsive Design General */
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-image-container {
        height: 200px;
        margin-bottom: 8px;
    }

    .filter-button {
        padding: 8px 15px;
        margin: 5px;
    }

    .whatsapp-button {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .whatsapp-icon {
        font-size: 1rem;
        margin-right: 5px;
    }
}

.main-footer {
    background-color: #f8f9fa; /* Un gris claro de fondo */
    color: #6c757d; /* Texto gris más oscuro */
    padding: 1em 0; /* Espaciado vertical */
    font-size: 0.8em; /* Tamaño de fuente más pequeño */
    text-align: center; /* Centrar el texto */
    border-top: 1px solid #dee2e6; /* Línea sutil en la parte superior */
}

.main-footer p {
    margin: 0; /* Eliminar márgenes predeterminados del párrafo */
}



