/* Estilos del grid de productos */
.cwcp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cwcp-product, .cwcp-carousel-product {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f9f9f9;
    text-align: center;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.cwcp-product-image img, .cwcp-carousel-product img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.cwcp-product-price,
.cwcp-product-direccion,
.cwcp-product-comuna {
    margin: 10px 0;
}

/* Estilos para el carrusel */
.cwcp-products-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow-x: auto;
}

.cwcp-carousel-product {
    flex: 0 0 auto;
    min-width: 100%;
}

/* Ajustes responsivos */
@media (max-width: 1024px) {
    .cwcp-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cwcp-products-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cwcp-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cwcp-products-carousel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cwcp-products-grid {
        grid-template-columns: 1fr;
    }
    .cwcp-products-carousel {
        grid-template-columns: 1fr;
    }
}

.cwcp-product-link, .cwcp-carousel-product-link {
    text-decoration: none;
    color: inherit;
}

.cwcp-product-link:hover .cwcp-product-price,
.cwcp-carousel-product-link:hover .cwcp-product-price {
    color: #0056b3;
}
.cwcp-docs .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0;
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
}

.cwcp-docs .button:hover {
    background-color: #003f7f;
}
.cwcp-docs .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0;
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
}

.cwcp-docs .button:hover {
    background-color: #003f7f;
}
/* Estilos del grid de productos */
.cwcp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cwcp-product, .cwcp-carousel-product {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    text-align: center;
    height: 100%; /* Asegura que todos los elementos tengan la misma altura */
}

.cwcp-product-image img, .cwcp-carousel-product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cwcp-product-price,
.cwcp-product-direccion,
.cwcp-product-comuna {
    margin: 10px 0;
}

/* Estilos para el carrusel */
.cwcp-products-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
}

.cwcp-carousel-product {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 250px;
}

/* Ajustes responsivos */
@media (max-width: 1024px) {
    .cwcp-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cwcp-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cwcp-carousel-product {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .cwcp-products-grid {
        grid-template-columns: 1fr;
    }
    .cwcp-carousel-product {
        min-width: 100%;
    }
}

.cwcp-product-link, .cwcp-carousel-product-link {
    text-decoration: none;
    color: inherit;
}

.cwcp-product-link:hover .cwcp-product-price,
.cwcp-carousel-product-link:hover .cwcp-product-price {
    color: #0056b3; /* Cambia este color al que prefieras */
}
.button.bases-especiales-btn,
.button.antecedentes-legales-btn {
    background-color: #0073e6;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 5px 0;
}

.button.bases-especiales-btn:hover,
.button.antecedentes-legales-btn:hover {
    background-color: #005bb5;
    color: #ffffff;
}
