:root {
    --bg-color: #0d0d0d;
    --text-main: #f2f2f2;
    --text-muted: #a6a6a6;
    --primary: #d4af37; /* Gold/Amber */
    --primary-hover: #b5952f;
    --surface: #1a1a1a;
    --surface-hover: #262626;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, .logo, .footer-brand {
    font-family: var(--font-head);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.logo {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 1px;
}

nav a {
    margin: 0 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.cart-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}

#cart-count {
    background: var(--primary);
    color: var(--bg-color);
    border-radius: 50%;
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: url('images/hero.png') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeIn 1.5s ease forwards;
}

.hero-content .subtitle {
    display: block;
    color: var(--primary);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary);
}

/* Tradición */
.tradicion {
    background: var(--surface);
    text-align: center;
}

.tradicion-text {
    max-width: 700px;
    margin: 0 auto;
}

.tradicion-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.tradicion-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.tradicion-text strong {
    color: var(--text-main);
}

/* Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(38,38,38,1) 0%, rgba(26,26,26,1) 100%);
    padding: 2rem;
    overflow: hidden;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    height: 45px;
}

.product-info .price {
    display: block;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn-add {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    width: 100%;
}

.btn-add:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    z-index: 1001;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--surface);
    z-index: 1002;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.item-info p {
    font-size: 0.9rem;
    color: var(--primary);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-ctrl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn-checkout {
    width: 100%;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: #000;
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-brand {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 2rem;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; padding: 1rem 5%; }
    .hero-content h1 { font-size: 3.5rem; }
    nav { display: flex; gap: 1rem; }
    .cart-sidebar { max-width: 100%; right: -100%; }
}
