/* css/styles.css */

:root {
    --primary: #D4AF37; 
    --primary-hover: #b5942f;
    --bg-color: #FAFAFA; 
    --text-main: #1A1A1A;
    --text-light: #666;
    --border: #EAEAEA;
    --font: 'Bodoni Moda', serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--font); 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 5%; 
}

h1, h2, h3 { 
    font-weight: 400; 
    letter-spacing: 1px; 
}

.section-title { 
    text-align: center; 
    font-size: 2rem; 
    margin: 3rem 0 2rem; 
    text-transform: uppercase; 
}

.text-center { 
    text-align: center; 
}

.btn {
    padding: 0.8rem 1.5rem; 
    border: 1px solid var(--text-main); 
    background: transparent;
    color: var(--text-main); 
    cursor: pointer; 
    text-transform: uppercase;
    font-size: 0.8rem; 
    font-weight: 500; 
    transition: all 0.3s ease; 
    border-radius: 0;
}

.btn:hover { 
    background: var(--text-main); 
    color: white; 
}

.btn-primary { 
    background: var(--primary); 
    border-color: var(--primary); 
    color: white; 
}

.btn-primary:hover { 
    background: var(--primary-hover); 
    border-color: var(--primary-hover); 
}

.header {
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(5px);
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 300; 
    letter-spacing: 3px; 
}

.nav-menu ul { 
    list-style: none; 
    display: flex; 
    gap: 2rem; 
}

.nav-menu a { 
    text-decoration: none; 
    color: var(--text-main); 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    transition: color 0.3s; 
}

.nav-menu a:hover, .nav-menu a.active { 
    color: var(--primary); 
}

.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
}

.btn-icon { 
    background: none; 
    border: none; 
    font-size: 1rem; 
    cursor: pointer; 
    font-family: inherit; 
}

/* CARRUSEL PRINCIPAL (HERO) */
.hero-slider {
    position: relative;
    height: 55vh; 
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero-slider .slide {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-size: cover; 
    /* AQUÍ ESTÁ EL TRUCO: 35% enfoca la parte superior/media de la foto en lugar del centro matemático */
    background-position: center 35%; 
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.benefits {
    display: flex; 
    justify-content: space-around; 
    flex-wrap: wrap; 
    background: white;
    padding: 1.5rem 5%; 
    border-bottom: 1px solid var(--border); 
    font-size: 0.9rem; 
    color: var(--text-light);
}

.benefit-item { 
    padding: 0.5rem; 
    text-align: center; 
}

.catalog-controls { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 2rem; 
    gap: 1rem; 
    flex-wrap: wrap; 
}

.catalog-controls input, .catalog-controls select { 
    padding: 0.8rem; 
    border: 1px solid var(--border); 
    font-family: inherit; 
    min-width: 200px; 
}

.catalog { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 2.5rem; 
    padding-bottom: 4rem; 
}

.product-card { 
    background: white; 
    position: relative; 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.product-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); 
}

.product-badge {
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: var(--text-main); 
    color: white;
    font-size: 0.7rem; 
    padding: 0.3rem 0.6rem; 
    text-transform: uppercase; 
    z-index: 10;
}

.product-card img, .single-img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    transition: opacity 0.3s ease; 
}

.product-info { 
    padding: 1.5rem; 
    text-align: center; 
}

.product-title { 
    font-size: 1.1rem; 
    margin-bottom: 0.5rem; 
    font-weight: 500; 
}

.product-price { 
    color: var(--primary); 
    font-weight: 600; 
    font-size: 1.2rem; 
    margin-bottom: 1rem; 
}

.product-card .btn { 
    width: 100%; 
}

.cart-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 150; 
    display: none; 
}

.cart-overlay.active { 
    display: block; 
}

.cart-modal {
    position: fixed; 
    top: 0; 
    right: -400px; 
    width: 100%; 
    max-width: 400px; 
    height: 100vh;
    background: white; 
    z-index: 200; 
    transition: right 0.3s ease; 
    display: flex; 
    flex-direction: column;
}

