/* --- VARIABLES Y RESET --- */
:root {
    --bg-dark: #060608;
    --bg-surface: #0e0e12;
    --bg-surface-light: #18181f;
    --text-light: #fdfbf7;
    --text-muted: #a19f9b;
    --accent-magenta: #b53363;
    --accent-fuchsia: #8b1e4f;
    --accent-soft: #e8b4b8;
    
    /* Nuevos acentos dorados */
    --gold-base: #c5a059;
    --gold-light: #e6c887;
    --gold-dark: #8c6d31;
    --gold-gradient: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-base));
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark); color: var(--text-light);
    font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden;
}

/* --- UTILIDADES PREMIUM --- */
.padding-global { padding: 8rem 5%; }
.text-center { text-align: center; }
.section-title { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 300; margin-bottom: 2rem; line-height: 1.1; }
.section-subtitle { color: var(--gold-base); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; display: block; margin-bottom: 1rem; }

/* Oro Animado (Shimmer) */
.gold-shimmer {
    background: linear-gradient(90deg, var(--text-light) 0%, var(--gold-light) 50%, var(--text-light) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 4s infinite linear;
    display: inline-block;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* --- BOTONES --- */
.btn-primary {
    display: inline-block; padding: 1rem 2.5rem; border: 1px solid var(--text-light);
    color: var(--text-light); text-decoration: none; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 2px; position: relative; overflow: hidden;
    transition: var(--transition-fast); background: transparent; cursor: pointer;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--text-light); transform: translateY(100%); transition: var(--transition-fast); z-index: -1;
}
.btn-primary:hover { color: var(--bg-dark); }
.btn-primary:hover::before { transform: translateY(0); }

.btn-gold { border-color: var(--gold-base); color: var(--gold-light); }
.btn-gold::before { background: var(--gold-gradient); }

.btn-disabled { opacity: 0.5; cursor: not-allowed; border-color: var(--text-muted); color: var(--text-muted); }

/* --- TRANSICIÓN DE PÁGINA --- */
.page-transition {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-dark); z-index: 999999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.6s ease; pointer-events: none;
}
.page-transition.hidden { opacity: 0; }
.transition-logo { font-family: var(--font-serif); font-size: 2rem; color: var(--gold-base); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* --- LÍNEA DE SCROLL (TIMELINE) --- */
#scroll-line-container {
    position: fixed; left: 50%; top: 0; width: 1px; height: 100vh;
    background: rgba(255,255,255,0.05); z-index: 0; transform: translateX(-50%); pointer-events: none;
}
#scroll-line-progress {
    width: 100%; height: 0%; background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5); transition: height 0.1s;
}

/* --- ANIMACIONES BOTÁNICAS --- */
#botanical-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
    position: absolute; background: var(--accent-fuchsia); border-radius: 50% 0 50% 0;
    opacity: 0.3; filter: blur(2px); animation: fall linear infinite;
}
@keyframes fall {
    0% { transform: translateY(-10%) rotate(0deg) scale(0.5); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { transform: translateY(110vh) rotate(360deg) scale(1); opacity: 0; }
}

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; padding: 2rem 5%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.4s ease, padding 0.4s ease;
}
header.scrolled { background: rgba(6, 6, 8, 0.95); backdrop-filter: blur(10px); padding: 1rem 5%; border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo { font-family: var(--font-serif); font-size: 1.8rem; color: var(--text-light); text-decoration: none; letter-spacing: 1px; }
.nav-links a, .nav-actions button, .nav-actions a {
    color: var(--text-light); text-decoration: none; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 2px; margin: 0 1rem; transition: color 0.3s ease; background: none; border: none; cursor: pointer;
}
.nav-links a:hover, .nav-actions button:hover { color: var(--gold-light); }
.cart-count { background: var(--accent-magenta); color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; margin-left: 5px; }

/* --- HERO & DROP --- */
#hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(6,6,8,0.4), rgba(6,6,8,0.9)), url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?q=80&w=2000') center/cover;
    z-index: 0; animation: subtleZoom 20s infinite alternate linear;
}
@keyframes subtleZoom { to { transform: scale(1.05); } }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.main-heading { font-family: var(--font-serif); font-size: 5.5rem; margin-bottom: 2rem; line-height: 1; }

.drop-notification {
    position: absolute; top: 120px; right: 5%; background: rgba(24, 24, 31, 0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.3); padding: 1.5rem; border-radius: 4px; z-index: 10;
    max-width: 300px; text-align: left; animation: slideIn 1s ease forwards;
}
.drop-close { position: absolute; top: 10px; right: 10px; background: none; border: none; color: var(--text-muted); cursor: pointer; }
.drop-notification h4 { font-family: var(--font-serif); color: var(--gold-light); margin-bottom: 0.5rem; }
.drop-notification p { font-size: 0.8rem; margin-bottom: 1rem; color: var(--text-muted); }
@keyframes slideIn { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- BLOQUE EDITORIAL (Home) --- */
.editorial-statement { text-align: center; padding: 10rem 5%; position: relative; z-index: 2; }
.editorial-statement h2 { font-size: 4rem; font-family: var(--font-serif); line-height: 1.2; }

/* --- THE CRAFT / PASOS --- */
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 4rem; position: relative; z-index: 2;}
.craft-step { text-align: center; padding: 2rem; border: 1px solid rgba(255,255,255,0.05); transition: var(--transition-fast); }
.craft-step:hover { border-color: rgba(197, 160, 89, 0.3); background: var(--bg-surface-light); transform: translateY(-10px); }
.step-number { font-family: var(--font-serif); font-size: 3rem; color: var(--gold-dark); opacity: 0.5; margin-bottom: 1rem; display: block; }
.craft-step h3 { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 2px; font-size: 1rem; margin-bottom: 1rem; }

