@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

:root { --bg: #fafafa; --text: #2c2c2c; --accent: #d4af37; --light-gray: #f0f0f0; }

body { font-family: 'Montserrat', sans-serif; background-color: var(--bg); color: var(--text); margin: 0; padding-bottom: 80px; }

header { background: white; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 15px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 1.6rem; font-weight: 600; letter-spacing: 2px; cursor: pointer; }
.cart-icon { cursor: pointer; position: relative; font-size: 1.2rem; }
#cart-count { background: var(--accent); color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; position: absolute; top: -5px; right: -8px; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.category-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 3px; border-bottom: 1px solid #ddd; margin-bottom: 25px; padding-bottom: 10px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }

.product-card { background: white; border-radius: 12px; padding: 15px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid transparent; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--accent); }
.product-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }

.btn-add { background: var(--text); color: white; border: none; padding: 10px; width: 100%; border-radius: 25px; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.btn-add:hover { background: var(--accent); }

/* --- TOOLTIP ESTRELLAS --- */
.stars-container { position: relative; display: inline-block; cursor: pointer; color: var(--accent); font-size: 1.1rem; margin: 5px 0 15px 0; }
.stars-tooltip { visibility: hidden; width: 220px; background-color: #333; color: #fff; text-align: center; border-radius: 8px; padding: 12px; position: absolute; z-index: 10; bottom: 130%; left: 50%; margin-left: -110px; opacity: 0; transition: opacity 0.3s; font-size: 0.85rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.stars-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #333 transparent transparent transparent; }
.stars-container:hover .stars-tooltip, .stars-container:active .stars-tooltip { visibility: visible; opacity: 1; }

/* Modals & Checkout */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; overflow-y: auto; }
.modal-content { background: white; margin: 5% auto; padding: 30px; width: 90%; max-width: 500px; border-radius: 15px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 25px; cursor: pointer; }
.form-input { width: 100%; padding: 12px; margin: 8px 0; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }

.payment-option { border: 1px solid #eee; padding: 15px; border-radius: 8px; margin-top: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.payment-option.selected { border-color: var(--accent); background: #fffbf0; font-weight: bold; }

.faq-container { max-width: 800px; margin: 40px auto; padding: 20px; }
.faq-item { background: white; margin-bottom: 10px; padding: 15px; border-radius: 8px; cursor: pointer; border: 1px solid #eee; }
.faq-answer { display: none; margin-top: 10px; color: #666; font-size: 0.9rem; }
.faq-item.active .faq-answer { display: block; }

footer { background: #1a1a1a; color: #888; text-align: center; padding: 40px 20px; margin-top: 50px; }
footer a { color: var(--accent); text-decoration: none; }
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: transform 0.3s; z-index: 200; }
.whatsapp-float:hover { transform: scale(1.1); }

/* --- EFECTOS SOFT MODERNO Y FILTROS --- */
.fade-in { animation: fadeIn 0.6s cubic-bezier(0.39, 0.575, 0.565, 1) both; }
@keyframes fadeIn { 
    0% { opacity: 0; transform: translateY(15px); } 
    100% { opacity: 1; transform: translateY(0); } 
}

.filter-container { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { background: transparent; border: 2px solid var(--light-gray); padding: 10px 25px; border-radius: 30px; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: #666; transition: all 0.3s ease; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--text); color: white; border-color: var(--text); }