/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #d326ad;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #d326ad;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
}

.banner {
    background-color: #d326ad;
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* 🔹 Ajustar alineación de productos */
#productContainer {
    display: flex;
}
.products {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center; /* 🔥 Centra los productos */
    gap: 2rem;
}

/* 🔹 Ajustar tamaño de la tarjeta */
.product-card {
    width: 350px; /* 🔥 Ajustado para mejor proporción */
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 🔹 Ajustar imagen del producto */
.product-image {
    height: 350px; /* 🔥 Tamaño grande pero controlado */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: contain; /* 🔥 Mantiene la imagen completa sin recortes */
    padding: 10px;
}

/* 🔹 Estilos del contenido del producto */
.product-info {
    padding-right: 1rem;
    padding-left: 1rem;
    padding-bottom: 1rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.product-phone {
    font-weight: bold;
    color: #07b441;
    font-size: 1.4rem;
    margin-bottom: 0.1rem;
}
.product-price {
    font-weight: bold;
    color: #d326ad;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 🔹 Ajustar carga */
.loading {
    width: 100%;
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* 🔹 Estilos del footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* 🔹 Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .banner h2 {
        font-size: 1.5rem;
    }
    
    .products {
        justify-content: center;
    }
}

/* 🔹 Botones */
button {
    background-color: #4a6eb5;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3a5d9f;
}

/* 🔹 Mensajes */
.message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}