* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a2e;
    color: white;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e94560;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1511192336575-5a79af67a629?w=1200') no-repeat center center/cover;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Contenedor Principal */
.contenedor {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contenedor h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a2e;
}

/* Grid de Productos */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tarjeta-producto {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
}

.tarjeta-producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.info-producto {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.info-producto h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.descripcion {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.precio {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 15px;
}

.btn-comprar {
    display: block;
    text-align: center;
    background-color: #1a1a2e;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-comprar:hover {
    background-color: #e94560;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a1a2e;
    color: white;
    margin-top: 40px;
}