:root {
    --color-primary: #2c2c2c;
    --color-accent: #c9a961;
    --color-bg: #f8f8f8;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* HEADER */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.header-logo-link:hover {
    opacity: 0.85;
}

.header-logo-link h1 {
    text-decoration: none;
    color: var(--color-accent);
}

.header-logo img {
    height: 3.75rem;
    width: auto;
}

.header-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contactar {
    background-color: var(--color-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

.btn-contactar::after {
    display: none;
}

.btn-contactar:hover {
    background-color: #b89851;
}

/* HERO */
.hero-section {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 3rem 1.5rem;
}

.hero-content {
    max-width: 800px;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.125rem;
    color: #cbd5e0;
    margin-bottom: 0;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* CATEGORIAS */
.categorias-section {
    padding: 4rem 1.5rem;
    background-color: white;
}

.categorias-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

.menu-categorias {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.categoria-menu-item {
    position: relative;
}

.categoria-nombre {
    display: block;
    padding: 0.75rem 1.5rem;
    background-color: #f7fafc;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tiene-subcats .categoria-nombre {
    cursor: default;
}

.categoria-menu-item:not(.tiene-subcats) .categoria-nombre:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.subcategorias-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0;
    z-index: 100;
}

.subcategorias-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.tiene-subcats:hover .subcategorias-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subcategoria-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.subcategoria-link:last-child {
    border-bottom: none;
}

.subcategoria-link:hover {
    background-color: #f7fafc;
    color: var(--color-accent);
    padding-left: 1.5rem;
}

/* PRODUCTOS */
.productos-section {
    padding: 4rem 1.5rem;
    background-color: #f7fafc;
}

.productos-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.productos-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.productos-header p {
    color: #718096;
    font-size: 1.125rem;
}

.productos-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.sold-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    background-color: #f7fafc;
    color: var(--color-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.product-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-info p {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.btn-whatsapp {
    display: inline-block;
    width: 100%;
    background-color: #25d366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
}

.no-productos {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
}

.no-productos p {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #b89851;
}

/* FOOTER */
footer {
    background-color: #2c2c2c;
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
}

footer h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

footer p {
    color: #cbd5e0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .header-logo h1 {
        font-size: 1.25rem;
    }
    
    .header-logo img {
        height: 3rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .menu-categorias {
        flex-direction: column;
        align-items: stretch;
    }
    
    .categoria-menu-item {
        width: 100%;
    }
    
    .subcategorias-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        display: none;
    }
    
    .tiene-subcats:hover .subcategorias-dropdown {
        display: block;
    }
    
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .header-logo img {
        height: 2.5rem;
    }
    
    .header-logo h1 {
        font-size: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
