:root {
    --primary: #d4a373; /* Tono pastel/galleta */
    --secondary: #faedcd;
    --dark: #333333;
    --light: #fefae0;
    --font-main: 'Poppins', sans-serif;
    --font-titles: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(254, 250, 224, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cart-icon {
    font-size: 1.5rem;
    cursor: pointer;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: transform 0.2s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

/* Portada / Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1488477181946-6428a0291777?w=1600') center/cover;
    text-align: center;
    color: white;
}

.hero-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    transform-style: preserve-3d; /* Para el efecto 3D */
}

.hero h1 {
    font-family: var(--font-titles);
    font-size: 4rem;
    margin-bottom: 1rem;
    transform: translateZ(50px); /* Efecto 3D pop-out */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    transform: translateZ(30px);
}

.btn {
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    transform: translateZ(20px);
}

.btn:hover {
    background-color: #bc8a59;
}

/* Secciones generales */
.section {
    padding: 5rem 5%;
    text-align: center;
}

.bg-light {
    background-color: var(--secondary);
}

h2 {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.subtitle {
    margin-bottom: 3rem;
    color: #666;
}

/* Galería Interactiva */
.filter-buttons {
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    margin: 0.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Catálogo */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center;
    transform-style: preserve-3d;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transform: translateZ(30px);
}

.product-card h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-titles);
    transform: translateZ(20px);
}

.product-card p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
    transform: translateZ(15px);
}

/* Modal del Carrito */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

#cart-items {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

#cart-items li {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.order-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.whatsapp-btn { background-color: #25D366; }
.whatsapp-btn:hover { background-color: #1ebe58; }
.email-btn { background-color: var(--dark); }

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .nav-links { display: none; } /* En móvil ocultamos el menú para simplificar en este ejemplo */
    .hero h1 { font-size: 2.5rem; }
}