/* Variables de Diseño */
:root {
    --bg-color: #FDFCFB; /* Blanco cálido */
    --text-color: #1A1A1A; /* Negro carbón */
    --beige: #E8E0D5;
    --gold: #D4AF37; /* Dorado champagne */
    --gray-light: #F5F5F5;
    --gray-border: #EAEAEA;
    --font-head: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;
    --transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    letter-spacing: 0.02em;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { width: 100%; display: block; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    background: rgba(253, 252, 251, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--gray-border);
}
.header-left, .header-right { flex: 1; display: flex; align-items: center; gap: 1.5rem; }
.header-right { justify-content: flex-end; }
.header-center { text-align: center; }

.menu-btn {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.15em;
    color: var(--text-color); padding: 10px 0;
}
.menu-icon { width: 24px; height: 1px; background: var(--text-color); position: relative; display: inline-block; transition: var(--transition); }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; width: 24px; height: 1px; background: var(--text-color); left: 0; transition: var(--transition); }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-main { font-family: var(--font-head); font-size: 1.8rem; font-weight: 400; letter-spacing: 0.2em; }
.logo-sub { font-size: 0.65rem; letter-spacing: 0.5em; text-transform: uppercase; margin-top: 4px; opacity: 0.7; }

.icon-btn { background: none; border: none; cursor: pointer; font-size: 1.1rem; transition: var(--transition); }
.icon-btn:hover { opacity: 0.6; }

/* Menú Lateral */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: var(--transition); z-index: 99;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

.side-menu {
    position: fixed; top: 0; left: 0; width: 400px; max-width: 100%; height: 100%;
    background: var(--bg-color); z-index: 101;
    transform: translateX(-100%); transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column; padding: 2.5rem;
    border-right: 1px solid var(--gray-border);
}
.side-menu.active { transform: translateX(0); }

.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--gray-border); }
.menu-brand { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 0.15em; }
.menu-brand em { font-style: normal; font-size: 0.7rem; letter-spacing: 0.4em; }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; transition: var(--transition); }
.close-btn:hover { transform: rotate(90deg); }

.menu-nav ul { margin-bottom: 2rem; }
.menu-nav > ul > li { margin-bottom: 1.5rem; position: relative; }
.menu-nav a {
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 400; color: var(--text-color);
    transition: var(--transition); display: inline-block; cursor: pointer;
}
.menu-nav a:hover { color: var(--gold); transform: translateX(5px); }

.has-submenu .submenu {
    max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out;
    margin-left: 1rem; margin-top: 0.5rem;
}
.has-submenu:hover .submenu, .has-submenu.active .submenu { max-height: 300px; }
.submenu a { font-family: var(--font-body); font-size: 0.9rem; opacity: 0.7; margin-bottom: 0.8rem; display: block; }

.menu-divider { width: 100%; height: 1px; background: var(--gray-border); margin: 1.5rem 0; }
.menu-secondary a { font-size: 1rem; font-family: var(--font-body); }

/* Hero */
.hero {
    min-height: 100vh; padding-top: 80px;
    display: grid; grid-template-columns: 45% 55%;
    align-items: center;
}
.hero-text { padding: 0 5rem; }
.hero-text h1 {
    font-family: var(--font-head); font-weight: 400; font-size: 4.5rem; line-height: 1.1;
    margin-bottom: 2rem; letter-spacing: -0.01em;
}
.hero-text p { font-size: 1.1rem; max-width: 400px; opacity: 0.8; margin-bottom: 3rem; }
.hero-ctas { display: flex; gap: 2rem; align-items: center; }

.btn { padding: 14px 30px; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; transition: var(--transition); cursor: pointer; display: inline-block; }
.primary-btn { background: var(--text-color); color: var(--bg-color); border: 1px solid var(--text-color); }
.primary-btn:hover { background: transparent; color: var(--text-color); }
.secondary-btn { background: transparent; color: var(--text-color); border-bottom: 1px solid transparent; padding: 14px 0; }
.secondary-btn:hover { border-bottom: 1px solid var(--text-color); }

.hero-3d-container {
    position: relative; width: 100%; height: 80vh; display: flex; align-items: center; justify-content: center;
}
#canvas-container { width: 100%; height: 100%; cursor: grab; }
#canvas-container:active { cursor: grabbing; }

