:root { 
    --bg-dark: #070a13; 
    --card-dark: #0f172a; 
    --card-border: rgba(255, 255, 255, 0.06);
    --accent: #2563eb; 
    --accent-glow: rgba(37, 99, 235, 0.25);
    --gold: #f59e0b; 
    --whatsapp-green: #22c55e; 
    --text-muted: #94a3b8;
}
        
/* --- ESTILOS DE LA TIENDA DE HARDWARE --- */
.hardware-section { 
    background-color: var(--bg-dark); 
    color: white; 
    padding: 40px 20px; 
    text-align: center; 
    font-family: 'Roboto', sans-serif; 
}
.hardware-title { 
    font-size: 36px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hardware-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* CARDS PREMIUM */
.hardware-card { 
    display: flex; 
    flex-direction: column; 
    background: var(--card-dark); 
    border-radius: 16px; 
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.hardware-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 15px 35px var(--accent-glow);
}

/* CONTENEDOR DE IMAGEN MEJORADO */
.image-wrapper { 
    position: relative; 
    width: 100%; 
    height: 250px; 
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%); 
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-wrapper img { 
    max-width: 80%; 
    max-height: 80%; 
    object-fit: contain; 
    transition: transform 0.5s ease;
    filter: drop-shadow(0px 8px 16px rgba(0,0,0,0.5));
}
.hardware-card:hover .image-wrapper img {
    transform: scale(1.06);
}

/* BADGES MODERNOS */
.stock-badge {
    position: absolute; 
    top: 5px; 
    left: 15px; 
    padding: 6px 12px; 
    font-size: 11px; 
    font-weight: 700; 
    border-radius: 6px; 
    text-transform: uppercase; 
    z-index: 4;
    letter-spacing: 0.5px;
}
.stock-badge.en-stock { background-color: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.stock-badge.pocas-unidades { background-color: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.stock-badge.agotado { background-color: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

/* OVERLAY DE ESPECIFICACIONES */
.specs-overlay {
    position: absolute; 
    bottom: -100%; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(11, 17, 30, 0.96); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
    padding: 30px; 
    box-sizing: border-box; 
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 3; 
    text-align: left;
    backdrop-filter: blur(4px);
}
.specs-overlay.active { bottom: 0; }
.specs-overlay h4 { color: white; font-size: 15px; margin-bottom: 0px; font-weight: 700; border-bottom: 2px solid var(--accent); width: 100%; padding-bottom: 8px; letter-spacing: 0.5px; }
.specs-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    width: 100%;
    overflow-y: auto;
}
.specs-list li { color: #cbd5e1; font-size: 12px; margin: 10px 0; display: flex; align-items: center; gap: 10px; }
.specs-list i { color: var(--accent); font-size: 12px; }

/* BLOQUE DE INFORMACIÓN DEL PRODUCTO */
.info-producto { 
    display: flex; 
    flex-direction: column; 
    padding: 25px 20px; 
    background-color: var(--card-dark); 
    flex-grow: 1; 
    justify-content: space-between; 
    text-align: left;
}
.info-producto h3 { 
    font-size: 15px; 
    font-weight: 700; 
    color: #f1f5f9; 
    margin: 0 0 8px 0; 
    line-height: 1.4; 
    height: 42px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
    letter-spacing: 0.3px;
}

/* ENVÍO / EXTRA TAG */
.envio-tag {
    font-size: 12px;
    color: #10b981;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.precio-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}
.precio-producto { 
    font-size: 24px; 
    font-weight: 700; 
    color: #fff;
}
.currency {
    font-size: 14px;
    color: var(--gold);
    font-weight: 700;
}

/* BOTONES DE ACCIÓN */
.action-icons { position: absolute; top: 15px; right: 15px; display: flex; flex-direction: column; gap: 12px; z-index: 5; }
.action-link { width: 36px; height: 36px; background-color: rgba(15, 23, 42, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 1rem; transition: all 0.2s ease; cursor: pointer; backdrop-filter: blur(4px); }
.action-link:hover { background-color: var(--accent); color: white; border-color: var(--accent); transform: scale(1.05); }

.btn-add-to-cart { 
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%); 
    color: white; 
    border: none; 
    padding: 12px 15px; 
    border-radius: 10px; 
    font-weight: 700; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    transition: all 0.25s ease; 
    width: 100%; 
    font-size: 14px; 
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.btn-add-to-cart:hover:not(:disabled) { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}
.btn-add-to-cart:disabled { 
    background: #1e293b; 
    color: #475569; 
    cursor: not-allowed; 
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- BOTÓN FLOTANTE Y SIDEBAR --- */
.hw-cart-floating { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; box-shadow: 0 8px 25px rgba(37,99,235,0.4); z-index: 999; transition: transform 0.2s; }
.hw-cart-floating:hover { transform: scale(1.1); }
.hw-cart-badge { position: absolute; top: -2px; right: -2px; background: var(--gold); color: black; font-weight: bold; font-size: 11px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--accent); }

.hw-sidebar { position: fixed; top: 0; right: -400px; width: 400px; height: 100%; background: #0b1329; box-shadow: -10px 0 35px rgba(0,0,0,0.6); z-index: 1000; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; border-left: 1px solid var(--card-border); }
.hw-sidebar.open { right: 0; }
.hw-sidebar-header { padding: 25px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; }
.hw-sidebar-header h3 { margin: 0; font-size: 18px; color: white; font-weight: 700; }
.hw-sidebar-close { font-size: 20px; color: #64748b; cursor: pointer; transition: color 0.2s; }
.hw-sidebar-close:hover { color: #ef4444; }

.hw-cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }

.hw-item { display: flex; align-items: center; gap: 14px; background: #111a2e; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.03); }
.hw-item-img { width: 50px; height: 50px; background: radial-gradient(circle, #1e293b 0%, #0f172a 100%); border-radius: 8px; object-fit: contain; padding: 4px; }
.hw-item-details { flex-grow: 1; }
.hw-item-details h4 { margin: 0 0 6px 0; font-size: 13px; color: #f1f5f9; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hw-item-price { font-size: 13px; color: var(--gold); font-weight: bold; }

.hw-qty-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.hw-qty-btn { background: #1e293b; border: 1px solid rgba(255,255,255,0.05); color: white; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.hw-qty-btn:hover { background: var(--accent); border-color: var(--accent); }

.hw-trash { color: #475569; cursor: pointer; padding: 5px; transition: color 0.2s; }
.hw-trash:hover { color: #ef4444; }

.hw-sidebar-footer { padding: 25px 20px; border-top: 1px solid rgba(255,255,255,0.08); background: #070d19; }
.hw-total-row { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.hw-btn-whatsapp { background: var(--whatsapp-green); color: white; border: none; padding: 14px; border-radius: 10px; font-weight: bold; width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; text-decoration: none; box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3); transition: all 0.2s; }
.hw-btn-whatsapp:hover { background: #16a34a; box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5); transform: translateY(-1px); }

.precio-antes {
            color: #94a3b8;
            text-decoration: line-through;
            font-size: 0.9rem;
            margin-right: 8px;
            font-weight: normal;
        }
        .precio-contenedor {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
        }
@media (max-width: 450px) { .hw-sidebar { width: 100%; right: -100%; } }

/* BADGE DE DESCUENTO FLOTANTE */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 60px; /* Se posiciona al lado de los botones de acción rápidos */
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 4;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: pulseGlow 2s infinite;
}

/* Efecto sutil de respiración para captar la atención del usuario */
@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35); }
}