@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Colores base de la marca - DORADOS SUAVES */
    --gold: #c9a24d;
    --gold-light: #deb887;
    --gold-dark: #9d8344;
    --gold-accent: #d4a574;
    
    /* Fondos oscuros elegantes - más suaves */
    --bg-dark: #1a1817;
    --bg-darker: #0f0d0b;
    --bg-surface: #2a2723;
    --bg-card: #3a3531;
    
    /* Fondos claros elegantes */
    --ivory: #faf8f3;
    --cream: #f5f0e6;
    --linen: #faf3e0;
    
    /* Familia Floral */
    --rose-gold: #c9a5a5;
    --jasmine: #e8d4b0;
    --orchid: #d9a8d9;
    
    /* Familia Fresca */
    --aqua: #7db8b0;
    --mint: #89bfb2;
    --sky: #8fbdd1;
    
    /* Familia Amaderada */
    --sandalwood: #8d6b5a;
    --cedar: #8b8270;
    --amber: #c9a574;
    
    /* Familia Oriental */
    --spice: #b8704d;
    --vanilla: #f0dba8;
    --musk: #8b8878;
    
    /* Textos y neutrales */
    --charcoal: #2c2c2c;
    --text-dark: #1a1a1a;
    --text-light: #f7f7f7;
    --slate: #4a5568;
    --white: #ffffff;
    
    /* Variables de uso */
    --primary: var(--bg-dark);
    --secondary: var(--bg-surface);
    --accent-1: var(--gold);
    --accent-2: var(--gold-accent);
    --accent-3: var(--rose-gold);
    --text-primary: var(--text-light);
    --text-secondary: var(--slate);
    --card-bg: rgba(58, 53, 49, 0.85);
    --border-color: rgba(201, 162, 77, 0.35);
    --glow: rgba(201, 162, 77, 0.6);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--primary);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 162, 77, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(201, 165, 165, 0.08) 0%, transparent 40%);
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(201, 162, 77, 0.02) 2px,
            rgba(201, 162, 77, 0.02) 4px
        );
    animation: scan 8s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(50%); }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Header - CORREGIDO */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(26, 24, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(201, 162, 77, 0.15);
    width: 100%;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    min-height: 60px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 900;
    margin: 0;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-img {
    width: clamp(35px, 8vw, 50px);
    height: clamp(35px, 8vw, 50px);
    border-radius: 50%;
    object-fit: contain;
    animation: pulse-glow 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--glow)); }
    50% { filter: drop-shadow(0 0 20px var(--glow)); }
}

/* Nav - CORREGIDO para móvil */
.nav {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: clamp(0.7rem, 2vw, 0.95rem);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-1);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-1);
}

.nav-link.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.cart-icon:hover {
    color: var(--accent-1);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-1);
    color: var(--bg-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--bg-dark);
}

/* Cart Modal */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.cart-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    border: 1px solid var(--border-color);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-modal-header h2 {
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-items {
    margin-bottom: 1.5rem;
}

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

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.cart-item-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cart-item-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls button {
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.remove-btn {
    background: #ff4757;
    color: white;
}

.cart-form {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-surface);
    border-radius: 10px;
}

.cart-form h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

#client-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#client-form input,
#client-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 1rem;
}

#client-form textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-send {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send:hover {
    background: #128c7e;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.btn-clear,
.btn-checkout {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear {
    background: #ff4757;
    color: white;
}

.btn-checkout {
    background: var(--gold);
    color: var(--bg-dark);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Filters Section */
.filters-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(201, 162, 77, 0.15);
    align-items: center;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    align-items: center;
    justify-content: center;
}

.search-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    background: rgba(26, 24, 23, 0.6);
    border: 2px solid rgba(201, 162, 77, 0.25);
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(26, 24, 23, 0.8);
    box-shadow: 0 0 30px rgba(201, 162, 77, 0.4);
}

.search-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: var(--bg-darker);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(201, 162, 77, 0.4);
}

.search-btn:hover {
    box-shadow: 0 15px 40px rgba(201, 162, 77, 0.6);
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.9rem 1.8rem;
    background: rgba(26, 24, 23, 0.6);
    color: var(--text-secondary);
    border: 2px solid rgba(201, 162, 77, 0.15);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.filter-btn:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 77, 0.25);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: var(--bg-darker);
    border-color: transparent;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(201, 162, 77, 0.4);
}

/* Products Section */
.products-section {
    margin-bottom: 3rem;
}

.products-count {
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.products-count::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow);
}

/* Products Grid - MEJORADO */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Product Card - MEJORADO para imágenes RESPONSIVE */
.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    position: relative;
    height: 100%;
    max-width: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    box-shadow: 0 20px 60px rgba(201, 162, 77, 0.35);
}

/* Product Image Container - COMPLETAMENTE RESPONSIVE */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Mantener proporción cuadrada */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.1), rgba(212, 165, 116, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    max-width: 100%;
    max-height: 100%;
    padding: 0.5rem;
}

