:root {
    --bg-dark: #1d0e1b;
    --bg-light: hsl(315, 44%, 19%);
    --accent: #ff6bbc;
    --view: #991a60;
    --text: #ffd0eb;
    --gradient: linear-gradient(#bb2577, #55093c);
    --log: linear-gradient(#991f7b, #3b0d41);
    --text-main: #fafafa;
    --hero-bg-img: url('https://riyogems.com/cdn/shop/articles/out-0_484cde7d-3d65-4097-90f1-949684c0fff4.png?v=1747502679');
    --glass-bg: rgba(225, 217, 247, 0.08);
    --glass-border: rgba(186, 207, 255, 0.2);
}

[data-theme="blue"] {
    --bg-dark: #0f151d;
    --bg-light: #172A45;
    --accent: #29c3e6;
    --view: #125c86;
    --text: #c7efff;
    --gradient: linear-gradient(#1aa0c2, #083752);
    --log: linear-gradient(#355ac0, #221749);
    --hero-bg-img: url('https://image.made-in-china.com/2f0j00oEPbAiOKLMgV/Sky-Blue-Topaz-Loose-Gemstone-for-Jewelry-Setting.webp');
}

[data-theme="yellow"] {
    --bg-dark: #291813;
    --bg-light: #6b3802;
    --accent: #ffeb37;
    --view: #81630f;
    --text: #fff9c7;
    --gradient: linear-gradient(#c5a413, #502f05);
    --log: linear-gradient(#cc6e30, #3a1e17);
    --hero-bg-img: url('https://content.cuerpomente.com/medio/2024/07/23/citrino-propiedades_1cdc5379_240723165737_1200x630.jpg');
}

[data-theme="green"] {
    --bg-dark: #0f1b1a;
    --bg-light: #04442d;
    --accent: #2bd686;
    --view: #0e7a3f;
    --text: #bfffc9;
    --gradient: linear-gradient(#15a575, #083131);
    --log: linear-gradient(#11726d, #0d2927);
    --hero-bg-img: url('https://luuckk.com/cdn/shop/articles/bijoux-malachite-pourquoi-les-porter.jpg?v=1761734064&width=2048');
}

[data-theme="pink"] {
    --bg-dark: #1d0e1c;
    --bg-light: hsl(308, 45%, 19%);
    --accent: #e764ac;
    --view: #a8246d;
    --text: #f3c1dd;
    --gradient: linear-gradient(#bb2577, #55093c);
    --hero-bg-img: url('https://riyogems.com/cdn/shop/articles/out-0_484cde7d-3d65-4097-90f1-949684c0fff4.png?v=1747502679');
}


* {
    margin: 0;
    padding: 0;
    max-width: 100vw;
    box-sizing: border-box;
    transition: background 0.8s ease, color 0.5s ease;
}

body {
    font-family: 'Lora', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}


.hero { background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-light) 100%); }
.features { background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-dark) 100%); }
.carousel-section { background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-light) 100%); }
.about-us { background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-dark) 100%); }
.benefits-section { background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-light) 100%); }
.cta-section { 
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-dark) 100%); 
    border: none; outline: none;
    position: relative;
    
    padding: 120px 5% 160px 5%; 
    display: flex;
    justify-content: center;
    text-align: center;
    
    
    overflow: hidden;
}

footer {
    padding: 53px 0 30px 0; 
    border-top-color: var(--bg-dark);
    border-width: 10px;
    z-index: 10; 
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}


