/* VARIABLES DE COLOR */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --primary: #f39c12; /* Dorado/Cerveza */
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
}

/* ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(18, 18, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
}

.logo h2 span {
    color: var(--primary);
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cart-icon {
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1566633806327-68e152aaf26d?q=80&w=1200') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-content p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #e68a00;
}

/* SECCIONES COMUNES */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 50px 0 30px 0;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 10px auto 0 auto;
}

/* CATEGORÍAS */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 5%;
}

.category-card {
    background-color: var(--bg-card);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid #2a2a2a;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card p {
    color: var(--text-gray);
    margin-top: 10px;
    font-size: 0.9rem;
}

/* PRODUCTOS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 5%;
    margin-bottom: 50px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #2a2a2a;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: #000;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 3px;
}

.product-img-placeholder {
    height: 200px;
    background-color: #282828;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.price {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-product {
    width: 100%;
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--primary);
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-product:hover {
    background-color: var(--primary);
    color: #000;
}

/* FOOTER */
footer {
    background-color: #0a0a0a;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #2a2a2a;
}

.footer-content p {
    color: var(--text-gray);
    margin: 15px 0;
}

.social-icons a {
    color: var(--text-white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
}

.credits {
    font-size: 0.8rem;
    color: #555 !important;
}

/* RESPONSIVO PARA CELULARES */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links a {
        margin: 0 10px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}