/* --- PRODUCTOS (Grid y Cards) --- */
.filters { display: flex; justify-content: center; gap: 2rem; margin-bottom: 4rem; flex-wrap: wrap; }
.filter-btn { background: none; border: none; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; cursor: pointer; transition: color 0.3s; }
.filter-btn.active, .filter-btn:hover { color: var(--gold-light); border-bottom: 1px solid var(--gold-light); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 3rem; position: relative; z-index: 2; }
.product-card { background: var(--bg-surface); transition: var(--transition-fast); position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.product-card::after { /* Hover glow premium */
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: var(--gold-gradient); z-index: -1; opacity: 0; transition: opacity 0.4s; border-radius: 2px;
}
.product-card:hover::after { opacity: 0.3; }

.product-img { position: relative; height: 350px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s ease; filter: brightness(0.85); }
.product-card:hover .product-img img { transform: scale(1.05); filter: brightness(1); }

.tag-stock { position: absolute; top: 1rem; right: 1rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.tag-stock.out { color: var(--accent-magenta); border: 1px solid var(--accent-magenta); }
.tag-stock.in { color: var(--gold-light); border: 1px solid var(--gold-light); }

.product-actions {
    position: absolute; bottom: 0; left: 0; width: 100%; display: flex; opacity: 0;
    transform: translateY(20px); transition: var(--transition-fast); background: rgba(6,6,8,0.9);
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-actions button {
    flex: 1; padding: 1rem 0; background: none; border: none; color: var(--text-light);
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; cursor: pointer; transition: background 0.3s;
}
.product-actions button:hover { background: var(--gold-dark); }
.product-actions .btn-add { border-left: 1px solid rgba(255,255,255,0.1); }

.product-info { padding: 1.5rem; text-align: center; }
.taste-profile { font-size: 0.7rem; color: var(--gold-base); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; display: block; }
.product-info h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 0.5rem; }
.product-info .price { color: var(--text-muted); }

/* --- MODAL QUICK VIEW --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px); z-index: 10000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content {
    background: var(--bg-surface); width: 90%; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr;
    position: relative; transform: translateY(50px); transition: transform 0.4s ease; border: 1px solid rgba(255,255,255,0.1);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; background: none; border: none; color: var(--text-light); cursor: pointer; z-index: 10; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-details { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.modal-details h2 { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 1rem; }
.modal-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px; }
.modal-desc { margin-bottom: 2rem; font-size: 0.95rem; }
.modal-footer { display: flex; align-items: center; gap: 1rem; margin-top: auto; }

/* --- CARRITO LATERAL (DRAWER) --- */
.cart-drawer {
    position: fixed; top: 0; right: -400px; width: 400px; height: 100vh; background: var(--bg-surface);
    border-left: 1px solid rgba(255,255,255,0.05); z-index: 10001; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.cart-drawer.active { right: 0; }
.cart-header { padding: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-family: var(--font-serif); font-size: 1.5rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 2rem; }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cart-item img { width: 80px; height: 80px; object-fit: cover; }
.cart-item-details h4 { font-family: var(--font-serif); font-size: 1.2rem; }
.cart-item-details p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.qty-controls { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; }
.qty-btn { background: none; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 2px 8px; cursor: pointer; }
.remove-item { background: none; border: none; color: var(--accent-magenta); font-size: 0.7rem; text-transform: uppercase; cursor: pointer; margin-top: 10px; }
.cart-footer { padding: 2rem; border-top: 1px solid rgba(255,255,255,0.05); background: var(--bg-dark); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 1.5rem; font-size: 1.2rem; }

/* --- ACORDEÓN FAQ --- */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; }
.faq-question { width: 100%; text-align: left; background: none; border: none; color: var(--text-light); font-family: var(--font-sans); font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); margin-top: 0; }
.faq-item.active .faq-answer { max-height: 200px; margin-top: 1rem; }

/* --- FORMULARIOS --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 1rem; background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: white; font-family: var(--font-sans); transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold-base); }

/* --- ANIMACIONES AL SCROLL (REVEAL) --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; } .delay-2 { transition-delay: 0.4s; }

/* --- FOOTER --- */
footer { background: var(--bg-surface); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 4rem; position: relative; z-index: 2; }
.footer-content { display: flex; justify-content: space-between; padding-bottom: 4rem; padding-left: 5%; padding-right: 5%; }
.logo-large { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 1rem; }
.link-column h4 { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 1.5rem; color: var(--gold-dark); }
.link-column a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 0.8rem; font-size: 0.9rem; transition: color 0.3s; }
.link-column a:hover { color: var(--gold-light); }
.footer-bottom { text-align: center; padding: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.8rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    #scroll-line-container { display: none; } /* Ocultar timeline en móvil */
    .modal-content { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .cart-drawer { width: 100%; right: -100%; }
    .craft-grid, .product-grid { grid-template-columns: 1fr; }
    .main-heading { font-size: 3.5rem; }
    .footer-content { flex-direction: column; gap: 3rem; }
}