.product-card:hover .product-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.out-of-stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--accent-3), #c91155);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.5);
    z-index: 2;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--gold), var(--gold-accent));
    color: var(--bg-darker);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(201, 162, 77, 0.5);
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 2.5rem;
}

.product-category {
    color: var(--accent-1);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-category::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow);
}

.product-card.cat-male .product-category,
.product-category.cat-male { color: #5cb3ff; }
.product-category.cat-male::before { background: #5cb3ff; box-shadow: 0 0 10px rgba(92, 179, 255, 0.6); }

.product-card.cat-female .product-category,
.product-category.cat-female { color: #ff7ab8; }
.product-category.cat-female::before { background: #ff7ab8; box-shadow: 0 0 10px rgba(255, 122, 184, 0.6); }

.product-card.cat-unisex .product-category,
.product-category.cat-unisex { color: #b497ff; }
.product-category.cat-unisex::before { background: #b497ff; box-shadow: 0 0 10px rgba(180, 151, 255, 0.6); }

.product-card.cat-niche .product-category,
.product-category.cat-niche { color: #ffc472; }
.product-category.cat-niche::before { background: #ffc472; box-shadow: 0 0 10px rgba(255, 196, 114, 0.6); }

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex: 1;
    min-height: 2.5rem;
}

.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-currency {
    font-size: 0.85rem;
    margin-right: 0.1rem;
}

.original-price,
.discounted-price,
.current-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
}

.original-price {
    position: relative;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.1rem 0;
}

.original-price::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--accent-1) 25%, var(--accent-2) 75%, transparent 95%);
    opacity: 0.85;
    pointer-events: none;
}

.discounted-price {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.4rem;
}

.current-price {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
}

.add-to-cart-btn,
.view-detail-btn {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(201, 162, 77, 0.35);
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-accent));
    color: var(--bg-darker);
    box-shadow: 0 12px 32px rgba(201, 162, 77, 0.45);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(201, 162, 77, 0.55);
}

.view-detail-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.view-detail-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: rgba(201, 162, 77, 0.12);
    box-shadow: 0 16px 40px rgba(201, 162, 77, 0.25);
}

.low-stock-warning {
    color: var(--gold-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    gap: 1.5rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px var(--glow);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    gap: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 110, 0.3);
    backdrop-filter: blur(20px);
}

.error-state p {
    color: var(--accent-3);
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.retry-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: var(--bg-darker);
    border: none;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(201, 162, 77, 0.4);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(201, 162, 77, 0.6);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.empty-state svg,
.empty-state i {
    color: var(--accent-1);
    opacity: 0.3;
    font-size: 4rem;
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.empty-state p {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1rem;
}

/* ================== FOOTER ================== */
.footer {
    background: rgba(15, 13, 11, 0.97);
    padding: 0;
    margin-top: 5rem;
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

/* Línea gradiente superior */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), var(--accent-1), transparent);
}

/* Orbe decorativo izquierdo */
.footer::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 162, 77, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-orb-right {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Sección principal */
.footer-main {
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

/* Columna marca */
.footer-brand .footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand .footer-logo img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(201, 162, 77, 0.4));
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

/* Redes sociales */
.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 77, 0.25);
    background: rgba(201, 162, 77, 0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social-btn:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    background: rgba(201, 162, 77, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(201, 162, 77, 0.3);
}

/* Columnas de enlaces */
.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-1);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li a i {
    font-size: 0.75rem;
    color: rgba(201, 162, 77, 0.4);
    transition: var(--transition);
    width: 14px;
}

.footer-col ul li a:hover {
    color: var(--accent-1);
    transform: translateX(4px);
}

.footer-col ul li a:hover i {
    color: var(--accent-1);
}

/* Columna contacto */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(201, 162, 77, 0.1);
    border: 1px solid rgba(201, 162, 77, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.footer-contact-info span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
}

.footer-contact-info strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 77, 0.2) 20%, rgba(201, 162, 77, 0.2) 80%, transparent);
    position: relative;
    z-index: 1;
}