.cart-modal.active { 
    right: 0; 
}

.cart-header { 
    padding: 1.5rem; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.btn-close { 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
}

.cart-items { 
    flex-grow: 1; 
    overflow-y: auto; 
    padding: 1.5rem; 
}

.cart-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1rem; 
    padding-bottom: 1rem; 
    border-bottom: 1px solid var(--border); 
}

.cart-item-info { 
    flex-grow: 1; 
    margin-right: 1rem; 
}

.cart-item-title { 
    font-size: 0.9rem; 
    font-weight: 600; 
}

.cart-item-price { 
    color: var(--primary); 
    font-size: 0.9rem; 
}

.qty-controls { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    margin-top: 0.5rem; 
}

.qty-btn { 
    width: 25px; 
    height: 25px; 
    border: 1px solid var(--border); 
    background: white; 
    cursor: pointer; 
}

.cart-footer { 
    padding: 1.5rem; 
    background: #f9f9f9; 
    border-top: 1px solid var(--border); 
}

.cart-total { 
    display: flex; 
    justify-content: space-between; 
    font-size: 1.2rem; 
    font-weight: 600; 
    margin-bottom: 1rem; 
}

.checkout-form input { 
    width: 100%; 
    padding: 0.8rem; 
    margin-bottom: 0.5rem; 
    border: 1px solid var(--border); 
    font-family: inherit; 
}

.checkout-form .btn { 
    width: 100%; 
}

.footer { 
    text-align: center; 
    padding: 2rem; 
    background: white; 
    margin-top: 2rem; 
    font-size: 0.9rem; 
    color: var(--text-light); 
}

@media (max-width: 768px) {
    .menu-toggle { 
        display: block; 
    }
    .nav-menu {
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: white;
        flex-direction: column; 
        display: none; 
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .nav-menu.active { 
        display: block; 
    }
    .nav-menu ul { 
        flex-direction: column; 
        padding: 1rem 0; 
        gap: 0; 
    }
    .nav-menu a { 
        display: block; 
        padding: 1rem 5%; 
        border-bottom: 1px solid var(--border); 
    }
    .benefits { 
        flex-direction: column; 
        gap: 1rem; 
    }
    .hero-slider { 
        height: 50vh; 
    }
}

/* Efecto Skeleton de Carga */
.skeleton-card {
    background: white; 
    border: 1px solid var(--border); 
    padding-bottom: 1.5rem;
}

.skeleton-img {
    width: 100%; 
    height: 350px; 
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%; 
    animation: 1.5s shine linear infinite;
}

.skeleton-text {
    height: 20px; 
    margin: 1.5rem auto 0.5rem auto; 
    width: 70%;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%; 
    animation: 1.5s shine linear infinite;
}

.skeleton-price {
    height: 25px; 
    margin: 0 auto 1rem auto; 
    width: 40%;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%; 
    animation: 1.5s shine linear infinite;
}

.skeleton-btn {
    height: 40px; 
    margin: 0 auto; 
    width: 80%;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%; 
    animation: 1.5s shine linear infinite;
}

@keyframes shine { 
    to { background-position-x: -200%; } 
}

/* CARRUSEL DE IMÁGENES EN PRODUCTOS */
.carousel { 
    position: relative; 
    width: 100%; 
    height: 350px; 
    background: #f9f9f9; 
    overflow: hidden;
}

.carousel img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: opacity 0.3s ease;
}

.carousel-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85); 
    border: none; 
    color: var(--text-main);
    width: 35px; 
    height: 35px; 
    cursor: pointer; 
    font-size: 1.2rem;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover { 
    background: white; 
    transform: translateY(-50%) scale(1.1); 
}

.carousel-btn.left { 
    left: 10px; 
}

.carousel-btn.right { 
    right: 10px; 
}