:root {
    --bg-dark: #070707;
    --bg-card: #121212;
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #8c7323;
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(212, 175, 55, 0.15);

    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

.ph-thin {
    font-weight: 100 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
}

.gold-text {
    color: var(--gold-light);
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 20%, var(--gold-primary) 50%, var(--gold-light) 80%, var(--gold-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text; /* FIX PARA LINTER */
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2));
}

.logo-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
    border: none;
    z-index: 1000;
    pointer-events: none;
}

.nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Grupo de iconos derecha (lupa + carrito) */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
}

.nav-search-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gold-light);
    font-size: 1.15rem;
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-toggle:hover,
.nav-search-toggle.active {
    background: rgba(212,175,55,0.12);
    color: var(--gold-primary);
}

/* Panel desplegable de búsqueda */
.search-dropdown {
    position: fixed;
    top: 70px; /* Un poco más de espacio */
    left: 0;
    width: 100%;
    z-index: 1100; /* Mayor que la navbar (1000) */
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(20px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.35s;
}

.search-dropdown.open {
    max-height: 85vh;
    padding: 1rem 0 2rem;
    overflow-y: auto;
}

.search-dropdown-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.search-dropdown-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    transition: border-color 0.3s;
}

.search-dropdown-form:focus-within {
    border-color: var(--gold-primary);
}

.search-dropdown-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.search-dropdown-input::placeholder { color: #666; }

.search-dropdown-btn {
    background: transparent;
    border: none;
    color: var(--gold-light);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.search-dropdown-btn:hover { color: var(--gold-primary); }

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--gold-light);
}

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

.nav-links.active li:nth-child(1) a { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.nav-links.active li:nth-child(2) a { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.nav-links.active li:nth-child(3) a { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.nav-links.active li:nth-child(4) a { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.nav-links.active li:nth-child(5) a { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* SEARCH NAV BAR - legacy, hidden (replaced by dropdown) */
.nav-search-form { display: none; }
.nav-search-li { display: none; }
.nav-search-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px 10px;
    width: 150px;
    font-size: 0.95rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.nav-search-input::placeholder {
    color: #888;
}
.nav-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gold-light);
    font-size: 1rem;
    padding: 0 5px;
    outline: none;
    transition: transform 0.2s;
}
.nav-search-btn:hover {
    transform: scale(1.1);
}

.cart-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--gold-light);
    text-decoration: none;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 20px;
    border: 1px solid var(--gold-primary);
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: var(--gold-primary);
    color: #000;
}

.hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--gold-primary);
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* HERO SECTION (Editorial Rows) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    background: #050505;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(40, 20, 80, 0.4) 0%, rgba(5, 5, 10, 0.95) 80%);
    z-index: 1;
    pointer-events: none;
}

.editorial-columns-container {
    position: absolute;
    inset: -20% -20%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-8deg);
}

.editorial-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    will-change: transform;
}

.editorial-col.scroll-down {
    animation: col-scroll-down linear infinite;
}

.editorial-col.scroll-up {
    animation: col-scroll-up linear infinite;
}

.editorial-card {
    flex-shrink: 0;
    width: 220px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
}

.editorial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