/* Sección inferior */
.footer-bottom {
    padding: 1.75rem 0;
    position: relative;
    z-index: 1;
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-copy i {
    color: rgba(201, 162, 77, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 1.75rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-1);
}

/* Footer responsive - móvil */
@media (max-width: 768px) {
    .footer {
        margin-top: 3rem;
    }

    .footer-main {
        padding: 2.5rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-brand .footer-logo {
        font-size: 1.3rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.85rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* ==========================
   ESTILOS DESCUENTOS Y AGOTADO
   ========================== */

.out-of-stock-band {
    position: absolute;
    top: 10px;
    right: -38px;
    width: 140px;
    background: linear-gradient(135deg, #8b6a47, #5a4a37);
    transform: rotate(45deg);
    z-index: 11;
    box-shadow: 0 8px 20px rgba(90, 74, 55, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 15px rgba(139, 106, 71, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.out-of-stock-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.8rem;
    text-align: center;
    padding: 8px 0;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.view-detail-btn.disabled {
    background: linear-gradient(135deg, #999, #888);
    cursor: not-allowed;
    opacity: 0.8;
}

.view-detail-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* BANDA DE DESCUENTO */
.discount-band {
    position: absolute;
    top: 10px;
    left: -38px;
    width: 130px;
    background: linear-gradient(135deg, #ff5733, #c81a1a);
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 15px rgba(255, 87, 51, 0.4);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.discount-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.75rem;
    text-align: center;
    padding: 8px 0;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

/* ETIQUETAS */
.product-tags {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 8;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tag-discount {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: #ffffff;
}

.tag-out-of-stock {
    background: linear-gradient(135deg, #8b6a47, #5a4a37);
    color: #ffffff;
}

/* ============ RESPONSIVE DESIGN - MEJORADO COMPLETAMENTE ============ */

/* Botón hamburguesa para móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-1);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

/* Extra Large Desktop - 1920px+ */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        padding: 0 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
    
    .product-image-container {
        aspect-ratio: 1 / 1;
    }
}

/* Large Desktop - 1440px to 1919px */
@media (max-width: 1919px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet Landscape - 1024px to 1439px */
@media (max-width: 1439px) and (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .product-image-container {
        aspect-ratio: 1 / 1;
    }
}

/* Tablet - 768px to 1023px */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .filters-section {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-input {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .search-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .category-filters {
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    /* MANTENER 2 COLUMNAS EN TABLET */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .product-image-container {
        aspect-ratio: 1 / 1;
        padding: 0.75rem;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .add-to-cart-btn,
    .view-detail-btn {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }
}

/* Mobile - 480px to 767px */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .header {
        padding: 0.8rem 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Menú hamburguesa visible */
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .cart-icon {
        order: 3;
        margin-left: 0;
    }
    
    .nav {
        order: 4;
        width: 100%;
        display: none; /* Oculto por defecto en móvil */
        flex-direction: column;
        background: var(--bg-card);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        gap: 0;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .filters-section {
        padding: 1.25rem;
        gap: 1.25rem;
        border-radius: 16px;
    }
    
    .search-container {
        max-width: 100%;
        flex-direction: column;
    }
    
    .search-input {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        height: 48px;
        font-size: 1rem;
        border-radius: 50px;
    }
    
    .category-filters {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        gap: 0.4rem;
        flex-shrink: 0;
    }
    
    /* MANTENER 2 COLUMNAS EN MÓVIL */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        border-radius: 14px;
    }
    
    .product-image-container {
        aspect-ratio: 1 / 1;
        padding: 0.5rem;
    }
    
    .product-info {
        padding: 1rem;
        gap: 0.4rem;
    }
    
    .product-name {
        font-size: 0.9rem;
        min-height: auto;
    }
    
    .product-category {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .product-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        min-height: auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-footer {
        gap: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .product-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .add-to-cart-btn,
    .view-detail-btn {
        width: 100%;
        padding: 0.75rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 12px;
    }
    
    .out-of-stock-badge,
    .discount-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
        top: 12px;
    }
    
    .products-count {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    
    /* Ajustar etiquetas de descuento para móvil */
    .discount-band,
    .out-of-stock-band {
        width: 100px;
        top: 8px;
    }
    
    .discount-band {
        left: -30px;
    }
    
    .out-of-stock-band {
        right: -30px;
    }
}

/* Mobile pequeño - 320px to 480px */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 0.6rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
        gap: 0.25rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .cart-icon {
        font-size: 1.2rem;
    }
    
    .main-content {
        padding: 1rem 0;
        min-height: calc(100vh - 60px);
    }
    
    .filters-section {
        padding: 1rem;
        gap: 1rem;
        border-radius: 12px;
        margin-bottom: 2rem;
    }
    
    .search-input {
        padding: 0.8rem 1rem;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        gap: 0.3rem;
        border-radius: 12px;
    }
    
    /* PRODUCTOS - 2 columnas ajustadas */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-container {
        padding: 0.25rem;
    }
    
    .product-info {
        padding: 0.75rem;
        gap: 0.3rem;
    }
    
    .product-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .product-category {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }
    
    .product-description {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .product-buttons {
        gap: 0.4rem;
    }
    
    .add-to-cart-btn,
    .view-detail-btn {
        padding: 0.6rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .out-of-stock-badge,
    .discount-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
        top: 8px;
    }
    
    .products-count {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .low-stock-warning {
        font-size: 0.7rem;
    }
}

/* Mobile muy pequeño - Menos de 320px */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    /* PRODUCTOS - 2 columnas ajustadas */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .product-image-container {
        padding: 0.25rem;
    }
    
    .product-info {
        padding: 0.5rem;
    }
    
    .product-name {
        font-size: 0.8rem;
    }
    
    .product-description {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }
    
    .add-to-cart-btn,
    .view-detail-btn {
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-2), var(--accent-1));
}

/* Selection */
::selection {
    background: var(--accent-1);
    color: var(--primary);
}

/* Focus states */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--accent-1);
    outline-offset: 2px;
}

/* Mejora para toques en móvil */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .filter-btn:hover {
        transform: none;
    }
    
    .search-btn:hover {
        transform: none;
        rotate: 0deg;
    }
}