/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #c0c0c0;
    --accent-gold: #d4af37;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: rgba(10, 10, 10, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder del logo - ESTO DEBERÁS REEMPLAZAR CON TU LOGO REAL */
.logo-placeholder {
    width: 150px;
    height: 100px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.logo-placeholder.large {
    width: 180px;
    height: 120px;
    margin: 0 auto 20px;
}

.logo-placeholder.small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-icon {
    font-size: 40px;
    margin-bottom: 5px;
}

.logo-placeholder.large .logo-icon {
    font-size: 50px;
}

.logo-placeholder.small .logo-icon {
    font-size: 20px;
    margin: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
}

.logo-placeholder.large .logo-text {
    font-size: 22px;
}

.logo-text-container h1 {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.logo-subtitle {
    font-size: 14px;
    color: var(--accent-gold);
    font-style: italic;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: 15px;
}

.theme-toggle, .cart-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.theme-toggle:hover, .cart-btn:hover {
    color: var(--accent-gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-gold);
    color: var(--primary-color);
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1549285322-8144244d57c7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 700px;
    padding: 40px;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    text-align: center;
}

.hero-logo h2 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--accent-gold);
    margin-bottom: 30px;
    font-style: italic;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* Catálogo */
.catalog {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-gold);
    color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
    border-color: var(--accent-gold);
}

.product-img {
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--accent-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent-gold);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.view-btn, .add-to-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn:hover, .add-to-cart:hover {
    background-color: var(--accent-gold);
    color: var(--primary-color);
}

/* Carrito de Compras */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
}

.cart-sidebar {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--secondary-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.cart-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--accent-gold);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent-gold);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-color);
}

.cart-item-quantity {
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.remove-item:hover {
    color: #ff5252;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
}

.empty-cart i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.total-price {
    color: var(--accent-gold);
}

.checkout-btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.cart-notice {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* Sección Nosotros */
.about {
    padding: 80px 0;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: var(--accent-gold);
    font-size: 20px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 22px;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modal de producto */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--secondary-color);
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-gold);
}

.modal-body {
    padding: 40px;
}

/* Instrucción para logo */
.logo-instruction {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(26, 26, 26, 0.9);
    padding: 15px;
    border-radius: 4px;
    font-size: 12px;
    max-width: 300px;
    border: 1px solid var(--accent-gold);
    z-index: 100;
}

.logo-instruction p {
    margin: 0;
    color: var(--text-secondary);
}

.logo-instruction code {
    background-color: var(--primary-color);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-text-container h1 {
        font-size: 24px;
    }
    
    .logo-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-img {
        width: 120px;
        height: 80px;
    }
    
    .logo-placeholder {
        width: 120px;
        height: 80px;
    }
    
    .logo-icon {
        font-size: 30px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .nav ul {
        gap: 15px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-logo h2 {
        font-size: 36px;
    }
    
    .filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo-instruction {
        display: none;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .hero {
        height: 80vh;
        margin-top: 120px;
    }
}