@keyframes col-scroll-down {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes col-scroll-up {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

@media (min-width: 768px) {
    .editorial-card {
        width: 280px;
        height: 360px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.hero-eyebrow {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: rgba(212, 175, 55, 0.4);
}
.hero-eyebrow::before { left: -30px; }
.hero-eyebrow::after { right: -30px; }

.hero-content h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1.15;
    color: var(--text-main);
    font-weight: 400;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.hero-content p {
    font-family: 'Outfit', sans-serif;
    color: #a3a3a3;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin: 1rem auto 3rem;
}

.btn-atmos {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--gold-light);
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s ease;
    opacity: 0.85;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 1.5rem 2.5rem;
    border-radius: 40px;
    background: rgba(10, 5, 20, 0.4);
    backdrop-filter: blur(6px);
}

.btn-atmos:hover {
    opacity: 1;
    border-color: rgba(212, 175, 55, 0.9);
    background: rgba(10, 5, 20, 0.7);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.atmos-scroll-icon {
    width: 20px;
    height: 35px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.atmos-scroll-icon:hover {
    opacity: 1;
}

.scroll-dot {
    width: 2px;
    height: 5px;
    background: var(--gold-light);
    border-radius: 2px;
    margin-top: 6px;
    animation: scroll-down 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll-down {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #000;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 30px;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 30px;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out, color 0.15s ease-out;
}

.btn-outline:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #000;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: #050505;
    color: var(--gold-primary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border: 1px solid var(--gold-dark);
    border-radius: 30px;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
    background: #000;
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.1);
}


/* WHATSAPP FLOATING BUTTON */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--bg-card);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wa-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

/* CATEGORIES */
.categories {
    width: 100%;
    padding: 3.5rem 2rem;
    position: relative;
}

.categories-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.back-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    text-decoration: none;
    margin-right: 20px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    vertical-align: middle;
    border: 1px solid var(--glass-border);
}

.back-arrow:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateX(-4px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

/* Espaciado reducido para la página de categorías */
.categories #categoria-titulo {
    margin-bottom: 2rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Grid específico para productos con restricciones de columnas y expansión */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1442px) {
    .products-grid {
        grid-template-columns: repeat(4, 336px);
        justify-content: space-between;
        max-width: 1650px;
    }
}

@media (min-width: 1850px) {
    .products-grid {
        max-width: 1800px; 
        justify-content: center;
        gap: 6rem;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0; /* Remove global padding — image goes edge-to-edge */
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

.card:hover::before {
    opacity: 1;
}

/* Tarjetas y Etiquetas de Piezas Exclusivas */
.card.exclusive-card {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.05);
}
.card.exclusive-card::before {
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
    opacity: 0.6; /* Destello dorado interno constante */
}
.card.exclusive-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.15), 0 0 25px rgba(212, 175, 55, 0.2);
}

.exclusive-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold-light);
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    pointer-events: none;
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* INSTAGRAM IN-CARD CAROUSEL CSS */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.carousel-track .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--gold-light);
}

.prev-btn, .qv-prev { left: 10px; }
.next-btn, .qv-next { right: 10px; }

.gallery-badge {
    position: absolute;
    bottom: 8px; 
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
    pointer-events: none;
    backdrop-filter: blur(3px);
}

.card .img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

.out-of-stock-img {
    opacity: 0.4;
    filter: grayscale(80%);
}

.out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(5, 5, 5, 0.85);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    font-family: 'Outfit';
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 2px;
    z-index: 10;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.card .card-body {
    padding: 1.2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Tarjetas de categoría (index.html) — layout diferente al de producto */
.card-cat {
    padding: 0 !important;
    text-align: center !important;
}

.card-cat .img-wrapper {
    width: 60%;
    aspect-ratio: 1 / 1;
    margin: 1.5rem auto 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
}

.card-cat img {
    object-fit: contain !important;
    padding: 8%;
}

.card-cat h3 {
    padding: 0.9rem 1.2rem 0;
    text-align: center !important;
    font-size: 1rem;
}

.card-cat p {
    padding: 0.2rem 1.2rem 1.2rem;
    text-align: center !important;
    margin-bottom: 0;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 2;
    color: #f4f4f4;
    text-align: left;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-align: left;
}

.card-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    transition: color 0.3s;
    position: relative;
    z-index: 2;
}

.card-link:hover {
    color: var(--gold-light);
}

/* QUICK VIEW MODAL CSS */
.qv-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.qv-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.qv-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.qv-modal-overlay.active .qv-modal-content {
    transform: translateY(0);
}

.qv-close {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: color 0.3s;
}

.qv-close:hover {
    color: var(--gold-primary);
}

.qv-left {
    width: 100%;
    height: 35vh;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    padding: 1rem;
    flex-shrink: 0;
}

.qv-left img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: opacity 0.3s ease;
}

.qv-right {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
}

.qv-actions {
    position: sticky;
    bottom: -1.5rem;
    background: var(--bg-card);
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 10;
}

.qv-right h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #f5f5f5;
    font-family: 'Outfit';
    line-height: 1.3;
    font-weight: 600;
}