.btn {
    padding: 12px 26px; 
    border: none;
    border-radius: 8px;
    font-family: 'Lora', sans-serif;
    font-weight: 600;
    font-size: 1rem; 
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.primary-btn { background: var(--gradient); color: white; }
.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

.secondary-btn { background: transparent; border: 2px solid var(--view); color: white; }
.secondary-btn:hover { background: var(--view); }


.gem {
    width: 35px; 
    height: 35px; 
    position: absolute;
    transform: rotate(45deg);
    cursor: pointer;
    background-color: var(--gem-color, #ffffff);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 45%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.6) 100%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 3px;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.6), 4px 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    z-index: 10;
}

.gem::before {
    content: ''; position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px; 
    border: 1px solid rgba(255,255,255,0.5);
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    border-radius: 2px;
}

.gem:hover {
    transform: rotate(45deg) scale(1.15);
    box-shadow: inset 0 0 15px rgba(255,255,255,1), 6px 6px 15px rgba(0,0,0,0.6);
    filter: brightness(1.2);
}

.gem.blue { --gem-color: #00D2FF; }
.gem.yellow { --gem-color: #FFD700; }
.gem.green { --gem-color: #00FF88; }
.gem.pink { --gem-color: #FF3385; }
.gem.accent-gem { --gem-color: var(--accent); }


header {
    padding: 1.2rem 5%;
    position: sticky; top: 0;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    z-index: 1000;
}
nav { display: flex; justify-content: flex-end; align-items: center; }
nav ul {
    display: flex; list-style: none; gap: 2rem;
    position: absolute; left: 50%; transform: translateX(-50%);
}
nav ul li { font-size: 0.95rem; font-weight: 500; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
nav ul li:hover { color: var(--accent); }
nav ul li:focus { color: var(--accent); }
.auth button { padding: 0.5rem 1rem; border-radius: 50px; border: none; cursor: pointer; font-weight: 600; }
.auth button:first-child { background: var(--gradient); color: #fafafa; }
.auth button:last-child { background: var(--log); color: #fafafa}
.auth button:first-child:hover{ filter: brightness(1.5);}
.auth button:last-child:hover{ filter: brightness(1.5);}
.logo { font-size: 1.6rem; font-weight: bold; } 


.hero { position: relative; height: 100vh; display: flex; align-items: center; padding: 0 7%; }
.hero-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--hero-bg-img); background-size: cover; background-position: center;
    filter: blur(5px) brightness(0.4); z-index: 0; transition: background-image 1s ease-in-out;
}
.principal { position: absolute; top: 30px; left: 5%; z-index: 2; }

.hero-content { position: relative; z-index: 2; max-width: 600px; padding: 40px; } 
.hero-content h1 { font-size: 4.2rem; line-height: 1.1; margin-bottom: 20px; } 
.hero-content p { margin-bottom: 30px; line-height: 1.6; font-size: 1.15rem; } 

.top-necklace-container {
    position: absolute;
    top: -10px;
    right: 1px;
    width: 310px;
    height: 310px;
}
.necklace-svg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none; }


.features {
    display: flex; justify-content: space-around; align-items: center;
    padding: 15px 5%; border-top: 2px solid rgba(255,255,255,0.1); border-bottom: 2px solid rgba(255,255,255,0.1);
}
.feature-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 15px 25px; border-radius: 15px; cursor: pointer; border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.feature-item img { width: 25px; height: 25px; filter: invert(1); } 
.feature-item i { font-size: 2.2rem; color: var(--text-main); transition: all 0.3s ease; }
.feature-item span { font-weight: 600; letter-spacing: 1px; font-size: 0.9rem; }
.feature-item:hover { transform: translateY(-8px); background: var(--glass-bg); border-color: var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }


.carousel-section { padding: 20px 5% 50px 5%; text-align: center; background: transparent; }
.carousel-section h2 { padding-top: 20px; font-size: 2.2rem; margin-bottom: 10px; } /* Reducido de 2.5rem */
.carousel-section h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 30px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.carousel-container { display: flex; align-items: center; justify-content: center; gap: 20px; height: 500px; } /* Reducido de 600px */
.cards-wrapper { display: flex; align-items: center; justify-content: center; gap: 30px; width: 100%; }

.product-card {
    background: var(--glass-bg); border-radius: 15px; padding: 20px; border: 1px solid var(--glass-border);
    width: 300px; 
    pointer-events: none; z-index: 1;
    animation: fadeInSide 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.product-card.active { pointer-events: auto; border: 1px solid var(--accent); z-index: 2; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); animation: fadeInActive 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.product-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.product-info h3 { margin-bottom: 8px; font-size: 1.3rem; }
.product-info .price { color: var(--accent); font-weight: bold; margin-bottom: 8px; font-size: 1.15rem; }
.product-info .desc { font-size: 0.9rem; opacity: 0.8; line-height: 1.4; margin-bottom: 10px; }

.arrow-btn { width: 50px; height: 50px; background: var(--bg-light); border: 1px solid var(--accent); color: #fafafa; border-radius: 50%; cursor: pointer; z-index: 10; transition: all 0.3s ease; flex-shrink: 1; }
.arrow-btn:hover { background: var(--accent); transform: scale(1.1); }

@keyframes fadeInSide { from { opacity: 0; transform: scale(0.75); filter: blur(8px); } to { opacity: 0.5; transform: scale(0.85); filter: blur(4px); } }
@keyframes fadeInActive { from { opacity: 0.5; transform: scale(0.85); filter: blur(4px); } to { opacity: 1; transform: scale(1.22); filter: blur(0px); } }


.about-us { display: flex; align-items: center; justify-content: space-between; padding: 100px 10%; gap: 60px; }
.about-content { flex: 1; max-width: 450px; }
.about-content h2 { font-size: 2.6rem; margin-bottom: 15px; } 
.about-content h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.about-content p { line-height: 1.7; opacity: 0.9; font-size: 1.15rem; }

.about-image-container { flex: 1; position: relative; height: 420px; display: flex; justify-content: center; align-items: center; }
.circle-img { position: absolute; border-radius: 50%; padding: 5px; background: linear-gradient(135deg, #fafafa, var(--accent), var(--bg-dark)); box-shadow: 0 15px 35px rgba(0,0,0,0.5); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.circle-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background-color: var(--bg-dark); display: block; }

.img-main { width: 420px; height: 420px; top: 0; left: 20px; position: relative; z-index: 2; animation: floatMainCircle 7s ease-in-out infinite; } 
.morph-bg { position: absolute; width: 480px; height: 480px; top: -10px; left: 55px; z-index: 1; background: linear-gradient(45deg, var(--bg-light), var(--accent), var(--text)); opacity: 0.45; filter: blur(4px); animation: liquidMorph 10s ease-in-out infinite alternate, floatAmbientBlob 7s ease-in-out infinite; } /* Reducido de 560px */

@keyframes liquidMorph { 0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; } 33% { border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%; } 66% { border-radius: 50% 50% 34% 66% / 40% 60% 40% 60%; } }
@keyframes floatAmbientBlob { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes floatMainCircle { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }


.benefits-section { padding: 80px 5%; position: relative; overflow: hidden; }
.benefits-section h3 { font-size: 1.4rem; color: var(--text); margin-bottom: 50px; font-weight: 600; text-align: center; text-transform: uppercase; letter-spacing: 1px; }
.benefits-section h2 { text-align: center; font-size: 2.2rem; margin-bottom: 10px; }

.benefits-container { display: flex; justify-content: center; align-items: center; gap: 50px; max-width: 1000px; margin: 0 auto; }
.floating-bg { position: absolute; pointer-events: none; z-index: 0; opacity: 0.12; filter: blur(3px); mix-blend-mode: screen; }
.bg-left { width: 280px; left: -50px; top: 15%; animation: floatAmbientLeft 12s ease-in-out infinite; } 
.bg-right { width: 230px; right: -30px; bottom: 5%; animation: floatAmbientRight 14s ease-in-out infinite; } 

@keyframes floatAmbientLeft { 0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); } 50% { transform: translateY(-30px) rotate(6deg) scale(1.05); } }
@keyframes floatAmbientRight { 0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); } 50% { transform: translateY(25px) rotate(-8deg) scale(0.95); } }

.benefits-necklace { position: relative; width: 180px; height: 480px; } 
.necklace-svg-vertical { width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none; }

.benefit-gem { transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; width: 45px; height: 45px; } 
.benefit-gem.active-gem { transform: rotate(45deg) scale(1.3); box-shadow: inset 0 0 15px rgba(255,255,255,1), 6px 6px 20px rgba(0,0,0,0.8); filter: brightness(1.3); opacity: 1; }
.benefit-gem:not(.active-gem) { opacity: 1; }
.benefit-gem:hover { opacity: 1; filter: brightness(1.2); }

#benefit-card { transition: opacity 0.3s ease, transform 0.3s ease; }
.benefits-card { flex: 1; max-width: 450px; border: 3px solid #fafafa; border-radius: 20px; padding: 25px; }
.benefit-img-placeholder { width: 100%; height: 200px; background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.3); }
.benefit-text h3 { margin-bottom: 12px; font-size: 1.5rem; }
.benefit-text p { line-height: 1.6; font-size: 1.2rem; opacity: 0.9; }


.cta-section { position: relative; padding: 100px 5% 140px 5%; display: flex; justify-content: center; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; top: -20px; left: -20px; right: -20px; bottom: -20px; background-image: var(--hero-bg-img); background-size: cover; background-position: center; filter: blur(8px) brightness(0.3); z-index: 0; transition: background-image 1s ease-in-out; }
.cta-card { position: relative; z-index: 2; max-width: 550px; border: 2px solid var(--accent); }
.cta-card h2 { font-size: 2.4rem; margin-bottom: 15px; } 
.cta-card h2 strong { color: var(--accent); }
.cta-card p { margin-bottom: 25px; font-size: 1.05rem; opacity: 0.9; }




@media (max-width: 968px) {
    
    header { padding: 1rem 5%; }
    nav { flex-direction: column; gap: 15px; }
    nav ul { position: relative; left: 0; transform: none; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
    
    
    .hero { padding-top: 140px; justify-content: center; text-align: center; flex-direction: column; }
    .hero-content { padding: 20px; max-width: 100%; left: 0; }
    .hero-content h1 { font-size: 2.6rem; }
    
    
    .top-necklace-container {
        position: relative;
        top: 0; right: 0;
        width: 100%; height: auto;
        display: flex; justify-content: center; align-items: center; gap: 15px;
        margin-top: 20px;
    }
    .necklace-svg { display: none; } 
    .top-necklace-container .gem {
        position: relative !important; top: auto !important; left: auto !important;
        margin: 0;
    }

    
    .features { flex-direction: column; gap: 20px; padding: 40px 5%; }
    .feature-item { width: 100%; max-width: 350px; }

    
    .carousel-container { height: 450px; }
    .carousel-container h3 { padding-bottom: 5px;}
    .arrow-btn{ width: 30px; height: 30px; flex-shrink: 1;}
    .cards-wrapper { gap: 15px; }
    .product-card { width: 270px; padding: 15px; }
    .product-card h3 { font-size: 1rem; }
    .product-card:not(.active) { display: none; } 

    
    .about-us { flex-direction: column; text-align: center; padding: 80px 5%; gap: 50px; }
    .about-image-container { height: 350px; width: 100%; }
    .img-main { width: 300px; height: 300px; left: 0; margin: 0 auto; }
    .morph-bg { left: 50% !important;
        transform: translateX(-50%) !important; 
        top: 50% !important;
        
        margin-top: -150px;}
    
    
    .cta-card h2 { font-size: 2rem; }
    .cta-section { padding: 80px 5% 100px 5%; }

    footer {
    padding: 20px 1 30px 1; 
    border-top-color: var(--bg-dark);
    border-width: 10px;
    z-index: 10; 
}
}

@media (max-width: 900px) {
    
    .benefits-section { padding: 60px 5%; }
    .benefits-container { flex-direction: column; gap: 20px; }
    
    .benefits-necklace {
        width: 100%; height: auto;
        display: flex; justify-content: center; align-items: center; gap: 20px;
        padding: 10px 0; margin-bottom: 10px;
    }
    .necklace-svg-vertical { display: none; }
    .benefits-necklace .benefit-gem {
        position: relative !important; top: auto !important; left: auto !important;
        width: 40px; height: 40px; flex-shrink: 0; margin: 0;
    }

    .benefits-card { width: 100%; max-width: 100%; padding: 25px; }
    .benefit-img-placeholder { height: 200px; margin-bottom: 20px; }
    .benefit-text h3 { font-size: 1.4rem; }
    .benefit-text p { font-size: 1.05rem; }
    .morph-bg { width: 310px; height: 310px; left: 9px; transform: translateX(-50%); top: -10px; flex-shrink: 1;}


    .bg-left, .bg-right { width: 150px; opacity: 0.08; }
}