/* --- VARIABLES DE TEMA Y TRANSICIONES --- */
:root {
    /* MODO CLARO POR DEFECTO (Pasteles Elegantes) */
    --bg-main: #fffcfc;          
    --bg-surface: #ffedf2;       
    --text-main: #2b1c20;        
    --text-muted: #8a7378;       
    --accent: #ff8fa3;           
    --accent-hover: #ff4d6d;     
    
    /* La transición intocable */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* EL DETECTOR DEL TEMA DEL CELULAR / SO */
@media (prefers-color-scheme: dark) {
    :root {
        /* MODO OSCURO (Rojos y Rosas Profundos) */
        --bg-main: #0a0002;          
        --bg-surface: #1a0005;       
        --text-main: #ffeeef;        
        --text-muted: #a3757d;       
        --accent: #ff0040;           
        --accent-hover: #ff3366;     
    }
}

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Aplicando la transición fluida a los cambios de tema */
body, header, .editorial-text, .discover-desire, footer, .age-content, .card-footer {
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: var(--transition);
}

body {
    font-family: 'Jost', sans-serif;
    overflow-x: hidden;
    font-weight: 300;
}

.logo-text, h1, h2, h3, h4 {
    font-family: 'Marcellus', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 16px 35px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}
.btn:hover {
    border-color: var(--accent-hover);
    color: var(--accent-hover);
}
.btn-solid {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-main);
}
.btn-solid:hover {
    background: transparent;
    color: var(--accent);
}

/* --- AGE GATE MODAL --- */
#age-gate {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.age-content {
    max-width: 500px;
    padding: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--accent);
}
.age-content h2 { font-size: 3rem; margin-bottom: 20px; color: var(--accent); }
.age-content p { color: var(--text-muted); margin-bottom: 40px; font-weight: 300; }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0; width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
}
header.scrolled {
    background: var(--bg-main);
    padding: 15px 60px;
    border-bottom: 1px solid var(--bg-surface);
}
.logo-text { font-size: 2.2rem; letter-spacing: 4px; }
.nav-links a { margin: 0 20px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; transition: var(--transition); }
.nav-links a:hover { color: var(--accent); }
.nav-icons i { margin-left: 25px; font-size: 1.2rem; cursor: pointer; transition: var(--transition); }
.nav-icons i:hover { color: var(--accent); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1520038410233-7141be7e6f97?q=80&w=2074&auto=format&fit=crop') center/cover;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-main);
    opacity: 0.85; 
    transition: var(--transition);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}
.hero h1 { font-size: clamp(4rem, 8vw, 7rem); line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 40px; font-weight: 300; }

/* --- EDITORIAL TEXT --- */
.editorial-text {
    padding: 150px 10vw;
    text-align: center;
    background: var(--bg-surface);
}
.editorial-text h2 { font-size: 3.5rem; margin-bottom: 30px; color: var(--accent); }
.editorial-text p { font-size: 1.2rem; max-width: 600px; margin: 0 auto; line-height: 1.8; font-weight: 300; }

/* --- PRODUCT GRID --- */
.products { padding: 100px 5vw; background: var(--bg-main); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 80px;
}
.product-card {
    position: relative;
}
.img-container {
    position: relative;
    height: 550px;
    overflow: hidden;
    margin-bottom: 30px;
}
.img-container img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition);
}
.img-hover {
    position: absolute; top: 0; left: 0; opacity: 0;
}
.img-container:hover .img-main { opacity: 0; transform: scale(1.05); }
.img-container:hover .img-hover { opacity: 1; transform: scale(1.05); }

.category-label { font-size: 0.75rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; display: block; margin-bottom: 10px; font-weight: 500;}
.product-info h4 { font-size: 2rem; margin-bottom: 10px; }
.product-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--bg-surface); padding-top: 15px; background: transparent; }
.price { font-size: 1.2rem; font-family: 'Marcellus', serif; }
.discover-link { font-size: 0.8rem; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; font-weight: 500;}

/* --- DISCOVER YOUR DESIRE --- */
.discover-desire {
    padding: 120px 5vw;
    text-align: center;
    background: var(--bg-surface);
}
.discover-desire h2 { font-size: 3rem; margin-bottom: 60px; }
.slider-container { max-width: 600px; margin: 0 auto; }
.slider-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; font-size: 0.85rem; letter-spacing: 2px; color: var(--text-muted); }

.custom-slider {
    -webkit-appearance: none;
    width: 60%;
    height: 2px;
    background: var(--text-muted);
    outline: none;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: var(--transition);
}
.custom-slider::-webkit-slider-thumb:hover { transform: scale(1.5); }

/* --- FOOTER --- */
footer { padding: 80px 5vw 40px; background: var(--bg-surface); border-top: 1px solid var(--bg-main); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; }
.footer-col h5 { margin-bottom: 25px; font-size: 0.85rem; letter-spacing: 2px; color: var(--text-muted); font-weight: 500;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { font-size: 0.9rem; transition: var(--transition); color: var(--text-main); }
.footer-col ul li a:hover { color: var(--accent); }

/* --- ANIMACIONES REVEAL --- */
.reveal { opacity: 0; transform: translateY(60px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    header { padding: 20px; }
    .nav-links { display: none; }
    .hero h1 { font-size: 3.5rem; }
    .product-grid { grid-template-columns: 1fr; }
}