/* Configuración Global */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #111;
    --secondary-color: #888;
    --accent-color: #c4a484; /* Dorado suave/arena */
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --text-color: #333;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-container {
    display: block;
}

.logo-img {
    height: 60px; /* Ajusta este valor según prefieras */
    width: auto;
    object-fit: contain;
}

.logo-footer {
    filter: invert(1) brightness(1.5); /* Invertimos para que el blanco sea negro y viceversa, mejorando la integración */
}

.nav-links {
    display: flex;
}

/* Carrito Lateral (Cart Drawer) */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px; /* Oculto por defecto */
    width: 380px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.cart-drawer.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-weight: 600;
}

.remove-item {
    margin-left: auto;
    color: #ff4d4d;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
}

.empty-msg {
    text-align: center;
    color: var(--secondary-color);
    margin-top: 50px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-checkout:hover {
    background: var(--accent-color);
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-icons a {
    margin-left: 20px;
    font-size: 1.2rem;
    position: relative;
}

.cart-count {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.2)), 
                url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Categories */
.categories {
    padding: 80px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
}

.category-overlay {
    background-color: rgba(255,255,255,0.9);
    padding: 20px;
    width: 100%;
    text-align: center;
    transform: translateY(100px);
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    transform: translateY(0);
}

.category-overlay h3 {
    margin-bottom: 10px;
    text-transform: uppercase;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Product Grid */
.products {
    padding-bottom: 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    transition: var(--transition);
}

.product-img {
    position: relative;
    overflow: hidden;
}

.product-img img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    padding: 10px 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    background: none;
    border: none;
    margin: 0 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

.product-info {
    padding: 15px 0;
    text-align: center;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.product-info .category {
    color: var(--secondary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.product-info .price {
    font-weight: 700;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info .logo {
    margin-bottom: 20px;
}

.footer-info p {
    color: #bbb;
    margin-bottom: 20px;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-links h4, .footer-newsletter h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
}

.footer-links a:hover {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    flex: 1;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Idealmente aquí iría un menú hamburguesa */
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
}