.qv-price {
    font-family: 'Outfit';
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.qv-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ESSENCE SECTION */
.essence {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d0d 100%);
    padding: 6rem 2rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.essence-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.essence-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.essence-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.essence-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feature .icon {
    font-size: 3rem;
    color: var(--gold-light);
}

.feature span:last-child {
    font-family: 'Outfit', sans-serif;
    color: var(--gold-light);
    letter-spacing: 1px;
    font-weight: 500;
}

/* FOOTER */
footer {
    background: #050505;
    padding: 4rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.socials a:hover {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    color: #666;
    font-size: 0.85rem;
}

/* ANIMATIONS & UTILS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* ========================================
   MEDIA QUERIES — MOBILE-FIRST ESCALATION
   ======================================== */

/* --- Desktop: Navbar horizontal + Hero row + QV horizontal --- */
@media (min-width: 900px) {
    .logo {
        position: static;
        z-index: auto;
    }

    .nav-links {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: row;
        gap: 1.2rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: auto;
        transition: none;
    }

    .nav-links a {
        font-size: 0.95rem;
        font-family: 'Inter', sans-serif;
        text-transform: none;
        letter-spacing: 0.5px;
        opacity: 1;
        transform: none;
        transition: color 0.3s;
    }

    .hamburger {
        display: none;
    }

    .hero {
        flex-direction: row;
        text-align: left;
        padding-top: 6rem;
        gap: 4rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin: 0 0 2.5rem;
    }

    .qv-modal-content {
        width: 1000px;
        max-width: 95vw;
        flex-direction: row;
        overflow: hidden;
        overflow-y: visible;
        border-radius: 16px;
    }

    .qv-close {
        top: 15px; right: 20px;
        background: transparent;
        border-radius: 0;
        width: auto; height: auto;
        display: block;
    }

    .qv-left {
        flex: 0 0 auto;
        width: 50%;
        height: auto;
        aspect-ratio: auto;
        max-height: none;
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.05);
        align-self: stretch;
        padding: 0;
    }

    .qv-left img {
        object-fit: cover;
    }

    .qv-right {
        padding: 3.5rem 3rem;
    }

    .qv-actions {
        position: static;
        background: none;
        padding: 0;
        margin-top: auto;
        border-top: none;
    }
}

/* --- Wide Desktop: nav full spacing --- */
@media (min-width: 1050px) {
    .logo-text {
        font-size: 2rem;
    }

    .nav-links {
        gap: 2rem;
    }
}

/* CART STYLES */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1100;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    border-left: 1px solid var(--glass-border);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--gold-light);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--gold-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-weight: 500;
    font-family: 'Outfit';
}

.cart-item-price {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-actions button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.cart-item-actions button:hover {
    background: var(--gold-primary);
    color: #000;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Outfit';
    margin-bottom: 1rem;
    color: var(--gold-light);
}

#checkout-btn {
    width: 100%;
    border: none;
    padding: 1rem;
    cursor: pointer;
}

