/* =========================================
   1. VARIABLES & RESET GENERAL (TEMA DARK BAR)
   ========================================= */
:root {
    /* Paleta inspirada en Cerveza y Madera */
    --color-primary: #D4AF37;    /* Dorado Metálico */
    --color-secondary: #CCA43B;  /* Dorado más oscuro */
    --color-accent: #2C2C2C;     /* Gris oscuro para contrastes */

    --color-text: #F0F0F0;       /* Texto casi blanco */
    --color-text-muted: #B0B0B0; /* Texto secundario gris */

    --color-bg: #121212;         /* Fondo Negro Matte */
    --color-card-bg: #1E1E1E;    /* Fondo de tarjetas */
    --color-white: #FFFFFF;

    --font-main: 'Poppins', sans-serif;
    --radius-card: 12px;
    --radius-btn: 4px; /* Botones más cuadrados para toque rústico */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Sombras más fuertes */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* =========================================
   2. UTILIDADES Y BOTONES
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #121212; /* Texto oscuro sobre dorado */
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    margin-left: 10px;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* =========================================
   3. HEADER & LOGO
   ========================================= */
.header {
    background: rgba(18, 18, 18, 0.95); /* Fondo oscuro */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--color-primary);
}

/* =========================================
   4. SIDEBAR (MENÚ MÓVIL) ESTILO BAR
   ========================================= */
.hamburger-btn {
    cursor: pointer;
    width: 35px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2001;
}

.hamburger-btn .bar {
    height: 3px;
    width: 100%;
    background-color: var(--color-primary); /* Barras doradas */
    border-radius: 2px;
    transition: 0.3s;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Oscuro total */
    backdrop-filter: blur(5px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay.active { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background-color: #1a1a1a; /* Sidebar oscuro */
    z-index: 2000;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    border-left: 1px solid #333;
}

.sidebar.active { transform: translateX(0); }

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
}

.sidebar-nav { list-style: none; margin-top: 20px; }
.sidebar-nav li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    display: block;
    padding: 10px;
    transition: all 0.3s;
}

.nav-link:hover { color: var(--color-primary); padding-left: 15px; }

/* Stagger animation */
.sidebar.active .sidebar-nav li { opacity: 1; transform: translateX(0); }
.sidebar.active .sidebar-nav li:nth-child(1) { transition-delay: 0.1s; }
.sidebar.active .sidebar-nav li:nth-child(2) { transition-delay: 0.2s; }
.sidebar.active .sidebar-nav li:nth-child(3) { transition-delay: 0.3s; }
.sidebar.active .sidebar-nav li:nth-child(4) { transition-delay: 0.4s; }

/* =========================================
   5. HERO & SECCIONES
   ========================================= */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* Oscurece el video un poco */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), #121212);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
}

.badge {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,1);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.main-content { padding: 80px 0; }

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p { color: var(--color-text-muted); }

.category-title {
    font-size: 1.8rem;
    margin: 60px 0 30px;
    padding-left: 15px;
    border-left: 4px solid var(--color-primary);
    color: var(--color-white);
}

/* =========================================
   6. GRID DE PRODUCTOS (DARK CARDS)
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid #333; /* Borde sutil */
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary); /* Brillo dorado al hover */
}

.card-img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: #151515;
    color: #444; /* Color icono apagado */
}

.card-content { padding: 25px; }

.card-content h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-white);
}

.card-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.price {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.btn-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid var(--color-text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-white);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: #0a0a0a;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 80px;
    color: #666;
}

/* Animaciones de entrada */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (min-width: 769px) {
    .hamburger-btn, .sidebar, .overlay { display: none !important; }
    .navbar { display: block; }
    .nav-list { display: flex; align-items: center; gap: 40px; list-style: none; }
    .nav-link { font-size: 0.9rem; padding: 0; margin: 0; text-transform: uppercase; letter-spacing: 1px; color: #ccc;}
    .nav-link:hover { color: var(--color-primary); }
    .nav-cta {
        padding: 10px 25px !important;
        color: #121212 !important;
        background-color: var(--color-primary) !important;
    }
}
@media (max-width: 768px) {
    .navbar { display: none; }
    .hamburger-btn { display: flex; }
    .hero-title { font-size: 3rem; }
}