/* Variables de color premium */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --gold: #D4AF37;
    --gold-hover: #b5952f;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #0a0a0a;
    border-bottom: 1px solid #333;
}

header .logo h1 {
    color: var(--text-light);
    font-size: 28px;
}

header .logo span {
    color: var(--gold);
}

.cart-icon {
    cursor: pointer;
    font-weight: 600;
    color: var(--gold);
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--text-light);
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.9)), url('https://images.unsplash.com/photo-1598285526362-ec72a7ee68eb?auto=format&fit=crop&q=80') center/cover;
    border-bottom: 2px solid var(--gold);
}

.hero h2 {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 15px;
}

/* Productos */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    font-size: 32px;
    color: var(--gold);
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 50px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card p.desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-card .price {
    font-size: 22px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-add {
    background-color: var(--gold);
    color: #000;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-add:hover {
    background-color: var(--gold-hover);
}

/* Modal del Carrito */
.cart-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Oculto por defecto */
    justify-content: flex-end;
    z-index: 1000;
}

.cart-modal-content {
    background-color: var(--card-bg);
    width: 400px;
    height: 100%;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    color: var(--text-light);
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.cart-item button {
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.cart-footer {
    margin-top: 20px;
    border-top: 1px solid var(--gold);
    padding-top: 20px;
}

.checkout-btn {
    background-color: #009ee3; /* Color de Mercado Pago */
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: opacity 0.3s;
}

.checkout-btn:hover {
    opacity: 0.9;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #0a0a0a;
    font-size: 14px;
    color: var(--text-muted);
}