.add-to-cart, .select-options-btn {
    background: none;
    border: 1px solid var(--gold-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    width: 100%;
}

.add-to-cart:hover, .select-options-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    width: 100%;
    cursor: not-allowed;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

#cart-count {
    background: var(--gold-primary);
    color: #000;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -10px;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

/* ============================
   CUSTOM CURSOR (Gem & Circle)
/* ============================
   CUSTOM CURSOR (Gem & Circle)
============================== */
.cursor-dot, .cursor-circle {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@media (min-width: 992px) {
    body.custom-cursor-active, 
    body.custom-cursor-active a, 
    body.custom-cursor-active button, 
    body.custom-cursor-active .clickable {
        cursor: none !important;
    }

    .cursor-dot {
        display: block;
        width: 8px;
        height: 12px;
        background: var(--gold-light);
        z-index: 10000;
        /* Forma de gema (rombo) */
        clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
        box-shadow: 0 0 10px var(--gold-primary);
    }

    .cursor-circle {
        display: block;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(212, 175, 55, 0.4);
        border-radius: 50%;
        z-index: 9999;
        transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    }

    /* Estados de hover */
    body.cursor-hover .cursor-circle {
        width: 60px;
        height: 60px;
        border-color: var(--gold-primary);
        background: rgba(212, 175, 55, 0.05);
    }
    
    body.cursor-hover .cursor-dot {
        transform: translate(-50%, -50%) scale(1.5);
        background: #fff;
    }
}

/* Pagination / Load More Button */
.btn-load-more {
    background: transparent;
    border: 1px solid var(--gold-dark);
    color: var(--gold-light);
    padding: 1rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn-load-more:hover {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-load-more:active {
    transform: scale(0.98);
}

/* PREMIUM PATTERNS & DIVIDERS */
.bg-pattern-luxury {
    background: 
        radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-dark) 100%),
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.5' stroke-opacity='0.08'%3E%3Cpath d='M60 0 L120 60 L60 120 L0 60 Z' /%3E%3Cpath d='M0 0 L120 120 M120 0 L0 120' /%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover, 120px 120px;
}

.section-divider-gold {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(212,175,55,0.2) 50%, transparent 100%);
    margin: 0;
}

/* MINERAL INFO SECTION */
.mineral-info-section {
    display: none; /* Hidden by default, shown via JS */
    width: 100%;
    padding: 2rem 1.2rem 0; /* Reduced vertical padding */
    background-color: transparent; /* Mimetizado con el fondo */
    position: relative;
    overflow: hidden;
}

/* Compact Teaser Bar */
.mineral-teaser {
    max-width: 1000px;
    margin: 0 auto 1rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-open-info { width: 100%; }

.teaser-content {
    display: flex;
    flex-direction: column; /* Vertical por defecto (móvil) */
    align-items: center;
    gap: 0.8rem;
}

.teaser-icon {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.teaser-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.teaser-text strong {
    color: var(--gold-light);
    font-family: 'Outfit';
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-open-info {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-open-info:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Acrylic Modal for Mineral Info */
.mineral-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mineral-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mineral-modal-content {
    width: 1000px;
    max-width: 95vw;
    max-height: 90vh;
    padding: 2.5rem 1.5rem; /* Reduced for mobile */
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    position: relative;
    overflow-y: auto;
    scrollbar-width: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.mineral-modal-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.mineral-modal-overlay.active .mineral-modal-content {
    transform: scale(1);
}

.mineral-modal-close {
    position: fixed; /* Fixed so it doesn't scroll */
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.mineral-modal-close:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    background: rgba(0, 0, 0, 0.8);
}

/* Internal Grid for Modal */
.mineral-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}


@media (min-width: 768px) {
    .mineral-modal-content {
        padding: 3rem 2rem;
    }
}

.mineral-text-content h1 {
    font-size: clamp(2rem, 8vw, 3.5rem); /* Responsive font size */
    font-family: 'Cinzel Decorative', serif;
    margin-bottom: 0.8rem;
    line-height: 1.1;
    word-wrap: break-word; /* Ensure wrapping */
}

.mineral-subtitle {
    color: var(--gold-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.mineral-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.mineral-meta {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 1.5rem 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.meta-item { display: flex; flex-direction: column; gap: 0.4rem; }
.meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-dark); font-weight: 700; }
.meta-value { font-size: 0.95rem; color: #fff; }

.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.property-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    gap: 1.2rem;
}

.property-icon {
    width: 50px; height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--gold-light); flex-shrink: 0;
}

@media (min-width: 768px) {
    .mineral-info-section {
        padding: 3rem 2rem 0;
    }
    .mineral-teaser {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        border-radius: 50px;
        padding: 0.7rem 1.5rem;
        gap: 2rem;
    }
    .teaser-content {
        flex-direction: row;
        text-align: left;
    }
    .teaser-text {
        font-size: 0.95rem;
    }
    .btn-open-info { width: auto; }
}

@media (min-width: 992px) {
    .mineral-info-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
    .mineral-modal-content { padding: 4rem 3.5rem; }
}

/* LIVE SEARCH RESULTS */
.search-live-results {
    display: none;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
}

.search-live-results.active {
    display: block;
}

.search-group {
    padding: 10px 0;
}

.search-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
    padding: 10px 20px 5px;
    font-weight: 700;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.search-result-item i {
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.search-result-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.search-result-item small {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-result-item.all-results {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(212, 175, 55, 0.03);
}

.search-result-item.all-results span {
    color: var(--gold-light);
}