/* ================= VARIABLES ================= */
:root {
    --bg-main: #121212;
    --bg-secondary: #1E1E1E;
    --bg-smoke: #2A2A2A;
    --gold: #D4AF37;
    --gold-hover: #E8C547;
    --wood: #5C4033;
    --text-light: #F5F5F5;
    --text-muted: #A0A0A0;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* ================= RESET & BASICS ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }
a { text-decoration: none; color: var(--text-light); transition: color 0.3s; }
a:hover { color: var(--gold); }

/* ================= NAVEGACIÓN ================= */
nav {
    position: fixed; top: 0; width: 100%; padding: 20px 5%;
    background: rgba(68, 67, 67, 0.95); 
    backdrop-filter: blur(10px);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 1000;
}
.logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.nav-logo { height: 60px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* ================= BOTONES ================= */
.btn {
    display: inline-block; padding: 12px 25px; border: 1px solid var(--gold);
    background: transparent; color: var(--gold); font-family: var(--font-body);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; text-align: center;
}
.btn-filled { background: var(--gold); color: var(--bg-main); }
.btn:hover { background: var(--gold-hover); color: var(--bg-main); box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
.w-100 { width: 100%; }

/* ================= HERO SECTION CON VIDEO ================= */
.hero {
    position: relative;
    height: 80vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    padding: 0 20px; 
    margin-top: 50px;
    overflow: hidden;
}
.video-bg {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18,18,18,0.5), rgba(18,18,18,1));
    z-index: -1;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; color: var(--gold); }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; color: var(--text-light); font-style: italic; }

/* ================= CATÁLOGO ================= */
.section { padding: 80px 5%; }
.bg-main-color { background-color: var(--bg-main); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--gold); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-smoke); border-radius: 8px;
    overflow: hidden; transition: transform 0.3s, border-color 0.3s;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.product-img {
    height: 250px; background-size: cover;
    background-position: center; border-bottom: 2px solid var(--gold);
}
.product-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.product-info h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-light); }
.product-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.preview-3d { margin-top: 15px; font-weight: 600; }
.product-price { font-size: 1.5rem; color: var(--gold); font-weight: bold; margin-bottom: 20px; }

/* ================= CARRITO DE COMPRAS ================= */
.cart-btn-nav {
    background: var(--bg-smoke); padding: 10px 20px; border-radius: 30px; cursor: pointer;
    display: flex; align-items: center; gap: 10px; border: 1px solid var(--gold); transition: 0.3s;
}
.cart-btn-nav:hover { background: var(--gold); color: var(--bg-main); }
#cart-count { font-weight: bold; }
.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 350px; height: 100vh;
    background: var(--bg-main); border-left: 1px solid var(--gold);
    z-index: 3000; transition: right 0.3s ease; display: flex; flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,0.8);
}
.cart-sidebar.open { right: 0; }
.cart-header, .cart-footer { padding: 20px; background: var(--bg-secondary); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { color: var(--gold); }
.close-btn { background: transparent; color: var(--text-light); border: none; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex-grow: 1; padding: 20px; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--bg-smoke); font-size: 0.9rem; }
.empty-cart { text-align: center; color: var(--text-muted); margin-top: 50px; }
.cart-footer { flex-direction: column; gap: 15px; }
.cart-total-container { display: flex; justify-content: space-between; width: 100%; }
.cart-total-label { font-weight: bold; color: var(--text-muted); }
.cart-total-amount { font-size: 1.5rem; color: var(--gold); font-weight: bold; }

/* ================= TOAST NOTIFICATIONS ================= */
.toast-container {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 4000; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
    background: var(--bg-main); color: var(--text-light); padding: 12px 24px;
    border-radius: 30px; border: 1px solid var(--gold); font-family: var(--font-body);
    font-size: 0.9rem; box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    opacity: 0; transform: translateY(20px); animation: showToast 0.3s ease forwards;
    display: flex; align-items: center; gap: 10px;
}
.toast.error { border-color: #ff4d4d; }

@keyframes showToast { to { opacity: 1; transform: translateY(0); } }
@keyframes hideToast { to { opacity: 0; transform: translateY(-20px); } }

/* ================= RESEÑAS ================= */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.review-card { background: rgba(30, 30, 30, 0.4); padding: 30px; border-radius: 8px; border-left: 2px solid var(--gold); text-align: left; transition: transform 0.3s; }
.review-card:hover { transform: translateY(-5px); }
.stars { font-size: 1.2rem; margin-bottom: 15px; letter-spacing: 2px; }
.review-card p { font-style: italic; color: var(--text-light); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.8; }
.author { color: var(--gold); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ================= B2B ================= */
.b2b-section { background: var(--bg-smoke); text-align: center; padding: 100px 5%; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.b2b-bg { background: linear-gradient(rgba(18,18,18,0.9), rgba(18,18,18,0.95)), url('img/fondo-b2b.jpg') center/cover; }
.b2b-container { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; text-align: left; }
.b2b-text-content h2 { font-family: var(--font-display); color: var(--gold); font-size: 2.5rem; margin-bottom: 20px; }
.b2b-description { color: var(--text-light); font-size: 1.1rem; margin-bottom: 20px; line-height: 1.8; }
.b2b-features { list-style: none; color: var(--text-muted); margin-bottom: 30px; }
.b2b-features li { margin-bottom: 10px; }
.b2b-features strong { color: var(--text-light); }
.b2b-form-card { background: var(--bg-main); padding: 40px; border-radius: 8px; border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.b2b-form-card h3 { color: var(--text-light); margin-bottom: 25px; font-size: 1.5rem; }
.b2b-input { width: 100%; padding: 12px; margin-bottom: 15px; background: var(--bg-smoke); border: 1px solid transparent; color: white; }
.b2b-checkbox-title { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.b2b-checkbox-group { display: flex; gap: 15px; margin-bottom: 25px; }
.b2b-checkbox-label { display: flex; align-items: center; gap: 5px; color: var(--text-light); cursor: pointer; }

/* ================= FOOTER ================= */
footer { text-align: center; padding: 40px; background: #525050; font-size: 0.9rem; color: var(--text-muted); }
.footer-logo-wrapper { margin-bottom: 10px; }
.footer-logo { height: 40px; width: auto; }

/* ================= MEDIA QUERIES ================= */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links a:not(.cart-btn-nav) { display: none; }
    .cart-sidebar { width: 100%; right: -100%; }
}

/* ================= FORMULARIO B2B - CHECKBOXES ================= */
.b2b-checkbox-group {
    display: grid;
    /* Crea columnas automáticas de mínimo 140px y máximo el espacio disponible */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.b2b-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light); /* Si no tenés esta variable, poné #F5F5F5 */
    cursor: pointer;
    font-size: 0.95rem;
}

.b2b-checkbox {
    /* Un pequeño ajuste para que la cajita quede alineada con el texto */
    width: 16px;
    height: 16px;
    cursor: pointer;
}