/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #ffc700; /* Amarillo cálido */
    --dark-color: #1a1a1a;
    --light-gray: #f8f8f8;
    --text-color: #333;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

/* --- Header y Navegación --- */
.header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-icon .bx {
    font-size: 1.8rem;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Hero Section --- */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.btn {
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
}

/* --- Bestsellers Section --- */
.bestsellers {
    padding: 80px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.product-image {
    background-color: var(--light-gray);
}
.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.2rem;
    padding: 15px 20px 5px;
}

.product-card p {
    padding: 0 20px;
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.btn-add-cart {
    background-color: var(--dark-color);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-add-cart:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* --- About Section --- */
.about {
    background-color: var(--light-gray);
    padding: 80px 20px;
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #aaa;
    padding: 30px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    color: #aaa;
    margin-left: 15px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}