.discover-fragrance {
    position: absolute; bottom: 40px; right: 40px;
    font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
    opacity: 0; transition: var(--transition); pointer-events: none;
    border-bottom: 1px solid var(--text-color); padding-bottom: 5px;
}
.hero-3d-container:hover .discover-fragrance { opacity: 1; pointer-events: auto; }
.discover-fragrance:hover { color: var(--gold); border-color: var(--gold); }

.webgl-fallback img { max-height: 500px; object-fit: contain; opacity: 0.8; }

/* Secciones Generales */
.section-header { text-align: center; padding: 6rem 2rem 4rem; }
.section-header h2 { font-family: var(--font-head); font-size: 2.5rem; font-weight: 400; letter-spacing: 0.05em; }
.section-header p { opacity: 0.7; margin-top: 1rem; font-size: 0.95rem; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Categorías */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0 2rem 6rem; }
.category-card { position: relative; height: 500px; overflow: hidden; background: var(--gray-light); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.category-card:hover img { transform: scale(1.05); }
.category-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 3rem;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent 60%);
    transition: var(--transition);
}
.category-title { font-family: var(--font-head); font-size: 2rem; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.category-cta { font-size: 0.8rem; letter-spacing: 0.15em; opacity: 0; transition: var(--transition); transform: translateY(10px); }
.category-card:hover .category-cta { opacity: 1; transform: translateY(0); }

/* Productos */
.products-section { padding: 0 2rem 6rem; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; max-width: 1400px; margin: 0 auto; }
.product-card { display: flex; flex-direction: column; transition: var(--transition); }
.product-image-wrapper { background: var(--gray-light); aspect-ratio: 3/4; margin-bottom: 1.5rem; overflow: hidden; }
.product-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-image-wrapper img { transform: scale(1.03); }

.product-info { display: flex; flex-direction: column; align-items: center; text-align: center; }
.product-brand { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.5rem; }
.product-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.3rem; }
.product-family { font-size: 0.85rem; opacity: 0.6; margin-bottom: 0.8rem; }
.product-price { font-size: 1rem; margin-bottom: 1rem; }
.product-btn { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid var(--text-color); transition: var(--transition); }
.product-card:hover .product-btn { color: var(--gold); border-color: var(--gold); }

/* Editorial */
.editorial-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 6rem 2rem; gap: 4rem; max-width: 1400px; margin: 0 auto; }
.editorial-image { height: 600px; overflow: hidden; }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; }
.editorial-text { padding: 2rem; }
.editorial-text h2 { font-family: var(--font-head); font-size: 3rem; font-weight: 400; line-height: 1.2; margin-bottom: 2rem; }
.editorial-text p { font-size: 1.1rem; opacity: 0.8; max-width: 400px; }

/* CTA Final */
.cta-section { text-align: center; padding: 8rem 2rem; background: var(--gray-light); }
.cta-section h2 { font-family: var(--font-head); font-size: 3rem; font-weight: 400; margin-bottom: 1.5rem; }
.cta-section p { opacity: 0.7; margin-bottom: 2.5rem; }

/* Footer */
.footer { padding: 4rem 3rem 2rem; border-top: 1px solid var(--gray-border); }
.footer-main { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.footer-brand em { font-size: 0.7rem; letter-spacing: 0.4em; font-style: normal; }
.footer-brand p { opacity: 0.6; font-size: 0.9rem; }
.footer-links { display: flex; gap: 6rem; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-col a { display: block; margin-bottom: 1rem; opacity: 0.7; transition: var(--transition); font-size: 0.9rem; }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--gray-border); padding-top: 2rem; text-align: center; opacity: 0.5; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 900px) {
    .header { padding: 0 1.5rem; }
    .hero { grid-template-columns: 1fr; padding-top: 100px; }
    .hero-text { padding: 0 1.5rem; text-align: center; }
    .hero-text h1 { font-size: 3rem; }
    .hero-ctas { justify-content: center; flex-wrap: wrap; }
    .hero-3d-container { height: 50vh; min-height: 400px; }
    .categories-grid, .products-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .editorial-section { grid-template-columns: 1fr; }
    .editorial-image { height: 400px; }
    .footer-links { gap: 3rem; }
    .side-menu { width: 100%; }
}